Skip to main content
Glama
assert.ts335 B
/** * Assert a condition is true * * @param condition - The condition to check * @param message - Optional error message * @throws Error if condition is false */ export function assert( condition: boolean, message?: string, ): asserts condition { if (!condition) { throw new Error(message || 'Assertion failed'); } }

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/sdd330/feishu-mcp-server'

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