Skip to content

Commit a7d7968

Browse files
authored
fix(mcp): remove obsolete server creation translations (#943)
* fix(mcp): remove obsolete server creation translations * test(mcp): remove stale server creation references * test(mcp): fix no-server prompt snapshot
1 parent c6279d8 commit a7d7968

20 files changed

Lines changed: 2 additions & 93 deletions

File tree

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-disabled.snap renamed to src/core/prompts/__tests__/__snapshots__/add-custom-instructions/no-mcp-servers.snap

File renamed without changes.

src/core/prompts/__tests__/add-custom-instructions.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ describe("addCustomInstructions", () => {
236236
expect(prompt).toMatchFileSnapshot("./__snapshots__/add-custom-instructions/ask-mode-prompt.snap")
237237
})
238238

239-
it("should exclude MCP server creation info when disabled", async () => {
239+
it("should generate the prompt when the MCP hub has no servers", async () => {
240240
const mockMcpHub = createMockMcpHub(false)
241241

242242
const prompt = await SYSTEM_PROMPT(
@@ -255,8 +255,7 @@ describe("addCustomInstructions", () => {
255255
undefined, // partialReadsEnabled
256256
)
257257

258-
expect(prompt).not.toContain("Creating an MCP Server")
259-
expect(prompt).toMatchFileSnapshot("./__snapshots__/add-custom-instructions/mcp-server-creation-disabled.snap")
258+
expect(prompt).toMatchFileSnapshot("./__snapshots__/add-custom-instructions/no-mcp-servers.snap")
260259
})
261260

262261
it("should prioritize mode-specific rules for code mode", async () => {

webview-ui/src/i18n/locales/ca/mcp.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/de/mcp.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/en/mcp.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
"title": "Enable MCP Servers",
99
"description": "Turn this ON to let Zoo use tools from connected MCP servers. This gives Zoo more capabilities. If you don't plan to use these extra tools, turn it OFF to help reduce API token costs."
1010
},
11-
"enableServerCreation": {
12-
"title": "Enable MCP Server Creation",
13-
"description": "Enable this to have Zoo help you build <1>new</1> custom MCP servers. <0>Learn about server creation</0>",
14-
"hint": "Hint: To reduce API token costs, disable this setting when you are not actively asking Zoo to create a new MCP server."
15-
},
1611
"editGlobalMCP": "Edit Global MCP",
1712
"editProjectMCP": "Edit Project MCP",
1813
"refreshMCP": "Refresh MCP Servers",

webview-ui/src/i18n/locales/es/mcp.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/fr/mcp.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/hi/mcp.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/id/mcp.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/it/mcp.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)