SDKs & Libraries
Connect SDK
The official Connect SDK —@routemcp/connect-sdk — lets you embed the provider connection flow in any web app. It ships with both a vanilla JS/TypeScript API and a React component, with no runtime dependencies.
Installation
Vanilla JS / TypeScript
React
Import from the/react subpath:
CDN (no bundler)
For quick prototyping without a build step:Package Details
| Package | @routemcp/connect-sdk |
| Version | 1.0.0 |
| License | MIT |
| Exports | @routemcp/connect-sdk (vanilla/TS), @routemcp/connect-sdk/react |
| Bundle | ESM + CJS, fully tree-shakeable (sideEffects: false) |
| Types | Bundled — no @types/* needed |
| Repository | github.com/CodisteEmeringTech/router-mcp-connect-sdk |
REST API
The API follows REST conventions and works with any HTTP client:- cURL — command line
- fetch / axios — JavaScript / TypeScript
- requests / httpx — Python
- net/http — Go
- HttpClient — C# / .NET
OpenAPI Spec
The full OpenAPI specification is available for generating custom clients:- Download: openapi.json
- Use with: openapi-generator, Orval, swagger-codegen