Skip to content

Commit 6ed7a35

Browse files
committed
* 'main' of https://github.com/CoplayDev/unity-mcp: Harden PlayMode test runs (CoplayDev#396) Enable the `rmcp_client` feature so it works with Codex CLI (CoplayDev#395) chore: bump version to 8.0.0 HTTP Server, uvx, C# only custom tools (CoplayDev#375) [CUSTOM TOOLS] Roslyn Runtime Compilation Feature (CoplayDev#371)
2 parents 5939d23 + 2f50962 commit 6ed7a35

File tree

356 files changed

+14719
-19562
lines changed

Some content is hidden

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

356 files changed

+14719
-19562
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Server/build
2+
.git
3+
.venv
4+
__pycache__
5+
*.pyc
6+
.DS_Store

.github/workflows/bump-version.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,19 @@ jobs:
6767
jq ".version = \"${NEW_VERSION}\"" MCPForUnity/package.json > MCPForUnity/package.json.tmp
6868
mv MCPForUnity/package.json.tmp MCPForUnity/package.json
6969
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"
70+
echo "Updating Server/pyproject.toml to $NEW_VERSION"
71+
sed -i '0,/^version = ".*"/s//version = "'"$NEW_VERSION"'"/' "Server/pyproject.toml"
7272
73-
echo "Updating MCPForUnity/UnityMcpServer~/src/server_version.txt to $NEW_VERSION"
74-
echo "$NEW_VERSION" > "MCPForUnity/UnityMcpServer~/src/server_version.txt"
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+
81+
echo "Updating Server/README.md version references to v$NEW_VERSION"
82+
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
7583
7684
- name: Commit and push changes
7785
env:
@@ -81,7 +89,7 @@ jobs:
8189
set -euo pipefail
8290
git config user.name "GitHub Actions"
8391
git config user.email "actions@github.com"
84-
git add MCPForUnity/package.json "MCPForUnity/UnityMcpServer~/src/pyproject.toml" "MCPForUnity/UnityMcpServer~/src/server_version.txt"
92+
git add MCPForUnity/package.json "Server/pyproject.toml" README.md README-zh.md Server/README.md
8593
if git diff --cached --quiet; then
8694
echo "No version changes to commit."
8795
else

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,13 @@ jobs:
5555
uv venv
5656
echo "VIRTUAL_ENV=$GITHUB_WORKSPACE/.venv" >> "$GITHUB_ENV"
5757
echo "$GITHUB_WORKSPACE/.venv/bin" >> "$GITHUB_PATH"
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
58+
if [ -f Server/pyproject.toml ]; then
59+
uv pip install -e Server
60+
elif [ -f Server/requirements.txt ]; then
61+
uv pip install -r Server/requirements.txt
62+
else
63+
echo "No MCP Python deps found (skipping)"
64+
fi
6665
else
6766
echo "No MCP Python deps found (skipping)"
6867
fi
@@ -217,7 +216,7 @@ jobs:
217216
-stackTraceLogType Full \
218217
-projectPath /workspace/TestProjects/UnityMCPTests \
219218
"${manual_args[@]}" \
220-
-executeMethod MCPForUnity.Editor.MCPForUnityBridge.StartAutoConnect
219+
-executeMethod MCPForUnity.Editor.Services.Transport.Transports.StdioBridgeHost.StartAutoConnect
221220
222221
# ---------- Wait for Unity bridge ----------
223222
- name: Wait for Unity bridge (robust)
@@ -285,7 +284,7 @@ jobs:
285284
"mcpServers": {
286285
"unity": {
287286
"command": "uv",
288-
"args": ["run","--active","--directory","MCPForUnity/UnityMcpServer~/src","python","server.py"],
287+
"args": ["run","--active","--directory","Server","python","server.py"],
289288
"transport": { "type": "stdio" },
290289
"env": {
291290
"PYTHONUNBUFFERED": "1",

.github/workflows/python-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: ["**"]
66
paths:
7-
- MCPForUnity/UnityMcpServer~/src/**
7+
- Server/**
88
- .github/workflows/python-tests.yml
99
workflow_dispatch: {}
1010

@@ -26,13 +26,13 @@ jobs:
2626

2727
- name: Install dependencies
2828
run: |
29-
cd MCPForUnity/UnityMcpServer~/src
29+
cd Server
3030
uv sync
3131
uv pip install -e ".[dev]"
3232
3333
- name: Run tests
3434
run: |
35-
cd MCPForUnity/UnityMcpServer~/src
35+
cd Server
3636
uv run pytest tests/ -v --tb=short
3737
3838
- name: Upload test results
@@ -41,5 +41,5 @@ jobs:
4141
with:
4242
name: pytest-results
4343
path: |
44-
MCPForUnity/UnityMcpServer~/src/.pytest_cache/
45-
MCPForUnity/UnityMcpServer~/src/tests/
44+
Server/.pytest_cache/
45+
Server/tests/

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ build/
1616
dist/
1717
wheels/
1818
*.egg-info
19-
UnityMcpServer/**/*.meta
20-
UnityMcpServer.meta
2119

2220
# Virtual environments
2321
.venv

0 commit comments

Comments
 (0)