import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { ClientOptions } from '@stainless-api/sdk'; import Stainless from '@stainless-api/sdk'; import { McpOptions } from "./options.js"; import { HandlerFunction, McpTool } from "./types.js"; export { McpOptions } from "./options.js"; export { ClientOptions } from '@stainless-api/sdk'; 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: Stainless, args: Record | undefined): Promise; export declare const readEnv: (env: string) => string | undefined; export declare const readEnvOrError: (env: string) => string; //# sourceMappingURL=server.d.ts.map