UNPKG

vibe-tools

Version:
28 lines (27 loc) 788 B
/** * Custom error classes for the MCP client */ export declare class MCPError extends Error { constructor(message: string); } export declare class MCPConnectionError extends MCPError { constructor(message: string); } export declare class MCPServerError extends MCPError { code?: string | undefined; constructor(message: string, code?: string | undefined); } export declare class MCPToolError extends MCPError { toolName: string; constructor(message: string, toolName: string); } export declare class MCPConfigError extends MCPError { constructor(message: string); } export declare class MCPAuthError extends MCPError { constructor(message: string); } /** * Error handling utilities */ export declare function handleMCPError(error: unknown): MCPError;