test(doctor): update MCP checks for websearch_exa removal
🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
@@ -9,11 +9,10 @@ describe("mcp check", () => {
|
|||||||
const servers = mcp.getBuiltinMcpInfo()
|
const servers = mcp.getBuiltinMcpInfo()
|
||||||
|
|
||||||
// #then should include expected servers
|
// #then should include expected servers
|
||||||
expect(servers.length).toBe(3)
|
expect(servers.length).toBe(2)
|
||||||
expect(servers.every((s) => s.type === "builtin")).toBe(true)
|
expect(servers.every((s) => s.type === "builtin")).toBe(true)
|
||||||
expect(servers.every((s) => s.enabled === true)).toBe(true)
|
expect(servers.every((s) => s.enabled === true)).toBe(true)
|
||||||
expect(servers.map((s) => s.id)).toContain("context7")
|
expect(servers.map((s) => s.id)).toContain("context7")
|
||||||
expect(servers.map((s) => s.id)).toContain("websearch_exa")
|
|
||||||
expect(servers.map((s) => s.id)).toContain("grep_app")
|
expect(servers.map((s) => s.id)).toContain("grep_app")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -37,7 +36,7 @@ describe("mcp check", () => {
|
|||||||
|
|
||||||
// #then should pass
|
// #then should pass
|
||||||
expect(result.status).toBe("pass")
|
expect(result.status).toBe("pass")
|
||||||
expect(result.message).toContain("3")
|
expect(result.message).toContain("2")
|
||||||
expect(result.message).toContain("enabled")
|
expect(result.message).toContain("enabled")
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -48,7 +47,6 @@ describe("mcp check", () => {
|
|||||||
|
|
||||||
// #then should list servers
|
// #then should list servers
|
||||||
expect(result.details?.some((d) => d.includes("context7"))).toBe(true)
|
expect(result.details?.some((d) => d.includes("context7"))).toBe(true)
|
||||||
expect(result.details?.some((d) => d.includes("websearch_exa"))).toBe(true)
|
|
||||||
expect(result.details?.some((d) => d.includes("grep_app"))).toBe(true)
|
expect(result.details?.some((d) => d.includes("grep_app"))).toBe(true)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import type { CheckResult, CheckDefinition, McpServerInfo } from "../types"
|
|||||||
import { CHECK_IDS, CHECK_NAMES } from "../constants"
|
import { CHECK_IDS, CHECK_NAMES } from "../constants"
|
||||||
import { parseJsonc } from "../../../shared"
|
import { parseJsonc } from "../../../shared"
|
||||||
|
|
||||||
const BUILTIN_MCP_SERVERS = ["context7", "websearch_exa", "grep_app"]
|
const BUILTIN_MCP_SERVERS = ["context7", "grep_app"]
|
||||||
|
|
||||||
const MCP_CONFIG_PATHS = [
|
const MCP_CONFIG_PATHS = [
|
||||||
join(homedir(), ".claude", ".mcp.json"),
|
join(homedir(), ".claude", ".mcp.json"),
|
||||||
|
|||||||
Reference in New Issue
Block a user