/** * Consumer MCP route — `/mcp/:token` * * Serves a simplified, user-scoped Model Context Protocol tool surface for * Claude.ai, ChatGPT, and other MCP-compatible AI frontends. * * Authentication: the raw token is extracted from the URL path, hashed with * SHA256+pepper, and looked up in the `tokens` table. A missing, revoked, or * wrong-scope token returns 401 before any MCP handshake begins. * * Tool surface (scope mcp_consumer_t0): * - iranti_remember — store a personal memory * - iranti_recall — retrieve a personal memory * - iranti_forget — delete a personal memory * * Transport: MCP Streamable HTTP (stateless — one transport per request). * Supports both POST (tool calls) and GET (SSE event stream) on the same path, * as required by the MCP spec. * * All reads and writes are scoped to the `userId` resolved from the token, so * no cross-user data leakage is possible at the query layer. */ import { Router } from 'express'; export declare function consumerMcpRoutes(): Router; //# sourceMappingURL=consumerMcp.d.ts.map