AssetBundleMCP 0.1.3
See the version list below for details.
dotnet tool install --global AssetBundleMCP --version 0.1.3
dotnet new tool-manifest
dotnet tool install --local AssetBundleMCP --version 0.1.3
#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.
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
If .NET 10 is installed (Recommended)
For .NET 10 preview6 or earlier (Not recommended)
Clone the repository:
Clone with submodules using the--recurse-submodules
option.git clone --recurse-submodules https://github.com/hanachiru/AssetBundleMCP.git cd AssetBundleMCP
Build the project:
dotnet build -c Release
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" ] } } }
- For Visual Studio Code:
Usage
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.
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
- Get a list of assets:
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 | Versions 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. |
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 |