JSON-RPC

A lightweight protocol for remote calls encoded as JSON objects, with requests, results, errors and notifications matched by id.

In more detail

Every MCP message is JSON-RPC 2.0. A request has a method and an id, a reply carries the same id with either a result or an error with an integer code, and a notification has no id and must never get a reply.

Example

{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}

Related terms

Taught in

References

Certification courses