Skip to content

Commit ae6e1cd

Browse files
committed
fix(server): update Zod imports and upgrade package to resolve schema errors; change(server): remove Server meta files by renaming Server to Server~ as Unity will ignore folders with ~ suffix
1 parent fe27f2b commit ae6e1cd

File tree

3,975 files changed

+315
-15066
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,975 files changed

+315
-15066
lines changed

Editor/UnityBridge/McpUnityEditorWindow.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,12 @@ private void DrawHelpTab()
359359
EditorGUILayout.EndVertical();
360360
EditorGUILayout.Space();
361361

362-
// notify_message
363-
WrappedLabel("notify_message", EditorStyles.boldLabel);
364-
WrappedLabel("Displays messages in the Unity Editor console");
362+
// send_console_log
363+
WrappedLabel("send_console_log", EditorStyles.boldLabel);
364+
WrappedLabel("Sends console logs to the Unity Editor console");
365365
EditorGUILayout.BeginVertical(EditorStyles.helpBox);
366366
EditorGUILayout.LabelField("Example prompt:", EditorStyles.miniLabel);
367-
WrappedLabel("Send a notification to Unity that the task has been completed", new GUIStyle(EditorStyles.miniLabel) { fontStyle = FontStyle.Italic });
367+
WrappedLabel("Send a console log to Unity that the task has been completed", new GUIStyle(EditorStyles.miniLabel) { fontStyle = FontStyle.Italic });
368368
EditorGUILayout.EndVertical();
369369
EditorGUILayout.Space();
370370

Editor/Utils/McpConfigUtils.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static string GetServerPath()
7070

7171
if (packageInfo != null && !string.IsNullOrEmpty(packageInfo.resolvedPath))
7272
{
73-
return Path.Combine(packageInfo.resolvedPath, "Server");
73+
return Path.Combine(packageInfo.resolvedPath, "Server~");
7474
}
7575

7676
var assets = AssetDatabase.FindAssets("tsconfig");
@@ -88,7 +88,7 @@ public static string GetServerPath()
8888
string relativePath = AssetDatabase.GUIDToAssetPath(assetJson);
8989
string fullPath = Path.GetFullPath(Path.Combine(Application.dataPath, "..", relativePath));
9090

91-
if(Path.GetFileName(Path.GetDirectoryName(fullPath)) == "Server")
91+
if(Path.GetFileName(Path.GetDirectoryName(fullPath)) == "Server~")
9292
{
9393
return Path.GetDirectoryName(fullPath);
9494
}
@@ -281,9 +281,9 @@ private static string GetCursorConfigPath()
281281
}
282282
else if (Application.platform == RuntimePlatform.OSXEditor)
283283
{
284-
// macOS: ~/Library/Application Support/.cursor
284+
// macOS: ~/.cursor
285285
string homeDir = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
286-
basePath = Path.Combine(homeDir, "Library", "Application Support", ".cursor");
286+
basePath = Path.Combine(homeDir, ".cursor");
287287
}
288288
else
289289
{

README-ja.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ AIクライアントのMCP設定ファイル(例:Claude Desktopのclaude_des
185185
"mcp-unity": {
186186
"command": "node",
187187
"args": [
188-
"ABSOLUTE/PATH/TO/mcp-unity/Server/build/index.js"
188+
"ABSOLUTE/PATH/TO/mcp-unity/Server~/build/index.js"
189189
]
190190
}
191191
}
@@ -208,7 +208,7 @@ MCP Unityサーバーを起動するには2つの方法があります:
208208
2. MCP Unityサーバーディレクトリに移動
209209
3. 以下のコマンドを実行:
210210
```bash
211-
node Server/build/index.js
211+
node Server~/build/index.js
212212
```
213213

214214
## オプション: タイムアウト設定

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Open the MCP configuration file of your AI client (e.g. claude_desktop_config.js
185185
"mcp-unity": {
186186
"command": "node",
187187
"args": [
188-
"ABSOLUTE/PATH/TO/mcp-unity/Server/build/index.js"
188+
"ABSOLUTE/PATH/TO/mcp-unity/Server~/build/index.js"
189189
]
190190
}
191191
}
@@ -293,7 +293,7 @@ To build the server, open a terminal and:
293293

294294
1. Navigate to the Server directory:
295295
```bash
296-
cd ABSOLUTE/PATH/TO/mcp-unity/Server
296+
cd ABSOLUTE/PATH/TO/mcp-unity/Server~
297297
```
298298

299299
2. Install dependencies:
@@ -319,11 +319,11 @@ To build the server, open a terminal and:
319319
Debug the server with [@modelcontextprotocol/inspector](https://github.com/modelcontextprotocol/inspector):
320320
- Powershell
321321
```powershell
322-
npx @modelcontextprotocol/inspector node Server/build/index.js
322+
npx @modelcontextprotocol/inspector node Server~/build/index.js
323323
```
324324
- Command Prompt/Terminal
325325
```cmd
326-
npx @modelcontextprotocol/inspector node Server/build/index.js
326+
npx @modelcontextprotocol/inspector node Server~/build/index.js
327327
```
328328

329329
Don't forget to shutdown the server with `Ctrl + C` before closing the terminal or debugging it with the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).

README_zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ MCP Unity 通过将 Unity `Library/PackedCache` 文件夹添加到您的工作
187187
"mcp-unity": {
188188
"command": "node",
189189
"args": [
190-
"ABSOLUTE/PATH/TO/mcp-unity/Server/build/index.js"
190+
"ABSOLUTE/PATH/TO/mcp-unity/Server~/build/index.js"
191191
]
192192
}
193193
}
@@ -210,7 +210,7 @@ MCP Unity 通过将 Unity `Library/PackedCache` 文件夹添加到您的工作
210210
2. 导航到 MCP Unity 服务器目录
211211
3. 运行以下命令:
212212
```bash
213-
node Server/build/index.js
213+
node Server~/build/index.js
214214
```
215215

216216
## 可选:设置超时

Server.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

Server/Dockerfile.meta

Lines changed: 0 additions & 7 deletions
This file was deleted.

Server/build.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

Server/build/index.d.ts.meta

Lines changed: 0 additions & 7 deletions
This file was deleted.

Server/build/index.js.meta

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)