v0.1.1
First working release of orpc-mcp — serve an oRPC router as an MCP server.
npm install orpc-mcpAnnotate procedures with mcp.tool, mcp.resource, or mcp.prompt and serve them over Streamable HTTP (fetch, node) or stdio. Built on oRPC's standard request/response flow, so middleware, validation, context, and handler plugins compose as usual.
Extracted from middleapi/orpc#1604, which the maintainer chose to keep out of core and promote as an ecosystem package.
Fixed since 0.1.0
- Package now imports correctly. 0.1.0 shipped with
exportspointing at./src/*.tswhile onlydist/was packed, so every import failed withERR_MODULE_NOT_FOUND. The cause waspublishConfig.exportsbeing a pnpm-only feature thatnpm publishignores. Dist paths are now inlined intoexports, correct under both clients. 0.1.0 is deprecated — use this version.
Requirements
Requires oRPC v2 beta as peer dependencies:
npm install @orpc/server@beta @orpc/client@beta @orpc/contract@beta @orpc/json-schema@beta @orpc/shared@betaTargets MCP protocol revision 2025-11-25.