Files
b675073b73 feat(mcp): scope advertised tools by family (#7228)
Scope MCP discovery, setup, doctor, status and recovery guidance by selected tool families using one contract inventory and shared catalog identity. Preserve default discovery, canonical validation and complete Evidence.

Fixes #3246. Builds on #3026. Real libcrypto workflow verifies all 5,367 exports and identical complete Evidence. Static/source/build/docs/Windows/package/Greptile checks pass; ten assertions reproduced identically on clean main and feature across Node 24/22, with cancelled coverage explicitly unverified. Merge uses the user-authorized bypass for baseline failures and unchecked human-readiness declarations, without attesting human review.

Co-authored-by: 0xLLVEL <fakhrezan1@gmail.com>
Co-authored-by: Codebuff <noreply@codebuff.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-10-26 19:50:12 +08:00

27 lines
755 B
JavaScript

import { pathToFileURL } from "node:url";
import { resolve } from "node:path";
const [root, input, output] = process.argv.slice(2);
const start = performance.now();
const { createCatalogIdentity } = await import(
pathToFileURL(resolve(root, "dist/catalogIdentity.js"))
);
const imported = performance.now();
const cpu = process.cpuUsage();
const identity = createCatalogIdentity({
compactPresentation:
input === "compact" ? { budgetBytes: 13 * 1024 } : undefined,
outputSchemaProfile: output,
});
const digests = identity.digests;
const end = performance.now();
console.log(
JSON.stringify({
input,
output,
import_ms: imported - start,
digest_ms: end - imported,
digest_cpu_us: process.cpuUsage(cpu),
digests,
}),
);