MCP Types
Reference for all MCP-related types in AgentForge.
MCPToolDefinition
interface MCPToolDefinition {
name: string;
description: string;
inputSchema: Record<string, unknown>; // JSON Schema
}MCPToolCall
interface MCPToolCall {
name: string;
arguments: Record<string, unknown>;
}MCPToolResult
interface MCPToolResult {
content: Array<{ type: string; text: string }>;
isError?: boolean;
}MCPServerInfo
interface MCPServerInfo {
name: string;
version: string;
}MCPTransport
interface MCPTransport {
send(message: string): void;
onMessage(callback: (message: string) => void): void;
close(): void;
}MCPClientConfig
interface MCPClientConfig {
command: string;
args?: string[];
env?: Record<string, string>;
timeout?: number;
transport?: MCPTransport;
}MCPServerConfig
interface MCPServerConfig {
name: string;
version: string;
tools: Tool[];
}