Repository navigation
feat(ui): MCP connector panel on the Sharing tab (ent#46 PR2) - #1357
Conversation
The gated-Vue surface for the per-agent MCP connector. Adds a "MCP connector"
channel row to the Sharing tab, shown ONLY when the `mcp_connector` entitlement
is present (enterpriseStore.isEntitled). Ships in the public bundle with no IP —
the feature backend + gating live in the private trinity-enterprise module.
ConnectorChannelPanel.vue:
- Generate / regenerate / revoke the scoped connector key.
- On generate, surfaces the per-client copy-paste setup (Claude Code, Cursor,
Claude Desktop) with the key pre-embedded + copy buttons, shown once with a
"key is shown only once" warning.
- Enable/disable toggle + exposed-playbook allow-list editor (checkboxes over
the agent's user_invocable playbooks; "expose all" clears the list).
- Calls the entitlement-gated /api/agents/{name}/connector* endpoints; reads the
agent's playbooks via the OSS /playbooks endpoint.
Verified: both SFCs compile (vue/compiler-sfc); clean `npm ci` + production vite
build green (1775 modules).
Related to Abilityai/trinity-enterprise#46
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Review — connector Sharing-tab UI (self-review)Gating, the once-only secret handling, and the build are sound. Only low-severity items. 🟡 Low — stale allow-list names linger
🟡 Low —
|
…#46 review) - Prune: after loading the agent's live playbooks, drop any selected allow-list name that's no longer a user_invocable playbook, so dead names don't linger and get re-sent on every save. - Debounce: coalesce a burst of per-playbook checkbox toggles into one PUT (400ms); each send is the full set so last-write-wins is safe. The "expose all" toggle still saves immediately. SFC compiles clean. Related to Abilityai/trinity-enterprise#46
|
✅ Both UI findings fixed in f9e5b25.
SFC compiles clean. |
|
Resolve by running |
…ld fix) The design-token check rejects status-error-* (no such palette); the danger palette is the correct destructive/error token. Fixes the failing build job. Related to Abilityai/trinity-enterprise#46 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
vybe
left a comment
There was a problem hiding this comment.
/validate-pr: APPROVE. Entitlement-gated MCP-connector Sharing-tab UI (ent#46 PR2); hidden in OSS-only builds. Self-review findings already fixed (f9e5b25); prod vite build green; single api client (#7). Security clean, mergeable, all checks green. Stale nightly 'merge conflict' comment is outdated — live status MERGEABLE.
Summary
PR2 — the gated-Vue UI for the per-agent MCP connector (trinity-enterprise#46). Adds an MCP connector row to the Sharing tab's Channels section, shown only when the
mcp_connectorentitlement is present (enterpriseStore.isEntitled('mcp_connector')). Ships in the public bundle with no IP — the feature backend + gating live in the privatetrinity-enterprisemodule (Abilityai/trinity-enterprise#51); the OSS security primitive + MCP tools are #1356.ConnectorChannelPanel.vueuser_invocableplaybooks; "expose all" clears the list to all)./api/agents/{name}/connector*endpoints; reads the agent's playbooks via the OSS/playbooksendpoint (graceful "start the agent" hint when it's stopped).Gating / safety
mcp_connectorinenterprise_features). Safe to land independently of the enterprise PR — the row simply doesn't render until the module is mounted + entitled.apiclient (security: Fix token logging and add HTML reports to gitignore #7); component mirrors the existingVoipChannelPanelchannel pattern.Verification
vue/compiler-sfc).npm ci+ productionvite build— 1775 modules, ✓ built.frontend-e2eCI gate (not run locally — needs the full stack + an entitled backend).Related to Abilityai/trinity-enterprise#46
🤖 Generated with Claude Code