Skip to main content
Glama
jsonify.ts420 B
export const jsonifyResponse = async (endpoint: () => Promise<Response>) => { const response = await endpoint(); try { const text = await (await response.blob()).text(); const parsed = JSON.parse(text); console.log(JSON.stringify(parsed, null, 2)); return parsed; } catch (error) { console.error(error); return { success: false, message: "Invalid JSON response", }; } };

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/ashwwwin/furi'

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