Skip to content

feat: add quit_godot tool to close launched editor#108

Open
twinlunarstarz-dev wants to merge 1 commit into
Coding-Solo:mainfrom
twinlunarstarz-dev:feat/quit-godot
Open

feat: add quit_godot tool to close launched editor#108
twinlunarstarz-dev wants to merge 1 commit into
Coding-Solo:mainfrom
twinlunarstarz-dev:feat/quit-godot

Conversation

@twinlunarstarz-dev
Copy link
Copy Markdown

feat: add quit_godot tool to close launched editor

Summary

Add a quit_godot tool that closes the Godot editor instance launched by this MCP server via launch_editor. The server tracks only editors it spawned, so this tool will never affect unrelated processes.

Changes

  • Added private editorProcess field to track the spawned editor process
  • Updated cleanup() to kill tracked editor on server shutdown
  • Registered quit_godot in tools list with proper schema (no parameters required)
  • Modified handleLaunchEditor() to store process reference and clear it on natural exit
  • Created handleQuitGodot() handler that kills the tracked process or returns error if none is active

Verification

Builds successfully with no TypeScript errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant