Skip to content

fix(mcp): translate the org-blocked Claude line in the MCP server Agents list - #49243

Merged
nwparker merged 1 commit into
mainfrom
bugbash/issue-49198
Nov 25, 2026
Merged

nwparker merged 1 commit into
mainfrom
bugbash/issue-49198

Conversation

@nwparker

@nwparker nwparker commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

When your company blocks Claude Code, Settings > MCP servers shows a short note under Claude in the Agents list. That note was always English, even when the rest of the page was in Chinese, Japanese, and so on. Now it shows in your app language.

Files Added Deleted Net
Test 0 0 0 0
Prod 27 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​99 $\color{#cf222e}{\Huge{\mathbf{−}}}$​10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​89

What Changed

  • Before: the Agents row showed the host's problem.detail as-is. For Claude that is a fixed English sentence from src/main/mcp-servers/mcp-agent-problems.ts, so it was English in every language, on desktop and on mobile.
  • After: when the host reports Claude with kind: 'blocked', the row shows a localized string. Desktop uses settings.mcpServers.agents.blocked through a new mcpAgentProblemText helper in mcp-server-words.ts. Mobile uses mcpServers.agentBlocked. Other problems, such as the terminal-off reasons with version numbers, still show the host's own words.
  • Added translations for every shipped desktop and mobile locale, and added the desktop key to protected-copy-keys.json.
  • Mobile used to force any problem kind it didn't recognize to 'blocked' (z.enum([...]).catch('blocked')). Now it accepts any string, so a newer host's unknown kind keeps the host's line and doesn't get replaced by the org-policy text. The amber dot still shows for every kind except terminal-off, as it did before.

Why

Only the blocked line is a fixed sentence the renderer can map from kind + agent, so translating it on the client needs no host change and works with older hosts and paired phones. The terminal-off reasons are built on the host and include versions. Translating those would mean changing the host → renderer contract to send codes, which the issue leaves for a maintainer decision. They are out of scope here.

Linked Issue

Fixes #49198

Visual Proof

Desktop Agents group with the UI language set to zh, Claude blocked by org policy, and Pi in terminal-off:

Before (English line in a Chinese page):

before

After (localized line; Pi's host reason stays unchanged):

after

Testing

  • Repro: set the UI language to a non-English locale and have the host report Claude as blocked. The Agents row showed "Blocked by your organization’s Claude settings" in English.
  • Verified with the component fixture screenshots above (before = main, after = this branch).
  • vitest on mobile/src/mcp-servers, src/renderer/src/components/settings/mcp-servers, and protected-copy-keys.test.mjs all pass.
  • Passing: verify:localization-catalogs, verify:localization-protected-copy, verify:mobile-localization, verify:localization-runtime-catalog, verify:localization-extraction, mobile tsc --noEmit, oxlint (anti-slop, code-quality native plugins), ast-grep, changed-code-quality gate, oxfmt.
  • Platforms: macOS (fixture render). The change is platform-independent string rendering.

Performance

None, because this only runs when the MCP server settings page (desktop or mobile) renders its Agents rows: one string comparison per row, plus one i18n lookup for a blocked Claude row. Microbench: about 5 ns per row before and after, which is noise.

Risk

Level: Low. The riskiest part is mobile's schema loosening kind from an enum to a string. Older and newer hosts still parse. An unknown kind now shows the host's line with an amber dot instead of being treated as blocked. Back out with a plain revert.

Reported by @Minidoracat

…nts list

The Agents row in Settings > MCP servers (desktop and mobile) printed the
host's English "Blocked by your organization's Claude settings" sentence in
every UI language. Render that line from a locale key when the host reports
Claude as blocked; any other problem keeps the host's own wording. Mobile
now accepts problem kinds it doesn't know instead of coercing them to
'blocked', so a newer host's line is never replaced by the org-policy one.

Fixes #49198
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Desktop and mobile MCP agent lists now show a localized organization-settings message for blocked Claude agents. The mobile problem schema accepts string values for kind, and the amber status dot appears for problem kinds other than terminal-off. Locale files add the blocked message across supported languages.

Severity of issue fixed: Low

Merge Risk: Minimal · up to 7c027

This change localizes the organization-blocked Claude message in the desktop and mobile agent lists. It is a small display-only change with no apparent merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the org-blocked Claude line in the MCP server Agents list is now translated. It follows the conventional commit style (fix(mcp):) and matches the changeset, which adds…
Description check Passed The description follows the template. It has ELI5, What Changed, Why, Linked Issue (Fixes #49198), Visual Proof with before/after images, Testing, Performance, and Risk with a level. It explains the m…
Linked Issues check Passed Issue #49198 requires the blocked-Claude Agents line to follow the UI language on desktop. At the reviewed head, mcpAgentProblemText in `src/renderer/src/components/settings/mcp-servers/mcp-server-w…
Out of Scope Changes check Passed The changes stay within the issue's localization scope. The desktop helper, desktop and mobile locale keys, and the protected-copy-keys.json entry all support the localized blocked line. On mobile, …
Full details: Title check

Explanation

The title names the main change: the org-blocked Claude line in the MCP server Agents list is now translated. It follows the conventional commit style (fix(mcp):) and matches the changeset, which adds localized strings and a helper for the blocked Claude problem. The title is 77 characters, slightly long but still clear.

Full details: Description check

Explanation

The description follows the template. It has ELI5, What Changed, Why, Linked Issue (Fixes #49198), Visual Proof with before/after images, Testing, Performance, and Risk with a level. It explains the mechanism, the scope limit for terminal-off reasons, and the back-out path. Minor gaps: the Checklist and Review sections are not filled in, and the AI Disclosure section is blank. The template's Visual Proof and Testing parts are otherwise complete.

Full details: Linked Issues check

Explanation

Issue #49198 requires the blocked-Claude Agents line to follow the UI language on desktop. At the reviewed head, mcpAgentProblemText in src/renderer/src/components/settings/mcp-servers/mcp-server-words.ts returns t('settings.mcpServers.agents.blocked', ...) when problem.kind === 'blocked' and agent === 'claude'. Per the PR summary, McpServerAgentsGroup.tsx renders agent problems through this helper, and the blocked key is added to every shipped desktop locale. The issue also mentions mobile, which the PR localizes: mobile/src/mcp-servers/MobileMcpServerPage.tsx at head uses mcpServers.agentBlocked for the same case, and the mobile locales add that key. The terminal-off reasons stay host-provided, which the issue leaves for maintainer decision. No unmet coding requirement was found. Not inspected: the McpServerAgentsGroup.tsx hunk and the automated test files; these rely on the PR summary and author-reported test runs.

Full details: Out of Scope Changes check

Explanation

The changes stay within the issue's localization scope. The desktop helper, desktop and mobile locale keys, and the protected-copy-keys.json entry all support the localized blocked line. On mobile, AgentProblemsSchema in mcp-server-operations.ts now accepts any string kind instead of coercing unknown kinds to blocked. This change supports the mobile row: unknown kinds keep the host's detail. The amber dot now shows for every kind except terminal-off. That keeps the dot for unknown kinds, which previously showed it through the blocked coercion. The PR description and summary state this reasoning. No unrelated change was identified. Terminal-off text, host contracts, and other unrelated files are unchanged per the summary.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cd9911dc-ba5e-4d41-ab39-57bf2ec42959
Commits

Reviewing files that changed from the base of the PR and between 0ff1d04 and 7c02748.

Files selected for processing: 27

  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/zh.json
  • mobile/src/mcp-servers/MobileMcpServerPage.tsx
  • mobile/src/mcp-servers/mcp-server-operations.ts
  • src/renderer/src/components/settings/mcp-servers/McpServerAgentsGroup.tsx
  • src/renderer/src/components/settings/mcp-servers/mcp-server-words.ts
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/plugins/languages/protected-copy-keys.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@nwparker
nwparker merged commit e682e1b into main Nov 25, 2026
99 of 101 checks passed
@nwparker
nwparker deleted the bugbash/issue-49198 branch November 25, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: MCP server Agents list shows "Blocked by your organization’s Claude settings" in English in every language

1 participant