1. Conduid
  2. Gaming
  3. UE2 C64U Emulator
MCP server · Gaming

UE2 C64U Emulator

Ultimate 64 Elite II / C64 Ultimate target environment: unmodified firmware, UCI, turbo modes up to 64 MHz, REU, Ultimate Audio, TRX64 as C64. Firmware validation and Made for Ultimate software development; includes an MCP server.

Unclaimed GPL-3.0 gaming
57Fair

Scored 22 hours ago · breakdown

About UE2 C64U Emulator

UE2 C64U Emulator is an MCP server published by Jondalar in the Gaming category: ultimate 64 Elite II / C64 Ultimate target environment: unmodified firmware, UCI, turbo modes up to 64 MHz, REU, Ultimate Audio, TRX64 as C64. Firmware validation and Made for Ultimate software development; includes an MCP server. Conduid read 17 tools from its source: emu_button, emu_cart_info, emu_cart_save, emu_console, emu_control, emu_expect and 11 more. No package is published for it, so it installs from a source checkout.

The repository has 27 stars and 4 forks, is licensed GPL-3.0, and its last commit was on 27 Nov 2026. The latest release is v0.5.1 (3 Oct 2026): Since 0.5.0: Turbo as measured on a C64 Ultimate. It follows v0.5.0 (24 Sep 2026), and the 5 most recent releases go back to v0.4.3 (22 Sep 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include gaming.

Install

From source
git clone https://github.com/Jondalar/UE2-C64U-Emulator

Tools (17)

emu_buttonPress and release the Ultimate menu button (hold_ms emulated, default 100), then let the firmware run settle_ms (default 300). With the overlay closed this opens the main menu (file browser with SD, Flash, Temp, Ftp, WiFi); pressing it again closes the menu. Keep hold_ms well below 1000: a long press triggers a different firmware action.
emu_cart_infoDescribe the cartridge in the instance's physical expansion port (emu_start cart_slot; control command cart-info): type, CRT hardware type, model (trx64, trx64-flash or u64-logic), banks, the EXROM/GAME lines it drives and the mode they give, U64_CART_DETECT, the bus sharing registers C64_BUS_INTERNAL/EXTERNAL/BRIDGE as the firmware last wrote them, the flash command decode, the source file and persist mode, whether flash or EEPROM changed and whether that change is written yet.
emu_cart_saveWrite the cartridge in the instance's physical expansion port, as it is now, to a CRT file (control command cart-save): the inserted CRT's header and chip packets with the flash and EEPROM contents taken from the cartridge, plus packets for flash banks that were programmed outside the inserted CRT. Works in every cart_slot mode and never touches the source file. Returns PASS with the path, size and flash generation.
emu_consoleRead the firmware's UART console (boot log, debug printf output). Without since_offset returns the last tail_lines lines (default 60). With since_offset returns the bytes from that absolute offset (up to max_bytes); the result's next_offset is where the next incremental read should start. Take console_offset from emu_start or next_offset before an action, act, then read since that offset to see exactly what the action printed. stream='stderr' shows emulator diagnostics instead (fault 'halted:' reports, stats). The server keeps the newest 4 MB; the complete log is run_dir/console.log.
emu_controlSend one raw line of ue2emu's TCP control protocol and return its result lines: the direct API underneath the other tools. Commands: `wait <ms>`, `button [ms]`, `key <name> [ms]`, `type <text>`, `screen`, `png <path>`, plus any command newer emulator builds add (e.g. expect/expect-console). Use it for commands no dedicated tool covers; use emu_stop instead of `quit`.
emu_expectAssert that text appears (or with absent=true, disappears) on the overlay screen (source='screen', default) or in the UART console (source='console'), polling until timeout_ms (wall clock, default 10000). The first line of the result is PASS or FAIL; then the evidence (final screen text, or the console lines around the match / the console tail) and JSON details (elapsed_ms; console: match_offset, next_offset). Console searches cover all retained output unless since_offset is given, so to check what an action printed, pass the next_offset/console_offset you had before the action. A FAIL is a normal result, not a tool error. Fails early if the emulator exits.
emu_keyPress keys in order on the C64 keyboard matrix the Ultimate menu reads. Each key is held hold_ms (default 80 emulated ms) and released with a 40 ms gap; settle_ms (default 300) runs after the last key. Names: return, down, up, left, right, f1-f8, space, del, inst, home, clr, runstop, ctrl, cbm, lshift, rshift, pound, uparrow, larrow, or a single character ('a'; 'A' = SHIFT+A). Menu behaviour seen in the firmware: up/down move the selection (separators are skipped), right/return enter a directory or config category, return on a config value opens its choices and a typed letter jumps to the first match, left goes back (leaving the config menu may ask 'Save changes to Flash?', where return picks Yes), f2 opens the configuration menu, f3 help, runstop closes the menu.
emu_listList the instances this server manages: id, alive, exit status, pid, uptime, ports, rest_url, firmware, flash, sd, speed, run_dir, console byte count and the exact ue2emu command line; plus the server's configured paths. An instance whose emulator died (e.g. firmware fault halt) stays listed with alive=false until emu_stop, so its console and stderr can still be read.
emu_monitorRun one command of the C64 monitor and return its text: registers (`r`), memory (`m c000 c00f`), disassembly (`d e000`), the debug surfaces (`bk`, `flow`, `bt`), `help` for the full verb list. The verbs are TRX64's, the same monitor its own tools speak (docs/specs/S23-monitor.md). `device` selects the CPU: the C64 (default), the 1541 (`drive8`), or the firmware's RISC-V (`fw`, registers and memory only). It needs an instance started with a C64 (the default). Run control: `g`, `z`/`step`, `n`, `ret`, `until`, `c64 halt|go|step`, `fw halt|go|step`. Time travel on TRX64's rings: `mark`, `goto`, `frame`, `run`, `rstep`, `whowrote`, `chis`, `ringdump`/`ringload` (files under the instance's --monitor-dir).
emu_restSend an HTTP request to the firmware's web server (REST API under /v1/, web UI files) through the instance's http port (the emulator's web UI proxy, which passes REST through unchanged); the instance must have been started with net=true. Examples: GET /v1/info (product, firmware version), GET /v1/version, GET /v1/configs. Retries while the web server does not answer yet (networking comes up a few seconds after boot) until timeout_ms (default 20000). Returns the status line, response headers and body (text; binary bodies as base64 or written to save_body_to). 4xx/5xx responses are returned normally.
emu_screenDump the Ultimate overlay (menu) screen as text, one line per row (trailing spaces trimmed), and report whether the overlay is currently displayed. The text comes from overlay screen RAM, which keeps its content while the overlay is hidden, so check the VISIBLE/HIDDEN line. The selection bar is colour-only and does not appear in the text: use emu_screenshot to see which entry is selected. Main menu example rows: 'SD SD Card', 'Flash Flash Disk', 'Temp RAM Disk', status line '/ -F3=HELP-'.
emu_screenshotRender the current overlay display to a PNG and return it as an image (upscaled by `scale`, default 2). Shows colours and the selection highlight that emu_screen cannot. The file is kept under run_dir/shots/; save_to writes an extra copy. A hidden overlay renders as a uniform dark image (overlay_visible=false).
emu_startStart a new headless emulator instance (a ue2emu child process running the unmodified U64-II / C64 Ultimate firmware) and by default wait until the firmware has booted (console line 'All linked modules have been initialized'; about 1-3 s wall clock at speed=max). Returns the instance `id` (pass it to every other emu_* tool), pid, run_dir (console.log, stderr.log, flash.bin, shots/), ports (control = TCP control protocol; with net=true also http = the web UI proxy to guest port 80, and telnet/ftp/dma forwarded to guest ports 23/21/64), rest_url (http://127.0.0.1:<http>, which also opens the firmware web UI in a browser), the boot banner (firmware version line) and console_offset. After boot the overlay menu is closed: call emu_button to open it. Several instances can run side by side (own run dir, flash and ports each). Always emu_stop instances you started.
emu_stopStop an instance (id='all' stops every instance). Sends the control-protocol `quit` so the emulator exits cleanly and writes its flash image back, then escalates to SIGTERM/SIGKILL after timeout_ms. Returns exit status, whether the quit was graceful, and the emulator's final stderr (stats line: instructions, emulated seconds, final PC). The run directory with logs and screenshots is kept.
emu_typeType text into the firmware UI (file names, search strings, config text fields), one key per character (about 120-140 emulated ms each); '\n' presses RETURN. Characters without a C64 key (e.g. non-ASCII, tabs) are rejected. settle_ms (default 300) runs afterwards.
emu_usb_syncSync a usb_dirs stick now: write the guest's changes to its host directory (control command usb-sync). With replug=true: unplug the stick, sync, rebuild the volume from the host directory and plug it back in (usb-replug), so the firmware sees host changes at once; on a port without usb_dirs this just unplugs and plugs in the device. port picks a hub port 1-3, default every usb_dirs stick. A sync that would delete more than 25 % of the files (or more than 50) is refused and returns FAIL until force=true; overwrites do not count. An image that does not parse (firmware crashed mid-write) is never synced. discard=true (with replug) keeps the old image aside unsynced. Returns PASS with one line per action (written, moved to .ue2-trash, conflict copies).
emu_waitLet the emulator run for `ms` EMULATED milliseconds, then return (at speed=max this takes much less wall-clock time). Prefer emu_expect when waiting for a specific screen or console text.

Security checks

  • ✓README presentThe repository's README runs to about 478 words.
  • ✓License declaredThe repository declares the GPL-3.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !No dynamic code executionScanned 100 source files and found 7 calls to eval or shell execution, in crates/ue2emu/src/monitor/mod.rs and crates/ue2emu/src/runner.rs among others. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

Releases

v0.5.10.5.1 · 3 Oct 2026Since 0.5.0: Turbo as measured on a C64 Ultimate. TRX64 v0.12.3 times the U64 turbo the way Gideon's core does: `$D031` bit 7 means "no badline stalls". The top speeds are 47 and 63 CPU cycles per PHI2. Interrupts are taken at the turbo…
v0.5.00.5.0 · 24 Sep 2026Since 0.4.5: NTSC. The C64 runs the standard the firmware's System Mode asks for: NTSC, PAL-60 and NTSC-50 included. The firmware's default is NTSC, as on the device. The SID clock follows it. Drives A and B, and the 1581. Both drive…
v0.4.50.4.5 · 23 Sep 2026Since 0.4.4: The C64 boots PAL under turbo. TRX64 v0.8.7 holds the C64 at 1 MHz for 2.06 s after a reset, as the Ultimate does (measured on a C64 Ultimate). Before, a turbo setting of 16 MHz or more was in force while the KERNAL raced the…
v0.4.4UE2 0.4.4 · 23 Sep 2026Since 0.4.3: A DMA byte through the C64 memory window costs what it costs on the board. The window is a DMA master on the C64's bus: a byte steals a bus cycle and the RISC-V waits for the handshake around it. The emulator charged nothing…
v0.4.3UE2 0.4.3 · 22 Sep 2026Since 0.4.2: MAX-machine cartridges draw correctly. Under a real ultimax board the VIC-II's fetches at `$3000-$3FFF` of every bank come out of the cartridge's ROMH instead of RAM, at `$1000 + (addr & $0FFF)` — that upper half of the 8 KiB…

README

The repository's README runs to about 478 words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About UE2 C64U Emulator

How do I install UE2 C64U Emulator?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is UE2 C64U Emulator safe to use with an AI agent?

Its trust score is 57 out of 100 (fair). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. It has no ConduID identity yet, so agent calls to it are not receipted.

Is UE2 C64U Emulator still maintained?

Yes — the latest release is v0.5.1 (3 Oct 2026), and the last commit was 5 days ago. The repository has 27 stars.

What tools does UE2 C64U Emulator provide?

Conduid read 17 tools from the source: emu_button, emu_cart_info, emu_cart_save, emu_console, emu_control, emu_expect, emu_key, emu_list and 9 more.

What license is UE2 C64U Emulator released under?

The repository declares the GPL-3.0 license. That applies to the latest release, v0.5.1, as well.