Skip to main content
Glama

Chat Context MCP

by aolshaun
errors.ts1.15 kB
/** * Custom Error Types */ /** * Base error for Cursor Context operations */ export class CursorContextError extends Error { constructor(message: string) { super(message); this.name = 'CursorContextError'; } } /** * Error connecting to database */ export class DBConnectionError extends CursorContextError { constructor(message: string, public readonly dbPath: string) { super(message); this.name = 'DBConnectionError'; } } /** * Database is locked (SQLITE_BUSY) */ export class DBLockedError extends CursorContextError { constructor(message: string = 'Database is locked by another process (likely Cursor)') { super(message); this.name = 'DBLockedError'; } } /** * Session not found */ export class SessionNotFoundError extends CursorContextError { constructor(sessionId: string) { super(`Session not found: ${sessionId}`); this.name = 'SessionNotFoundError'; } } /** * Invalid or corrupted data */ export class DataCorruptionError extends CursorContextError { constructor(message: string) { super(`Data corruption: ${message}`); this.name = 'DataCorruptionError'; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aolshaun/chat-context-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server