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.
## 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 main2026-11-10 13:49:14 +00:00
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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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/healthreturns 200 and/mcp/mcpreturns 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 hasruntime_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/features/mcp-server.mdanddocs/guide/api-keys.mdname the sidebar entry instead of the bare URL.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-D warningsfor compliance-dashboard withserverand withwebsidebarandi18n: 24 passed🤖 Generated with Claude Code
db6acd9f31to5cb3ed2954