Skip to content

Commit 26e77a0

Browse files
committed
test(doctor): update MCP checks for websearch_exa removal
🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
1 parent a5c7147 commit 26e77a0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/cli/doctor/checks/mcp.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ describe("mcp check", () => {
99
const servers = mcp.getBuiltinMcpInfo()
1010

1111
// #then should include expected servers
12-
expect(servers.length).toBe(3)
12+
expect(servers.length).toBe(2)
1313
expect(servers.every((s) => s.type === "builtin")).toBe(true)
1414
expect(servers.every((s) => s.enabled === true)).toBe(true)
1515
expect(servers.map((s) => s.id)).toContain("context7")
16-
expect(servers.map((s) => s.id)).toContain("websearch_exa")
1716
expect(servers.map((s) => s.id)).toContain("grep_app")
1817
})
1918
})
@@ -37,7 +36,7 @@ describe("mcp check", () => {
3736

3837
// #then should pass
3938
expect(result.status).toBe("pass")
40-
expect(result.message).toContain("3")
39+
expect(result.message).toContain("2")
4140
expect(result.message).toContain("enabled")
4241
})
4342

@@ -48,7 +47,6 @@ describe("mcp check", () => {
4847

4948
// #then should list servers
5049
expect(result.details?.some((d) => d.includes("context7"))).toBe(true)
51-
expect(result.details?.some((d) => d.includes("websearch_exa"))).toBe(true)
5250
expect(result.details?.some((d) => d.includes("grep_app"))).toBe(true)
5351
})
5452
})

src/cli/doctor/checks/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { CheckResult, CheckDefinition, McpServerInfo } from "../types"
55
import { CHECK_IDS, CHECK_NAMES } from "../constants"
66
import { parseJsonc } from "../../../shared"
77

8-
const BUILTIN_MCP_SERVERS = ["context7", "websearch_exa", "grep_app"]
8+
const BUILTIN_MCP_SERVERS = ["context7", "grep_app"]
99

1010
const MCP_CONFIG_PATHS = [
1111
join(homedir(), ".claude", ".mcp.json"),

0 commit comments

Comments
 (0)