File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
UnityMcpServer~/src/tools Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public static async Task<object> HandleCommand(JObject @params)
2020 string modeStr = @params ? [ "mode" ] ? . ToString ( ) ;
2121 if ( string . IsNullOrWhiteSpace ( modeStr ) )
2222 {
23- modeStr = "edit " ;
23+ modeStr = "EditMode " ;
2424 }
2525
2626 if ( ! ModeParser . TryParse ( modeStr , out var parsedMode , out var parseError ) )
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ class RunTestsResponse(MCPResponse):
4141@mcp_for_unity_tool (description = "Runs Unity tests for the specified mode" )
4242async def run_tests (
4343 ctx : Context ,
44- mode : Annotated [Literal ["edit " , "play " ], Field (
45- description = "Unity test mode to run" )] = "edit " ,
44+ mode : Annotated [Literal ["EditMode " , "PlayMode " ], Field (
45+ description = "Unity test mode to run" )] = "EditMode " ,
4646 timeout_seconds : Annotated [str , Field (
4747 description = "Optional timeout in seconds for the Unity test run (string, e.g. '30')" )] | None = None ,
4848) -> RunTestsResponse :
You can’t perform that action at this time.
0 commit comments