MCP داخل أطر عمل الوكلاء
اربطوا خوادم MCP ببيئات تشغيل الوكلاء.
MCP داخل أطر عمل الوكلاء درس مجاني في MCP Academy على CoddyKit. هذا هو الدرس 2 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في MCP Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة MCP Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Agents Need Tools Too
An agent framework runs a loop: the model thinks, picks a tool, sees the result, repeats. MCP is a tidy way to feed it those tools.
One Connection, Many Tools
Instead of wiring each tool by hand, your agent connects to an MCP server once and instantly gains everything that server advertises.
Frameworks Speak MCP
Popular agent runtimes add MCP support so you can drop a server in as a tool source, no custom glue code per framework.
Discover, Then Use
At startup the framework asks the server to list tools, then exposes them to the model like any other callable in the loop.
tools = await session.list_tools()The Loop Stays the Same
Your agent loop does not change much. MCP just supplies the tool definitions the model chooses from on each step.
Calling a Tool
When the model picks a tool, the framework forwards the call to the MCP server with call_tool and waits for the result.
result = await session.call_tool(
"get_weather", {"city": "Rome"})Mix Many Servers
An agent can attach several MCP servers at once, pooling a database server, a search server, and a files server into one toolbox.
Swap Tools Without Code
Because tools live behind servers, you can add or remove capabilities by changing config, not by rewriting the agent itself.
The Host Handles Plumbing
The framework acts as the host: it starts servers, manages connections, and translates between the model and MCP for you.
Why This Scales
One server can power many agents, and one agent can use many servers. That many-to-many reach is exactly what MCP was built for.
Keep Your Agent Logic
MCP does not own your agent. Your reasoning, planning, and memory stay in the framework; MCP only standardizes the tool layer.
Quick Check
How does MCP fit into an agent framework?
Recap
An agent framework connects to MCP servers, discovers their tools, and calls them inside its loop. Plug in capability, keep your logic. 🔌
الأسئلة الشائعة
هل درس «MCP داخل أطر عمل الوكلاء» مجاني؟
نعم — نص درس «MCP داخل أطر عمل الوكلاء» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة MCP Academy، انتقل إلى CoddyKit PRO. تتضمن دورة MCP Academy 4 دروس في المجموع.
ماذا ستتعلم في «MCP داخل أطر عمل الوكلاء»؟
اربطوا خوادم MCP ببيئات تشغيل الوكلاء. تتمرن على MCP Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ MCP Academy؟
لا تُشترط خبرة سابقة. MCP Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.
كم من الوقت يستغرق درس «MCP داخل أطر عمل الوكلاء»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس MCP Academy هذا؟
نعم. كل درس في MCP Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- MCP في مقابل Function Calling
- MCP داخل أطر عمل الوكلاء
- التواصل بين الوكلاء باستخدام A2A
- إلى أين يتجه MCP؟