assetdiet-mcp
v0.1.4Full-repository asset intelligence, optimization and MCP server for AI coding assistants
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
assetdiet_scan
Inventory all supported repository assets with metadata and content hashes
| Parameter | Type | Description |
|---|---|---|
root * | string | Absolute path to the repository root to scan |
exclude | array | Additional glob patterns to exclude |
types | array | Asset types to include (omit = all) |
assetdiet_audit
Find asset optimization opportunities and rank them by potential savings (read-only)
| Parameter | Type | Description |
|---|---|---|
root * | string | Absolute path to the repository root |
limit | number | |
policy | string | Optimization policy context for ranking |
types | array |
assetdiet_estimate
Estimate repository-wide savings from asset optimization without modifying files
| Parameter | Type | Description |
|---|---|---|
root * | string | Absolute path to the repository root |
policy | string | |
types | array |
assetdiet_optimize
Optimize specific asset files under an approved policy with rollback protection
| Parameter | Type | Description |
|---|---|---|
files * | array | Absolute paths to files to optimize |
root * | string | Workspace root for safety checks |
dryRun | boolean | If true, no files are written |
outputDir | string | Output directory for optimized files (default: alongside originals) |
policy | string |
assetdiet_optimize_all
Execute an automated optimization pass across all eligible assets in the repo
| Parameter | Type | Description |
|---|---|---|
root * | string | Absolute path to the repository root |
dryRun | boolean | |
limit | number | |
policy | string | |
skipAlreadyOptimized | boolean | |
types | array |
assetdiet_inspect
Inspect detailed metadata, dimensions, and compression potential of a single asset
| Parameter | Type | Description |
|---|---|---|
file * | string | Absolute path to the asset file to inspect |
root * | string | Workspace root for safety checks |
assetdiet_find_references
Find all source code references (imports, CSS url(), HTML tags) pointing to an asset
| Parameter | Type | Description |
|---|---|---|
file * | string | Absolute path to the asset |
root * | string | Repository root to search within |
assetdiet_find_duplicates
Identify exact and probable duplicate assets by content hash and metadata
| Parameter | Type | Description |
|---|---|---|
root * | string | Repository root to scan for duplicates |
types | array |
assetdiet_validate
Validate optimized asset outputs for decodability, dimension parity, and integrity
| Parameter | Type | Description |
|---|---|---|
root * | string | Repository root |
files | array | Specific files to validate (omit = all in root) |
runId | string | Validate outputs from a specific run |
assetdiet_compare
Compare original and optimized versions of an asset (size, savings, decodability)
| Parameter | Type | Description |
|---|---|---|
optimized * | string | Absolute path to the optimized file |
original * | string | Absolute path to the original file |
root * | string | Workspace root for safety checks |
assetdiet_preview
Generate preview artifacts and representations where supported
| Parameter | Type | Description |
|---|---|---|
file * | string | Absolute path to the asset to preview |
root * | string | |
outputDir | string | Where to write preview artifacts |
assetdiet_migrate_references
Propose or apply safe source code reference changes (e.g. updating image.png to image.webp)
| Parameter | Type | Description |
|---|---|---|
newFile * | string | New/replacement asset path |
originalFile * | string | Original asset path |
root * | string | |
dryRun | boolean | |
updateCss | boolean | |
updateHtml | boolean |
assetdiet_unused_assets
Report potentially unreferenced/orphan assets with confidence scores
| Parameter | Type | Description |
|---|---|---|
root * | string | |
confirmedOnly | boolean | |
types | array |
assetdiet_restore
Restore files from a recorded optimization run using transaction rollback
| Parameter | Type | Description |
|---|---|---|
root * | string | |
runId * | string | The run ID returned by a previous optimize call |
dryRun | boolean | If true, show what would be restored without doing it |
assetdiet_report
Generate a Markdown, JSON, or HTML report summarizing optimization results and rollback commands
| Parameter | Type | Description |
|---|---|---|
root * | string | |
format | string | |
outputFile | string | Write report to this file path |
runId | string |
assetdiet_capabilities
Show installed engines (Sharp, SVGO, FFmpeg, glTF-Transform), supported formats, and platform details