From f1321d22233c513aff888951efa13063d1b43325 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 6 May 2026 13:09:53 -0400 Subject: [PATCH] pi: fix pyghidra_mcp_projects folder generation --- home/progs/pi.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/progs/pi.nix b/home/progs/pi.nix index e9fa45b..2dba5ac 100644 --- a/home/progs/pi.nix +++ b/home/progs/pi.nix @@ -203,9 +203,15 @@ in mcpServers = { ghidra = { command = lib.getExe pyghidra-mcp; + # --project-path defaults to the relative ./pyghidra_mcp_projects, which + # pyghidra-mcp materializes inside whatever cwd OMP launched it from. + # Pin it to a stable cache location so opening any directory doesn't + # litter it with a project folder. args = [ "--transport" "stdio" + "--project-path" + "${config.home.homeDirectory}/.cache/pyghidra-mcp" ]; }; };