We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/efremidze/swift-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
// src/utils/inflight-dedup.ts
// Simple helper for in-flight promise deduplication
export class InflightDeduper<K, V> {
private inflight = new Map<K, Promise<V>>();
run(key: K, task: () => Promise<V>): Promise<V> {
const existing = this.inflight.get(key);
if (existing) {
return existing;
}
const promise = task().finally(() => {
this.inflight.delete(key);
});
this.inflight.set(key, promise);
return promise;
}
}