attach_project
Inject the MCP bridge into a Godot process you launch yourself, then wait for the bridge to respond. Call before Godot starts to ensure the bridge registers and get the resolved port.
Instructions
Inject the MCP bridge into a Godot process you launch yourself, then wait up to 15s for the bridge to respond. Call BEFORE Godot launches — Godot reads autoloads only at process start, so a late call returns "bridge did not respond." Recommended pattern: kick off the Godot launch in parallel with this call so the wait absorbs startup. Prefer run_project unless MCP must not spawn Godot. Returns plain-text status with the resolved bridge port. Call detach_project or stop_project when done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bridgePort | No | TCP port for the MCP bridge. Omit to auto-select a free port (recommended). The chosen port is baked into the project's `mcp_bridge.gd` at inject time, so the running Godot listens on exactly this port. | |
| projectPath | Yes | Path to the Godot project directory |