We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/james-see/mcp-drawthings'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
responseMessage.js•455 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