We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PatrickSys/codebase-context'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { promises as fs } from 'fs';
export async function rmWithRetries(targetPath: string): Promise<void> {
const maxAttempts = 8;
let delayMs = 25;
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
try {
await fs.rm(targetPath, { recursive: true, force: true });
return;
} catch (error) {
const code = (error as { code?: string }).code;
const retryable = code === 'ENOTEMPTY' || code === 'EPERM' || code === 'EBUSY';
if (!retryable || attempt === maxAttempts) throw error;
await new Promise((resolve) => setTimeout(resolve, delayMs));
delayMs *= 2;
}
}
}