You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Split off MCP server configuration from config.json #1998
There is a possibility to define custom MCP server configurations in global config file. However, for multiple MCP servers it can become unpractical to define all of them in a single file. The file starts being too large and non-modifyable. Also it is quite uncomfortable to exchange with MCP server locations between people - manual config file edit is required.
It is proposed that "mcp" section in config.json can be split off into multiple files in ~/.config/opencode/mcp/*.json. Each file references a single MCP server configuration. It allows just adding new files instead of modifying a single big config file. Also it enables to exchange with MCP server configurations with e.g. just symlinking mcp/*.json from shared filesystem with MCP configs.
Configuration Management: Splitting into separate files would help organize complex setups, but doesn't address the underlying authentication coordination problem.
Root Issue Discovered: Third-party proxy solutions use shared OAuth sessions that prevent true instance isolation regardless of configuration structure.
Comparison: Claude Code's native SSE implementation handles per-instance authentication without configuration complexity.
Recommendation: While configuration splitting would improve usability, the priority should be native OAuth implementation (issue #988) to eliminate proxy dependency.
Configuration management improvements would be valuable once authentication isolation is solved.
Activity
rekram1-node commentedon Aug 16, 2025
to clarify: you want mcp configuration to not be limited to a single file?
also what did you mean here:
segoon commentedon Aug 16, 2025
Right.
ln -s /mount/dotfiles/.config/opencode/mcp/*.json ~/.config/opencode/mcp/segoon commentedon Aug 23, 2025
@rekram1-node can you please look at the PR?
rekram1-node commentedon Aug 23, 2025
@segoon that's up to @thdxr to review, but I will assign him to your PR
rekram1-node commentedon Aug 23, 2025
assigned him
clouatre commentedon Sep 14, 2025
Multi-Instance Testing: Configuration Split Won't Solve Core Issue
We've tested extensive multi-instance MCP configurations and can provide insights on this proposal.
Testing Scenario: 3 Atlassian MCP instances (separate tenants) + multiple other MCP servers
Configuration Management: Splitting into separate files would help organize complex setups, but doesn't address the underlying authentication coordination problem.
Root Issue Discovered: Third-party proxy solutions use shared OAuth sessions that prevent true instance isolation regardless of configuration structure.
Evidence:
Comparison: Claude Code's native SSE implementation handles per-instance authentication without configuration complexity.
Recommendation: While configuration splitting would improve usability, the priority should be native OAuth implementation (issue #988) to eliminate proxy dependency.
Configuration management improvements would be valuable once authentication isolation is solved.
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
segoon commentedon Mar 25, 2026
Hi, still actual, commented in the PR #2001 (comment)
@rekram1-node @thdxr