Winuae
Operate the WinUAE Amiga emulator through the winuae MCP server. Use whenever the user wants to run, play, test, debug, or automate anything on an emulated Amiga - games, AmigaOS, their own programs, disk images, or reverse engineering. Covers launching the emulator, screen-coordinate input, save states, mounting host folders, the 68k debugger, and serial I/O.From its SKILL.md
npx -y skills add xphileby/winuae-mcp-plugin --skill winuaeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.3 KB, as published. Nobody here has run it
Driving the Amiga emulator
The winuae MCP server exposes ~46 tools controlling a live WinUAE instance.
The MCP relay is always available, but the emulator itself must be running
for tools to act.
Before anything else
-
Call
winuae_status. Ifconnected: false, the emulator is not running. -
Launch it (the binary ships with this plugin):
& "<plugin-root>/bin/winuae64.exe" -f "path\to\config.uae"<plugin-root>is this plugin's install directory (the directory containingbin/). The user must supply their own.uaeconfig and Kickstart ROM — ROMs are copyrighted and not bundled. A working config needs at least:kickstart_rom_file, a boot medium (floppy0=path to an .adf, orhardfile2=/filesystem2=for HDF/directory), anduse_gui=nofor headless start. -
Wait for boot:
wait_for_idle {timeout_ms: 15000, quiet_ms: 300}thenscreenshotto see where you are.
The MCP listener binds port 7843. First launch may show a Windows Firewall prompt the user has to accept.
Seeing and pointing
screenshot {scale:"native"}returns the Amiga screen at native resolution. Its pixels are the same coordinate space as the pointer tools (Intuition screen pixels, (0,0) = top-left of the Amiga screen — note the screenshot includes a small overscan border around the screen, typically ~(54,28); useget_pointer_posto calibrate if precision matters).mouse_move {x, y}is absolute and closed-loop (self-correcting, works in windowed/maximized/fullscreen). It BLOCKS until the pointer arrives.get_pointer_posreturns where Intuition thinks the pointer is.mouse_click {button:0, count:2}double-clicks (opens icons). Clicks are vsync-paced; they execute after any queued motion.- Workflow for "click the X icon": screenshot → locate X visually → convert to
guest coords →
mouse_move→mouse_click→ screenshot to verify.
Typing
type_textandkey_pressare serialized and blocking — call them back-to-back, no delays needed.type_textis US-keyboard ASCII; newline acts as Return.key_press {key:"e", modifiers:["RAmiga"]}= Amiga hotkeys (RAmiga+E opens Workbench's Execute Command dialog — the fastest way to run a one-liner).- Open a Shell:
key_press RAmiga+E,type_text "newshell",key_press Return. Then type commands into the Shell withtype_text. - Full key reference (every named key, the numeric keypad, modifiers, and
the raw
"0xNN"form): see keycodes.md. Keys accept a symbolic name (e.g."f5","kp7","help","left") or a raw Amiga rawkey code as a hex string.
Gaming
- Insert disks:
disk_insert {drive:0, path:"C:\\games\\game.adf"}(df0:),disk_eject,disk_list. Reset to boot the disk:reset {kind:"hard"}. - Joystick input:
inject_eventwith the built-in input events, e.g.{name:"JOY2_FIRE_BUTTON", value:"1"}press /"0"release, andJOY2_LEFT,JOY2_RIGHT,JOY2_UP,JOY2_DOWN(port 2 is the usual joystick port; port 1 = mouse). - Save-scumming:
save_state {path}/load_state {path}snapshot the whole machine. (Known issue: after load_state the display can need areset {kind:"soft"}or a moment to redraw.) set_speed {mode:"turbo"}fast-forwards through loading screens;{mode:"balanced"}restores normal speed.pause/resumefreeze the game.screenshot+wait_for_pixel/wait_for_region_changesynchronize on visual events (title screen appeared, level loaded).
Programming & testing your own software
mount_dir {path:"C:\\myproject\\build"}mounts a host folder as a guest volume (icon appears on Workbench within ~1s). Compile on the host, cross-build for m68k, then run the binary in the guest from that volume — no HDF rebuilding.- Run it: open a Shell and
type_text "volumename:myprog"+ Return, or use RAmiga+E Execute. - Serial I/O works with no host serial port: guest writes to
SER:are captured byserial_read;serial_writefeeds the guest's serial input (readable in the guest viaSER:). Great for test harness output: have the program print results to SER: and assert onserial_read. get_config/set_configread/tune emulator options at runtime (exact .uae option names).set_config {line:"cpu_speed=max"}etc.
Debugging & reverse engineering
breakpoint_set {addr:"0x..."}: on hit the CPU parks at the exact PC and anotifications/breakpointarrives. While stopped:get_cpu_state,memory_read,disassemble, anddebugall work; queued tools (screenshot, input) time out until youbreakpoint_continue.breakpoint_clearwhile stopped auto-resumes. Beware breakpoints on hot loops: they re-hit immediately after continue.get_cpu_state= D0-D7/A0-A7/PC/SR.memory_read/memory_writetakeaddras a "0xNN" string; data is base64. ExecBase pointer lives at 0x4.find_in_memory {pattern_b64, start, end}scans for byte patterns.debug {command:"..."}is a passthrough to WinUAE's full debugger CLI (rregisters,m addrmemory dump,d addrdisassembly,wwatchpoints and much more) — use it for anything without a dedicated tool.
Notifications you may receive
notifications/breakpoint (hit, with pc), notifications/screen_mode_changed,
notifications/paused|resumed|reset|config_changed|mousehack_changed, and
from the relay: notifications/winuae_connected|winuae_disconnected.
Gotchas
- Tools that need the emu thread (screenshot, input, mount_dir...) time out while the CPU is parked at a breakpoint or the emulator is paused — that is expected; resume first.
audio_recordreturns an error if the host has no active sound device.quitcleanly exits the emulator;winuae_statusthen reportsconnected:falseuntil it is relaunched.- If a tool call returns "WinUAE is not running", relaunch the emulator (see top) — the MCP connection recovers automatically.