import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import type { McpSessionMap } from './session-map.js'; import type { TokenStore } from '../token-store.js'; export type McpServerDeps = { /** WHATWG router from the agent core — used to call LAP endpoints internally. */ coreRouter: (req: Request) => Promise; tokenStore: TokenStore; sessionMap: McpSessionMap; /** * Returns the MCP session ID for this server instance. Called lazily so * the transport can assign the ID during `initialize` before any tool * handler fires. */ getSessionId: () => string | undefined; lapBasePath: string; serverName: string; serverVersion: string; connectDescription: string; /** Sliding (inactivity) TTL in ms; folded into the connect verify. */ slidingTtlMs?: number; }; /** * Build one `McpServer` instance for a single MCP session. Tool handlers * call LAP endpoints via synthetic WHATWG Requests routed through * `coreRouter` — no extra HTTP round-trip to localhost needed. The * forwarded-tool dispatch, describe cache, connect prefetch, and result * shaping are shared with the bridge via `@llui/agent/mcp/executor`. */ export declare function createAgentMcpServer(deps: McpServerDeps): McpServer; //# sourceMappingURL=server.d.ts.map