Expand description
Filesystem locations for the server: the ghidra-mcp data dir, the per-version worker-script dir, and the per-instance log path (spec §5). Base dir = $GHIDRA_MCP_HOME, else %USERPROFILE%/$HOME + “.ghidra-mcp”, else the system temp dir. No external dir crate (keeps the deny gate small).
Functions§
- data_
dir - The ghidra-mcp base data dir (created by callers as needed).
- instance_
log_ path - The per-instance log path:
<data>/logs/worker-<pid>.log(spec §5 per-instance filename). - versioned_
script_ dir - The per-version worker-script directory:
<data>/scripts/<hash16>/.<hash16>is the first 16 hex chars of the SHA-256 of the embeddedWORKER_JAVA, so a binary always extracts into a dir unique to its worker version (spec §5 per-version script dir). The file inside MUST stay namedGhidraMcpWorker.java(Ghidra: filename == class name).