Skip to main content

Crate re_ghidra_mcp_qwen

Crate re_ghidra_mcp_qwen 

Source
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.md file.
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 -version output.
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.