AssetGenie logo

AssetGenie

Community
aditzeb

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

Publisheraditzeb
RepositoryAssetGenie
LanguageDart
Forks
0
Stars
48
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    AssetGenie exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    48 stars and 0 forks from the linked repository.

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.

Installation

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

Use AssetGenie MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once AssetGenie is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add AssetGenie as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the AssetGenie MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "assetgenie": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the AssetGenie MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the AssetGenie MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use AssetGenie to help me with this task?
AssetGenie
Sure. I read it.
Here is what I found using AssetGenie.

Frequently asked questions

What is the AssetGenie MCP server used for?

AssetGenie is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use AssetGenie MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use AssetGenie with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use AssetGenie MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With AssetGenie connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect AssetGenie MCP to TypingMind?

AssetGenie runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does AssetGenie MCP provide in TypingMind?

AssetGenie exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use AssetGenie MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If AssetGenie requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