/** * MCP Gateway endpoint using stateful Streamable HTTP Transport. * * Each client session gets its own transport+server pair, identified by mcp-session-id header. * POST without sessionId creates a new session. * POST/GET/DELETE with sessionId routes to the existing session transport. */ import type { FastifyInstance, FastifyRequest } from 'fastify'; import type { SessionMode } from '../../../shared/models/constants.js'; /** * Resolves the effective session mode for a request. * Priority: request header > UA keyword match > default (SESSION_MODE_STATEFUL). */ export declare function resolveSessionMode(request: FastifyRequest): SessionMode; export declare function mcpGatewayRoutes(fastify: FastifyInstance): Promise; //# sourceMappingURL=gateway.d.ts.map