1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【備忘録】Unity MCPにClaude Codeからつながらないなら2.6.0-pre.1にダウングレードしろ!!

1
Posted at

はじめに

UnityをClaude COdeで動かせると聞いて試してみたが、どうしてもうまくつながらない。
3時間ぐらい格闘した結果、ChatGPTが導き出した答えは、
タイトルの通り、Unity MPCにClaude Codeからつながらないなら2.6.0-pre.1にダウングレードすれば解決します。

状況

環境: Windows 11、Unity 6000.4.11f1、Claude Code(claude.exe)から Unity MCP(unity-mcp サーバー)経由でUnity Editorを操作したい。
やったこと: Unity MCPをインストール・設定し、Unity Editor の Project Settings > AI > Unity MCP を開いた。
接続状態: 「Other Connections」に2つのクライアントが表示され、両方とも緑のドットで Accepted("1 min ago")になっている。
claude-code(claude.exe)— Accepted
local-agent-mode-unity-mcp(Claude.exe)— Accepted
問題: それでもClaude CodeからUnity MCPのツール(例: GetState, GetActiveScene, GetProjectData など)を呼ぶと、毎回必ず次のエラーが返る:
{
"success": false,
"error": "Connection revoked. Go to Unity Editor > Project Settings > AI > Unity MCP to change approval."
}
一度 Approve に切り替え、再テストしても変わらない。最初は実際に Revoked 状態だったので Approve に変えたら、UI上は Accepted になったが、ツール呼び出しは依然 Connection revoked のまま。
複数回リトライしても同じ。コマンド自体はUnityに届いている(だからエラーが返る)が、接続が承認済みとして扱われていない。
質問
Unity MCP で、設定画面上は接続が Accepted(緑)になっているのに、ツール呼び出しが必ず "Connection revoked. Go to Unity Editor > Project Settings > AI > Unity MCP to change approval." というエラーを返し続けます。

解決策

com.unity.ai.assistantを2.6.0-pre.1にダウングレードする。
WIndow → Package Management → Package Manager

image.png

Assistantを開き、See other Versionsをクリック
image.png

2.6.0の部分をUpdateボタンを押す(アップデート済みなので画像はremoveになっています。)
image.png

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?