Skip to content

Commit 3f5bef1

Browse files
committed
* 'main' of https://github.com/CoplayDev/unity-mcp: chore: bump version to 8.1.4 Fix Claude Windows config and CLI status refresh (CoplayDev#412) chore: bump version to 8.1.3 fix: restrict fastmcp version to avoid potential KeyError (CoplayDev#411) chore: bump version to 8.1.2 Revert project script change chore: bump version to 8.1.1 Fix CLI entry point path in pyproject.toml (CoplayDev#407) Fix manage prefabs (CoplayDev#405) Remove automatic version bumping from README files and switch to unversioned git URLs chore: bump version to 8.1.0 Add distribution settings for Asset Store vs git defaults (CoplayDev#404) Add CodeBuddy CLI configurator (CoplayDev#403) Fix stdio reloads (CoplayDev#402) Simplify MCP client configs (CoplayDev#401) chore: bump version to 8.0.1
2 parents aeceec3 + 0d6c274 commit 3f5bef1

File tree

82 files changed

+2328
-1171
lines changed

Some content is hidden

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

82 files changed

+2328
-1171
lines changed

.github/workflows/bump-version.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,6 @@ jobs:
7070
echo "Updating Server/pyproject.toml to $NEW_VERSION"
7171
sed -i '0,/^version = ".*"/s//version = "'"$NEW_VERSION"'"/' "Server/pyproject.toml"
7272
73-
echo "Updating README.md version references to v$NEW_VERSION"
74-
sed -i 's|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v[0-9]\+\.[0-9]\+\.[0-9]\+|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v'"$NEW_VERSION"'|g' README.md
75-
sed -i 's|git+https://github.com/CoplayDev/unity-mcp@v[0-9]\+\.[0-9]\+\.[0-9]\+#subdirectory=Server|git+https://github.com/CoplayDev/unity-mcp@v'"$NEW_VERSION"'#subdirectory=Server|g' README.md
76-
77-
echo "Updating README-zh.md version references to v$NEW_VERSION"
78-
sed -i 's|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v[0-9]\+\.[0-9]\+\.[0-9]\+|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v'"$NEW_VERSION"'|g' README-zh.md
79-
sed -i 's|git+https://github.com/CoplayDev/unity-mcp@v[0-9]\+\.[0-9]\+\.[0-9]\+#subdirectory=Server|git+https://github.com/CoplayDev/unity-mcp@v'"$NEW_VERSION"'#subdirectory=Server|g' README-zh.md
80-
8173
echo "Updating Server/README.md version references to v$NEW_VERSION"
8274
sed -i 's|git+https://github.com/CoplayDev/unity-mcp@v[0-9]\+\.[0-9]\+\.[0-9]\+#subdirectory=Server|git+https://github.com/CoplayDev/unity-mcp@v'"$NEW_VERSION"'#subdirectory=Server|g' Server/README.md
8375
@@ -89,7 +81,7 @@ jobs:
8981
set -euo pipefail
9082
git config user.name "GitHub Actions"
9183
git config user.email "actions@github.com"
92-
git add MCPForUnity/package.json "Server/pyproject.toml" README.md README-zh.md Server/README.md
84+
git add MCPForUnity/package.json "Server/pyproject.toml" Server/README.md
9385
if git diff --cached --quiet; then
9486
echo "No version changes to commit."
9587
else

MCPForUnity/Editor/Clients.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/Clients/Configurators.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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using MCPForUnity.Editor.Constants;
5+
using MCPForUnity.Editor.Models;
6+
using UnityEditor;
7+
8+
namespace MCPForUnity.Editor.Clients.Configurators
9+
{
10+
public class AntigravityConfigurator : JsonFileMcpConfigurator
11+
{
12+
public AntigravityConfigurator() : base(new McpClient
13+
{
14+
name = "Antigravity",
15+
windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".gemini", "antigravity", "mcp_config.json"),
16+
macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".gemini", "antigravity", "mcp_config.json"),
17+
linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".gemini", "antigravity", "mcp_config.json"),
18+
HttpUrlProperty = "serverUrl",
19+
DefaultUnityFields = { { "disabled", false } },
20+
StripEnvWhenNotRequired = true
21+
})
22+
{ }
23+
24+
public override IList<string> GetInstallationSteps() => new List<string>
25+
{
26+
"Open Antigravity",
27+
"Click the more_horiz menu in the Agent pane > MCP Servers",
28+
"Select 'Install' for Unity MCP or use the Configure button above",
29+
"Restart Antigravity if necessary"
30+
};
31+
}
32+
}

