Skip to main content
Glama

MCP Advanced Reasoning Server

by AzDeltaQQ
errors.ts924 B
/** * Custom error types for MCP server */ export class ValidationError extends Error { constructor(message: string) { super(message); this.name = "ValidationError"; } } export class PermissionError extends Error { constructor(message: string) { super(message); this.name = "PermissionError"; } } export class ReasoningError extends Error { constructor(message: string) { super(message); this.name = "ReasoningError"; } } /** * Handle errors from tool execution */ export function handleToolError(error: any): string { if (error instanceof ValidationError) { return `Validation error: ${error.message}`; } else if (error instanceof PermissionError) { return `Permission denied: ${error.message}`; } else if (error instanceof ReasoningError) { return `Reasoning error: ${error.message}`; } else { return `Error: ${error?.message || "Unknown error"}`; } }

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/AzDeltaQQ/Mcp-Reasoning-Server'

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