From d7a4fd87baa8ed2c334121038b85f31711ff23de Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sat, 24 Jan 2026 00:58:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E8=BF=9C=E7=A8=8BMCP=E9=85=8D=E7=BD=AE=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=BB=98=E8=AE=A4=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加新的远程上下文配置,指定 context7 的服务地址并默认禁用。 - 添加 DeepWiki MCP 配置,启用远程连接并指定配置文件路径。 - 添加 Exa 搜索工具的远程 MCP 配置并禁用默认启用。 - 添加 grep-app 远程 MCP 配置并设置为禁用状态。 - 添加本地内存配置并启用模型上下文协议内存服务器的默认设置 - 添加顺序思维配置,启用本地命令行工具以支持顺序思维功能。 - 移除已禁用的 websearch 工具配置并更新 grep_app 的键名以保持一致性。 - 移除已废弃的 MCP 配置文件中定义的远程和本地服务端点。 --- mcp/context7.jsonc | 10 ++++++++++ mcp/deepwiki.jsonc | 10 ++++++++++ mcp/exa.jsonc | 10 ++++++++++ mcp/grep-app.jsonc | 10 ++++++++++ mcp/memory.jsonc | 10 ++++++++++ mcp/sequential-thinking.jsonc | 10 ++++++++++ opencode.jsonc | 9 +-------- snippet/mcp.jsonc | 21 --------------------- 8 files changed, 61 insertions(+), 29 deletions(-) create mode 100644 mcp/context7.jsonc create mode 100644 mcp/deepwiki.jsonc create mode 100644 mcp/exa.jsonc create mode 100644 mcp/grep-app.jsonc create mode 100644 mcp/memory.jsonc create mode 100644 mcp/sequential-thinking.jsonc delete mode 100644 snippet/mcp.jsonc diff --git a/mcp/context7.jsonc b/mcp/context7.jsonc new file mode 100644 index 0000000..5e66ce0 --- /dev/null +++ b/mcp/context7.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "context7": { + "type": "remote", + "url": "https://mcp.context7.com/mcp", + "enabled": false + } + } +} diff --git a/mcp/deepwiki.jsonc b/mcp/deepwiki.jsonc new file mode 100644 index 0000000..ea9520c --- /dev/null +++ b/mcp/deepwiki.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "deepwiki": { + "type": "remote", + "url": "https://mcp.deepwiki.com/mcp", + "enabled": false + } + } +} diff --git a/mcp/exa.jsonc b/mcp/exa.jsonc new file mode 100644 index 0000000..2e95299 --- /dev/null +++ b/mcp/exa.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "exa": { + "type": "remote", + "url": "https://mcp.exa.ai/mcp?tools=web_search_exa", + "enabled": false + } + } +} diff --git a/mcp/grep-app.jsonc b/mcp/grep-app.jsonc new file mode 100644 index 0000000..997adb4 --- /dev/null +++ b/mcp/grep-app.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "grep-app": { + "type": "remote", + "url": "https://mcp.grep.app", + "enabled": false + } + } +} diff --git a/mcp/memory.jsonc b/mcp/memory.jsonc new file mode 100644 index 0000000..31997d3 --- /dev/null +++ b/mcp/memory.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "memory": { + "type": "local", + "command": ["bunx", "@modelcontextprotocol/server-memory"], + "enabled": false + } + } +} diff --git a/mcp/sequential-thinking.jsonc b/mcp/sequential-thinking.jsonc new file mode 100644 index 0000000..f094324 --- /dev/null +++ b/mcp/sequential-thinking.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "sequential-thinking": { + "type": "local", + "command": ["bunx", "@modelcontextprotocol/server-sequential-thinking"], + "enabled": false + } + } +} diff --git a/opencode.jsonc b/opencode.jsonc index 68dcd36..8543ce4 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -9,22 +9,15 @@ "@franlol/opencode-md-table-formatter@latest" ], "mcp": { - "websearch": { - "type": "remote", - "url": "https://mcp.exa.ai/mcp?tools=web_search_exa" - }, "context7": { "type": "remote", "url": "https://mcp.context7.com/mcp" }, - "grep_app": { + "grep-app": { "type": "remote", "url": "https://mcp.grep.app" } }, - "permission": { - "websearch": "deny" // 禁用内置的 websearch 工具 - }, "provider": { "anthropic-gateway": { "name": "Anthropic Gateway", diff --git a/snippet/mcp.jsonc b/snippet/mcp.jsonc deleted file mode 100644 index fe4ca17..0000000 --- a/snippet/mcp.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$schema": "https://opencode.ai/config.json", - "mcp": { - "context7": { - "type": "remote", - "url": "https://mcp.context7.com/mcp" - }, - "deepwiki": { - "type": "remote", - "url": "https://mcp.deepwiki.com/mcp" - }, - "sequential-thinking": { - "type": "local", - "command": ["bunx", "@modelcontextprotocol/server-sequential-thinking"] - }, - "memory": { - "type": "local", - "command": ["bunx", "@modelcontextprotocol/server-memory"] - } - } -}