import type { McpToolDefinition } from './surface.js'; import { type ToolCallContext } from './tool-core.js'; /** Used when the client names no protocol version. */ export declare const DEFAULT_PROTOCOL_VERSION = "2025-06-18"; /** The server's own name, as it appears in `initialize`. */ export declare const SERVER_NAME = "peaks"; export declare const METHOD_INITIALIZE = "initialize"; export declare const METHOD_INITIALIZED = "notifications/initialized"; export declare const METHOD_TOOLS_LIST = "tools/list"; export declare const METHOD_TOOLS_CALL = "tools/call"; export interface McpServerOptions { readonly tools: readonly McpToolDefinition[]; readonly context?: ToolCallContext; readonly serverVersion?: string; } export interface McpServer { /** Answer one line. A notification (or blank line) yields `undefined`. */ handleLine(line: string): Promise; /** The tools, for a caller that wants to assert what it built. */ readonly tools: readonly McpToolDefinition[]; } export declare function createMcpServer(options: McpServerOptions): McpServer;