Add Model Context Protocol (MCP) server endpoint for collections, allowing users to connect Claude Desktop, Cursor, and other MCP clients to use tools from their collections. - POST /api/collections/[id]/mcp - JSON-RPC endpoint for MCP - GET /api/collections/[id]/mcp - Server info for discovery - Tool name conversion (e.g., @tpmjs/hello → tpmjs-hello--helloWorldTool) - Handlers for initialize, tools/list, tools/call methods - Executes tools via existing sandbox executor Only public collections are accessible (no auth required). |
||
|---|---|---|
| .. | ||
| ai-agent | ||
| health-check | ||
| mcp | ||
| og | ||
| auth-client.ts | ||
| auth.ts | ||
| email.ts | ||
| rate-limit.ts | ||
| rate-limiter.ts | ||
| schema-extraction.ts | ||