/** * @file remote.errors.ts * @description Error classes for remote MCP server connections and operations */ import { PublicMcpError, InternalMcpError } from './mcp.error'; /** * Error thrown when connection to a remote MCP server fails */ export declare class RemoteConnectionError extends InternalMcpError { readonly appId: string; readonly url: string; readonly originalError?: Error; constructor(appId: string, url: string, originalError?: Error); } /** * Error thrown when a remote MCP server disconnects unexpectedly */ export declare class RemoteDisconnectError extends InternalMcpError { readonly appId: string; readonly reason?: string; constructor(appId: string, reason?: string); } /** * Error thrown when a remote MCP operation times out */ export declare class RemoteTimeoutError extends PublicMcpError { readonly appId: string; readonly operation: string; readonly timeoutMs: number; readonly mcpErrorCode: -32603; constructor(appId: string, operation: string, timeoutMs: number); } /** * Error thrown when a tool is not found on the remote server */ export declare class RemoteToolNotFoundError extends PublicMcpError { readonly appId: string; readonly toolName: string; readonly mcpErrorCode: -32601; constructor(appId: string, toolName: string); } /** * Error thrown when a resource is not found on the remote server */ export declare class RemoteResourceNotFoundError extends PublicMcpError { readonly appId: string; readonly uri: string; readonly mcpErrorCode: -32002; constructor(appId: string, uri: string); } /** * Error thrown when a prompt is not found on the remote server */ export declare class RemotePromptNotFoundError extends PublicMcpError { readonly appId: string; readonly promptName: string; readonly mcpErrorCode: -32601; constructor(appId: string, promptName: string); } /** * Error thrown when authentication to a remote server fails (missing credentials) */ export declare class RemoteAuthError extends PublicMcpError { readonly appId: string; readonly details?: string; readonly mcpErrorCode: -32001; constructor(appId: string, details?: string); } /** * Error thrown when authorization to a remote resource/tool fails (invalid/insufficient credentials) */ export declare class RemoteAuthorizationError extends PublicMcpError { readonly appId: string; readonly resource?: string; readonly mcpErrorCode: -32003; constructor(appId: string, resource?: string); } /** * Error thrown when a remote tool execution fails */ export declare class RemoteToolExecutionError extends PublicMcpError { readonly appId: string; readonly toolName: string; readonly originalError?: Error; readonly mcpErrorCode: -32603; constructor(appId: string, toolName: string, originalError?: Error); } /** * Error thrown when a remote resource read fails */ export declare class RemoteResourceReadError extends PublicMcpError { readonly appId: string; readonly uri: string; readonly originalError?: Error; readonly mcpErrorCode: -32603; constructor(appId: string, uri: string, originalError?: Error); } /** * Error thrown when a remote prompt get fails */ export declare class RemotePromptGetError extends PublicMcpError { readonly appId: string; readonly promptName: string; readonly originalError?: Error; readonly mcpErrorCode: -32603; constructor(appId: string, promptName: string, originalError?: Error); } /** * Error thrown when transport initialization fails */ export declare class RemoteTransportError extends InternalMcpError { readonly appId: string; readonly transportType: string; readonly originalError?: Error; constructor(appId: string, transportType: string, originalError?: Error); } /** * Error thrown when transport type is not supported */ export declare class RemoteUnsupportedTransportError extends PublicMcpError { readonly transportType: string; constructor(transportType: string); } /** * Error thrown when capability discovery fails */ export declare class RemoteCapabilityDiscoveryError extends InternalMcpError { readonly appId: string; readonly originalError?: Error; constructor(appId: string, originalError?: Error); } /** * Error thrown when remote server doesn't support required capability */ export declare class RemoteCapabilityNotSupportedError extends PublicMcpError { readonly appId: string; readonly capability: string; constructor(appId: string, capability: string); } /** * Error thrown when remote app configuration is invalid */ export declare class RemoteConfigurationError extends PublicMcpError { readonly appId: string; readonly configField?: string; readonly details?: string; constructor(appId: string, configField?: string, details?: string); } /** * Error thrown when remote app is not connected */ export declare class RemoteNotConnectedError extends PublicMcpError { readonly appId: string; constructor(appId: string); } /** * Error thrown when retry options are invalid (e.g., maxAttempts < 1). */ export declare class InvalidRetryOptionsError extends InternalMcpError { readonly option: string; readonly value: unknown; constructor(option: string, value: unknown, reason: string); } //# sourceMappingURL=remote.errors.d.ts.map