PluginWorld
01

010editor-mcp

MCP

Enables agents to run SweetScape 010 Editor Binary Templates and Scripts headlessly against local files. It provides tools to locate the editor binary, execute templates or scripts, and use controlled exit behavior for compile and runtime failures.

@b1tninja · MIT License · updated today

SECURITY

B

SCORE

60

STARS

▲ 0

PLUG IN

git clone https://github.com/b1tninja/010editor-mcp.git

See the README to configure this MCP server

README

010editor-mcp

MCP server for SweetScape 010 Editor.

There is no plugin API

SweetScape KB1015:

At this time there is no API available for integration of 010 Editor with other programs.

This MCP does not load a DLL into 010. It automates what does exist:

Layer Mechanism Docs
CLI -template:, -script:, -replace:, -compare:, -goto:, -select:, -save:, -noui, -exitnoerrors, … CommandLine.htm
Script bridge Ephemeral .1sc + result files (ExportCSV, ExportXML, FileSave, FPrintf, FindAll, RunTemplate, …) FuncInterface · FuncIO · FuncTools
Python fallbacks hashlib checksums, byte extract, simple find — when headless 010 is a poor fit —
Reverse DLL Scripts/Templates #link out to your DLL (010 → you) ScriptDLL

Resource: 010editor://capabilities

Tools

Tool Backend
editor_status Locate install (plugin_api: false)
run_template 010 CLI — validate .bt
run_template_export Script bridge — RunTemplate + ExportCSV/ExportXML
run_script / run_script_source 010 CLI / ephemeral .1sc
checksum_file Python hashlib (MD5/SHA*)
find_in_file Python scan (default) or 010 FindAll (engine=010)
extract_range Python slice (FileSaveRange hangs under -noui)
replace_in_file CLI -replace:
compare_files CLI -compare:
open_in_gui Non-blocking UI launch
run_raw_cli Arbitrary argv escape hatch

Headless pitfalls (learned the hard way)

  1. No adjacent C string literals in .bt / .1sc — keep SPrintf formats as one string.
  2. Printf ≠ stdout under -noui — write FileSave / ExportCSV / FPrintf artifacts.
  3. Windows paths in scripts must use doubled backslashes ("D:\\temp\\a.txt"). Forward slashes can make FileSave return success without creating the file.
  4. FileOpen() from a script can hang under -noui. Prefer opening the data file on the CLI. Stage as *.bin (hardlink/copy) to avoid Template auto-run on extensions like .djf.
  5. ExpandAll + huge uchar data[N] can hang / explode — run_template_export defaults expand_all=false.
  6. FileSaveRange hangs under -noui on tested builds — extract via Python.
  7. 010 is single-instance — hung CLI processes block later runs. This server kills the child on timeout.
  8. Large-file opens under -noui have been observed to hang on some installs; prefer Python tools or open_in_gui for multi‑MB blobs when headless stalls.

Install

git clone https://github.com/b1tninja/010editor-mcp.git
cd 010editor-mcp
uv sync

Cursor mcp.json

{
  "mcpServers": {
    "010editor": {
      "command": "uv",
      "args": ["--directory", "D:/code/010editor-mcp", "run", "010editor-mcp"],
      "env": {
        "EDITOR010_EXE": "C:\\Program Files\\010 Editor\\010Editor.exe"
      }
    }
  }
}

Related

License

MIT — see LICENSE. 010 Editor is commercial software from SweetScape; you need your own license.

SIMILAR PLUGINS