0Pricing
MCP Academy · Ders

Liste ve Şablonlu Kaynaklar

Sabit girdilerin yanı sıra anında oluşturulan kalıplar da sunun.

Liste ve Şablonlu Kaynaklar, 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.

Two Ways to Offer Data

MCP exposes data two ways: a listed resource with a fixed URI, or a templated one with placeholders. Knowing which to pick keeps your server clear.

Listed: Enumerable and Few

A listed resource has a concrete URI and shows up in resources/list. Use it when there are only a handful of known items the client can browse.

@mcp.resource("config://app")
def app_config() -> str:
    return read_config()

Templated: Infinite by Pattern

A templated resource uses curly-brace placeholders, so it covers countless URIs. It can't be listed in full, because the set is open-ended.

@mcp.resource("file://{path}")
def read_file(path: str) -> str:
    return open(path).read()

The Listing Difference

Clients call resources/list to discover fixed resources. Templates appear in a separate templates list instead, advertising the shape rather than concrete entries.

Browse vs Address

Think of it as browse vs address. Listed resources are like menu items you scan; templates are like typing an address you already know.

When the Set Is Small

If your data is a short, stable set, prefer listed resources. The model can see every option, which makes the right choice obvious to it.

When the Set Is Huge

If items number in the thousands, a template wins. Listing them all would flood the client, so you advertise the pattern and let it fill in values.

weather://{city}/today

Combine Both Freely

A real server often does both: a few listed entries for common data, plus templates for the long tail. They coexist happily side by side.

Help Discovery Along

Templates can't enumerate, but you can add a small listed index resource that points to popular URIs, giving the model useful starting points.

@mcp.resource("cities://index")
def cities() -> str:
    return "london, paris, tokyo"

Same Read, Either Way

However a URI is found, the client reads it the same way: one resources/read call. Listed or templated changes discovery, not how content is fetched.

Why This Matters

Choosing listed vs templated shapes how easily a model finds your data. Pick listed for browsing, templated for scale, and your server stays usable. 🎯

Quick Check

Which resource type should you use for thousands of items?

Recap

You learned that listed resources suit small browsable sets while templated ones scale to huge collections, and the two combine well. Next: notifying clients of updates. 🚀

Sıkça Sorulan Sorular

“Liste ve Şablonlu Kaynaklar” dersi ücretsiz mi?

Evet — “Liste ve Şablonlu Kaynaklar” 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.

“Liste ve Şablonlu Kaynaklar” dersinde ne öğreneceğim?

Sabit girdilerin yanı sıra anında oluşturulan kalıplar da sunun. 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.

“Liste ve Şablonlu Kaynaklar” 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. Parametreli Kaynak URI'leri
  2. İçeriği Okuma Anında Oluşturma
  3. Liste ve Şablonlu Kaynaklar
  4. Güncellemeleri İstemcilere Bildirme
← MCP Academy Sayfasına Dön