AssetGenieのロゴ

AssetGenie

コミュニティ
aditzeb

A complete, local Model Context Protocol (MCP) server written in pure Dart to automate, audit, and optimize Flutter project assets and localization structure.

公開者aditzeb
リポジトリAssetGenie
言語Dart
フォーク
0
スター
48
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    AssetGenieは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには48件のスターと0件のフォークがあります。

AssetGenie 🧞‍♂️

A complete, local Model Context Protocol (MCP) server written in pure Dart to automate, audit, and optimize Flutter project assets and localization structure. Connect it to AI clients like Cursor or Claude Desktop to let the AI interact directly with your project's assets and translation structures.


🚀 Features

AssetGenie exposes five powerful tools to the LLM context:

1. assetgenie_audit_health

Scans the project's pubspec.yaml and physical folders to identify asset anomalies:

  • Flags missing physical files declared in pubspec.yaml.
  • Flags physical assets that are not declared in pubspec.yaml (undeclared assets).
  • Identifies heavy assets exceeding a configurable file size threshold (default: 500 KB).
  • Automatically checks for unused physical files by searching for references in lib/ source code.

2. assetgenie_sync_localization

Safely updates or injects translation keys into local Application Resource Bundle (.arb) files:

  • Appends new translations without manual copying/pasting.
  • Standardizes formatting and groups metadata keys (@key) next to their respective properties.
  • Alphabetizes keys according to standard ARB guidelines.

3. assetgenie_generate_constants

Auto-generates clean, modern Dart constants from physical asset files:

  • Recursively walks through the physical assets folders.
  • Converts file paths into structured camelCase variable names.
  • Resolves identifier collisions and reserved keywords dynamically.
  • Writes a safe config class Assets inside lib/generated/ to prevent typos and hardcoded string values.

4. assetgenie_audit_localization

Audits the project's ARB localization files to ensure quality and consistency:

  • Compares target locales against a primary locale to find missing translation keys.
  • Detects extra translation keys defined in target locales but missing in the primary locale.
  • Validates that parameterized placeholders (e.g., {name}) match between translations to prevent runtime formatting crashes.
  • Scans Dart code recursively in lib/ to identify unused translation keys.

5. assetgenie_app_harness

Connects to a running Flutter application via its Dart VM Service to inspect layout, capture state, or stream logs:

  • Retrieves a clean, structured JSON Widget Summary Tree from the active application context.
  • Requests a live PNG screenshot of the application's current layout, returning it directly in the tool response.
  • Streams and captures stdout/stderr console prints and runtime logging statements over WebSocket.

🛠️ Installation & Setup

Ensure you have Dart SDK installed on your system.

  1. Clone the repository:

    bash
    git clone https://github.com/aditzeb/AssetGenie.git
    cd AssetGenie
  2. Download package dependencies:

    bash
    dart pub get
  3. Run the verification/tests to make sure everything is ready:

    bash
    dart test test/assetgenie_test.dart

🔌 Connecting to LLMs & IDEs (MCP Clients)

To use AssetGenie inside your favorite AI assistant or development environment, configure it as a local stdio MCP server.

1. Antigravity IDE

Antigravity automatically discovers MCP servers configured in its global MCP configuration file:

  • Windows: C:\Users\<Your-Username>\.gemini\antigravity-ide\mcp_config.json
  • macOS / Linux: ~/.gemini/antigravity-ide/mcp_config.json

Add the following under the "mcpServers" object:

json
{
  "mcpServers": {
    "assetgenie": {
      "command": "dart",
      "args": [
        "run",
        "C:\\path\\to\\AssetGenie\\bin\\main.dart"
      ]
    }
  }
}

2. JetBrains IntelliJ IDEA / Android Studio

To bring AssetGenie's capabilities into IntelliJ IDEA or Android Studio, you can use the Continue plugin or the Cline / Roo Cline plugins.

Option A: Using Continue (via config.yaml)

