Unity MCP
mcpother deprecatedio.github.isuzu-shiranui/unity-mcp · v4.1.0 · deprecated
Drive a running Unity Editor from an AI agent. The Editor serves MCP; this bridges stdio to it.
run it
on your own machines, one way per deploy methodgenerated from the record, not tested yet
#!/usr/bin/env bash # unity (io.github.isuzu-shiranui/unity-mcp), recipe baremetal (generated). # Generated by Hub for toolset "my-agent"; started by mcp-my-agent-unity.service. set -euo pipefail export HOST=127.0.0.1 PORT=8101 exec uvx mcp-proxy --host 127.0.0.1 --port 8101 --pass-environment -- dnx [email protected] --yes [Unit] Description=MCP server unity (toolset my-agent), generated by Hub After=network-online.target Wants=network-online.target [Service] Type=simple User=mcp Group=mcp EnvironmentFile=/etc/mcp/my-agent.env Environment=HOME=/var/lib/mcp/unity WorkingDirectory=/var/lib/mcp/unity ExecStart=/opt/mcp/my-agent/bin/unity.sh Restart=on-failure RestartSec=5 NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true ReadWritePaths=/var/lib/mcp/unity [Install] WantedBy=multi-user.target
connect to it
copy what your client needsdnx [email protected] --yes # env: UNITY_MCP_STATE_DIR, UNITY_MCP_HOST
{
"mcpServers": {
"unity": {
"command": "dnx",
"args": [
"[email protected]",
"--yes"
],
"env": {
"UNITY_MCP_STATE_DIR": "${UNITY_MCP_STATE_DIR}",
"UNITY_MCP_HOST": "${UNITY_MCP_HOST}"
}
}
}
}
#!/usr/bin/env bash
# Registers every server with Claude Code (run once; `claude mcp list` to check).
set -euo pipefail
set -a; [ -f .env ] && source .env; set +a
claude mcp add unity -e "UNITY_MCP_STATE_DIR=${UNITY_MCP_STATE_DIR}" -e "UNITY_MCP_HOST=${UNITY_MCP_HOST}" -- dnx [email protected] --yes
{
"mcpServers": {
"unity": {
"command": "dnx",
"args": [
"[email protected]",
"--yes"
],
"env": {
"UNITY_MCP_STATE_DIR": "${UNITY_MCP_STATE_DIR}",
"UNITY_MCP_HOST": "${UNITY_MCP_HOST}"
}
}
}
}
{
"servers": {
"unity": {
"type": "stdio",
"command": "dnx",
"args": [
"[email protected]",
"--yes"
],
"env": {
"UNITY_MCP_STATE_DIR": "${UNITY_MCP_STATE_DIR}",
"UNITY_MCP_HOST": "${UNITY_MCP_HOST}"
}
}
}
}
name: my-agent target: local servers: - hub: io.github.isuzu-shiranui/unity-mcp
- trust flag: deprecated
- not probed yet: tools unpinned, ingest lists them
tools
Not probed yetThe tools appear once the hub or its worker has listed this entry. Running it still works: your client lists them on first start.