feat(mcp): add websearch_exa as built-in MCP
- Add src/mcp/ directory with websearch_exa configuration - Configure Exa AI remote MCP (https://mcp.exa.ai/mcp) - Export builtinMcps from plugin config - Update documentation (EN/KO) with Built-in MCPs section
This commit is contained in:
@@ -3,6 +3,7 @@ import { builtinAgents } from "./agents"
|
||||
import { createTodoContinuationEnforcer, createContextWindowMonitorHook, createSessionRecoveryHook } from "./hooks"
|
||||
import { updateTerminalTitle } from "./features/terminal"
|
||||
import { builtinTools } from "./tools"
|
||||
import { builtinMcps } from "./mcp"
|
||||
|
||||
const OhMyOpenCodePlugin: Plugin = async (ctx) => {
|
||||
const todoContinuationEnforcer = createTodoContinuationEnforcer(ctx)
|
||||
@@ -27,6 +28,10 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
|
||||
...config.tools,
|
||||
grep: false,
|
||||
}
|
||||
config.mcp = {
|
||||
...config.mcp,
|
||||
...builtinMcps,
|
||||
}
|
||||
},
|
||||
|
||||
event: async (input) => {
|
||||
|
||||
5
src/mcp/index.ts
Normal file
5
src/mcp/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { websearch_exa } from "./websearch-exa"
|
||||
|
||||
export const builtinMcps = {
|
||||
websearch_exa,
|
||||
}
|
||||
5
src/mcp/websearch-exa.ts
Normal file
5
src/mcp/websearch-exa.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const websearch_exa = {
|
||||
type: "remote" as const,
|
||||
url: "https://mcp.exa.ai/mcp?tools=web_search_exa",
|
||||
enabled: true,
|
||||
}
|
||||
Reference in New Issue
Block a user