Skip to content

Commit e9b1ae4

Browse files
authored
Rename plugin folder to MCPForUnity (#303)
* Copy UnityMcpBridge into a new MCPForUnity folder This is to close #284 * refactor: rename UnityMcpBridge directory to MCPForUnity in docs * chore: rename UnityMcpBridge directory to MCPForUnity across workflow files * chore: rename UnityMcpBridge directory to MCPForUnity across all files * refactor: update import paths from UnityMcpBridge to MCPForUnity across test files * fix: update module import paths to use MCPForUnity instead of UnityMcpBridge * chore: update unity-mcp package path to MCPForUnity directory * feat: add OneTimeSetUp to initialize CommandRegistry before tests run Hopefully fix the CI failures * Apply recent fix to new folder * Temporarily trigger tests to see if CI works * Revert "Temporarily trigger tests to see if CI works" It works! This reverts commit 8c6eaaa.
1 parent ff73601 commit e9b1ae4

File tree

197 files changed

+26599
-55
lines changed

Some content is hidden

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

197 files changed

+26599
-55
lines changed

.github/workflows/bump-version.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
set -euo pipefail
3333
BUMP="${{ inputs.version_bump }}"
34-
CURRENT_VERSION=$(jq -r '.version' "UnityMcpBridge/package.json")
34+
CURRENT_VERSION=$(jq -r '.version' "MCPForUnity/package.json")
3535
echo "Current version: $CURRENT_VERSION"
3636
3737
IFS='.' read -r MA MI PA <<< "$CURRENT_VERSION"
@@ -63,15 +63,15 @@ jobs:
6363
run: |
6464
set -euo pipefail
6565
66-
echo "Updating UnityMcpBridge/package.json to $NEW_VERSION"
67-
jq ".version = \"${NEW_VERSION}\"" UnityMcpBridge/package.json > UnityMcpBridge/package.json.tmp
68-
mv UnityMcpBridge/package.json.tmp UnityMcpBridge/package.json
66+
echo "Updating MCPForUnity/package.json to $NEW_VERSION"
67+
jq ".version = \"${NEW_VERSION}\"" MCPForUnity/package.json > MCPForUnity/package.json.tmp
68+
mv MCPForUnity/package.json.tmp MCPForUnity/package.json
6969
70-
echo "Updating UnityMcpBridge/UnityMcpServer~/src/pyproject.toml to $NEW_VERSION"
71-
sed -i '0,/^version = ".*"/s//version = "'"$NEW_VERSION"'"/' "UnityMcpBridge/UnityMcpServer~/src/pyproject.toml"
70+
echo "Updating MCPForUnity/UnityMcpServer~/src/pyproject.toml to $NEW_VERSION"
71+
sed -i '0,/^version = ".*"/s//version = "'"$NEW_VERSION"'"/' "MCPForUnity/UnityMcpServer~/src/pyproject.toml"
7272
73-
echo "Updating UnityMcpBridge/UnityMcpServer~/src/server_version.txt to $NEW_VERSION"
74-
echo "$NEW_VERSION" > "UnityMcpBridge/UnityMcpServer~/src/server_version.txt"
73+
echo "Updating MCPForUnity/UnityMcpServer~/src/server_version.txt to $NEW_VERSION"
74+
echo "$NEW_VERSION" > "MCPForUnity/UnityMcpServer~/src/server_version.txt"
7575
7676
- name: Commit and push changes
7777
env:
@@ -81,7 +81,7 @@ jobs:
8181
set -euo pipefail
8282
git config user.name "GitHub Actions"
8383
git config user.email "actions@github.com"
84-
git add UnityMcpBridge/package.json "UnityMcpBridge/UnityMcpServer~/src/pyproject.toml" "UnityMcpBridge/UnityMcpServer~/src/server_version.txt"
84+
git add MCPForUnity/package.json "MCPForUnity/UnityMcpServer~/src/pyproject.toml" "MCPForUnity/UnityMcpServer~/src/server_version.txt"
8585
if git diff --cached --quiet; then
8686
echo "No version changes to commit."
8787
else

.github/workflows/claude-nl-suite.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ jobs:
5555
uv venv
5656
echo "VIRTUAL_ENV=$GITHUB_WORKSPACE/.venv" >> "$GITHUB_ENV"
5757
echo "$GITHUB_WORKSPACE/.venv/bin" >> "$GITHUB_PATH"
58-
if [ -f UnityMcpBridge/UnityMcpServer~/src/pyproject.toml ]; then
59-
uv pip install -e UnityMcpBridge/UnityMcpServer~/src
60-
elif [ -f UnityMcpBridge/UnityMcpServer~/src/requirements.txt ]; then
61-
uv pip install -r UnityMcpBridge/UnityMcpServer~/src/requirements.txt
62-
elif [ -f UnityMcpBridge/UnityMcpServer~/pyproject.toml ]; then
63-
uv pip install -e UnityMcpBridge/UnityMcpServer~/
64-
elif [ -f UnityMcpBridge/UnityMcpServer~/requirements.txt ]; then
65-
uv pip install -r UnityMcpBridge/UnityMcpServer~/requirements.txt
58+
if [ -f MCPForUnity/UnityMcpServer~/src/pyproject.toml ]; then
59+
uv pip install -e MCPForUnity/UnityMcpServer~/src
60+
elif [ -f MCPForUnity/UnityMcpServer~/src/requirements.txt ]; then
61+
uv pip install -r MCPForUnity/UnityMcpServer~/src/requirements.txt
62+
elif [ -f MCPForUnity/UnityMcpServer~/pyproject.toml ]; then
63+
uv pip install -e MCPForUnity/UnityMcpServer~/
64+
elif [ -f MCPForUnity/UnityMcpServer~/requirements.txt ]; then
65+
uv pip install -r MCPForUnity/UnityMcpServer~/requirements.txt
6666
else
6767
echo "No MCP Python deps found (skipping)"
6868
fi
@@ -285,7 +285,7 @@ jobs:
285285
"mcpServers": {
286286
"unity": {
287287
"command": "uv",
288-
"args": ["run","--active","--directory","UnityMcpBridge/UnityMcpServer~/src","python","server.py"],
288+
"args": ["run","--active","--directory","MCPForUnity/UnityMcpServer~/src","python","server.py"],
289289
"transport": { "type": "stdio" },
290290
"env": {
291291
"PYTHONUNBUFFERED": "1",

.github/workflows/unity-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [main]
66
paths:
77
- TestProjects/UnityMCPTests/**
8-
- UnityMcpBridge/Editor/**
8+
- MCPForUnity/Editor/**
99
- .github/workflows/unity-tests.yml
1010

1111
jobs:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ UnityMcpServer.meta
2525
# Unity Editor
2626
*.unitypackage
2727
*.asset
28-
UnityMcpBridge.meta
2928
LICENSE.meta
3029
CONTRIBUTING.md.meta
3130

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.

0 commit comments

Comments
 (0)