Skip to content

feat(tray+settings): MCP Bridge status surface, unlock shortcut, settings revamp - #218

Open
Blankll wants to merge 3 commits into
masterfrom
feat/tray-mcp-status
Open

Blankll wants to merge 3 commits into
masterfrom
feat/tray-mcp-status

Conversation

@Blankll

@Blankll Blankll commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Mirror of dockit#554. Makes the embedded MCP Bridge observable end-to-end: the tray becomes a one-glance status + action surface, the settings MCP tab becomes a real connection center, and get_mcp_status exposes machine-readable state.

Tray

● MCP Bridge: Running (port 9121)        ← actual port (random-port fallback visible)
   Unlock MCP Bridge…                     ← only when gated-stopped; opens subscription dialog
Copy Bridge URL                           ← icon-only + tooltip, gated on running state
──────────────
Show Window / Quit
  • Status lines carry product names ("MCP Bridge: …"), 7 languages
  • "Stopped (subscription required)" pairs with a dedicated Unlock MCP Bridge… item (status/action split — discoverable, no hidden click target): shows only when the entitlement gate shut the bridge down, click → show window + mcp-bridge://subscription event → upgrade dialog
  • Server session line removed from the tray (single port; session info lives in settings)

Settings (MCP tab) — two cards

  • MCP Bridge (outside the paywall): status + Copy/Restart icon buttons with tooltips, random-port fallback warning, gated-stop reason box, Port + Auto-start — users without a subscription finally see why their agent lost access
  • SqlKit MCP Server (gated): live sessions ("1 session — ZCode"), "Connect an AI client" install guide (Claude Code / Codex / Cursor / generic tabs with brand icons + copy blocks), permission editor
  • get_mcp_status extended with stopReason + sessions[]

UI polish

  • Editor/Query setting rows align text left / controls right (General-page pattern)
  • DefaultPermissionEditor spans full card width
  • Auto-compact messages → Switch; provider rows show monochrome brand icons
  • McpPoster refreshed: real port (9121), current npx config, real tool names
  • Locales keep the original MCP Bridge naming (7 languages, ja/ko included)

Companion PRs: dockit#554 (mirror), data-studio-agent#41 (session identity headers that feed the session line).

Verification

  • cargo test: 615 passed; fmt/clippy clean
  • eslint/vue-tsc clean; settings page verified in-browser across running / gated / entitled states

- tray carries two disabled status lines plus a Copy Bridge URL action:
  'Data Studio Bridge · Running (port N) / Stopped (subscription
  required)' and '{App} MCP Server · N session(s) — clients'
- McpSessionRegistry tracks live Data Studio MCP sessions from
  X-Data-Studio-Session/Client headers on /tools and /invoke (30s TTL,
  capped at 50; anonymous traffic keeps a last-seen fallback for older
  npm releases)
- BridgeStopStatus records why the bridge went down so the tray can say
  more than 'Stopped' when the entitlement gate shuts it down
- adds the clipboard manager plugin (dep + registration + capability)
  to back Copy Bridge URL
- settings page and all locales rename the component from 'MCP Bridge'
  to 'Data Studio Bridge'
…ings revamp

Tray:
- status lines carry product names: "MCP Bridge: Running (port N)" /
  "Stopped" / "Stopped (subscription required)"; server session line
  removed (single port — session info lives in settings)
- new "Unlock MCP Bridge…" action item (gated-stop state only) opens the
  subscription dialog via mcp-bridge://subscription → App.vue listener
- get_mcp_status now reports stopReason + live MCP sessions

Settings (MCP tab):
- two-card layout: MCP Bridge card (status + Copy/Restart icon buttons
  with tooltips + port + auto-start, outside the paywall) and SqlKit MCP
  Server card (sessions + "Connect an AI client" install guide with
  brand tabs, docs link, gated); DefaultPermissionEditor and all setting
  rows span full width, aligning text left / controls right
- sessionsEmpty copy simplified + link to the product docs page

UI polish:
- Auto-compact messages uses a Switch
- provider rows show monochrome brand icons
- PaidGate provider chip: Claude Desktop → Claude Code
- McpPoster refreshed: real port (9121), current npx config and tools

Locales: keep the original "MCP Bridge" naming across tray, settings
and all 7 languages; simplify sessionsEmpty; add docsLink.

Verification: cargo test 615 passed; cargo fmt/clippy clean; eslint/vue-tsc clean.
@Blankll Blankll changed the title feat(tray): show Data Studio Bridge and MCP server status feat(tray+settings): MCP Bridge status surface, unlock shortcut, settings revamp Nov 20, 2026
@vue/vue3-jest cannot resolve imported types in defineProps under the
jsdom environment (compileScript needs fs), so importing Switch.vue from
AiSettings.test.ts failed the whole suite. Inlining radix-vue's
SwitchRootProps/SwitchRootEmits members keeps runtime behavior identical
while making the component jest-compilable.
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