run_tests

MCP tool from MCP Unity by CoderGamester

Runs tests using the Unity Test Runner

How to use it

Project documentation lists run_tests for the MCP Unity MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.

Install MCP Unity

$npx @modelcontextprotocol/inspector node Server~/build/index.js
FULL MCP UNITY LISTING

Other tools in MCP Unity (32)

add_asset_to_scene

Adds an asset from the AssetDatabase to the Unity scene

add_package

Installs new packages in the Unity Package Manager

assign_material

Assigns a material to a GameObject's Renderer component

batch_execute

Executes multiple tool operations in a single batch request, reducing round-trips and enabling atomic operations with optional rollback on failure

create_material

Creates a new material with specified shader and saves it to the project

create_prefab

Creates a prefab with optional MonoBehaviour script and serialized field values

create_scene

Creates a new scene and saves it to the specified path

delete_gameobject

Deletes a GameObject from the scene

delete_scene

Deletes a scene by path or name and removes it from Build Settings

duplicate_gameobject

Duplicates a GameObject in the scene with optional renaming and reparenting

execute_menu_item

Executes Unity menu items (functions tagged with the MenuItem attribute)

get_console_logs

Retrieves logs from the Unity console with pagination support

get_gameobject

Gets detailed information about a specific GameObject including all components

get_material_info

Gets detailed information about a material including shader and all properties

get_play_mode_status

Gets Unity play mode status (isPlaying, isPaused)

get_scene_info

Gets information about the active scene including name, path, dirty state, and all loaded scenes

load_scene

Loads a scene by path or name, with optional additive loading

modify_material

Modifies properties of an existing material (colors, floats, textures)

move_gameobject

Moves a GameObject to a new position (local or world space)

recompile_scripts

Recompiles all scripts in the Unity project

reparent_gameobject

Changes the parent of a GameObject in the hierarchy

rotate_gameobject

Rotates a GameObject to a new rotation (local or world space, Euler angles or quaternion)

save_scene

Saves the current active scene, with optional Save As to a new path

scale_gameobject

Scales a GameObject to a new local scale

select_gameobject

Selects game objects in the Unity hierarchy by path or instance ID

send_console_log

Send a console log to Unity

set_play_mode_status

Controls Unity play mode with actions: 'play' (start or unpause), 'pause' (toggle pause), 'stop' (exit play mode), 'step' (advance one frame)

set_transform

Sets position, rotation, and scale of a GameObject in a single operation

show_unity_dashboard

Opens the Unity dashboard MCP App in VS Code (requires VS Code 1.109+)

unload_scene

Unloads a scene from the hierarchy (does not delete the scene asset)

update_component

Updates component fields on a GameObject or adds it to the GameObject if it does not contain the component

update_gameobject

Updates a GameObject's core properties (name, tag, layer, active/static state), or creates the GameObject if it does not exist