Skip to main content
Glama
Util.ts302 B
/** * Creates a new error object with the given type and message. * * @param type - The error type. * @param message - The error message. * * @returns The error object. */ export function error (type: string, message: string): Error { const e = new Error(message) e.name = type return e }

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/leo4life2/minecraft-mcp-http'

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