AssetBundleMCP 0.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global AssetBundleMCP --version 0.1.3
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local AssetBundleMCP --version 0.1.3
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=AssetBundleMCP&version=0.1.3
                    
nuke :add-package AssetBundleMCP --version 0.1.3
                    

AssetBundleMCP

日本語

AssetBundleMCP is an MCP (Model-Context-Protocol) server for easily and efficiently analyzing Unity AssetBundles through conversations with AI assistants (such as gemini-cli).

With this tool, developers and QA engineers can quickly obtain information such as a list of assets or texture details included in an AssetBundle simply by asking questions in natural language.

Screenshot

Main Features

  • Interactive AssetBundle Analysis: Analyze AssetBundles just by talking to your AI assistant.
  • Easy Installation: Provided as a NuGet package, so you can easily introduce it by adding it to your configuration file.
  • Flexible Data Access: You can also write SQL queries directly to the AI and freely extract information from the database-formatted analysis results.

Prerequisites

  • .NET 9.0 SDK or later

Installation & Setup

  1. Clone the repository:
    Clone with submodules using the --recurse-submodules option.

    git clone --recurse-submodules https://github.com/hanachiru/AssetBundleMCP.git
    cd AssetBundleMCP
    
  2. Build the project:

    dotnet build -c Release
    
  3. Configure the MCP server:
    Create a configuration file in your project root according to your IDE.

    • For Visual Studio Code: .vscode/mcp.json
    • For Visual Studio: .mcp.json
    {
      "servers": {
        "AssetBundleMCP": {
          "type": "stdio",
          "command": "dnx",
          "args": [
            "AssetBundleMCP",
            "--version",
            "0.1.2",
            "--yes"
          ]
        }
      }
    }
    
    • For Gemini Cli: .gemini/settings.json
    {
      "mcpServers": {
        "AssetBundleMCP": {
          "command": "dnx",
          "args": [
            "AssetBundleMCP",
            "--version",
            "0.1.2",
            "--yes"
          ]
        }
      }
    }
    

Usage

  1. Load AssetBundle:
    Open Copilot Chat in your IDE, specify the directory path containing the AssetBundle you want to analyze, and instruct it to load.

    @workspace /loadAssetBundle C:/path/to/your/assetbundles

    The tool will analyze the AssetBundle and save the results to a temporary database file.

  2. Retrieve Information:
    Once loading is complete, you can ask various questions.

    • Get a list of assets:

      @workspace /listAssets

    • Get a list of textures:

      @workspace /listTextures

    • Find potentially duplicated assets:

      @workspace /listPotentialDuplicates

    • Execute a direct SQL query:

      @workspace /executeSqlQuery SELECT * FROM assets WHERE size > 100000

  3. Finish Analysis:
    When analysis is complete, unload the database and release resources with the following command:

    @workspace /unLoadAssetBundle

Available Tools

Command Name Description
LoadAssetBundle Loads an AssetBundle for analysis.
UnLoadAssetBundle Unloads the loaded database file.
ListAnimations Lists all animations in the AssetBundle.
ListAssetDependencies Lists all asset dependencies in the AssetBundle.
ListAssets Lists all assets in the AssetBundle.
ListAudioClips Lists all audio clips in the AssetBundle.
ListMeshes Lists all meshes in the AssetBundle.
ListObjects Lists all objects in the AssetBundle.
ListShaderKeywordRatios Lists all shader keyword ratios in the AssetBundle.
ListShaderSubprograms Lists all shader subprograms in the AssetBundle.
ListShaders Lists all shaders in the AssetBundle.
ListTextures Lists all textures in the AssetBundle.
ListBreakdownByType Lists breakdown by type in the AssetBundle.
ListBreakdownShaders Lists breakdown of shaders in the AssetBundle.
ListMaterialShaderRefs Lists all material shader references in the AssetBundle.
ListMaterialTextureRefs Lists all material texture references in the AssetBundle.
ListPotentialDuplicates Lists all potential duplicates in the AssetBundle.
ExecuteSqlQuery Executes a SQL query on the AssetBundle database.

License

This project is licensed under the MIT License.

Acknowledgements

The core analysis functionality of this tool uses UnityDataTools. Many thanks to the developers of this excellent library.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.2.4 144 8/31/2025
0.2.3 149 8/30/2025
0.2.2 151 8/30/2025
0.2.1 153 8/30/2025
0.2.0 159 8/30/2025
0.1.11 184 8/27/2025
0.1.10 176 8/26/2025
0.1.9 180 8/26/2025
0.1.8 148 8/25/2025
0.1.7 269 8/25/2025
0.1.6 264 8/25/2025
0.1.5 198 8/24/2025
0.1.4 151 8/24/2025
0.1.3 154 8/24/2025
0.1.2 157 8/24/2025