Files
reverse-engineering-anything/src/server/registerOfficialTools.ts
T
gensokyo-dev f69c52a1cf feat(native): page retained load-image observations (#7134)
Add optional native load-image summary delivery and retained selected-row pages through shared CLI/MCP analysis views. Preserve source verification, provenance, unavailable collections, exact row identity and opt-in byte/check payloads.

Preserve direct caller paths during shared CLI summary publication and cover raw/DOL projection contracts through the actual SDK. Real Ghidra ELF CLI/MCP captures, retained and file-backed pages, focused regressions and static checks passed; the PR records existing main schema failures and the JavaScript resource-recovery CI uncertainty.
2026-10-25 21:50:42 +08:00

29 lines
1.0 KiB
TypeScript

import type { EvidenceMcpServer } from "./EvidenceMcpServer.js";
import { OFFICIAL_TOOL_CONTRACTS } from "../contracts/officialToolContracts.js";
import { NATIVE_INVENTORY_OPERATIONS } from "../domain/native/nativeInventory.js";
import { registerEvidenceTools } from "./registerEvidenceTools.js";
import {
retainedSummaryDelivery,
withoutDeliveryDetail,
type EvidenceToolFamilyOptions,
} from "./retainedSummaryDelivery.js";
const SUMMARY_OPERATIONS: ReadonlySet<string> = new Set([
...NATIVE_INVENTORY_OPERATIONS,
"inspect_native_load_image",
]);
const withoutDetail = withoutDeliveryDetail(SUMMARY_OPERATIONS);
/** Direct tools share Evidence recording/projection with the other provider-backed tools. */
export const registerOfficialTools = (
server: EvidenceMcpServer,
options: EvidenceToolFamilyOptions,
): void => {
registerEvidenceTools(server, OFFICIAL_TOOL_CONTRACTS, {
...options,
...retainedSummaryDelivery(SUMMARY_OPERATIONS, options),
parametersForExecution: withoutDetail,
parametersForEvidence: withoutDetail,
});
};