0Pricing
MCP Academy · درس

العميل: رابط واحد لكل خادم

تعلّموا كيف ينشئ المضيف عميلًا مخصصًا لكل خادم.

العميل: رابط واحد لكل خادم درس مجاني في MCP Academy على CoddyKit. هذا هو الدرس 2 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في MCP Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة MCP Academy 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

What Is a Client?

Inside the host lives the client. It is the piece that actually speaks the MCP protocol to a server. The host runs the show; the client does the talking.

One Client Per Server

Here is the key rule: the host creates one client for every server it connects to. Three servers means three separate clients running side by side.

A Dedicated One-to-One Link

Each client keeps a private, one-to-one connection with its single server. No client is ever shared between two servers.

Why Isolate Connections?

Keeping links separate gives isolation. If one server crashes or misbehaves, its client fails alone and the others keep working fine.

The Client Speaks for the Model

When the model wants a tool, the host hands the request to the right client. The client formats it and sends it down its own connection.

Clients Discover Capabilities

Right after connecting, a client asks its server what it offers. It discovers the available tools, resources, and prompts before any are used.

Listing a Server's Tools

A client sends a tools/list request to learn what it can call. The server replies with each tool's name and description.

{ "method": "tools/list" }

The Client Maintains Session State

A client tracks the live session: what was negotiated and which calls are in flight. It is the memory of that one connection.

Many Clients, One Host

The host runs all its clients together, then merges their tools into one menu for the model. You see a unified assistant; underneath sit many clients.

Client vs Host

The host is the whole app and owns the model. A client is a smaller component inside it, dedicated to managing a single server link.

Clean by Design

This one-link-per-server design keeps things simple and safe. Each client has one clear job, which makes the whole system easy to reason about.

Quick Check

Recall how many servers a single client connects to.

Recap

You saw the client: the host's protocol-speaker, one per server, holding an isolated session and discovering each server's tools. Great progress!

الأسئلة الشائعة

هل درس «العميل: رابط واحد لكل خادم» مجاني؟

نعم — نص درس «العميل: رابط واحد لكل خادم» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة MCP Academy، انتقل إلى CoddyKit PRO. تتضمن دورة MCP Academy 4 دروس في المجموع.

ماذا ستتعلم في «العميل: رابط واحد لكل خادم»؟

تعلّموا كيف ينشئ المضيف عميلًا مخصصًا لكل خادم. تتمرن على MCP Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ MCP Academy؟

لا تُشترط خبرة سابقة. MCP Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.

كم من الوقت يستغرق درس «العميل: رابط واحد لكل خادم»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس MCP Academy هذا؟

نعم. كل درس في MCP Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. المضيف: Claude Desktop وبيئات IDE
  2. العميل: رابط واحد لكل خادم
  3. الخادم: حيث توجد الأدوات
  4. تتبّع الطلب من البداية إلى النهاية
← العودة إلى MCP Academy