Add the following to your global Continue configuration (~/.continue/config.yaml or C:\Users\<Your-Username>\.continue\config.yaml) under the mcpServers block:

yaml
mcpServers:
  - name: assetgenie
    type: stdio
    command: dart
    args:
      - "run"
      - "C:\\path\\to\\AssetGenie\\bin\\main.dart"

[!NOTE] Make sure to switch Continue to Agent Mode in your chat panel to enable tool execution.

Option B: Using Cline / Roo Cline

Add the following to your settings file (roo_cline_mcp_settings.json):

json
{
  "mcpServers": {
    "assetgenie": {
      "command": "dart",
      "args": [
        "run",
        "C:\\path\\to\\AssetGenie\\bin\\main.dart"
      ]
    }
  }
}

3. VS Code

You can use the Continue, Cline, or Roo Cline extensions in VS Code by applying the same configurations as JetBrains IDEs.

  • Cline settings are stored in C:\Users\<Your-Username>\AppData\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json (Windows) or ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json (macOS).

4. Claude Desktop

Add the following to your claude_desktop_config.json configuration file:

  • Windows: C:\Users\<Your-Username>\AppData\Roaming\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
json
{
  "mcpServers": {
    "assetgenie": {
      "command": "dart",
      "args": [
        "run",
        "C:\\path\\to\\AssetGenie\\bin\\main.dart"
      ]
    }
  }
}

5. Cursor / Windsurf

Go to Settings -> Features -> MCP, click Add New MCP Server:

  • Name: AssetGenie
  • Type: stdio
  • Command: dart run C:\path\to\AssetGenie\bin\main.dart

📖 Tool Schema Details

1. assetgenie_audit_health

  • project_path (string, required): Absolute path to the Flutter root directory.
  • max_size_kb (number, optional): Size threshold in KB (default: 500).

2. assetgenie_sync_localization

  • project_path (string, required): Absolute path to the Flutter root directory.
  • locale (string, required): Target language code (e.g. 'en', 'de').
  • kv_pairs (object, required): A JSON map of translation pairs (e.g., {"loginButton": "Sign In"}).

3. assetgenie_generate_constants

  • project_path (string, required): Absolute path to the Flutter root directory.
  • output_filename (string, optional): Target file name (default: 'generated_assets.dart').

4. assetgenie_audit_localization

  • project_path (string, required): Absolute path to the Flutter root directory.
  • primary_locale (string, optional): The base locale to compare other locales against (default: 'en').
  • unused_keys_check (boolean, optional): Whether to check for unused keys in lib/**/*.dart (default: true).

5. assetgenie_app_harness

  • vm_service_uri (string, required): The Dart VM Service WebSocket or HTTP URI (e.g., http://127.0.0.1:8181/T9n3k_04gA=/).
  • action (string, required): The instrumentation action to perform on the running Flutter application ('get_widget_tree', 'capture_screenshot', 'get_logs').

📄 License

This project is open-source and licensed under the MIT License. See LICENSE for more details.

インストール

TypingMind
{
  "mcpServers": {
    "assetgenie": {
      "command": "dart",
      "args": [
        "run",
        "path/to/your/main.dart"
      ]
    }
  }
}

AssetGenieのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度AssetGenieに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

AssetGenieをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. AssetGenieのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "assetgenie": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてAssetGenieのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. AssetGenieのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
AssetGenieを使ってこのタスクを手伝ってもらえますか?
AssetGenie
はい、読みました。
AssetGenieで調べた結果をお伝えします。

よくある質問

AssetGenie MCPサーバーは何に使いますか?

AssetGenieは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでAssetGenie MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでAssetGenieを利用できます。

TypingMindでAssetGenie MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。AssetGenieを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

AssetGenie MCPをTypingMindに接続するにはどうすればよいですか?

AssetGenieはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでAssetGenie MCPのどのようなツールを利用できますか?

AssetGenieはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

AssetGenie MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。AssetGenieで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