mcp-server-misterfpga

v0.1.0
mcp-server-misterfpga Checked 2 days ago Published 22 days ago

MCP server for MiSTer FPGA devices: games through Zaparoo Core, MiSTer.ini and save backups over SSH, several MiSTers at once

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

mister_get_status Get MiSTer status

<use_case> Inspect status across all configured MiSTer FPGA devices or a single target device. </use_case> <important_notes> - Start here: lists reachable devices, active cores, currently playing game ref, and capabilities/limitations. - limitations flags missing Zaparoo Core or unconfigured SSH. - attract_mode indicates active MiSTer Super Attract Mode demo cycle. </important_notes>

ParameterTypeDescription
hostMiSTer name from mister_get_status. Omit when the call already says which (a ref does).

mister_list_systems List systems

<use_case> List indexed gaming systems, media counts, and FPGA cores across devices. </use_case> <important_notes> - Covers consoles, computers, and arcade cores configured on the MiSTer. - Use returned system id in mister_search_games, or pass to mister_launch to load a core with no game. </important_notes>

ParameterTypeDescription
hostMiSTer name from mister_get_status. Omit when the call already says which (a ref does).

mister_search_games Search for games

<use_case> Search for games across MiSTer FPGA libraries by name query and optional system filter. </use_case> <important_notes> - Returns launchable game refs (e.g. 'Family Room/4812'). - The ref encapsulates target host and mediaId for subsequent mister_launch calls. - variant differentiates region/revision/hack versions. </important_notes>

ParameterTypeDescription
query *stringWords in the game's name, e.g. 'metroid'.
hostMiSTer name from mister_get_status. Omit when the call already says which (a ref does).
limitintegerMost results per MiSTer.
systemA system id from mister_list_systems, e.g. 'SNES' or 'Genesis'.

mister_play_history Play history

<use_case> Inspect recently played or most played games across MiSTer devices. </use_case> <important_notes> - Aggregated from Zaparoo Core logs on hardware. - Each row includes a launchable ref to immediately relaunch a game. </important_notes>

ParameterTypeDescription
hostMiSTer name from mister_get_status. Omit when the call already says which (a ref does).
limitinteger
modestringrecent: last played first, one row per game. top: most played by total time.
systemA system id from mister_list_systems, e.g. 'SNES' or 'Genesis'.

mister_get_ini Read MiSTer.ini

<use_case> Read sections and key-value pairs from MiSTer.ini configuration files on SD storage. </use_case> <important_notes> - Requires root SSH access to the device. - [MiSTer] section is global; core sections (e.g. [SNES]) provide per-core overrides. </important_notes>

ParameterTypeDescription
filestringMiSTer.ini, or an alternate such as MiSTer_crt.ini (mister_get_ini lists them).
hostMiSTer name from mister_get_status. Omit when the call already says which (a ref does).
sectionOnly this section, e.g. MiSTer or SNES. Omit for all.

mister_list_nfc List NFC readers and cards

<use_case> List connected NFC readers, card-to-game mappings, and the last scanned card UID. </use_case> <important_notes> - Use this to check whether a reader supports write operations (can_write=True). - Returns the last scanned card UID for mister_map_nfc_card workflows. </important_notes>

ParameterTypeDescription
hostMiSTer name from mister_get_status. Omit when the call already says which (a ref does).

mister_launch Launch a game or core

<use_case> Launch a game via ref or open a core without media on a MiSTer FPGA. </use_case> <important_notes> - Refuses to launch while another game is active; call mister_return_to_menu first. - Rate-limited to prevent rapid FPGA bitstream reconfiguration cycling. - Signals game start to Pixelcade marquees and MQTT play tracking. </important_notes>

ParameterTypeDescription
gameA game ref from mister_search_games or mister_play_history, e.g. 'Family Room/4812'.
hostMiSTer name from mister_get_status. Omit when the call already says which (a ref does).
systemInstead of a game: a system id from mister_list_systems, to open its core with no game.

mister_return_to_menu Return to the MiSTer menu

<use_case> Exit the active game and reload the MiSTer main menu core. </use_case> <important_notes> - DESTRUCTIVE: Unsaved game progress will be lost. - If host is omitted, acts on whichever MiSTer is currently running a game. </important_notes>

ParameterTypeDescription
hostMiSTer name from mister_get_status. Omit when the call already says which (a ref does).

mister_take_screenshot Take a screenshot

<use_case> Capture the current video output of the MiSTer as an image. </use_case> <important_notes> - Rate-limited to avoid SD card write exhaustion. - Saves PNG to /media/fat/screenshots and returns inline ImageContent. </important_notes>

ParameterTypeDescription
hostMiSTer name from mister_get_status. Omit when the call already says which (a ref does).

mister_set_ini Change a MiSTer.ini setting

<use_case> Modify or clear a configuration key in MiSTer.ini (or alternate ini). </use_case> <important_notes> - Creates a timestamped .bak backup on SD storage before writing. - Rate-limited to guard against rapid SD card wear. - Dangerous system keys (main, bootcore, shared_folder) are disallowed. </important_notes>

ParameterTypeDescription
key *stringA MiSTer.ini key, e.g. vscale_mode (misterfpga://ini-keys lists them).
value *The new value, checked against the key's type and range. null removes the key.
dry_runbooleanShow the change (diff) without writing it.
filestringMiSTer.ini, or an alternate such as MiSTer_crt.ini (mister_get_ini lists them).
hostMiSTer name from mister_get_status. Omit when the call already says which (a ref does).
sectionstringMiSTer (global), arcade, arcade_vertical, video=<WxH@Hz>, or a core name like SNES.

mister_backup_saves Back up saves

<use_case> Create a timestamped local backup of game saves and save states from the MiSTer. </use_case> <important_notes> - Rate-limited to prevent SD card and network IOPS exhaustion. - Uses hard links for unchanged files to save disk space. - Requires configured backup_dir and SSH connectivity. </important_notes>

ParameterTypeDescription
dry_runbooleanCount what would be copied, write nothing.
hostMiSTer name from mister_get_status. Omit when the call already says which (a ref does).

mister_run_update Update the MiSTer

<use_case> Trigger update_all.sh to update cores, scripts, and Linux system files. </use_case> <important_notes> - DESTRUCTIVE: Runs on screen for several minutes and may trigger a system reboot. - Refused if a game is currently playing. - Rate-limited to once per hour to prevent reboot loops. </important_notes>

ParameterTypeDescription
confirm *booleanMust be true: you've confirmed with the user that it may reboot.
host *stringMiSTer name from mister_get_status. Required: there's no default for this.

mister_write_nfc_card Write a game to an NFC card

<use_case> Write game launch metadata to an NFC card on a compatible writer. </use_case> <important_notes> - DESTRUCTIVE: Overwrites existing payload on the NFC tag. - Prompts user to place card on reader; waits up to 60s. </important_notes>

ParameterTypeDescription
game *stringA game ref from mister_search_games or mister_play_history, e.g. 'Family Room/4812'.
readerReader id from mister_list_nfc, when there's more than one.

mister_map_nfc_card Map an NFC card to a game

<use_case> Associate a physical card UID with a game in Zaparoo without writing to the card. </use_case> <important_notes> - Suitable for read-only cards, amiibo, or arcade tokens. - Uses last scanned UID if uid parameter is omitted. </important_notes>

ParameterTypeDescription
game *stringA game ref from mister_search_games or mister_play_history, e.g. 'Family Room/4812'.
uidThe card's UID. Omit to use the card scanned on that MiSTer in the last 2 minutes.