Open
Conversation
Adds a Godot autoload script that runs a TCP server on port 7070 to receive input simulation commands. Supports mouse clicks, movement, drags, keyboard input, action triggers, text typing, and screenshots. The build script now copies the addon to build/addons for distribution. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- simulate_input: sends mouse/keyboard/action commands to running game - setup_input_simulation: installs GodotMCPInput addon to a project Uses persistent TCP connection to avoid TIME_WAIT socket accumulation. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Input Simulation feature to README - Document setup steps and available commands - Add troubleshooting section for input simulation - Update CONTRIBUTING.md with new tools Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Multiple concurrent simulate_input calls were sharing the same socket and could receive each other's responses. Now requests are queued and processed one at a time. Also destroys socket on timeout to prevent stale responses from corrupting subsequent requests. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
If two JSON lines arrived in one read, only the first was processed and the second stayed in the buffer forever. Now loops through all complete lines. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Port can now be set via: - Environment variable: GODOT_MCP_INPUT_PORT - Project setting: godot_mcp/input_port - Default remains 7070 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
simulate_inputtool for sending mouse (with warp_mouse)/keyboard/action commands to running Godot gamessetup_input_simulationtool which installs a new addon into the client project. That addon runs a TCP server that handlessimulate_inputcommandsFeatures
Technical Details