import type { IServerManager } from "../types.js"; import { StructuredTool } from "@langchain/core/tools"; import { z } from "zod"; /** Adds, connects, and activates an MCP server from model-supplied config. */ export declare class AddMCPServerFromConfigTool extends StructuredTool { /** Tool name exposed to the model. */ name: string; /** Tool description exposed to the model. */ description: string; /** Input schema for the server name and transport configuration. */ schema: z.ZodObject<{ serverName: z.ZodString; serverConfig: z.ZodAny; }, z.core.$strip>; private manager; /** * @param manager - Server manager that receives the new server. */ constructor(manager: IServerManager); /** * Adds the server, opens a session, and makes the server active. * * @returns A success message with loaded tool names, or an error message. */ protected _call({ serverName, serverConfig, }: z.infer): Promise; } //# sourceMappingURL=add_server_from_config.d.ts.map