/** * Factory function to create and configure a fully-registered MCP server. * * This is runtime-agnostic: it accepts a ServerContext (already wired to * platform-specific cache, logger, and metadata implementations) and * returns a ready-to-connect McpServer. */ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import type { ServerContext } from './types/context.js'; /** * Options for createMcpServer */ export interface CreateServerOptions { /** Tool name whitelist. When provided, only listed tools are registered. */ tools?: string[]; } /** * Create a fully-configured MCP server with all tools, resources, and prompts. * * @param ctx - Platform-specific server context (cache, metadata, logger, config) * @param options - Optional configuration (e.g., tool whitelist) * @returns An McpServer ready to be connected to a transport */ export declare function createMcpServer(ctx: ServerContext, options?: CreateServerOptions): McpServer; //# sourceMappingURL=create-server.d.ts.map