/** * MCP connection helper for actgent * Provides utilities for creating MCP client connections */ import { McpClient } from "./client.js"; /** * Connection parameters for MCP servers */ export interface McpConnectionParams { serverType: "http" | "sse" | "stdio"; url?: string; command?: string; args?: string[]; cwd?: string; env?: Record; timeout?: number; auth?: { method: "bearer" | "basic" | "oauth"; token?: string; username?: string; password?: string; clientId?: string; clientSecret?: string; redirectUri?: string; callbackPort?: number; authTimeout?: number; }; } /** * Helper to create and connect to MCP servers */ export declare class McpConnector { /** * Creates and connects to an MCP server * @param params Connection parameters * @param serverName Optional name for the server * @returns The connected MCP client */ static connect(params: McpConnectionParams, serverName?: string): Promise; }