Protocol Reference
From the server's point of view, MDP is a small set of lifecycle and routing messages.
Core flow
The main sequence is:
- a client connects over
ws/wssorhttp/httpsloop mode - the client sends
registerClientwith path catalog metadata - the server indexes that catalog in memory
- an MCP host calls a bridge tool
- the server routes the request as
callClient - the client returns
callClientResult
In an optional layered deployment, one edge server may mirror its locally connected clients into one upstream hub. That does not change the client-facing message set. The edge server still receives normal registerClient and callClientResult traffic from its clients and emits normal registrations and invocations toward the upstream hub.
What the server cares about
The server runtime only needs a few protocol concepts:
- client descriptors
- path descriptors for endpoints, prompts, and skills
- invocation envelopes with optional
auth - heartbeat messages for connection liveness
The transport-facing control plane also includes an HTTP metadata probe at /mdp/meta. That probe helps one server decide whether another local port is already serving MDP and whether it should proxy upward instead of acting as the root hub.
Read deeper
The detailed protocol pages remain the source of truth: