mcp-use
Version:
Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.
28 lines • 976 B
TypeScript
/**
* Custom error types for MCP operations
*/
/**
* Error thrown when elicitation data validation fails.
* This occurs when the data returned from an elicitation request
* doesn't match the expected Zod schema.
*/
export declare class ElicitationValidationError extends Error {
cause?: Error | undefined;
constructor(message: string, cause?: Error | undefined);
}
/**
* Error thrown when an elicitation request times out.
* This occurs when the user doesn't respond within the specified timeout period.
*/
export declare class ElicitationTimeoutError extends Error {
timeoutMs?: number | undefined;
constructor(message: string, timeoutMs?: number | undefined);
}
/**
* Error thrown when a user explicitly declines an elicitation request.
* This occurs when the user cancels or rejects the elicitation prompt.
*/
export declare class ElicitationDeclinedError extends Error {
constructor(message?: string);
}
//# sourceMappingURL=errors.d.ts.map