Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MISTERFPGA_HOSTSNoComma-separated addresses of MiSTers, replacing the list from config.json, keeping names from the file.
MISTERFPGA_DRY_RUNNoSet to 1 to enable dry-run mode (or use serve --dry-run). Reads the MiSTers but changes nothing.
MISTERFPGA_BACKUP_DIRNoBackup directory for saves. Has no default; backup_saves will not work until set.
MISTERFPGA_CONFIG_DIRNoDirectory containing config.json (default ~/.config/mcp-server-misterfpga).
MISTERFPGA_LOG_UNREDACTEDNoSet to 1 to log addresses and MACs without redaction (or use --no-redact). Keys and tokens are always redacted.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Controls MiSTer FPGA retro-gaming hardware through Zaparoo Core and root SSH. In the gaming cabinet signal chain, the MiSTer FPGA acts as the Video and Audio Source feeding direct HDMI or analog RGB video into the AV Receiver (Onkyo) or TV (LG webOS). Game launch events trigger dynamic marquee updates on Pixelcade LED displays. Play tracking publishes real-time session events to Home Assistant via MQTT ('misterfpga//now_playing'). Call mister_get_status first: it lists each MiSTer by name and model, what it's playing, and its capabilities and limitations. Find games with mister_search_games or mister_play_history; launch them with mister_launch(game=). mister_launch refuses while a game is running: ask before ending one with mister_return_to_menu, since unsaved progress is lost. Pass host only when the call doesn't already say which MiSTer (a ref does).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
mister_get_statusA

<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>

mister_list_systemsA

<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>

mister_search_gamesA

<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>

mister_play_historyA

<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>

mister_get_iniA

<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>

mister_list_nfcA

<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>

mister_launchA

<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>

mister_return_to_menuA

<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>

mister_take_screenshotA

<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>

mister_set_iniA

<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>

mister_backup_savesA

<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>

mister_run_updateA

<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>

mister_write_nfc_cardA

<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>

mister_map_nfc_cardA

<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>

Prompts

Interactive templates invoked by user choice

NameDescription
make_nfc_cardsWalk through turning a list of games into NFC cards, one card at a time.

Resources

Contextual data attached and managed by the client

NameDescription
ini-keys

TDQS

A3.9/5.0

Scored across 14 tools

Disambiguation4/5

Most tools target distinct resources and actions (status, systems, search, launch, ini, screenshots, update), so selection is generally unambiguous. The only real overlap is the NFC trio — mister_map_nfc_card, mister_list_nfc, and mister_write_nfc_card — where 'map' vs 'write' could momentarily confuse, though descriptions explicitly separate them.

Naming Consistency4/5

Nearly all tools follow a consistent mister_verb_noun snake_case pattern (get_status, list_systems, search_games, launch, set_ini, write_nfc_card). The one deviation is mister_play_history, a noun phrase with no leading verb, but it remains readable and predictable.

Tool Count5/5

Fourteen tools is well within the ideal range for a device-management server and each one maps to a real operation (discovery, launch lifecycle, config, NFC, backups, updates). Nothing feels redundant or padded.

Completeness4/5

The surface covers discovery, launch/exit lifecycle, config read/write, NFC read/write/map, save backup, screenshots, and system updates — strong end-to-end coverage. Minor gaps remain: no restore-from-backup, no unmapping/removing an NFC association, and no library rescan/refresh operation.

Maintenance

ActivityActive
ResponsivenessNo recent community issues