@net3/queuer
Version:
31 lines (30 loc) • 835 B
TypeScript
interface MCPConfig {
mcpServerUrl: string;
}
/**
* Helper class for interacting with MCP servers using the standard MCP protocol.
*/
export declare class MCPManager {
private static initialized;
/**
* Parse SSE response format to extract JSON data
*/
private static parseSSEResponse;
/**
* Initialize MCP session if not already initialized
*/
private static initializeMCPSession;
/**
* List available MCP tools with their schemas
*/
static listMCPTools(config: MCPConfig): Promise<any[]>;
/**
* Execute an MCP tool using JSON-RPC. Returns `{ success, result?, error? }`.
*/
static executeMCPAction(toolName: string, params: any, config: MCPConfig): Promise<{
success: boolean;
result?: any;
error?: string;
}>;
}
export {};