Skip to main content
Glama
errors.ts571 B
/** * Custom error class for DSL parsing errors */ export class DSLParseError extends Error { constructor( message: string, public line?: number, public column?: number, public token?: string ) { super(message); this.name = 'DSLParseError'; } toString(): string { let msg = this.message; if (this.line !== undefined) { msg = `Line ${this.line}: ${msg}`; } if (this.token) { msg += ` (token: '${this.token}')`; } return msg; } }

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/Mnehmos/rpg-mcp'

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