MCPServers

Summary

MCP Unity currently provides the following tools:

execute_menu_item: Executes Unity menu items (functions tagged with the MenuItem attribute) select_object: Selects game objects in the Unity hierarchy package_manager: Installs, removes, and updates packages in the Unity Package Manager run_tests: Runs tests using the Unity Test Runner notify_message: Displays messages in the Unity Editor MCP Unity currently provides the following resources:

get_menu_items: Retrieves a list of all available menu items in the Unity Editor to facilitate execute_menu_item tool get_hierarchy: Retrieves a list of all game objects in the Unity hierarchy get_console_logs: Retrieves a list of all logs from the Unity console get_packages: Retrieves information about installed and available packages from the Unity Package Manager get_assets: Retrieves information about assets in the Unity Asset Database

Available Actions(8)

execute_menu_item

Executes Unity menu items (functions tagged with the MenuItem attribute). Example prompt: 'Execute the menu item "GameObject/Create Empty" to create a new empty GameObject'.

select_gameobject

Selects game objects in the Unity hierarchy by path or instance ID. Example prompt: 'Select the Main Camera object in my scene'.

update_gameobject

Updates a GameObject's core properties (name, tag, layer, active/static state), or creates the GameObject if it does not exist. Example prompt: 'Set the Player object's tag to "Enemy" and make it inactive'.

update_component

Updates component fields on a GameObject or adds it to the GameObject if it does not contain the component. Example prompt: 'Add a Rigidbody component to the Player object and set its mass to 5'.

add_package

Installs new packages in the Unity Package Manager. Example prompt: 'Add the TextMeshPro package to my project'.

run_tests

Runs tests using the Unity Test Runner. Example prompt: 'Run all the EditMode tests in my project'.

send_console_log

Send a console log to Unity. Example prompt: 'Send a console log to Unity Editor'.

add_asset_to_scene

Adds an asset from the AssetDatabase to the Unity scene. Example prompt: 'Add the Player prefab from my project to the current scene'.

Last Updated: April 17, 2025

社区评论

0.0
0 条评论
5
0
4
0
3
0
2
0
1
0

暂无评论. 成为第一个评论的人!

登录以参与讨论

Coming soon to
HighlightHighlight AI

语言

TypeScript

分类

标签