Get Changes in Main to File System #8
Merged
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.
This pull request includes significant changes to the
Editor/MCPCodeExecutor.csfile and updates to theREADME.mddocumentation. The changes primarily focus on improving the flexibility of executing C# code in the Unity Editor and enhancing the documentation to reflect new features and provide clearer instructions.Code Execution Improvements:
Editor/MCPCodeExecutor.cs: The methodExecuteCommandhas been updated to allow the execution of more flexible C# code by requiring the code to define a class calledMcpScriptwith a static methodExecute. This removes the need for wrapping the code in a predefined template. [1] [2]Editor/MCPCodeExecutor.cs: Additional essential Unity modules have been included in the compiler parameters to support more functionalities.Documentation Enhancements:
README.md: Added a new badge and updated several sections to include new features like browsing and manipulating project files directly, and clarified installation and setup instructions. [1] [2] [3] [4] [5]README.md: Expanded the usage section to include detailed descriptions of new filesystem tools and provided example usages. [1] [2]Tool Definitions Updates:
mcpServer/build/toolDefinitions.js,mcpServer/src/toolDefinitions.ts: Updated the description of theexecute_editor_commandtool to reflect the new requirement for defining a class namedMcpScriptwith a static methodExecute. [1] [2]