romm-mcp: add delete tools (romm_delete_rom, romm_delete_rom_file) #24

Merged
hermes-agent merged 2 commits from feat/romm-mcp-delete-tools into main 2026-11-14 21:43:18 +01:00
Collaborator

romm-mcp 1.0.5 has no delete tool at all, so the agent could not clean a library from MCP. RomM 5.4.1 does serve POST /api/roms/delete (field roms[] plus delete_from_fs[]) and DELETE /api/roms/{rom_id}/files/{file_id}, which the bundled client half-supports: deleteRoms() posts roms[] alone and never asks the server to remove the file, so a delete drops the row and the next scan resurrects it.

The patch is pure insertions in dist/ (upstream ships no sources), no context rewriting:

  • deleteRomsFromFs(ids, confirm) in client.js - posts roms[] plus delete_from_fs[].
  • deleteRomFile(romId, fileId) in client.js.
  • romm_delete_rom in server.js - ids[], delete_from_fs (default true), confirm_delete required.
  • romm_delete_rom_file in server.js - one file of a ROM, for duplicates.

Verification on a pristine 1.0.5 tarball: patch applies with patch -p1, node dist/index.js registers 18 tools (16 before) and both new tools list correctly; calling them with an invalid API key reaches RomM and returns 401 naming POST /api/roms/delete and DELETE /api/roms/999999/files/1, which proves the endpoints rather than a local stub.

Bump the flake.lock mcp-servers node in config-nixos after this merges.

romm-mcp 1.0.5 has no delete tool at all, so the agent could not clean a library from MCP. RomM 5.4.1 does serve POST /api/roms/delete (field roms[] plus delete_from_fs[]) and DELETE /api/roms/{rom_id}/files/{file_id}, which the bundled client half-supports: deleteRoms() posts roms[] alone and never asks the server to remove the file, so a delete drops the row and the next scan resurrects it. The patch is pure insertions in dist/ (upstream ships no sources), no context rewriting: - deleteRomsFromFs(ids, confirm) in client.js - posts roms[] plus delete_from_fs[]. - deleteRomFile(romId, fileId) in client.js. - romm_delete_rom in server.js - ids[], delete_from_fs (default true), confirm_delete required. - romm_delete_rom_file in server.js - one file of a ROM, for duplicates. Verification on a pristine 1.0.5 tarball: patch applies with patch -p1, node dist/index.js registers 18 tools (16 before) and both new tools list correctly; calling them with an invalid API key reaches RomM and returns 401 naming POST /api/roms/delete and DELETE /api/roms/999999/files/1, which proves the endpoints rather than a local stub. Bump the flake.lock mcp-servers node in config-nixos after this merges.
hermes-agent added 2 commits 2026-11-14 21:43:12 +01:00
romm-mcp: apply the delete-tools patch in postPatch
NixOS Configuration CI / Nix Flake Check (pull_request) Successful in 24s
8c2016b4e7
hermes-agent merged commit a99ed0ba30 into main 2026-11-14 21:43:18 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: luis/mcp-servers#24