0
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?

UE5.8のUnreal MCPを全プロジェクトでデフォルト有効&自動起動にする

0
Posted at

やりたいこと

UE5.8同梱の公式プラグイン Unreal MCP(ModelContextProtocol を、
プロジェクトごとに手動で有効化するのではなく、どのプロジェクトでも最初からON&サーバー自動起動にする。

エンジン側の3ファイルを書き換えるだけ。自分のローカル環境の全プロジェクトに効く(.uprojectには触れないので他の開発者には影響しない)。

前提

  • Unreal Engine 5.8
  • 対象は公式ネイティブの ModelContextProtocol プラグイン(Experimental)
  • Program Files 配下を編集するので管理者権限が必要

手順

1. Unreal MCP をデフォルト有効化

Engine/Plugins/Experimental/ModelContextProtocol/ModelContextProtocol.uplugin

"EnabledByDefault": true

2. All Toolsets をデフォルト有効化

MCP経由でツール群を使うため、Toolsetも合わせて有効化する。

Engine/Plugins/Experimental/Toolsets/AllToolsets/AllToolsets.uplugin

"EnabledByDefault": true

ToolsetRegistry などの依存プラグインは自動で有効化される。

3. サーバーを自動起動

ここがハマりどころ。自動起動フラグ bAutoStartServer
config=EditorPerProjectUserSettings(=プロジェクト単位設定)に保存される仕様なので、
GUIの Editor Preferences から変えても そのプロジェクトだけ にしか効かない。

全プロジェクト共通にするには、エンジンのBase iniにデフォルト値を書く

Engine/Config/BaseEditorPerProjectUserSettings.ini の末尾に追記:

[/Script/ModelContextProtocolEngine.ModelContextProtocolSettings]
bAutoStartServer=True

プラグインの自動起動判定はソース上こうなっている(-ModelContextProtocolStartServer 引数 → なければ設定値):

bool UE::ModelContextProtocol::ShouldAutoStartServer()
{
    if (FParse::Param(FCommandLine::Get(), TEXT("ModelContextProtocolStartServer")))
    {
        return true;
    }
    return GetDefault<UModelContextProtocolSettings>()->bAutoStartServer;
}

反映と確認

エディタを再起動すれば、どのプロジェクトを開いても自動でON&サーバー起動する。

  • Edit > Plugins → 「Unreal MCP」「All Toolsets」にチェックが入っている
  • Edit > Editor Preferences > Model Context Protocol → Auto Start Server がON
  • Output Log にサーバー起動ログが出る

注意

3ファイルともエンジンのExperimental領域なので、UEのアップデートや整合性チェック(verify)で上書きされると設定が戻る。その場合は再度同じ手順を実行すればOK。

0
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
0
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?