初期化ハンドシェイク
クライアントとサーバーがバージョンと機能について合意する仕組みを学びます。
「初期化ハンドシェイク」はCoddyKit上の無料MCP Academyレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはMCP Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 MCP Academyコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
First Words Matter
Before any tool runs, client and server must meet. That opening exchange is the initialize handshake, and nothing else happens until it finishes.
The Client Speaks First
The handshake always starts with the client sending an initialize request. The server stays quiet and waits to be greeted before it replies.
{"jsonrpc": "2.0", "id": 0, "method": "initialize"}Agreeing on a Version
The client offers a protocolVersion so both sides speak the same MCP edition. The server confirms a version it can support in its reply.
{"params": {"protocolVersion": "2025-06-18"}}Declaring Capabilities
Each side lists its capabilities, such as tools, resources, or sampling. This tells the other party which features it may safely use.
{"capabilities": {"tools": {}, "resources": {}}}Introducing Yourself
The client also sends clientInfo with its name and version. It is a friendly nameplate so the server knows exactly who connected.
{"clientInfo": {"name": "claude-desktop", "version": "1.0"}}The Server Responds
The server replies with its own chosen version, its capabilities, and serverInfo. Now both sides know what the other can do.
{"result": {"protocolVersion": "2025-06-18",
"serverInfo": {"name": "my-server", "version": "0.1"}}}Sealing the Deal
After the reply, the client sends a final notifications/initialized message. It has no id and no answer, simply signaling that setup is complete.
{"jsonrpc": "2.0", "method": "notifications/initialized"}Only Then, Real Work
Until that initialized notification arrives, the server should refuse other calls. The handshake gates everything that follows it.
Why Negotiate at All
Versions and features evolve, so the handshake lets a new client and an old server negotiate common ground instead of crashing on mismatch.
Capabilities Shape the Session
If the server never advertised resources, a polite client will not ask for them. Declared capabilities quietly define the rules of the whole session.
The Handshake in Three Beats
Remember the rhythm: client sends initialize, server responds, client confirms with initialized. Three beats and the connection is live.
Quick Check
What does the client send to finish the initialize handshake?
Recap: Saying Hello
You traced the handshake end to end: the client offers a version and capabilities, the server confirms, and a final initialized note opens the session for real work.
よくある質問
「初期化ハンドシェイク」レッスンは無料ですか?
はい。「初期化ハンドシェイク」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、MCP Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 MCP Academyコースには全4レッスンが含まれています。
「初期化ハンドシェイク」で何を学びますか?
クライアントとサーバーがバージョンと機能について合意する仕組みを学びます。 ブラウザで直接実行するハンズオンコードでMCP Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
MCP Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのMCP Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。
「初期化ハンドシェイク」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このMCP Academyレッスンでコードを書いて実行できますか?
はい。すべてのMCP Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。