Skip to main content
Glama
error.ts348 B
export class ToolError extends Error { constructor( message: string, public code: string, public details?: Record<string, any> ) { super(message); this.name = "ToolError"; } } export function formatErrorResponse(error: unknown) { // Format the error response according to the MCP protocol }

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/SGFGOV/medusa-mcp'

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