We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lgazo/drawio-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
events.ts•477 B
/**
* Removes top-level fields from an object that start with '__'
* @param obj The input object to process
* @returns A new object with internal fields (starting with '__') removed
*/
export function strip_internal_fields<T extends Record<string, any>>(
obj: T,
): Omit<T, `__${string}`> {
const result: Partial<T> = {};
for (const key in obj) {
if (!key.startsWith("__")) {
result[key] = obj[key];
}
}
return result as Omit<T, `__${string}`>;
}