Skip to main content
Glama
complex.jsโ€ข527 B
// Complex async function with potential issues async function fetchUserData(userId) { try { const response = await fetch(`/api/users/${userId}`); const data = await response.json(); // Potential bug: not checking response.ok return data; } catch (error) { console.log(error); // Should use proper error handling return null; } } // Memory leak potential let cache = {}; function cacheData(key, value) { cache[key] = value; // Never clears old entries }

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/david-strejc/sage-mcp'

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