0Pricing
MCP Academy · Ders

İstemci Sınırlarına Saygı Gösterme

Ana makinenin izin verdiği kapsamın dışına çıkmayın.

İstemci Sınırlarına Saygı Gösterme, CoddyKit'te ücretsiz bir MCP Academy dersidir. Bu, 4 dersinin 4. 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.

Knowing Isn't Enough

You can fetch roots and read capabilities, but the real job is honoring them. A trustworthy server stays inside the lines the host drew for it. 🚧

Stay Inside the Roots

Before touching any file, confirm its path sits within one of the client's roots. If it does not, refuse rather than reaching outside the allowed area.

Resolve Paths First

A sneaky path like ../../etc can escape a root. Always resolve to an absolute, normalized path before comparing it against your allowed folders.

from pathlib import Path
real = Path(p).resolve()

Check Containment Safely

Test that the resolved path is relative to a root. The pathlib helper raises if it escapes, giving you a clean yes-or-no on whether to proceed.

real.relative_to(root_path)

Don't Use Missing Features

If the client never declared a capability, do not call it. Respecting boundaries means trusting the negotiation, not poking at features that were never offered.

Degrade Gracefully

When roots are empty or unsupported, do not guess at the filesystem. Narrow what your tool does and tell the user why, instead of grabbing arbitrary paths.

Least Privilege by Default

Roots set an outer limit, but you can be stricter. Ask only for what a task truly needs, the spirit of least privilege, and leave the rest untouched.

Boundaries Aren't Just Folders

Respect goes beyond paths. Honor the host's pace and limits too, so you never flood it with calls or ignore a cancellation the user asked for.

Re-validate After Changes

When a roots list_changed notice arrives, re-check any cached paths. A folder allowed a minute ago may now be outside the user's current scope.

Fail Loud, Not Wide

If a request points outside the roots, return a clear error the model can read. A polite refusal beats silently doing something the user never sanctioned.

Why This Earns Trust

Servers that respect boundaries are the ones users keep installed. Good scoping turns a powerful tool into a safe one people are happy to grant access. 💛

Quick Check

One request targets a path outside every declared root. What should your server do?

Recap: Honoring the Limits

You resolve paths, confirm they sit inside a root, skip undeclared features, degrade gracefully, and refuse out-of-scope work. That is what makes a server trustworthy. ✅

Sıkça Sorulan Sorular

“İstemci Sınırlarına Saygı Gösterme” dersi ücretsiz mi?

Evet — “İstemci Sınırlarına Saygı Gösterme” 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.

“İstemci Sınırlarına Saygı Gösterme” dersinde ne öğreneceğim?

Ana makinenin izin verdiği kapsamın dışına çıkmayın. 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 4. dersidir.

“İstemci Sınırlarına Saygı Gösterme” 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

  1. Köklerin Sunucuya Bildirdikleri
  2. İstemcinin Köklerini İsteme
  3. Yetenekleri Uzlaştırma
  4. İstemci Sınırlarına Saygı Gösterme
← MCP Academy Sayfasına Dön