クライアント:サーバーごとに1つの接続
ホストがサーバーごとに専用クライアントを起動する仕組みを学びます。
「クライアント:サーバーごとに1つの接続」はCoddyKit上の無料MCP Academyレッスンです。 これはレッスン2/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これは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!
よくある質問
「クライアント:サーバーごとに1つの接続」レッスンは無料ですか?
はい。「クライアント:サーバーごとに1つの接続」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、MCP Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 MCP Academyコースには全4レッスンが含まれています。
「クライアント:サーバーごとに1つの接続」で何を学びますか?
ホストがサーバーごとに専用クライアントを起動する仕組みを学びます。 ブラウザで直接実行するハンズオンコードでMCP Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
MCP Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのMCP Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン2/4です。
「クライアント:サーバーごとに1つの接続」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このMCP Academyレッスンでコードを書いて実行できますか?
はい。すべてのMCP Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。
このコースのすべてのレッスン
- ホスト:Claude DesktopとIDE
- クライアント:サーバーごとに1つの接続
- サーバー:ツールが存在する場所
- リクエストを端から端まで追跡する