feat: 添加多个远程MCP配置并优化默认设置

- 添加新的远程上下文配置,指定 context7 的服务地址并默认禁用。
- 添加 DeepWiki MCP 配置,启用远程连接并指定配置文件路径。
- 添加 Exa 搜索工具的远程 MCP 配置并禁用默认启用。
- 添加 grep-app 远程 MCP 配置并设置为禁用状态。
- 添加本地内存配置并启用模型上下文协议内存服务器的默认设置
- 添加顺序思维配置,启用本地命令行工具以支持顺序思维功能。
- 移除已禁用的 websearch 工具配置并更新 grep_app 的键名以保持一致性。
- 移除已废弃的 MCP 配置文件中定义的远程和本地服务端点。
This commit is contained in:
2026-01-24 00:58:24 +08:00
parent 65206f1560
commit d7a4fd87ba
8 changed files with 61 additions and 29 deletions

10
mcp/context7.jsonc Normal file
View File

@@ -0,0 +1,10 @@
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"enabled": false
}
}
}

10
mcp/deepwiki.jsonc Normal file
View File

@@ -0,0 +1,10 @@
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"deepwiki": {
"type": "remote",
"url": "https://mcp.deepwiki.com/mcp",
"enabled": false
}
}
}

10
mcp/exa.jsonc Normal file
View File

@@ -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
}
}
}

10
mcp/grep-app.jsonc Normal file
View File

@@ -0,0 +1,10 @@
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"grep-app": {
"type": "remote",
"url": "https://mcp.grep.app",
"enabled": false
}
}
}

10
mcp/memory.jsonc Normal file
View File

@@ -0,0 +1,10 @@
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"memory": {
"type": "local",
"command": ["bunx", "@modelcontextprotocol/server-memory"],
"enabled": false
}
}
}

View File

@@ -0,0 +1,10 @@
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"sequential-thinking": {
"type": "local",
"command": ["bunx", "@modelcontextprotocol/server-sequential-thinking"],
"enabled": false
}
}
}

View File

@@ -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",

View File

@@ -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"]
}
}
}