Yetenekleri Uzlaştırma
Her iki tarafın hangi özellikleri desteklediğini denetleyin.
Yetenekleri Uzlaştırma, CoddyKit'te ücretsiz bir MCP Academy dersidir. Bu, 4 dersinin 3. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, MCP Academy öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. MCP Academy kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
Not Everyone Speaks Every Feature
MCP is rich, but no client or server supports it all. So at startup both sides negotiate which features they have, like two devices agreeing on what they can do. 🤝
It Happens at Initialize
This deal is struck during the initialize handshake, the very first exchange. After it, each side knows what the other offers and what is off the table.
Two Capability Bundles
The client announces its clientCapabilities and the server announces its serverCapabilities. Each bundle is just a map of feature flags and small options.
What a Server Declares
A server lists what it provides: things like tools, resources, and prompts. If a key is absent, clients know not to expect that primitive from you.
"capabilities": { "tools": {}, "resources": {} }What a Client Declares
A client lists features it can offer back, such as roots, sampling, and elicitation. That is how your server learns it may even ask for roots at all.
"capabilities": { "roots": {}, "sampling": {} }Sub-flags Add Detail
A capability can hold extra options. For example, roots may carry listChanged: true, meaning the client will notify you when its root set changes.
"roots": { "listChanged": true }Absence Means No
The rule is simple: if a capability is missing, treat the feature as unavailable. Never call something the other side never promised it could do.
Version Comes First
Alongside features, both sides send a protocolVersion. They must agree on a shared version, or the session is rejected before any real work begins.
The SDK Does the Heavy Lifting
You rarely build these maps by hand. The Python SDK fills in your server capabilities from the tools and resources you registered, then exchanges them for you.
Read the Other Side's Flags
After init, you can inspect the client capabilities your session captured. That check is exactly what guards an optional call like list_roots.
caps = ctx.session.client_params.capabilitiesNegotiate Once, Trust Throughout
Capabilities are settled at startup and hold for the session. You can rely on them for the connection's life without re-negotiating on every call.
Quick Check
Recall when and how features get agreed on.
Recap: The Capability Deal
At initialize, client and server swap capability maps and a protocol version. A missing flag means unsupported, and the SDK builds and reads these for you. 🎯
Sıkça Sorulan Sorular
“Yetenekleri Uzlaştırma” dersi ücretsiz mi?
Evet — “Yetenekleri Uzlaştırma” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve MCP Academy kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. MCP Academy kursu toplamda 4 dersten oluşur.
“Yetenekleri Uzlaştırma” dersinde ne öğreneceğim?
Her iki tarafın hangi özellikleri desteklediğini denetleyin. MCP Academy ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
MCP Academy öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te MCP Academy, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 3. dersidir.
“Yetenekleri Uzlaştırma” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu MCP Academy dersinde kod yazıp çalıştırabilir miyim?
Evet. Her MCP Academy dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- Köklerin Sunucuya Bildirdikleri
- İstemcinin Köklerini İsteme
- Yetenekleri Uzlaştırma
- İstemci Sınırlarına Saygı Gösterme