We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kirachon/context-engine'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
findings.ts•514 B
import type { EnterpriseFinding } from '../types.js';
/**
* Deterministically dedupe findings by `id`, preserving the first occurrence order.
* This is intentionally minimal to avoid changing any output ordering semantics.
*/
export function dedupeFindingsById(findings: EnterpriseFinding[]): EnterpriseFinding[] {
const seen = new Set<string>();
const out: EnterpriseFinding[] = [];
for (const f of findings) {
if (seen.has(f.id)) continue;
seen.add(f.id);
out.push(f);
}
return out;
}