endpoint-libs 4.3.0

Launch MCP services fast: describe endpoints once in RON, and endpoint-gen generates the Rust models, docs and MCP tool schemas that this crate serves over WebSocket RPC, with roles and typed errors built in.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! JSON-RPC 2.0 constants shared by every MCP speaker in this crate.
//!
//! No dependency and no feature: the serde wire types (`ws::mcp_wire`) and the `no_std` door
//! (`door::mcp`) both answer JSON-RPC, and the version string and error codes are defined once,
//! here.

pub const JSONRPC_VERSION: &str = "2.0";
pub const MCP_PROTOCOL_VERSION: &str = "2025-06-18";

pub const PARSE_ERROR: i64 = -32700;
pub const INVALID_REQUEST: i64 = -32600;
pub const METHOD_NOT_FOUND: i64 = -32601;
pub const INVALID_PARAMS: i64 = -32602;
pub const INTERNAL_ERROR: i64 = -32603;