feat(dashboard): MCP-Tokens in the sidebar, also in source-only deployments #969

Merged
sharang merged 1 commits from feat/mcp-tokens-link into main 2026-11-10 14:10:26 +00:00
Owner

Why

On prod (a source-only deployment) the dashboard had no link to the MCP tokens. The overview's MCP-Server card was the only way in, and source-only mode hides it together with AI chat (overview.rs, if !source_only { RuntimeSections }). The MCP endpoint does serve prod, though: /mcp/health returns 200 and /mcp/mcp returns 401 without a token. So a token could only be created by typing /mcp-tokens.

What

  • components/sidebar.rs: a new MCP-Tokens entry (key icon) after Pentest. It has runtime_only: false, so source-only mode leaves it enabled.
    • write_only: false: read-only roles can open the page and see the list. Only write roles get the create and revoke buttons, as the page already decides.
  • i18n/texts.rs: nav::MCP_TOKENS (DE "MCP-Tokens", EN "MCP tokens").
  • Docs: docs/features/mcp-server.md and docs/guide/api-keys.md name the sidebar entry instead of the bare URL.
  • The overview card is unchanged.

Stacked on #968

This branch builds on docs/mcp-token-setup (#968), because it rewrites the docs #968 adds. After #968 merges, retarget this PR to main.

Tests

  • cargo fmt --all --check
  • clippy -D warnings for compliance-dashboard with server and with web
  • dashboard lib tests sidebar and i18n: 24 passed

🤖 Generated with Claude Code

## Why On prod (a source-only deployment) the dashboard had no link to the MCP tokens. The overview's MCP-Server card was the only way in, and source-only mode hides it together with AI chat (`overview.rs`, `if !source_only { RuntimeSections }`). The MCP endpoint does serve prod, though: `/mcp/health` returns 200 and `/mcp/mcp` returns 401 without a token. So a token could only be created by typing `/mcp-tokens`. ## What - `components/sidebar.rs`: a new **MCP-Tokens** entry (key icon) after Pentest. It has `runtime_only: false`, so source-only mode leaves it enabled. - `write_only: false`: read-only roles can open the page and see the list. Only write roles get the create and revoke buttons, as the page already decides. - `i18n/texts.rs`: `nav::MCP_TOKENS` (DE "MCP-Tokens", EN "MCP tokens"). - Docs: `docs/features/mcp-server.md` and `docs/guide/api-keys.md` name the sidebar entry instead of the bare URL. - The overview card is unchanged. ## Stacked on #968 This branch builds on `docs/mcp-token-setup` (#968), because it rewrites the docs #968 adds. After #968 merges, retarget this PR to main. ## Tests - `cargo fmt --all --check` - clippy `-D warnings` for compliance-dashboard with `server` and with `web` - dashboard lib tests `sidebar` and `i18n`: 24 passed 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang changed target branch from docs/mcp-token-setup to main 2026-11-10 13:49:14 +00:00
sharang added 1 commit 2026-11-10 13:50:05 +00:00
feat(dashboard): MCP-Tokens in the sidebar, also in source-only deployments
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m1s
CI / Check (pull_request) Successful in 19m20s
5cb3ed2954
The only link to the MCP tokens was the overview's MCP-Server card, which a
source-only deployment (prod) hides with the runtime sections. The MCP
endpoint serves such a deployment all the same, so there a token could only
be created by typing /mcp-tokens. The sidebar now has an MCP-Tokens entry
that source-only mode leaves enabled; the overview card is unchanged.

The docs name the entry instead of the bare URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang force-pushed feat/mcp-tokens-link from db6acd9f31 to 5cb3ed2954 2026-11-10 13:50:05 +00:00 Compare
sharang merged commit 29e38c8b80 into main 2026-11-10 14:10:26 +00:00
Sign in to join this conversation.