IMCPSchema

Interface for the MCP schema, defining the structure and behavior of an MCP.

mcpName: string

Unique name of the MCP.

docDescription: string

Optional description of the MCP for documentation.

listTools: (clientId: string) => Promise<IMCPTool<unknown>[]>

Function to list available tools for a client.

callTool: <T extends MCPToolValue = { [x: string]: unknown; }>(toolName: string, dto: IMCPToolCallDto<T>) => Promise<MCPToolOutput>

Function to call a specific tool with the provided parameters.

callbacks: Partial<IMCPCallbacks>

Optional callbacks for MCP lifecycle events.