Feature: Dynamic command discovery and enhanced RPC testing #3
Reference in New Issue
Block a user
Delete Branch "feature/dynamic-commands"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR implements dynamic command discovery for the JSON-RPC interface and enhances the testing protocol.
Key Changes:
jsonrpc.rswith a call tocommands::get_command_list(). This ensures that new commands added to the game (like the recently addedshop) are automatically exposed to MCP and other RPC clients.run-tests.shthat validates the JSON-RPClist_commandsoutput.TESTING.mdwith a new checklist section for the JSON-RPC interface and kept the manual smoke test script in sync with the automated one.commands.rsto prevent desynchronization between the command dispatcher and the discovery API.Verified locally with
./run-tests.sh(passing Test 7).