Files
opencode-config/opencode.jsonc
imbytecat d7a4fd87ba feat: 添加多个远程MCP配置并优化默认设置
- 添加新的远程上下文配置,指定 context7 的服务地址并默认禁用。
- 添加 DeepWiki MCP 配置,启用远程连接并指定配置文件路径。
- 添加 Exa 搜索工具的远程 MCP 配置并禁用默认启用。
- 添加 grep-app 远程 MCP 配置并设置为禁用状态。
- 添加本地内存配置并启用模型上下文协议内存服务器的默认设置
- 添加顺序思维配置,启用本地命令行工具以支持顺序思维功能。
- 移除已禁用的 websearch 工具配置并更新 grep_app 的键名以保持一致性。
- 移除已废弃的 MCP 配置文件中定义的远程和本地服务端点。
2026-01-24 00:58:24 +08:00

95 lines
2.3 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"autoupdate": "notify",
"theme": "tokyonight",
"model": "anthropic-gateway/claude-sonnet-4-5",
"small_model": "google-gateway/gemini-3-flash",
"plugin": [
"@tarquinen/opencode-dcp@latest",
"@franlol/opencode-md-table-formatter@latest"
],
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp"
},
"grep-app": {
"type": "remote",
"url": "https://mcp.grep.app"
}
},
"provider": {
"anthropic-gateway": {
"name": "Anthropic Gateway",
"npm": "@ai-sdk/anthropic",
"options": {
// "baseURL": "https://cpa.services.sh.cn:8443/v1",
"baseURL": "http://10.0.1.1:8317/v1",
"apiKey": "{env:CPA_API_KEY}"
},
"models": {
"claude-opus-4-5-thinking": {
"name": "Claude Opus 4.5 (Thinking)"
},
"claude-sonnet-4-5-thinking": {
"name": "Claude Sonnet 4.5 (Thinking)"
},
"claude-sonnet-4-5": {
"name": "Claude Sonnet 4.5"
},
"claude-haiku-4-5": {
"name": "Claude Haiku 4.5"
}
}
},
"google-gateway": {
"name": "Google Gateway",
"npm": "@ai-sdk/google",
"options": {
"baseURL": "http://10.0.1.1:8317/v1beta",
"apiKey": "{env:CPA_API_KEY}"
},
"models": {
"gemini-3-pro-high": {
"name": "Gemini 3 Pro (High)"
},
"gemini-3-pro-image": {
"name": "Gemini 3 Pro (Image)"
},
"gemini-3-flash": {
"name": "Gemini 3 Flash"
}
}
},
"openai-gateway": {
"name": "OpenAI Gateway",
"npm": "@ai-sdk/openai",
"options": {
"baseURL": "http://10.0.1.1:8317/v1",
"apiKey": "{env:CPA_API_KEY}"
},
"models": {
"gpt-5.2": {
"name": "GPT-5.2"
},
"gpt-5.2-codex": {
"name": "GPT-5.2-Codex"
}
}
},
"GLM Coding": {
"name": "Z.AI",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://api.z.ai/api/coding/paas/v4",
"apiKey": "{env:ZAI_API_KEY}"
},
"models": {
"glm-4.7": {
"name": "GLM-4.7"
}
}
}
}
}