BeeDazzle MCP
# BeeDazzle Desktop
Discover how compiled applications respond to input, change supported behaviors, and check the result with a local MCP agent. BeeDazzle Desktop is the Windows and Linux companion to [BeeDazzle](https://beedazzle.app). Open a file in the desktop app and your MCP client can work with the same snapshot, even after you close the window.

## Download and try it
Download the x64 archive for your operating system from [Releases](https://github.com/paulantir0/beedazzle-desktop/releases/latest). Extract the whole folder. On Windows, open `BeeDazzle.exe`. On Linux, extract with `tar -xzf BeeDazzle-linux-x64.tar.gz` and run `./BeeDazzle/BeeDazzle`. The Linux bundle targets Ubuntu 22.04 or newer and compatible x86-64 distributions with a graphical session.
Select **Connect an agent**. Merge the generated stdio configuration into your MCP client and restart it. The **Open file** action gives the agent a snapshot it can inspect and modify. The desktop library keeps the original and edited copies.
### Discover and change a keyboard shortcut
Open a Windows executable or resource DLL and select **Shortcuts**. BeeDazzle reads compiled Win32 accelerator tables and matches the numeric command IDs against same-language menu resources. For example, the 7-Zip File Manager binary associates **Alt+F12** with **View › Folders History**. Ask your agent:
> Which compiled shortcut opens folder history? Show me the evidence, change it to F20 in a copy, and compare the copy with the original.
**Remap shortcut** changes the actual dispatch entry. The command ID stays intact. BeeDazzle checks collisions among virtual-key bindings in that table. A program can also implement shortcuts in code or override its packaged table. Existing menu captions may continue to print the old shortcut. For a multi-file program, export the edited executable into a copy of its application folder under its original filename.
The **Behavior evidence** button on a PE or ELF overview explains which imported APIs support hypotheses about features such as printing, audio playback or SQLite storage. The report identifies the import and its source for each finding.
### Measure and change what a closed-source editor writes
Open **Save behavior lab → Get test editor** to fetch the official x64 portable Sublime Text build 4215. BeeDazzle checks the archive against the pinned SHA-256. You can also use **Open file** to import that exact archive yourself. [Sublime Text downloads](https://www.sublimetext.com/download)
> Determine whether this editor trims trailing whitespace or adds a final newline. Test the two effects independently. Give me a project that enables both, and show the bytes it actually saved.
The lab opens a disposable editor profile, exercises the default behavior and all four setting combinations, and reads back the saved files. You can supply up to four additional plain-text inputs through MCP. A second fresh instance opens the exact exported project and repeats the saves. The agent receives the observations, candidate rules matching the defaults, and the project ID when the replay matches. The desktop retains the JSON evidence for either result.
Export the **.sublime-project** into the directory you want to edit and open it in Sublime Text. Its settings apply within that project. The trial uses plain-text buffers with LF line endings. The test editor is downloaded separately and runs under its vendor terms. [Project settings](https://www.sublimetext.com/docs/projects.html)
## File support
| File | Inspect | Edit |
| --- | --- | --- |
| Windows PE executables and DLLs | Architecture, file sections, DLL dependencies, imports, exports and strings | Keyboard dispatch in virtual-key `RT_ACCELERATOR` records and printable text in `RT_STRING` tables |
| Linux ELF executables and shared libraries | Architecture, file sections, dynamic dependencies, symbol tables and strings | ASCII build comments in an unmapped `.comment` section |
| Compiled GNU gettext catalogs (`.mo`, revision 0) | Message IDs, translations, encoding and message count | Plain-text translations, including contextual entries and longer replacement text |
| Other binary files | SHA-256, size and printable ASCII or ASCII-range UTF-16LE strings | Inspection only |
Native text replacements must fit the original field. Gettext edits preserve plural entries, format strings and catalog headers. The editor accepts single-line display text. Comparison reports section-content changes, dependency changes, and the first 50 differences in supported text resources and keyboard bindings with a total count. Section and symbol availability depends on what the application ships. Import size limit is 128 MiB. Editing a signed Windows image invalidates its existing signature.
## MCP tools
| Tool | Result |
| --- | --- |
| `list_artifacts` | Snapshot IDs, filenames, formats, sizes and parent copies |
| `inspect_artifact` | Format, architecture, SHA-256, sections and dependencies |
| `list_symbols` | Searchable PE imports and exports or ELF symbol tables |
| `find_strings` | Printable text with file offsets and lengths |
| `list_resources` | Editable fields with IDs, labels and current values |
| `preview_resource_edit` | Before and after text, predicted SHA-256 and size change |
| `save_resource_copy` | A new library snapshot, deduplicated by SHA-256 |
| `compare_artifacts` | Changes between two snapshots |
| `explain_app_behavior` | Subsystem hypotheses with import evidence and shortcut counts |
| `list_shortcuts` | Compiled chords, command IDs, tables, languages and matching menu paths |
| `preview_shortcut_remap` / `save_shortcut_copy` | Preview or save a change to native command dispatch |
| `save_lab_status` | Reference editor availability and expected vendor digest |
| `test_save_behavior` | Controlled saves in Sublime Text, independent replay and verified project |
The MCP process uses stdio and shares the desktop's per-user SQLite library. It accepts snapshot IDs and resource IDs. The desktop file picker handles importing files and exporting copies. Binary inspection reads imported files as data. The save lab launches the verified reference editor in a disposable profile on your graphical desktop. Raw samples and observations are stored in the local library. Your MCP client's own model and privacy settings apply to tool results. Set `BEEDAZZLE_LIBRARY` on both processes to select a different library directory.
## Run from source
Install [uv](https://docs.astral.sh/uv/), clone the repository and run these commands in it.
```sh
uv python install 3.11
uv sync --locked --managed-python --python 3.11
uv run beedazzle
```
The MCP entry point is `uv run beedazzle-mcp`. The desktop requires Python with Tk support. For a native bundle, run `uv run pyinstaller packaging/beedazzle.spec` on the target OS. Both entry points are in `dist/BeeDazzle/`.
## Verify
Run `uv run pytest -q` on Windows or `xvfb-run -a uv run pytest -q` on Linux with a C compiler and binutils installed. CI opens the packaged GUI, exercises all 14 tools through a real stdio client, and runs the save experiment on both platforms. To run the editor integration locally, set `BEEDAZZLE_TEST_EDITOR` to the official archive path. The Windows GUI dispatch test uses `BEEDAZZLE_7ZIP_PATH` to locate a stock 7-Zip File Manager. Tests use fresh temporary libraries.
[MIT license](LICENSE) · [BeeDazzle browser extension](https://github.com/paulantir0/beedazzle)
TDQS
Scored across 14 tools
Most tools are cleanly separated by resource and action: listing (list_artifacts, list_symbols, list_resources, list_shortcuts), reading (inspect_artifact, find_strings), and the paired preview/save flow for resources and shortcuts. The main soft spot is the save_* family: save_resource_copy, save_shortcut_copy, and save_lab_status look like siblings, but save_lab_status actually checks test-editor availability rather than saving anything. test_save_behavior is also a different domain (runtime Sublime Text lab) than the binary-patching tools, which could cause a mispick at first glance.
Every name is snake_case verb_noun (list_*, inspect_*, find_*, preview_*, save_*, compare_*, explain_*, test_*), with no camelCase or noun-only outliers. The preview_/save_ prefixes also correctly signal the preview-then-commit pairing across both edit workflows.
14 tools sits comfortably in the well-scoped range and each one maps to a distinct step in the analyze-preview-save workflow. Nothing appears redundant: the two preview/save pairs are different resources, and the two lab tools cover status check versus actual test execution.
The surface covers the full inspect -> preview -> save-copy lifecycle for both resource strings and shortcut remaps, plus comparison, symbol/string search, and behavioral inference, so core workflows have no dead ends. Remaining gaps are minor: no tool to delete or discard snapshots, no in-MCP export step (deferred to the desktop app), and no binary/section-level edit beyond text replacement.