2025-12-05 02:15:39 +09:00
|
|
|
import { websearch_exa } from "./websearch-exa"
|
2025-12-05 02:23:34 +09:00
|
|
|
import { context7 } from "./context7"
|
2025-12-05 03:58:21 +09:00
|
|
|
import type { McpName } from "./types"
|
2025-12-05 02:15:39 +09:00
|
|
|
|
2025-12-05 03:58:21 +09:00
|
|
|
export { McpNameSchema, type McpName } from "./types"
|
2025-12-05 02:23:34 +09:00
|
|
|
|
|
|
|
|
const allBuiltinMcps: Record<McpName, { type: "remote"; url: string; enabled: boolean }> = {
|
2025-12-05 02:15:39 +09:00
|
|
|
websearch_exa,
|
2025-12-05 02:23:34 +09:00
|
|
|
context7,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function createBuiltinMcps(disabledMcps: McpName[] = []) {
|
|
|
|
|
const mcps: Record<string, { type: "remote"; url: string; enabled: boolean }> = {}
|
|
|
|
|
|
|
|
|
|
for (const [name, config] of Object.entries(allBuiltinMcps)) {
|
|
|
|
|
if (!disabledMcps.includes(name as McpName)) {
|
|
|
|
|
mcps[name] = config
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return mcps
|
2025-12-05 02:15:39 +09:00
|
|
|
}
|