Skip to content

Tavano/add deco import#2646

Open
guitavano wants to merge 2 commits intomainfrom
tavano/add-deco-import
Open

Tavano/add deco import#2646
guitavano wants to merge 2 commits intomainfrom
tavano/add-deco-import

Conversation

@guitavano
Copy link
Contributor

@guitavano guitavano commented Mar 10, 2026

Summary by cubic

Adds “Import from deco.cx” so users can create a Mesh project from an existing deco.cx site. Includes secure server-side APIs to list sites and create the MCP connection without exposing the deco.cx API key.

  • New Features

    • API: GET /api/deco-sites (list user sites) and POST /api/deco-sites/connection (create server-side MCP connection). Requires auth.
    • Supabase-backed lookup using DECO_SUPABASE_URL and DECO_SUPABASE_SERVICE_KEY to resolve profile, teams, sites, and fetch the deco.cx API key (never sent to the browser).
    • Prefetches tools/scopes from MCP (https://sites-admin-mcp.decocache.com/api/mcp) before storing the connection.
    • UI: “Import from deco.cx” button on Projects list opens a dialog to search/select a site, then:
      • Creates a project (slug from site name).
      • Links the connection.
      • Pins default views: Environments, Assets, Monitor.
      • Shows a success toast and navigates to the project.
    • MCPAppRenderer no longer forces a fixed height in fullscreen.
    • Feature flag: __ENABLE_DECO_IMPORT__ (set via ENABLE_DECO_IMPORT=true) toggles the import button.
  • Migration

    • Set DECO_SUPABASE_URL and DECO_SUPABASE_SERVICE_KEY.
    • Enable with ENABLE_DECO_IMPORT=true (built into __ENABLE_DECO_IMPORT__).
image image

@github-actions
Copy link
Contributor

🧪 Benchmark

Should we run the Virtual MCP strategy benchmark for this PR?

React with 👍 to run the benchmark.

Reaction Action
👍 Run quick benchmark (10 & 128 tools)

Benchmark will run on the next push after you react.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2026

Release Options

Should a new version be published when this PR is merged?

React with an emoji to vote on the release type:

Reaction Type Next Version
👍 Prerelease 2.161.1-alpha.1
🎉 Patch 2.161.1
❤️ Minor 2.162.0
🚀 Major 3.0.0

Current version: 2.161.0

Deployment

  • Deploy to production (triggers ArgoCD sync after Docker image is published)

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

@guitavano guitavano force-pushed the tavano/add-deco-import branch from ee56930 to d1e9d5b Compare March 10, 2026 19:41
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