diff options
| author | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-10-19 16:39:54 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-10-19 16:39:54 +0000 |
| commit | 0b0a62192591f8c01097c51f591bab11ec8627f0 (patch) | |
| tree | 665608f8384a17e3c75ae4f71cb8709ebbed6405 /plugins/code-modernization/scripts/baseline_diff.py | |
| parent | ea10b213686c90bb1984b2016937310e05336cf3 (diff) | |
security-guidance: run reviews on machines with a managed MCP configmhegazy/sg-reviewer-managed-mcp
Since 2.0.14 the plugin starts the reviewing Claude Code with
--strict-mcp-config. Claude Code exits at startup with that flag on a
machine whose administrator delivers the MCP servers (managed-mcp.json),
so the agentic commit review always fell back to the single-shot review,
and reviews that only run through Claude Code (Bedrock, Vertex) failed.
When the inner CLI refuses the flag, the plugin now starts it once more
without it, and leaves it out for the rest of the hook process. Those
starts deny every MCP tool (--disallowedTools "mcp__*") instead, so the
reviewer still gets only its read tools. Review rows from such a process
carry strict_mcp_off: 1.
Diffstat (limited to 'plugins/code-modernization/scripts/baseline_diff.py')
0 files changed, 0 insertions, 0 deletions
