fix: validate projectPath in MCP handler to block sensitive directories (#230)
Validate projectPath in getCodeGraph so MCP clients can't open a codegraph in a sensitive system directory. Guarded with existsSync so nested/not-yet-created sub-paths still resolve up to the default project (preserves issue #238). Adds MCP-handler rejection tests (POSIX + Windows-gated); validated on a real Windows 11 VM. Closes #230
A
Aditya Rawat committed
02ea482b3734c6eff1c0293d360fe75ea3086000
Parent: 7d5dd4c
Committed by GitHub <noreply@github.com>
on 5/22/2026, 7:15:02 PM