MCPForUnity/Editor/Data/McpClients.cs.meta renamed to MCPForUnity/Editor/Clients/Configurators/AntigravityConfigurator.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using System.Collections.Generic;
2+
using MCPForUnity.Editor.Models;
3+
4+
namespace MCPForUnity.Editor.Clients.Configurators
5+
{
6+
public class ClaudeCodeConfigurator : ClaudeCliMcpConfigurator
7+
{
8+
public ClaudeCodeConfigurator() : base(new McpClient
9+
{
10+
name = "Claude Code",
11+
windowsConfigPath = string.Empty,
12+
macConfigPath = string.Empty,
13+
linuxConfigPath = string.Empty,
14+
})
15+
{ }
16+
17+
public override IList<string> GetInstallationSteps() => new List<string>
18+
{
19+
"Ensure Claude CLI is installed",
20+
"Use the Register button to register automatically\nOR manually run: claude mcp add UnityMCP",
21+
"Restart Claude Code"
22+
};
23+
}
24+
}

MCPForUnity/Editor/Models/McpTypes.cs.meta renamed to MCPForUnity/Editor/Clients/Configurators/ClaudeCodeConfigurator.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using MCPForUnity.Editor.Constants;
5+
using MCPForUnity.Editor.Models;
6+
using UnityEditor;
7+
8+
namespace MCPForUnity.Editor.Clients.Configurators
9+
{
10+
public class ClaudeDesktopConfigurator : JsonFileMcpConfigurator
11+
{
12+
public const string ClientName = "Claude Desktop";
13+
14+
public ClaudeDesktopConfigurator() : base(new McpClient
15+
{
16+
name = ClientName,
17+
windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Claude", "claude_desktop_config.json"),
18+
macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Application Support", "Claude", "claude_desktop_config.json"),
19+
linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".config", "Claude", "claude_desktop_config.json"),
20+
SupportsHttpTransport = false,
21+
StripEnvWhenNotRequired = true
22+
})
23+
{ }
24+
25+
public override IList<string> GetInstallationSteps() => new List<string>
26+
{
27+
"Open Claude Desktop",
28+
"Go to Settings > Developer > Edit Config\nOR open the config path",
29+
"Paste the configuration JSON",
30+
"Save and restart Claude Desktop"
31+
};
32+
33+
public override void Configure()
34+
{
35+
bool useHttp = EditorPrefs.GetBool(EditorPrefKeys.UseHttpTransport, true);
36+
if (useHttp)
37+
{
38+
throw new InvalidOperationException("Claude Desktop does not support HTTP transport. Switch to stdio in settings before configuring.");
39+
}
40+
41+
base.Configure();
42+
}
43+
44+
public override string GetManualSnippet()
45+
{
46+
bool useHttp = EditorPrefs.GetBool(EditorPrefKeys.UseHttpTransport, true);
47+
if (useHttp)
48+
{
49+
return "# Claude Desktop does not support HTTP transport.\n" +
50+
"# Open Advanced Settings and disable HTTP transport to use stdio, then regenerate.";
51+
}
52+
53+
return base.GetManualSnippet();
54+
}
55+
}
56+
}

MCPForUnity/Editor/Clients/Configurators/ClaudeDesktopConfigurator.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: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using MCPForUnity.Editor.Models;
5+
6+
namespace MCPForUnity.Editor.Clients.Configurators
7+
{
8+
/// <summary>
9+
/// Configures the CodeBuddy CLI (~/.codebuddy.json) MCP settings.
10+
/// </summary>
11+
public class CodeBuddyCliConfigurator : JsonFileMcpConfigurator
12+
{
13+
public CodeBuddyCliConfigurator() : base(new McpClient
14+
{
15+
name = "CodeBuddy CLI",
16+
windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codebuddy.json"),
17+
macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codebuddy.json"),
18+
linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codebuddy.json"),
19+
})
20+
{ }
21+
22+
public override IList<string> GetInstallationSteps() => new List<string>
23+
{
24+
"Install CodeBuddy CLI and ensure '~/.codebuddy.json' exists",
25+
"Click Configure to add the UnityMCP entry (or manually edit the file above)",
26+
"Restart your CLI session if needed"
27+
};
28+
}
29+
}

0 commit comments

Comments
 (0)