Skip to content

feat(assets): remove the assets UI (fetch_assets tool, resource, and view) - #30

Merged
guitavano merged 1 commit into
mainfrom
guitavano/remove-assets-ui
Aug 19, 2026
Merged

feat(assets): remove the assets UI (fetch_assets tool, resource, and view)#30
guitavano merged 1 commit into
mainfrom
guitavano/remove-assets-ui

Conversation

@guitavano

@guitavano guitavano commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes the media assets gallery feature from admin-mcp. It's superseded by Studio's new native per-site Assets tab (decocms/studio#6251), which lists/uploads/deletes objects directly against the site's associated storage bucket instead of proxying through this MCP's UI.

Pure deletion — 6 files, ~1033 lines, no additions:

  • api/tools/assets.ts — the fetch_assets / upload_asset / delete_asset tools + schemas
  • api/resources/assets.ts — the ui://mcp-app/assets "Assets UI" app resource
  • web/tools/assets/ — the React gallery view
  • registrations in api/tools/index.ts, api/app.ts, web/router.tsx

Verified no other code references assetsTool / uploadAssetTool / deleteAssetTool / ASSETS_RESOURCE_URI / createAssetsAppResource / AssetsPage / fetch_assets.

Migration note

Studio creates the "Assets" pinned view (fetch_assets) on deco.cx import. Once this ships, that pinned view has no tool to call — the native Assets tab (behind the native_assets_tab org flag) replaces it. Coordinate enabling the flag / dropping the pinned view on the Studio side.

Testing notes

  • No new tsc or Biome issues introduced. The repo's check (node_modules zod version conflict) and ci:check (a pre-existing format nit in web/tools/monitor/index.tsx) already fail on main for reasons unrelated to this change; none of the touched files are flagged.

🤖 Generated with Claude Code


Summary by cubic

Removes the legacy Assets gallery (tools and UI) in favor of Studio’s native per‑site Assets tab. Previously fetch_assets powered an in-app gallery with upload/delete; now those tools and the ui://mcp-app/assets resource are gone, and asset management happens in Studio.

  • What changed

    • Deleted api/tools/assets.ts (fetch_assets, upload_asset, delete_asset) and their schemas.
    • Deleted api/resources/assets.ts (removed ui://mcp-app/assets) and web/tools/assets/ React gallery.
    • Removed registrations from api/tools/index.ts, api/app.ts, and web/router.tsx. No remaining references to fetch_assets/upload_asset/delete_asset/ASSETS_RESOURCE_URI/AssetsPage.
  • Migration

    • In Studio, enable the native_assets_tab org flag and remove any pinned “Assets” view that calls fetch_assets (it will have no tool).
    • If any external automation calls fetch_assets, upload_asset, or delete_asset, migrate those flows to Studio’s Assets tab or direct bucket operations; this repo no longer provides replacements.

Written for commit fc4bfca. Summary will update on new commits.

Review in cubic

…view)

The media asset gallery served here is superseded by Studio's native
per-site Assets tab, which reads/uploads/deletes objects directly against
the site's storage bucket. Remove the whole assets feature:

- api/tools/assets.ts (fetch_assets / upload_asset / delete_asset)
- api/resources/assets.ts (the "Assets UI" app resource)
- web/tools/assets/ (the React gallery view)
- their registrations in api/tools/index.ts, api/app.ts, web/router.tsx

No other code references these symbols.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 19, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
admin-mcp fc4bfca Commit Preview URL

Branch Preview URL
Aug 19 2026, 06:00 PM

@guitavano
guitavano merged commit e04e33a into main Aug 19, 2026
2 of 4 checks passed
guitavano added a commit to decocms/studio that referenced this pull request Aug 19, 2026
…sites

admin-MCP no longer serves fetch_assets (decocms/admin-mcp#30), so sites
imported before this change carry a dead "Assets" pinned view. Skip it at
render time — the native always-on Assets tab replaces it — so no data
migration is needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
guitavano added a commit to decocms/studio that referenced this pull request Aug 19, 2026
…flag (#6262)

* feat(assets): make the native Assets tab always-on, drop the feature flag

The external admin-MCP assets UI is being removed (decocms/admin-mcp#30), so
the native per-site Assets tab is now the assets experience — no longer gated.

- use-main-panel-tabs: show the Assets tab whenever a bucket is associated to
  the site's slug, dropping the `native_assets_tab` gate.
- Remove `native_assets_tab` from OrgFlagsSchema + its Navigation settings
  toggle and i18n; regenerate tool contracts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(assets): stop creating the fetch_assets pinned view on deco.cx import

The native always-on Assets tab replaces the admin-MCP assets view, so the
deco.cx import no longer pins `fetch_assets`. The Monitor pinned view
(get_monitor_data) stays — admin-MCP still serves it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* fix(assets): drop stale fetch_assets pinned view on already-imported sites

admin-MCP no longer serves fetch_assets (decocms/admin-mcp#30), so sites
imported before this change carry a dead "Assets" pinned view. Skip it at
render time — the native always-on Assets tab replaces it — so no data
migration is needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant