Codex CLIでUnity MCPを使う方法とConnection revokedの原因This article explains how to connect Unity MCP to Codex CLI and identifies the…
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy
- Codex CLIからUnity MCPサーバーを接続する手順を解説し、Connection revokedエラーが発生する原因と対処法を明らかにした実践的な記事。
- Unity開発にAIエージェントを組み込む際のトラブルシュートに役立つ。
- This article explains how to connect Unity MCP to Codex CLI and identifies the root causes of the "Connection revoked" error that developers encounter.
- It provides practical troubleshooting steps for integrating AI agents into Unity workflows.
本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (zenn.dev) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (zenn.dev).
要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.
Unity MCP
本記事は、公式のUnity MCPをCodex CLIから利用する構成について、導入手順と接続時のトラブルをまとめたものだ。UnityをAIエージェントから直接操作するための接続方法に加え、承認後にも接続が拒まれる挙動を扱っている。
Unity側では、Unity EditorのPackage Managerを開き、テクニカルネームを指定してパッケージをインストールする。導入自体は「そこまで難しくなかった」と説明されており、Codex CLIからUnity MCPサーバーを接続して使う流れが示される。
原因の調査
問題は、接続後に「さっき承認したはずなのになぜか弾かれる」という挙動だ。記事ではこれを「Connection revoked」エラーとして取り上げ、原因の調査結果と対処法を示している。導入だけでなく、接続承認後に失敗する場合のトラブルシュートまでを対象としている。
Unity MCP and Codex CLI
This article explains how to connect the official Unity MCP to Codex CLI so an AI agent can operate Unity directly. The setup matters because a connection may appear approved, yet later be rejected with a “Connection revoked” error.
Unity Editor Package Manager
The configuration uses Codex CLI to call the Unity MCP server. On the Unity side, preparation begins in the Unity Editor’s Package Manager, where the package is installed by specifying its technical name. According to the source, the installation itself was not especially difficult.
Connection revoked
The main troubleshooting focus is what happens after connection: despite approval apparently having just been granted, the connection is rejected. The article records the installation procedure alongside the results of investigating this behavior. According to the summary, it identifies the causes of the “Connection revoked” error and provides practical troubleshooting steps and countermeasures for integrating AI agents into Unity workflows.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPokoこれは普段のUnity開発の何が変わるの?Codex CLIから、そのまま操作できるようになるのかな。What changes in everyday Unity development? Can you work with Unity directly from Codex CLI?
- TECHガイドTECH GuideCodex CLIをUnity MCPへつなぎ、AIエージェントからUnityを直接操作する流れになるよ。Unity側をRunningにすると接続が確立する。The setup connects Codex CLI to Unity MCP, letting an AI agent operate Unity directly. The connection starts when UnityMCPServer is set to Running.
- ポコPoko前はできなかったの?それとも、接続はできてもAcceptした操作がまた拒否されるのが問題だったのかな。Was that impossible before? Or was the real problem that a connection worked, but an accepted action could later be rejected again?
- TECHガイドTECH Guide以前の方式との比較は書かれていないよ。ここで起きたのは、保存履歴がAcceptedになっても、Deniedのアクティブ接続が更新されない問題なんだ。The article doesn’t compare this with an older method. The issue was that saved approval changed to Accepted while an active Denied connection remained unchanged.
- ポコPokoなるほど。導入手順だけじゃなく、画面では見えないDeniedの接続がConnection revokedの原因だと分かったのが収穫なんだね。Got it. The key takeaway isn’t just the setup—it’s that a hidden Denied connection can cause “Connection revoked.”
- TECHガイドTECH Guideそうだね。次は、Settings UIのAccepted表示だけでなく、許可変更が実際のアクティブ接続へ反映されたかに注目したいね。Right. Next, pay attention not only to the Accepted status in Settings UI, but also to whether the permission change reached the active connection.




