UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

35 lines • 1.45 kB
export type McpErrorKind = "connect" | "protocol" | "tool_exec" | "auth" | "timeout" | "session_expired"; export interface McpErrorOptions { readonly cause?: unknown; readonly phase?: string; readonly retriable?: boolean; readonly serverName?: string; } export declare abstract class McpError extends Error { readonly kind: McpErrorKind; readonly phase?: string; readonly retriable?: boolean; readonly serverName?: string; protected constructor(kind: McpErrorKind, name: string, message: string, options?: McpErrorOptions); } export declare class ConnectError extends McpError { constructor(message: string, options?: McpErrorOptions); } export declare class ProtocolError extends McpError { constructor(message: string, options?: McpErrorOptions); } export declare class ToolExecError extends McpError { constructor(message: string, options?: McpErrorOptions); } export declare class AuthError extends McpError { constructor(message: string, options?: McpErrorOptions); } export declare class TimeoutError extends McpError { constructor(message: string, options?: McpErrorOptions); } export declare class SessionExpiredError extends McpError { constructor(message: string, options?: McpErrorOptions); } export declare function isRetriableMcpError(error: unknown): boolean; export declare function isMcpSessionExpiredError(error: unknown): boolean; //# sourceMappingURL=errors.d.ts.map