VF

veradictus/flaxmcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

11 stars 3 forks 品質 68 トレンド 26

オープンソースのフラックスゲームエンジン用のMCPサーバー.

概要

フラックスエンジン用MCPサーバー シーン管理、アセットパイプライン、マテリアル、物理、アニメーション、レンダリングなどの HTTP 上で Flax エディタを制御できます。 localhost:9100 のエディタプラグインとして実行します。 MCP プロトコル (JSON-RPC 2.0) と REST エンドポイントの両方をサポート エディタモジュール内のサブモジュールとして FlaxMCP を追加します。 エディタプラグインからサーバーを起動します。 また、これらのシステムリファレンスをエディタモジュールのBuild.csに追加する必要があります。Fluxにはデフォルトでは含まれていません。 以下のツールは、MCP エンドポイント http://localhost:9100/mcp. で動作します。 フラックスエディタは、サーバーが到達できるように開く必要があります。 リモート HTTP サーバは UI で追加する必要があります。 config ファイルを代わりに読みたい場合は、mcp-remote でブリッジできます。 設定パス: ~/ Library/Application Support/Claude/claude desktop config.json (macOS) または %APPDATA%\Claude\claude desktop config.json (Windows)

概要(AI 翻訳)

フラックスエンジン用MCPサーバー シーン管理、アセットパイプライン、マテリアル、物理、アニメーション、レンダリングなど、AI エージェントが HTTP 上で Flax エディタを制御できるようにします。

[localhost:9100]のエディタプラグインとして実行します。 MCP プロトコル (JSON-RPC 2.0) と REST エンドポイントの両方をサポート

セットアップ

##フラックスプロジェクト

エディタモジュール内のサブモジュールとして FlaxMCP を追加します。

エディタプラグインからサーバーを起動します。

また、これらのシステムリファレンスをエディタモジュールの[Build.csに追加する必要があります。 Flaxはデフォルトでは含まれていません。

エージェントの構成

以下のツールは、MCP エンドポイント http://localhost:9100/mcp で動作します。 フラックスエディタは、サーバーが到達できるように開く必要があります。

クローデコード

~/.claude.json に手動で追加するか:

####Claudeデスクトップ

リモート HTTP サーバは、Customize > Connectors の下で UI を介して追加する必要があります。 config ファイルを代わりに読みたい場合は、[mcp-remote] でブリッジできます。

設定パス: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) または [[T6] (Windows)

カーソル

設定パス: ~/.cursor/mcp.json (グローバル) または `.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

FlaxMCP

MCP server for Flax Engine. Lets AI agents control the Flax Editor over HTTP with 90 tools for scene management, asset pipelines, materials, physics, animation, rendering, and more.

Runs as an editor plugin on localhost:9100. Supports both the MCP protocol (JSON-RPC 2.0) and plain REST endpoints.

Setup

Flax Project

Add FlaxMCP as a submodule inside your editor module:

cd YourProject
git submodule add [email protected]:Veradictus/FlaxMCP.git Source/GameEditor/FlaxMCP

Start the server from your editor plugin:

using FlaxEditor;
using FlaxMCP;

public class MyEditorPlugin : EditorPlugin
{
    private McpServer _mcpServer;

    public override void InitializeEditor()
    {
        base.InitializeEditor();
        _mcpServer = new McpServer();
        _mcpServer.Start();
    }

    public override void DeinitializeEditor()
    {
        _mcpServer?.Dispose();
        base.DeinitializeEditor();
    }
}

You’ll also need to add these system references in your editor module’s Build.cs since Flax doesn’t include them by default:

public override void Setup(BuildOptions options)
{
    base.Setup(options);
    options.ScriptingAPI.SystemReferences.Add("System.Net.HttpListener");
    options.ScriptingAPI.SystemReferences.Add("System.Threading.ThreadPool");
    options.ScriptingAPI.SystemReferences.Add("System.Net.WebHeaderCollection");
    options.ScriptingAPI.SystemReferences.Add("Microsoft.Win32.Primitives");
}

Agent Configuration

Every tool below works through the MCP endpoint at http://localhost:9100/mcp. The Flax Editor needs to be open for the server to be reachable.

Claude Code

claude mcp add --transport http --scope user flax-mcp http://localhost:9100/mcp

Or add it manually to ~/.claude.json:

{
  "mcpServers": {
    "flax-mcp": {
      "type": "http",
      "url": "http://localhost:9100/mcp"
    }
  }
}

Claude Desktop

Remote HTTP servers need to be added through the UI under Customize > Connectors. If you want to go through the config file instead, you can bridge it with mcp-remote:

Config path: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "flax-mcp": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://localhost:9100/mcp"]
    }
  }
}

Cursor

Config path: ~/.cursor/mcp.json (global) or .cursor/mcp.json (project)

{
  "mcpServers": {
    "flax-mcp": {
      "url": "http://localhost:9100/mcp"
    }
  }
}

Cursor auto-negotiates Streamable HTTP, no type field needed.

Windsurf

Config path: ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "flax-mcp": {
      "serverUrl": "http://localhost:9100/mcp"
    }
  }
}

Note: Windsurf uses serverUrl, not url.

VS Code / GitHub Copilot

GitHub で README 全文を見る

インストール

npx -y mcp-remote http://localhost:9100/mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "flax-mcp": { "type": "http", "url": "http://localhost:9100/mcp" } } }