Skip to content

Commit 650b714

Browse files
committed
Copy UnityMcpBridge into a new MCPForUnity folder
This is to close #284
1 parent 5488af2 commit 650b714

File tree

165 files changed

+26536
-0
lines changed

Some content is hidden

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

165 files changed

+26536
-0
lines changed

MCPForUnity/Editor.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.

MCPForUnity/Editor/AssemblyInfo.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using System.Runtime.CompilerServices;
2+
3+
[assembly: InternalsVisibleTo("MCPForUnityTests.EditMode")]

MCPForUnity/Editor/AssemblyInfo.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/Data.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.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using MCPForUnity.Editor.Models;
2+
3+
namespace MCPForUnity.Editor.Data
4+
{
5+
public class DefaultServerConfig : ServerConfig
6+
{
7+
public new string unityHost = "localhost";
8+
public new int unityPort = 6400;
9+
public new int mcpPort = 6500;
10+
public new float connectionTimeout = 15.0f;
11+
public new int bufferSize = 32768;
12+
public new string logLevel = "INFO";
13+
public new string logFormat = "%(asctime)s - %(name)s - %(levelname)s - %(message)s";
14+
public new int maxRetries = 3;
15+
public new float retryDelay = 1.0f;
16+
}
17+
}

MCPForUnity/Editor/Data/DefaultServerConfig.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.
Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Runtime.InteropServices;
5+
using MCPForUnity.Editor.Models;
6+
7+
namespace MCPForUnity.Editor.Data
8+
{
9+
public class McpClients
10+
{
11+
public List<McpClient> clients = new()
12+
{
13+
// 1) Cursor
14+
new()
15+
{
16+
name = "Cursor",
17+
windowsConfigPath = Path.Combine(
18+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
19+
".cursor",
20+
"mcp.json"
21+
),
22+
macConfigPath = Path.Combine(
23+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
24+
".cursor",
25+
"mcp.json"
26+
),
27+
linuxConfigPath = Path.Combine(
28+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
29+
".cursor",
30+
"mcp.json"
31+
),
32+
mcpType = McpTypes.Cursor,
33+
configStatus = "Not Configured",
34+
},
35+
// 2) Claude Code
36+
new()
37+
{
38+
name = "Claude Code",
39+
windowsConfigPath = Path.Combine(
40+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
41+
".claude.json"
42+
),
43+
macConfigPath = Path.Combine(
44+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
45+
".claude.json"
46+
),
47+
linuxConfigPath = Path.Combine(
48+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
49+
".claude.json"
50+
),
51+
mcpType = McpTypes.ClaudeCode,
52+
configStatus = "Not Configured",
53+
},
54+
// 3) Windsurf
55+
new()
56+
{
57+
name = "Windsurf",
58+
windowsConfigPath = Path.Combine(
59+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
60+
".codeium",
61+
"windsurf",
62+
"mcp_config.json"
63+
),
64+
macConfigPath = Path.Combine(
65+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
66+
".codeium",
67+
"windsurf",
68+
"mcp_config.json"
69+
),
70+
linuxConfigPath = Path.Combine(
71+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
72+
".codeium",
73+
"windsurf",
74+
"mcp_config.json"
75+
),
76+
mcpType = McpTypes.Windsurf,
77+
configStatus = "Not Configured",
78+
},
79+
// 4) Claude Desktop
80+
new()
81+
{
82+
name = "Claude Desktop",
83+
windowsConfigPath = Path.Combine(
84+
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
85+
"Claude",
86+
"claude_desktop_config.json"
87+
),
88+
89+
macConfigPath = Path.Combine(
90+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
91+
"Library",
92+
"Application Support",
93+
"Claude",
94+
"claude_desktop_config.json"
95+
),
96+
linuxConfigPath = Path.Combine(
97+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
98+
".config",
99+
"Claude",
100+
"claude_desktop_config.json"
101+
),
102+
103+
mcpType = McpTypes.ClaudeDesktop,
104+
configStatus = "Not Configured",
105+
},
106+
// 5) VSCode GitHub Copilot
107+
new()
108+
{
109+
name = "VSCode GitHub Copilot",
110+
// Windows path is canonical under %AppData%\Code\User
111+
windowsConfigPath = Path.Combine(
112+
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
113+
"Code",
114+
"User",
115+
"mcp.json"
116+
),
117+
// macOS: ~/Library/Application Support/Code/User/mcp.json
118+
macConfigPath = Path.Combine(
119+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
120+
"Library",
121+
"Application Support",
122+
"Code",
123+
"User",
124+
"mcp.json"
125+
),
126+
// Linux: ~/.config/Code/User/mcp.json
127+
linuxConfigPath = Path.Combine(
128+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
129+
".config",
130+
"Code",
131+
"User",
132+
"mcp.json"
133+
),
134+
mcpType = McpTypes.VSCode,
135+
configStatus = "Not Configured",
136+
},
137+
// 3) Kiro
138+
new()
139+
{
140+
name = "Kiro",
141+
windowsConfigPath = Path.Combine(
142+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
143+
".kiro",
144+
"settings",
145+
"mcp.json"
146+
),
147+
macConfigPath = Path.Combine(
148+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
149+
".kiro",
150+
"settings",
151+
"mcp.json"
152+
),
153+
linuxConfigPath = Path.Combine(
154+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
155+
".kiro",
156+
"settings",
157+
"mcp.json"
158+
),
159+
mcpType = McpTypes.Kiro,
160+
configStatus = "Not Configured",
161+
},
162+
// 4) Codex CLI
163+
new()
164+
{
165+
name = "Codex CLI",
166+
windowsConfigPath = Path.Combine(
167+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
168+
".codex",
169+
"config.toml"
170+
),
171+
macConfigPath = Path.Combine(
172+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
173+
".codex",
174+
"config.toml"
175+
),
176+
linuxConfigPath = Path.Combine(
177+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
178+
".codex",
179+
"config.toml"
180+
),
181+
mcpType = McpTypes.Codex,
182+
configStatus = "Not Configured",
183+
},
184+
};
185+
186+
// Initialize status enums after construction
187+
public McpClients()
188+
{
189+
foreach (var client in clients)
190+
{
191+
if (client.configStatus == "Not Configured")
192+
{
193+
client.status = McpStatus.NotConfigured;
194+
}
195+
}
196+
}
197+
}
198+
}

MCPForUnity/Editor/Data/McpClients.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/Dependencies.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)