Versioning
Version history and rollback for text assets (js, css, json, svg, etc). View past versions and restore any of them. Binary assets are overwrite-only and have no history.
Endpoints (2)
Get the version history of a text asset (js, css, json, svg, etc). Returns metadata only — version numbers, hashes, timestamps, change summaries — no content. Binary assets have no history. Use this to find a version to roll back to.
| Field | Type | Required | Description |
|---|---|---|---|
slug |
string | ✓ Yes | The asset path, e.g. "css/style.css" or "js/app.js". |
Rollback a text asset to a previous version. Creates a NEW version with the old content (audit trail preserved). Provide target_version OR target_version_hash. Use list-asset-versions to find available versions. Binary assets cannot be rolled back — use upload_asset with overwrite instead.
| Field | Type | Required | Description |
|---|---|---|---|
slug |
string | ✓ Yes | The asset path to rollback, e.g. "css/style.css". |
target_version |
integer | No | Version number to rollback to (use this OR target_version_hash). |
target_version_hash |
string | No | Version hash (8 chars) to rollback to (use this OR target_version). |
MCP Tool Names
When using this integration through an AI assistant (Claude, ChatGPT, Cursor, etc.), the endpoints are available as MCP tools:
| Endpoint | MCP Tool Name |
|---|---|
| list-asset-versions | versioning_list_asset_versions |
| rollback-asset | versioning_rollback_asset |
Website