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
@@ -0,0 +1,9 @@
/** Select explicit non-secret permission settings safe for managed MCP registrations. */
export const registrationPermissionEnvironment = (
environment: Readonly<Record<string, string | undefined>>,
): Readonly<Record<string, string>> => {
const investigationRoots = environment.REA_INVESTIGATION_INPUT_ROOTS_JSON;
return investigationRoots === undefined
? {}
: { REA_INVESTIGATION_INPUT_ROOTS_JSON: investigationRoots };
};