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). |
||
|---|---|---|
| .. | ||
| public | ||
| scripts | ||
| src | ||
| .gitignore | ||
| eslint.config.mjs | ||
| next-env.d.ts | ||
| next.config.ts | ||
| package.json | ||
| postcss.config.js | ||
| RATE_LIMITING.md | ||
| RATE_LIMITING_SUMMARY.md | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
| vercel.json | ||
| vitest.config.ts | ||