import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { ClientOptions } from '@stainless-api/pylon-internal'; import Pylon from '@stainless-api/pylon-internal'; import { McpOptions } from "./options.mjs"; import { HandlerFunction, McpTool } from "./types.mjs"; export { McpOptions } from "./options.mjs"; export { ClientOptions } from '@stainless-api/pylon-internal'; export declare const newMcpServer: () => McpServer; export declare const server: McpServer; /** * Initializes the provided MCP Server with the given tools and handlers. * If not provided, the default client, tools and handlers will be used. */ export declare function initMcpServer(params: { server: Server | McpServer; clientOptions?: ClientOptions; mcpOptions?: McpOptions; }): void; /** * Selects the tools to include in the MCP Server based on the provided options. */ export declare function selectTools(options?: McpOptions): McpTool[]; /** * Runs the provided handler with the given client and arguments. */ export declare function executeHandler(handler: HandlerFunction, client: Pylon, args: Record | undefined): Promise; export declare const readEnv: (env: string) => string | undefined; export declare const readEnvOrError: (env: string) => string; export declare const requireValue: (value: T | undefined, description: string) => T; //# sourceMappingURL=server.d.mts.map