MCP Unity
by CoderGamester
Verified
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
LOGGING | No | Enable logging to terminal | false |
UNITY_PORT | No | The port number for the WebSocket server that connects Unity to the MCP server | 8080 |
LOGGING_FILE | No | Enable logging to log.txt file | false |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
get_menu_items | List of available menu items in Unity to execute |
get_console_logs | Retrieve all logs from the Unity console |
get_hierarchy | Retrieve all game objects in the Unity loaded scenes with their active state |
get_packages | Retrieve all packages from the Unity Package Manager |
get_assets | Retrieve assets from the Unity Asset Database |
get_tests |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
execute_menu_item | Executes a Unity menu item by path |
select_object | Sets the selected object in the Unity editor by path or ID |
package_manager | Manages packages in the Unity Package Manager |
run_tests | Runs Unity's Test Runner tests |
notify_message | Sends a message to the Unity console |