/** * Fastify route: POST /mcp * * Implements the MCP Streamable HTTP transport (JSON-RPC 2.0 over HTTP). * Each request gets its own stateless transport instance — no session ID. * Auth is enforced by the app-level preHandler (Bearer token) before this * route handler runs, so we do not repeat auth logic here. * * Spec: https://modelcontextprotocol.io/specification/2024-11-05/basic/transports */ import type { FastifyInstance } from 'fastify'; import type { DB } from '../../storage/db.js'; import type { EmbedProvider } from '../../contracts/index.js'; import { type Config } from '../../config/config.js'; export declare function mcpRoute(db: DB, embed: EmbedProvider, config?: Config): (app: FastifyInstance) => Promise;