UNPKG

@xynehq/jaf

Version:

Juspay Agent Framework - A purely functional agent framework with immutable state and composable tools

17 lines 576 B
import { Tool } from '../core/types.js'; export interface MCPClient { listTools(): Promise<Array<{ name: string; description?: string; inputSchema?: any; }>>; callTool(name: string, args: unknown): Promise<string>; close(): Promise<void>; } export declare function makeMCPClient(command: string, args?: string[]): Promise<MCPClient>; export declare function mcpToolToJAFTool<Ctx>(mcpClient: MCPClient, mcpToolDef: { name: string; description?: string; inputSchema?: any; }): Tool<any, Ctx>; //# sourceMappingURL=mcp.d.ts.map