From 5cb3ed2954de925f58fbe0d58b4707ee6ebc2224 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Tue, 10 Nov 2026 14:27:18 +0100 Subject: [PATCH] feat(dashboard): MCP-Tokens in the sidebar, also in source-only deployments 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 --- compliance-dashboard/src/components/sidebar.rs | 10 ++++++++++ compliance-dashboard/src/i18n/texts.rs | 4 ++++ docs/features/mcp-server.md | 18 +++++++++--------- docs/guide/api-keys.md | 2 +- 4 files changed, 24 insertions(+), 10 deletions(-) diff --git a/compliance-dashboard/src/components/sidebar.rs b/compliance-dashboard/src/components/sidebar.rs index d61e224..01d3b8d 100644 --- a/compliance-dashboard/src/components/sidebar.rs +++ b/compliance-dashboard/src/components/sidebar.rs @@ -102,6 +102,16 @@ pub fn Sidebar() -> Element { runtime_only: true, write_only: false, }, + // The MCP endpoint also serves a source-only deployment, where the + // overview's MCP-Server card (and with it the only other link to + // the tokens) is hidden. + NavItem { + label: nav::MCP_TOKENS, + route: Route::McpTokensPage {}, + icon: rsx! { Icon { icon: BsKey, width: 18, height: 18 } }, + runtime_only: false, + write_only: false, + }, ]; // Both links are set per deployment (`DOCS_URL`, `PORTAL_URL`). The diff --git a/compliance-dashboard/src/i18n/texts.rs b/compliance-dashboard/src/i18n/texts.rs index d6450d4..743e233 100644 --- a/compliance-dashboard/src/i18n/texts.rs +++ b/compliance-dashboard/src/i18n/texts.rs @@ -145,6 +145,10 @@ pub mod nav { de: "Pentest", en: "Pentest", }; + pub const MCP_TOKENS: Text = Text { + de: "MCP-Tokens", + en: "MCP tokens", + }; pub const PORTAL: Text = Text { de: "Zur Plattform", en: "Back to the platform", diff --git a/docs/features/mcp-server.md b/docs/features/mcp-server.md index e249d12..3cc03a3 100644 --- a/docs/features/mcp-server.md +++ b/docs/features/mcp-server.md @@ -19,16 +19,16 @@ Without MCP, getting security data into an LLM conversation requires manual effo ## Managing MCP Servers -There is no sidebar entry for MCP. The **Übersicht** (Overview) has an -**MCP-Server** card: **Verwalten** (Manage) opens the MCP server page, and -**MCP-Tokens** opens the bearer tokens an IDE or LLM client connects with. +**MCP-Tokens** in the sidebar opens the bearer tokens an IDE or LLM client +connects with. The **Übersicht** (Overview) also has an **MCP-Server** card: +**Verwalten** (Manage) opens the MCP server page, and **MCP-Tokens** the same +token page. ::: info Source-only deployments In a deployment that scans source code only, such as the pilot, the MCP-Server -card is hidden. The token page still opens directly at `/mcp-tokens` -(for example `https://pruefwerk.breakpilot.com/mcp-tokens`), and the MCP -endpoint answers as usual. The evidence the MCP tools return is also in the -evidence pack on each target's page. +card is hidden; the sidebar's **MCP-Tokens** stays, and the MCP endpoint answers +as usual. The evidence the MCP tools return is also in the evidence pack on +each target's page. ::: From the MCP server page you can: @@ -110,8 +110,8 @@ endpoint URL and an MCP token. ### 1. Create an MCP token -1. Open **MCP-Tokens**: from the overview's MCP-Server card, or directly at - `/mcp-tokens` (prod: `https://pruefwerk.breakpilot.com/mcp-tokens`). +1. Open **MCP-Tokens** in the sidebar (the page is `/mcp-tokens`, on prod + `https://pruefwerk.breakpilot.com/mcp-tokens`). 2. Choose **Create Token**, give it a name that says where it is used (for example "Claude Code, laptop"), and choose **Create**. 3. Copy the token from the banner. It starts with `mcpt_` and is shown **only diff --git a/docs/guide/api-keys.md b/docs/guide/api-keys.md index b2f508d..64f9212 100644 --- a/docs/guide/api-keys.md +++ b/docs/guide/api-keys.md @@ -42,7 +42,7 @@ Person vorbehalten. - **Nicht für MCP.** Ein LLM-Werkzeug (Claude Code, Cursor, …) meldet sich an der MCP-Schnittstelle mit einem eigenen MCP-Token (`mcpt_…`) an, nicht mit einem API-Schlüssel. MCP-Tokens legt eine angemeldete Person im Dashboard - unter `/mcp-tokens` an; siehe [MCP-Schnittstelle](/features/mcp-server#connecting-an-mcp-client). + unter **MCP-Tokens** in der Seitenleiste an; siehe [MCP-Schnittstelle](/features/mcp-server#connecting-an-mcp-client). - **Widerruf wirkt nach höchstens 60 Sekunden.** Prüfwerk merkt sich das Prüfergebnis eines Schlüssels eine Minute lang. -- 2.54.1