-
Notifications
You must be signed in to change notification settings - Fork 232
Description
Basic Information - Models Used
MiniMax-M2.1/M2.5
Basic Information - Scenario Description
配置Minimax CodePlan MCP后导致openCode启动失败
Is this bug known and solvable?
- I have followed the GitHub READMEs for
Minimax-MCPandMinimax-MCP-JS. - I have checked the official Minimax documentation and existing GitHub issues,but found no solution.
Information about environment
Windows 11 家庭中文版
版本号:25H2
opencode版本:版本:1.2.22
mimiMax (去掉minimax mcp的配置后,页面上是选择的minimax M2.1/M2.5都可以用,但opencode.json没有单独配置minimax,影响吗?)
Trace-ID in the request head
本次错误为本地配置文件校验失败,日志中无 trace‑ID,错误是启动时配置格式不合法导致,并非 API 请求异常。
Description
This happens to OpenCode with MiniMax MCP configuration on Windows system.The bug can be reproduced with the following steps:
Configure the mcp section in OpenCode's opencode.json file with only the MiniMax provider, including type, command, env, and enabled fields.
Attempt to start the OpenCode application.
The application fails to start due to configuration validation errors specific to the MiniMax section.
The following example input (configuration snippet) can be used:
json
{
"mcp": {
"MiniMax": {
"type": "local",
"command": ["uvx", "minimax-coding-plan-mcp", "-y"],
"env": {
"MINIMAX_API_KEY": "Key略",
"MINIMAX_API_HOST": "https://api.minimaxi.com"
},
"enabled": true
}
}
}
Expected results
The results are expected to be:
OpenCode starts successfully with the MiniMax MCP configuration.
The MiniMax MCP provider is validated and loaded without configuration errors.
The sidecar server initializes normally and establishes a healthy connection.
Actual behaviours
The actual outputs are as follows:
OpenCode fails to start and terminates with exit code 1.
Configuration validation errors are thrown specifically for unrecognized keys (type, command, env) in the MiniMax MCP section.
The sidecar server terminates before becoming healthy, with the error directly pointing to mcp.MiniMax as the invalid input.
Error logs
The error logs are as follows:
plaintext
Error: Failed to spawn OpenCode Server (Sidecar terminated before becoming healthy (code=Some(1) signal=None)). Logs:
2026-03-16T04:20:39.551843Z INFO opencode_lib: Initializing app
2026-03-16T04:20:39.553183Z INFO opencode_lib: Main and loading windows created
2026-03-16T04:20:39.556623Z INFO opencode_lib::cli: No CLI installation found, skipping sync
2026-03-16T04:20:39.565475Z INFO opencode_lib: Setting up server connection
2026-03-16T04:20:41.863592Z INFO opencode_lib: Attempting server connection custom_url=None
2026-03-16T04:20:43.914686Z INFO opencode_lib: Spawning new local server
2026-03-16T04:20:43.914697Z INFO opencode_lib::cli: Spawning sidecar port=55105
2026-03-16T04:20:43.965409Z INFO opencode_lib: Server connection setup
2026-03-16T04:20:43.965416Z INFO opencode_lib: server connection started
2026-03-16T04:20:44.610787Z INFO sidecar: opencode_lib::cli: ERROR 2026-03-16T04:20:44 +223ms service=default path=C:\Users\fcwzm.config\opencode\opencode.json issues=[{"code":"invalid_union","errors":[[{"code":"unrecognized_keys","keys":["env"],"path":[],"message":"Unrecognized key: "env""}],[{"code":"unrecognized_keys","keys":["type","command","env"],"path":[],"message":"Unrecognized keys: "type", "command", "env""}]],"path":["mcp","MiniMax"],"message":"Invalid input"}] name=ConfigInvalidError message=ConfigInvalidError stack=ConfigInvalidError: ConfigInvalidError
2026-03-16T04:20:44.610802Z INFO sidecar: opencode_lib::cli: at load (src/config/config.ts:1266:15)
2026-03-16T04:20:44.610804Z INFO sidecar: opencode_lib::cli: at processTicksAndRejections (native:7:39) fatal
2026-03-16T04:20:44.610811Z INFO sidecar: opencode_lib::cli: \x1b[91m\x1b[1mError: \x1b[0mConfiguration is invalid at C:\Users\fcwzm.config\opencode\opencode.json
2026-03-16T04:20:44.610812Z INFO sidecar: opencode_lib::cli: ↳ Invalid input mcp.MiniMax
2026-03-16T04:20:44.723636Z INFO sidecar: opencode_lib::cli: Sidecar terminated code=Some(1) signal=None
at castError (http://tauri.localhost/assets/index-DdEIvW4O.js:1:10353)
at http://tauri.localhost/assets/index-DdEIvW4O.js:1:3246
The screenshots are as belows:
需要配置单独的provider么??现在去掉minimax mcp, 在界面是可以选则minimax m2.1或者M2.5的,配置文件里的provider还需要单独配置吗?