JSON-RPC & the MCP Wire Protocol

Hands-on practice for this lecture. Work through the exercises and quizzes to reinforce what you've learned.

Interactive Workshop

JSON-RPC Wire Protocol

Explore the raw messages exchanged between MCP clients and servers — discover tools, then call them.

1

The client sends a tools/list request to find out what the server can do.

jsontools/list request
1{
2  "jsonrpc": "2.0",
3  "id": 1,
4  "method": "tools/list",
5  "params": {}
6}
1 / 4
MCP Client
stdio · connectedmy-mcp-server
add

Add two numbers together and return the sum

requirednumber
requirednumber

Test Your Understanding

Multiple choice — select an answer to see the explanation.

1 / 3

What does RPC stand for, and what makes it different from REST?