Skip to main content

Module paths

Module paths 

Source
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 embedded WORKER_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 named GhidraMcpWorker.java (Ghidra: filename == class name).