UNPKG

ucm-mcp-server

Version:

Universal Context Manager MCP Server - AI-native artifact management

25 lines 820 B
export declare enum McpErrorCode { ParseError = -32700,// Invalid JSON received InvalidRequest = -32600,// Request is not valid MCP MethodNotFound = -32601,// Method does not exist InvalidParams = -32602,// Invalid method parameters InternalError = -32603,// Internal server error ExternalServiceUnavailable = -32001 } export interface McpErrorResponse { error: { code: McpErrorCode; message: string; data?: any; }; } export declare class McpError extends Error { code: McpErrorCode; data?: any | undefined; constructor(code: McpErrorCode, message: string, data?: any | undefined); toResponse(): McpErrorResponse; } export declare class McpErrorHandler { static formatError(error: any): McpError; } //# sourceMappingURL=McpErrorHandler.d.ts.map