Expand description
Qwen-Code-specific glue for the re-ghidra-mcp-qwen extension.
The server, its 19 tools and the Ghidra worker all live in the shared
ghidra-mcp crate. What is genuinely Qwen-Code-shaped lives here: reading
.qwen/re-ghidra-mcp-qwen.local.md, and the preflight the SessionStart
hook reports.
Why a settings file matters more for this extension than for most: one server
is one Ghidra project. The project directory, project name and bootstrap
program are per-workspace by nature, so without a settings layer every repo
needs a hand-written mcpServers block in qwen-extension.json that duplicates
the extension’s registration just to carry three strings.
Structs§
- Probe
- What the environment looks like to the preflight, gathered by the caller.
Constants§
- MIN_
JAVA_ MAJOR - Ghidra 12.1.2 declares
application.java.min=21; anything older fails at JVM start with a message that does not mention the version.
Functions§
- extract_
frontmatter 🔒 - Extract the YAML frontmatter block from a
.local.mdfile. - load_
settings - Load the settings layer for
project_dir. A missing or unreadable file is not an error — it simply contributes nothing, and the environment or CLI flags supply the values instead. - parse_
java_ major - Parse the major version out of
java -versionoutput. - preflight
- Report what is missing, in the order a user should fix it. An empty vector means every cheap check passed — and the hook then says nothing at all.
- settings_
from_ markdown - The settings-file layer, in the shape the shared config resolver consumes.
- settings_
path - The settings file this extension reads, relative to a project root.