مفاهيم MCP

الأدوات المسموح بها

لا يُسمح بأي شيء حتى تقول ذلك ، لا تحذر — حسابيا : الاعلان يكلف الرسومات على كل دورة من كل جولة .

none by defaultchosen per connectionthe cost is per turn
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

الحساب

كل أداة مُمرسة مع كل دور

خادم يعرض تسعين أداة ، مسموح بها كلها ، يضيف تكلفة ثابتة كبيرة لكل خطوة من كل جولة تستخدمه — يدفعها صاحب الحساب ، على كل جواب ، سواء كان اسم واحد في أي وقت مضى أو لا .

ولهذا السبب فإن التقصير ليس قائماً، ولماذا يتم الاختيار عند الربط بدلاً من الركض: فهو قرار بشأن ما يدفع الحساب باستمرار.

يُسيّرهم

// At connection
await api.mcp.connect({ url, name: "example", tools: ["search_docs", "get_issue"] });

// Later — the list is replaced, not added to
const server = await api.mcp.get("example");
const allowed = server.tools.filter((t) => t.allowed).map((t) => t.name);
await api.mcp.update("example", { tools: [...allowed, "create_issue"] });
# At connection
api.mcp.connect(url=url, name="example", tools=["search_docs", "get_issue"])

# Later — the list is replaced, not added to
server = api.mcp.get("example")
allowed = [t["name"] for t in server["tools"] if t["allowed"]]
api.mcp.update("example", tools=[*allowed, "create_issue"])

مراقبو المجموع

const servers = await api.mcp.list();
const perTurn = servers.reduce((n, s) => n + s.allowed, 0);
console.log(perTurn, "MCP tools declared on every turn");
servers = api.mcp.list()
per_turn = sum(s["allowed"] for s in servers)
print(per_turn, "MCP tools declared on every turn")

الأدوات الجديدة التي تم الوصول إليها دون

يُحدّث خادماً يجلب ما يضيفه من أيًّا كان، مع allowed: falseالخادم لا يستطيع أن يوسّع سطحه الخاص بشحن المزيد من الأدوات.

جاري تشغيل خادم

tools: [] و ما هو إلاّ دليل على وجود صلة و رمزها و لا يعلن شيئاً قابل للإلغاء و لا يكلف شيئاً في الوقت الحالي

نونوو إيقاع

ثلاثة أدوات اختيارية جيدة تجعل من أفضل عامل من تسعين: النموذج يقرأ كل وصف على كل منعطف، وقائمة طويلة من الأسماء القريبة من بعضها البعض هي سبب لاختيار واحد خاطئ.