export interface IMCPTool { name: string; description: string; inputSchema: Record; execute(args: Record): Promise; } export interface IMCPToolResult { success: boolean; data?: unknown; error?: string; metadata?: Record; } export interface IMCPResource { uri: string; name: string; description: string; mimeType?: string; metadata?: Record; } export interface IMCPResourceContent { uri: string; mimeType: string; content: string | Buffer; metadata?: Record; } export interface IMCPPrompt { name: string; description: string; arguments?: IMCPPromptArgument[]; } export interface IMCPPromptArgument { name: string; description: string; required?: boolean; type?: string; } export interface IMCPPromptResult { description?: string; messages: IMCPMessage[]; } export interface IMCPMessage { role: 'user' | 'assistant'; content: IMCPContent; } export interface IMCPContent { type: 'text' | 'image' | 'resource'; text?: string; data?: string; mimeType?: string; annotations?: IMCPAnnotation; } export interface IMCPAnnotation { audience?: ('human' | 'llm')[]; priority?: number; } export interface IMCPServerCapabilities { tools?: IMCPToolsCapability; resources?: IMCPResourcesCapability; prompts?: IMCPPromptsCapability; logging?: IMCPLoggingCapability; } export interface IMCPToolsCapability { listChanged?: boolean; } export interface IMCPResourcesCapability { subscribe?: boolean; listChanged?: boolean; } export interface IMCPPromptsCapability { listChanged?: boolean; } export interface IMCPLoggingCapability { level?: 'debug' | 'info' | 'notice' | 'warning' | 'error' | 'critical' | 'alert' | 'emergency'; } export interface IMCPError { code: number; message: string; data?: unknown; } export type MCPErrorCode = -32700 | -32600 | -32601 | -32602 | -32603 | -32000 | -32001 | -32002 | -32003 | -32004 | -32005; export interface IMCPNotification { method: string; params?: Record; } export interface IMCPRequest { id: string | number; method: string; params?: Record; } export interface IMCPResponse { id: string | number; result?: unknown; error?: IMCPError; } export interface IMCPServerInfo { name: string; version: string; protocolVersion: string; capabilities: IMCPServerCapabilities; } export interface IMCPClientInfo { name: string; version: string; protocolVersion: string; } export interface IMCPInitializeParams { clientInfo: IMCPClientInfo; capabilities: Record; } export interface IMCPInitializeResult { serverInfo: IMCPServerInfo; instructions?: string; } //# sourceMappingURL=mcp-types.d.ts.map