Skip to main content

mcprouter

Documentation for v0.0.1. Additional guides and API reference coverage are being expanded.
@surf-lab/mcprouter, version 0.0.1 is a published Node.js ESM SDK, not a hosted router. Install the public release for local and MCP tool registration/discovery, filtering, governed exact calls, bounded intent execution and the optional AI SDK integration. Core needs no AI SDK peer, model or credential. The support contract is Node.js >=22.3.0 and npm >=10.9.0 on compatible pairs. Release checks cover ten Linux compatibility cells and native macOS/Windows Node 22/24 core smoke checks, not every platform/version combination. No CommonJS or browser support is claimed. See installation and compatibility limits and the qualified benchmark scope. The router separates finding tools from permission to call them. Your application supplies trusted context, policy, servers and (if needed) model adapters. No model preference, tool description or ranking score grants execution. For the shared database/billing example, begin at models, servers and trusted policy, then assign models to servers and tools. Or compare the integration paths. Before connecting services, read security and trust boundaries. Look up the Router methods and outcomes and errors while building a host integration. For the design rationale, diagrams and evidence assessment, read the whitepaper: separating agent reasoning from governed tool execution. Questions or feedback? Contact Surf Workspace. These starter pages cover only part of the planned documentation. Expanded transport guidance, the complete public type reference, full example-family coverage and hosted documentation privacy/search checks remain outside this preview. Documentation completeness is separate from the SDK’s completed 0.0.1 release. No live provider or MCP service is supplied by the documentation site.