Expand description
JSON-RPC 2.0 and Model Context Protocol data types and errors.
Structs§
- Implementation
Info - Client identity sent during
initialize. - Initialize
Result - Result returned by the server from
initialize. - Json
RpcError Object - Inbound JSON-RPC 2.0 error object.
- Json
RpcNotification - Outbound JSON-RPC 2.0 notification envelope (no
id). - Json
RpcRequest - Outbound JSON-RPC 2.0 request envelope.
- Json
RpcResponse - Inbound JSON-RPC 2.0 response envelope.
- Resource
Content - Embedded resource payload inside a
ContentBlock::Resource. - Tool
- Definition of a tool returned by
tools/list. - Tool
Annotations - Behavioral annotations advertised by an MCP tool.
- Tool
Call Result - Result returned by
tools/call. - Tools
List Result - Single page returned by
tools/list.
Enums§
- Content
Block - Structured content block returned by
tools/call. - McpError
- Errors returned by MCP transports and client operations.
Constants§
- JSONRPC_
VERSION - JSON-RPC 2.0 version constant.
- MCP_
PROTOCOL_ VERSION - MCP protocol version advertised by blyte during
initialize.