API Routes

API Routes

API Routes

ShapeMCP provides internal API routes for deterministic conversion and proxying:

  • POST /api/mcp-proxy — CORS-compliant tunnel for SSE connections so browser clients can talk to remote MCP servers.
  • POST /api/mcp — Sample local MCP server for testing the inspector and tool call flow.
  • POST /api/tools/* — Various tool-specific conversion endpoints (e.g. ts-to-mcp, json-to-schema) that accept JSON input and return the converted result.

Usage

When self-hosting, call these routes from your own front end or CI. Request and response formats are documented in the tool UIs. All conversion is stateless and deterministic.