Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
09661a8
refactor: Split ParseColorOrDefault into two overloads and change def…
msanatan Jan 7, 2026
e48879b
Auto-format Python code
msanatan Jan 7, 2026
69e62bb
Remove unused Python module
msanatan Jan 7, 2026
7ee51f6
Refactored VFX functionality into multiple files
msanatan Jan 7, 2026
e68fbb6
Rename ManageVfx folder to just Vfx
msanatan Jan 7, 2026
47ba35f
Clean up whitespace on plugin tools and resources
msanatan Jan 7, 2026
8321db2
Make ManageGameObject less of a monolith by splitting it out into dif…
msanatan Jan 7, 2026
c038996
Remove obsolete FindObjectByInstruction method
msanatan Jan 7, 2026
369c97f
Merge branch 'main' into pre-release-tidying
msanatan Jan 7, 2026
d83c439
refactor: Consolidate editor state resources into single canonical im…
msanatan Jan 7, 2026
0a95563
Validate editor state with Pydantic models in both C# and Python
msanatan Jan 7, 2026
bcbba05
Consolidate run_tests and run_tests_async into single async implement…
msanatan Jan 7, 2026
93f1084
Validate test job responses with Pydantic models in Python
msanatan Jan 7, 2026
88ed90a
Change resources URI from unity:// to mcpforunity://
msanatan Jan 7, 2026
07d1d9d
Update README with all tools + better listing for resources
msanatan Jan 7, 2026
c23412c
Update other references to resources
msanatan Jan 7, 2026
9569de6
Updated translated doc - unfortunately I cannot verify
msanatan Jan 7, 2026
21db63a
Update the Chinese translation of the dev docks
msanatan Jan 7, 2026
7e38e31
Change menu item from Setup Window to Local Setup Window
msanatan Jan 7, 2026
e155470
Fix URIs for menu items and tests
msanatan Jan 7, 2026
e03df44
Shouldn't have removed it
msanatan Jan 7, 2026
f12adda
Minor edits from CodeRabbit feedback
msanatan Jan 7, 2026
39c6234
Don't use reflection which takes longer
msanatan Jan 7, 2026
580af95
Fix failing python tests
msanatan Jan 7, 2026
9122e1e
Add serialization helpers for ParticleSystem curves and MinMaxCurve t…
msanatan Jan 7, 2026
98a261a
Use ctx param
msanatan Jan 7, 2026
93a6434
Update Server/src/services/tools/run_tests.py
msanatan Jan 7, 2026
89ea989
Minor fixes
msanatan Jan 7, 2026
0de9d2c
Rename anything EditorStateV2 to just EditorState
msanatan Jan 7, 2026
b3319a2
Make infer_single_instance_id public by removing underscore prefix
msanatan Jan 7, 2026
f270bee
Fix Python tests, again
msanatan Jan 7, 2026
07558e1
Replace AI generated .meta files with actual Unity ones
msanatan Jan 7, 2026
ce1fbc6
## Pre-Launch Enhancements: Testing Infrastructure & Tool Improvement…
dsarno Jan 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions MCPForUnity/Editor/Helpers/VectorParsing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,14 @@ public static Vector3 ParseVector3OrDefault(JToken token, Vector3 defaultValue =
}

/// <summary>
/// Parses a JToken into a Color, returning a default value if parsing fails.
/// Added for ManageVFX refactoring.
/// Parses a JToken into a Color, returning Color.white if parsing fails and no default is specified.
/// </summary>
public static Color ParseColorOrDefault(JToken token, Color defaultValue = default)
{
if (defaultValue == default) defaultValue = Color.black;
return ParseColor(token) ?? defaultValue;
}
public static Color ParseColorOrDefault(JToken token) => ParseColor(token) ?? Color.white;

/// <summary>
/// Parses a JToken into a Color, returning the specified default if parsing fails.
/// </summary>
public static Color ParseColorOrDefault(JToken token, Color defaultValue) => ParseColor(token) ?? defaultValue;

/// <summary>
/// Parses a JToken into a Vector4, returning a default value if parsing fails.
Expand Down
19 changes: 3 additions & 16 deletions MCPForUnity/Editor/Resources/Editor/EditorState.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System;
using MCPForUnity.Editor.Helpers;
using MCPForUnity.Editor.Services;
using Newtonsoft.Json.Linq;
using UnityEditor;
using UnityEditor.SceneManagement;

namespace MCPForUnity.Editor.Resources.Editor
{
Expand All @@ -16,20 +15,8 @@ public static object HandleCommand(JObject @params)
{
try
{
var activeScene = EditorSceneManager.GetActiveScene();
var state = new
{
isPlaying = EditorApplication.isPlaying,
isPaused = EditorApplication.isPaused,
isCompiling = EditorApplication.isCompiling,
isUpdating = EditorApplication.isUpdating,
timeSinceStartup = EditorApplication.timeSinceStartup,
activeSceneName = activeScene.name ?? "",
selectionCount = UnityEditor.Selection.count,
activeObjectName = UnityEditor.Selection.activeObject?.name
};

return new SuccessResponse("Retrieved editor state.", state);
var snapshot = EditorStateCache.GetSnapshot();
return new SuccessResponse("Retrieved editor state.", snapshot);
}
catch (Exception e)
{
Expand Down
29 changes: 0 additions & 29 deletions MCPForUnity/Editor/Resources/Editor/EditorStateV2.cs

This file was deleted.

1 change: 0 additions & 1 deletion MCPForUnity/Editor/Resources/Scene/GameObjectResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,3 @@ public static object HandleCommand(JObject @params)
}
}
}

Loading