0Pricing
MCP Academy · Ders

Kaynaklar: Modelin Okuduğu Veriler

Yapay zekânın alabileceği salt okunur bağlam.

Kaynaklar: Modelin Okuduğu Veriler, 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 Second Primitive

After tools comes the resource: read-only data your server hands to the model as context, like a file, a record, or a config value. 📄

Resources Are for Reading

A resource never changes the world. It only exposes information the model can read, the way a GET request fetches a page without editing anything.

Every Resource Has a URI

Each resource is addressed by a URI, such as file:///notes.txt or config://app. The scheme and path tell clients exactly what they are asking for.

Declaring a Resource

In Python you mark a function with @mcp.resource() and pass its URI. The function returns the content whenever a client reads that URI.

@mcp.resource("config://version")
def get_version() -> str:
    return "1.0.0"

Content Comes Back as Text

What your resource returns becomes the content the model reads. Plain strings work great for notes, settings, or any small document.

MIME Types Describe Content

A resource also carries a MIME type like text/plain or application/json. It tells the client how to interpret the bytes it receives.

Application-Controlled, Not Model-Picked

Resources are usually application-controlled. The host app or user chooses which ones to attach, rather than the model grabbing them on its own.

Listing What's Available

A client can ask your server to list its resources. That discovery step lets a host show the user which documents it can pull into context.

Reading a Resource

To fetch one, the client sends a read request with the URI. Your server runs the matching function and returns the current content.

Think Files and Records

Good resources are things you'd want the AI to see but not run: a README, a database row, log output, or the latest settings.

Tool vs Resource

A simple test: if it does something, make it a tool; if it just provides information to read, make it a resource. Action versus context.

Quick Check

Let's confirm what a resource is for.

Recap: Resources

Great! A resource is read-only context with a URI and MIME type. Clients list and read them, and the model gains information without running anything. ✅

Sıkça Sorulan Sorular

“Kaynaklar: Modelin Okuduğu Veriler” dersi ücretsiz mi?

Evet — “Kaynaklar: Modelin Okuduğu Veriler” 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.

“Kaynaklar: Modelin Okuduğu Veriler” dersinde ne öğreneceğim?

Yapay zekânın alabileceği salt okunur bağlam. 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.

“Kaynaklar: Modelin Okuduğu Veriler” 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. Araçlar: Modelin Gerçekleştirdiği Eylemler
  2. Kaynaklar: Modelin Okuduğu Veriler
  3. İstemler: Yeniden Kullanılabilir Talimatlar
  4. Doğru Yapı Taşını Seçme
← MCP Academy Sayfasına Dön