-
Notifications
You must be signed in to change notification settings - Fork 0
Guides Mcp Local Setup
github-actions[bot] edited this page Jun 11, 2026
·
1 revision
This page covers machine-local MCP configuration for a Linux devcontainer with a Windows host relay.
These files contain machine-specific host and port values and are gitignored:
.vscode/mcp.json.mcp.json.cursor/mcp.json.codex/config.toml
Do not commit these files.
Create .env.local in repo root:
export UNITY_MCP_BRIDGE_HOST=YOUR_WINDOWS_HOST_IP
export UNITY_MCP_BRIDGE_PORT=9003
export UNITY_MCP_BRIDGE_PATH=/mcpOptional defaults used by scripts:
UNITY_MCP_DEFAULT_HOSTUNITY_MCP_DEFAULT_PORTUNITY_MCP_DEFAULT_PATH
Run from the devcontainer:
bash scripts/mcp/configure-unity-mcp-endpoint.shThis updates local MCP config files for VS Code, Claude Code, Cursor, and Codex.
See the official Unity Docs for more details.
$env:UNITY_MCP_RELAY_COMMAND = '<relay command from Unity MCP docs>'
pwsh -File scripts/mcp/start-unity-mcp-bridge.ps1 -Port 9003bash scripts/mcp/probe-unity-mcp-endpoint.sh YOUR_WINDOWS_HOST_IP 9003-
9003is the default fallback port in MCP helper scripts. - If your host uses a different port, set it in
.env.localor pass it as a script argument. - See scripts/mcp/README.md for script-level details.
- Getting-Started-Overview
- Getting-Started-Getting-Started
- Getting-Started-Install
- Getting-Started-Quick-Start
- Getting-Started-Visual-Guide
- Concepts-Message-Types
- Concepts-Listening-Patterns
- Concepts-Targeting-And-Context
- Concepts-Interceptors-And-Ordering
- Guides-Patterns
- Guides-Unity-Integration
- Guides-Testing
- Guides-Diagnostics
- Guides-Advanced
- Guides-Migration-Guide
- Advanced-Emit-Shorthands
- Advanced-Message-Bus-Providers
- Advanced-Runtime-Configuration
- Advanced-String-Messages
- Reference-Reference
- Reference-Quick-Reference
- Reference-Helpers
- Reference-Faq
- Reference-Glossary
- Reference-Troubleshooting
- Reference-Compatibility
Links