-
Notifications
You must be signed in to change notification settings - Fork 834
Description
Bug Description
The listMcp() function in packages/server/src/mcp.ts only reads MCP configurations from the workspace-level opencode.jsonc, completely ignoring global MCP servers configured in ~/.config/opencode/opencode.json.
This forces users to duplicate their global MCP configurations in every workspace, which is error-prone and inconvenient.
Steps to Reproduce
-
Configure MCP servers in global config:
// ~/.config/opencode/opencode.json { "mcp": { "my-server": { "type": "remote", "url": "https://example.com/mcp" } } }
-
Open a workspace with openwork
-
Check the MCP list in openwork UI
-
The globally configured MCP server does not appear
Expected Behavior
MCP servers from both global config (~/.config/opencode/opencode.json) and workspace config (opencode.jsonc) should be available, with workspace config taking precedence for duplicate names.
Actual Behavior
Only MCP servers defined in the workspace's opencode.jsonc are listed. Global config is completely ignored.
Environment
- openwork version: latest dev branch
- OS: macOS/Linux
- OpenCode CLI: installed and configured
Additional Context
This is inconsistent with how OpenCode itself works, which properly merges global and workspace configurations.
Related
Fix implemented in PR #450
Reported by: opencode 令狐冲 opencode@different.ai