Skip to main content
Glama
getExceptionMessage.ts223 B
export function getExceptionMessage(error: unknown): string { if (error instanceof Error) { return error.message; } try { return JSON.stringify(error) ?? 'undefined'; } catch { return `${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/datalabs89/tableau-mcp'

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