Skip to content

Commit 7f07a7b

Browse files
committed
Refactor MCP Inspector launch command variable for clarity
1 parent 22f028e commit 7f07a7b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Unity-MCP-Plugin/Assets/root/Editor/Scripts/UI/MenuItems.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,13 @@ public static void LaunchMcpInspector()
8181
}
8282

8383
// Run command in a terminal window: npx @modelcontextprotocol/inspector http://localhost:8080 --transport http
84-
var arguments = $"-y @modelcontextprotocol/inspector {UnityMcpPlugin.Host} --transport http";
85-
Debug.Log($"Launching MCP Inspector with command: npx {arguments}");
84+
var npxArgs = $"-y @modelcontextprotocol/inspector {UnityMcpPlugin.Host} --transport http";
85+
Debug.Log($"Launching MCP Inspector with command: npx {npxArgs}");
8686

8787
var processInfo = new System.Diagnostics.ProcessStartInfo
8888
{
8989
FileName = "npx",
90-
Arguments = arguments,
91-
RedirectStandardOutput = false,
92-
RedirectStandardError = false,
90+
Arguments = npxArgs,
9391
UseShellExecute = true,
9492
CreateNoWindow = false,
9593
};

0 commit comments

Comments
 (0)