unity-inspector-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ping | Test connection to Unity Inspector |
| list_gameobjects | List all GameObjects in the scene |
| inspect_gameobject | Inspect a specific GameObject by path |
| inspect_component | Inspect a specific component on a GameObject |
| query_gameobjects | Search for GameObjects by name or component |
| inspect_player | Get detailed information about the player(s) |
| list_enemies | List all enemies in the scene |
| take_screenshot | Take a screenshot of the game. Returns the path to the saved screenshot. |
| execute_code | Execute C# expressions in the Unity context. Uses Mono.CSharp.Evaluator - expects expressions, not statements |
| modify_component | Modify properties of a component on a GameObject |
| teleport_player | Teleport a player to a specific position |
| set_player_health | Set a player's health |
| spawn_entity | Spawn an entity at a specific position (limited implementation) |
| set_game_speed | Set the game speed (time scale) |
| list_campaigns | List all available campaigns with their indices |
| go_to_level | Go directly to a specific campaign level |
| swap_bro | Swap the current player's bro mid-level. Kills the current bro and spawns the new one at the same position. Integrates with Swap Bros Mod when available, falls back to direct game manipulation. |
| set_bro | Set which bro the player will spawn as next (on death/respawn/next level). Does NOT change the current bro mid-level. |
| list_bros | List all available bros that can be used with swap_bro and set_bro. Reports the selected bro for the given player (currentBro) and for all active players (currentBros array). |
| restart_level | Restart the current level from the beginning. Clears checkpoints and trigger state for a full reset. |
| simulate_input | Simulate keyboard/controller input |
| list_test_scripts | List all available test scripts in scripts/ and scripts/examples/ |
| wait_for_game | Wait for the game to start up and the Unity Inspector TCP server to become responsive. Polls the connection until a ping succeeds or timeout is reached. |
| game_state | Get a high-level summary of the current game state: scene, game mode, level info, player status, and bro type. Single call to orient yourself. |
| read_log | Read the UMM mod manager log file. Returns the last N lines by default, or filter by pattern. |
| watch_log | Return log entries that appeared since the last call to watch_log. First call returns the last 20 lines as a baseline. Use this for iterative debug loops. |
| run_test_script | Execute a test script containing a sequence of commands. Scripts are JSON files with command sequences that can include wait delays. Steps run directly against the game, so only game-side commands work — server-side tools (read_log, watch_log, list_scripts, launch_game, stop_game, wait_for_game, ...) cannot be used as steps. |
| execute_script | Compile and run a C# script file in the Unity runtime. Supports full class definitions, MonoBehaviours, Harmony patches, and private member access. Scripts can define Main() for execution and Unload() for cleanup. Use ScriptContext for Harmony instances, logging, and arguments. Available library scripts:
|
| compile_script | Compile a C# script without running it. Returns compilation success/failure and any compiler errors. Useful for validating scripts before execution. |
| list_scripts | List available C# scripts in the script library with their metadata (name, description, tags, arguments). |
| unload_script | Unload an active C# script, cleaning up its Harmony patches, GameObjects, and calling its Unload() method if defined. |
| launch_game | Launch Broforce and wait for it to become responsive. Uses the BROFORCE_LAUNCH_CMD environment variable when set, otherwise launches Steam app 274190. Returns a warning if the game is already running unless restart is true. |
| stop_game | Stop the running Broforce process. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| C# Script Library | Available C# scripts for Unity runtime execution |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexneargarder/unity-inspector-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server