0Pricing
MCP Academy · Ders

Asgari Ayrıcalıklı Araç Erişimi

Her araca yalnızca gerçekten ihtiyaç duyduğu izinleri verin.

Asgari Ayrıcalıklı Araç Erişimi, CoddyKit'te ücretsiz bir MCP Academy dersidir. Bu, 4 dersinin 2. 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.

The Principle

Least privilege means each tool gets only the permissions its job requires, and nothing more. If a tool is tricked, the blast radius stays small. 🔒

Narrow the Scope

A tool that reads one report folder should not be able to touch the whole disk. Give it the smallest scope that still gets the work done, then stop there.

Read vs Write

Split read and write into separate tools when you can. A read-only tool that gets injected can leak data, but it cannot quietly change or delete anything.

Scope Credentials, Not Just Tools

Privilege also lives in the token your server holds. Use a database role or API key scoped to exactly the operations needed, so a slip cannot reach unscoped resources.

A Read-Only Tool

This tool can only look up an order, never modify one. The function body defines the ceiling on what the model can do through it.

@mcp.tool()
def get_order(order_id: int) -> str:
    "Read one order by id."
    return db.fetch_order(order_id)

Avoid the God Tool

One run_anything tool that executes arbitrary code or SQL hands the model total control. Prefer many narrow tools with fixed, predictable behavior instead.

Allowlists Over Blocklists

Decide what is permitted, not what is forbidden. An allowlist of safe operations is far easier to reason about than trying to enumerate every dangerous one.

Constrain the Filesystem

If a tool reads files, pin it to one base directory and reject paths that escape it. A bounded root stops a tool from wandering into system files.

Separate Tools by Sensitivity

Keep low-risk lookups apart from high-risk actions. You can then apply stricter checks and confirmation to only the sensitive tools that truly need them.

Per-User Authorization

The server, not the model, decides who may do what. Check the caller's identity before acting so a tool cannot reach data outside that user's permissions.

Default Deny

Start every new tool from the assumption that it can do nothing, then grant exactly what it needs. A default-deny stance keeps accidental power from creeping in.

Quick Check

Pick the design that best follows least privilege.

Recap

Give each tool the smallest scope, split read from write, scope your credentials, and default to deny. Least privilege keeps any single mistake contained. ✅

Sıkça Sorulan Sorular

“Asgari Ayrıcalıklı Araç Erişimi” dersi ücretsiz mi?

Evet — “Asgari Ayrıcalıklı Araç Erişimi” 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.

“Asgari Ayrıcalıklı Araç Erişimi” dersinde ne öğreneceğim?

Her araca yalnızca gerçekten ihtiyaç duyduğu izinleri verin. 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 2. dersidir.

“Asgari Ayrıcalıklı Araç Erişimi” 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. MCP'ye Özgü Tehditler
  2. Asgari Ayrıcalıklı Araç Erişimi
  3. Her Şeyi Doğrulama ve Temizleme
  4. Yıkıcı Eylemleri Koruma
← MCP Academy Sayfasına Dön