Skip to content

Commit dc47536

Browse files
committed
Initial update
1 parent 7e57986 commit dc47536

18 files changed

Lines changed: 3151 additions & 0 deletions
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using System;
2+
using MCPForUnity.Editor.Helpers;
3+
using MCPForUnity.Editor.Tools.Input;
4+
using Newtonsoft.Json.Linq;
5+
6+
namespace MCPForUnity.Editor.Resources.Project
7+
{
8+
[McpForUnityResource("get_input_actions")]
9+
public static class InputActionsResource
10+
{
11+
public static object HandleCommand(JObject @params)
12+
{
13+
try
14+
{
15+
return InputAssetOps.GetInputActionsInfo(@params ?? new JObject());
16+
}
17+
catch (Exception e)
18+
{
19+
McpLog.Error($"[InputActionsResource] Error listing input actions: {e}");
20+
return new ErrorResponse($"Error listing input actions: {e.Message}");
21+
}
22+
}
23+
}
24+
}

MCPForUnity/Editor/Resources/Project/InputActionsResource.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MCPForUnity/Editor/Tools/Input.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)