fix(mcp): preserve investigation input policy

This commit is contained in:
N0zoM1z0
2026-07-21 19:51:11 +08:00
parent 73d8c69660
commit f4156d9663
57 changed files with 460 additions and 182 deletions
+13 -1
View File
@@ -66,7 +66,11 @@ describe("server and catalog identity", () => {
});
it("reports composed, host, and target-specific availability truthfully", () => {
const policy = { processCaptureEnabled: true, evidenceFileRoots: 1 };
const policy = {
processCaptureEnabled: true,
evidenceFileRoots: 1,
investigationInputRoots: 1,
};
const composed = buildCapabilityInventory(
{
open: true,
@@ -201,6 +205,14 @@ describe("server and catalog identity", () => {
available: false,
reason: "policy_disabled",
}),
expect.objectContaining({
name: "analyze_javascript_application",
available: false,
reason: "policy_disabled",
remediation: expect.stringContaining(
"REA_INVESTIGATION_INPUT_ROOTS_JSON",
),
}),
]),
client_features: {
elicitation_form: false,