import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { ClientOptions } from 'brand.dev'; import { McpOptions } from "./options.mjs"; import { HandlerFunction, McpRequestContext, ToolCallResult, McpTool } from "./types.mjs"; export declare const newMcpServer: (stainlessApiKey: string | undefined) => Promise; /** * 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; stainlessApiKey?: string | undefined; upstreamClientEnvs?: Record | undefined; }): Promise; /** * 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, reqContext, args, }: { handler: HandlerFunction; reqContext: McpRequestContext; args: Record | undefined; }): Promise; //# sourceMappingURL=server.d.mts.map