feat: add remote MCP endpoint for external agent access
- Add app/api/mcp/route.ts with read-only ls_* tools - Tools: ls_search_nodes, ls_get_nodes, ls_query_edges, ls_list_dimensions - Uses WebStandardStreamableHTTPServerTransport for Vercel serverless - Stateless mode (sessionIdGenerator: undefined) for proper serverless execution - CORS headers for cross-origin agent access - GET endpoint returns server info for debugging Usage: claude mcp add --transport http latent-space https://latentspace.ra-h.app/api/mcp
This commit is contained in:
Generated
+829
-14
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user