Expand description
MCP server implementation.
Exposes Selfware’s tools and project resources to external AI clients via the Model Context Protocol (JSON-RPC 2.0 over stdio).
The wire framing of each incoming message is auto-detected:
newline-delimited JSON-RPC (the MCP stdio spec, protocol 2024-11-05) or
LSP-style Content-Length headers (legacy clients). Every response is
written in the same framing as the request that produced it.
Structs§
- Json
RpcError - JSON-RPC 2.0 error object.
- Json
RpcRequest - Incoming JSON-RPC 2.0 request (or notification when
idisNone). - Json
RpcResponse - Outgoing JSON-RPC 2.0 response.
- McpServer
- MCP server that exposes Selfware tools and project resources.
Functions§
- run_
mcp_ server - Run the MCP server, reading from stdin and writing to stdout.