Skip to content

Conversation

@GallopingDino
Copy link
Contributor

I want the MCP to support the following workflow: make changes → recompile → run tests → repeat. I want it to run in the background so it doesn’t block me from working on other tasks and projects.

To achieve this, I made two changes: implemented a recompile_scripts tool and moved McpUnityServer.Instance initialization to a method decorated with [DidReloadScripts]. This is not equivalent to the previous EditorApplication.delayCall approach, but it is sufficient to wait until the end of a domain reload and, unlike delayCall, it doesn’t require the Editor to be focused. Note, however, that I couldn’t exhaustively test this change across all tools and intended workflows, because I don’t fully understand the exact edge cases you had in mind while designing the McpUnityServer. That said, I’ve used the MCP after applying these changes, and had no issues with it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 26, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Snowblaze
Copy link
Contributor

This actually looks really cool!

Copy link
Owner

@CoderGamester CoderGamester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very interesting tool added
LGTM

@CoderGamester CoderGamester merged commit 0d46436 into CoderGamester:main Nov 3, 2025
1 check passed
@CoderGamester
Copy link
Owner

@GallopingDino Thank you for this PR
This is a great addition to the MCP

I like the new workflow and can be very helpful with this MCP creating a new extension for the AI to iterate adding new game logic ideias with full context end to end

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.

3 participants