Files
oh-my-opencode/src/mcp/index.ts
T
YeonGyu-Kim c7d29fea48 refactor(mcp): remove unused builtinMcps export
🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
2025-12-09 10:36:34 +09:00

23 lines
627 B
TypeScript

import { websearch_exa } from "./websearch-exa"
import { context7 } from "./context7"
import type { McpName } from "./types"
export { McpNameSchema, type McpName } from "./types"
const allBuiltinMcps: Record<McpName, { type: "remote"; url: string; enabled: boolean }> = {
websearch_exa,
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
}