JSON-RPC in MCP

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
Practice: JSON-RPC in MCP — Interactive Exercises | Durgesh Rai