Skip to content

< CollectionsStack

MCP, from the wire up.

The Model Context Protocol one message at a time: the handshake, a tool call, the client, and when not to trust a server.

5 sections · 5 problems

0 of 5 done

Start Next: 01 Answer an MCP Handshake

Fig. 1. One cable, one protocol. The client and server agree on capabilities, list the tools, then call one. Any server plugs in the same way.

Section 01

The handshake

0 of 1

Agree on a version and what each side can do.

  1. 01Answer an MCP Handshakeimplement · easy

Section 02

Messages that want no reply

0 of 1

A notification is answered with silence.

  1. 02Never Reply to an MCP Notificationdebug · medium

Section 03

Serve a tool

0 of 1

List it, take the call, return the result.

  1. 03Serve a Tool Call over MCPimplement · medium

Section 04

Be the client

0 of 1

Discover a server's tools and call them.

  1. 04Discover and Call Tools as an MCP Clientimplement · medium

Section 05

Trust

0 of 1

Read a server's tools before the model does.

  1. 05Vet the MCP Server Before You Trust Its Toolsimplement · medium
All collections