feat(frontend): gate Remote MCP sidebar item behind LaunchDarkly flag#2405
feat(frontend): gate Remote MCP sidebar item behind LaunchDarkly flag#2405malinskibeniamin merged 1 commit intomasterfrom
Conversation
Remote MCP is GA but we need to temporarily hide the sidebar entry for most customers while a small allow-list (Poolside AI, LiveRamp ADP, IT-Novum) continues using it. Adds `enableRemoteMcpInConsole` to the forwarded feature-flags map and gates the `/mcp-servers` sidebar entry on it alongside the existing `isEmbedded()` check. Route access is not changed — only sidebar visibility. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
@claude review |
|
@claude review |
|
Claude finished @malinskibeniamin's task in 53s —— View job Code Review
SummaryThis is a clean, minimal, well-scoped change. The implementation correctly follows existing patterns and the logic is sound.
|
Summary
enableRemoteMcpInConsoletoFEATURE_FLAGSinfrontend/src/components/constants.tsso cloud-ui's forwarded LD value is typed and read inside Console./mcp-serverssidebar entry infrontend/src/utils/route-utils.tsxonisEmbedded() && isFeatureFlagEnabled('enableRemoteMcpInConsole'), matching the pattern already used for/knowledgebasesand/observability.Scope / non-goals
/mcp-servers/*is unchanged (per product direction — allow-listed orgs still use those routes, and we don't want a hard block).Test plan
bun run type:check && bun run lint && bun run testpass locally.enable-remote-mcp-in-console = false: Remote MCP item is hidden from the Agentic sidebar group.true(allow-listed org): Remote MCP item is visible and the existing page loads unchanged.isEmbedded()was false), still hidden.🤖 Generated with Claude Code