Connect Codex to Unity
Codex connects over Streamable HTTP, which nanora-unity-mcp serves at /mcp on the same port as SSE.
codex mcp add nanora-unity-mcp --url http://127.0.0.1:<PORT>/mcpOr add it to ~/.codex/config.toml:
[mcp_servers.nanora-unity-mcp]url = "http://127.0.0.1:<PORT>/mcp"Start a new Codex session afterwards; the setting is read when a session starts. Window > Unity MCP Server shows the port and has a Copy Codex setup command button that copies the command above with the current port.
Check the connection
Section titled “Check the connection”Node.js 20 or later is needed only for this check:
node scripts/mcp/verify-codex.mjsIt confirms that the installed Codex client can list and call the tools.
If it does not appear
Section titled “If it does not appear”- The URL must end in
/mcpand use the current port. - The
/mcpendpoint is stateless and answers in JSON; notifications get202.