/** * MCP server factory. * * Creates the McpServer instance and provides startServer() * which selects stdio or HTTP transport based on config. */ import { type Server as HttpServer } from "node:http"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { AppConfig } from "../types/index.js"; export declare function createServer(): McpServer; /** * Returns the underlying http.Server for HTTP transport (so callers such as * tests can inspect the bound port and close it), undefined for stdio. */ export declare function startServer(server: McpServer, config: AppConfig, serverFactory?: () => McpServer): Promise;