Skip to main content
Glama
responseMessage.js455 B
export async function toArrayAsync(it) { const arr = []; for await (const o of it) { arr.push(o); } return arr; } export async function takeResult(it) { for await (const o of it) { if (o.type === 'result') { return o.result; } else if (o.type === 'error') { throw o.error; } } throw new Error('No result in stream.'); } //# sourceMappingURL=responseMessage.js.map

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/Valerio357/bet-mcp'

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