Skip to main content
Glama
errors.ts410 B
// Custom error class for PDF reader MCP export enum ErrorCode { InvalidParams = -32602, InvalidRequest = -32600, MethodNotFound = -32601, } export class PdfError extends Error { constructor( public code: ErrorCode, message: string, options?: { cause?: Error | undefined } ) { super(message, options?.cause ? { cause: options.cause } : undefined); this.name = 'PdfError'; } }

Latest Blog Posts

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/SylphxAI/pdf-reader-mcp'

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