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
Load VS Code's MCP servers in a project folder #361
Thanks for bringing this up! It seems like a lot of tools are settling on a common format—like the mcp.json file—for MCP configs. It’d be awesome if Opencode could also load global configs from something like ~/.config/opencode/mcp.json. That way, we wouldn’t have MCP settings scattered all over in different formats. Thus, in the future we could define the MCP config once and then just link to it to wherever it’s needed.
I have pushed a PR that implements loading the MCP configuration from both the global file (~/.config/opencode/mcp.json) and the local file (.mcp.json). See #1170 for details.
Reacted by Peter Benjamin, Nikhil Maddirala, Geodecki 4P gr.1 and Mauricio Scheffer
Activity
delafthi commentedon Jul 20, 2025
Thanks for bringing this up! It seems like a lot of tools are settling on a common format—like the
mcp.jsonfile—for MCP configs. It’d be awesome if Opencode could also load global configs from something like~/.config/opencode/mcp.json. That way, we wouldn’t have MCP settings scattered all over in different formats. Thus, in the future we could define the MCP config once and then just link to it to wherever it’s needed.Also, supporting a local
.mcp.jsoninside the project (not necessarily under.vscode) would be super helpful, since not everyone uses the VSCode folder (see https://docs.anthropic.com/en/docs/claude-code/mcp#project-scope).All in all, if Opencode followed these conventions, it’d make things way easier and smoother to manage across different setups.
Regarding variable expansion and reading from VSCode configurations, I believe it would be simpler if VSCode directly read from
.mcp.jsonusing the default variable expansion (see https://docs.anthropic.com/en/docs/claude-code/mcp#environment-variable-expansion-in-mcp-json), rather than having other tools read from.vscode/mcp.json.delafthi commentedon Jul 20, 2025
I have pushed a PR that implements loading the MCP configuration from both the global file (
~/.config/opencode/mcp.json) and the local file (.mcp.json). See #1170 for details.nikhilmaddirala commentedon Aug 1, 2025
It would be great to also have support for a global ~/.config/opencode/mcp.json so that it can be symlinked to other places.
R44VC0RP commentedon Dec 18, 2025
I have updated a PR for this on #5739
Verify owpenbot telegram token on save (anomalyco#361)