[November 21, 2026]
OpenCode
Declare MCP in version control: in a shared repo
Onboarding should be clone-and-run, not a wiki of npx commands. Commit the setting so every clone matches.
────────────────────────────────────────────────────────
Declare MCP in version control: in a shared repo
Tip: The server list is part of the build
Onboarding should be clone-and-run, not a wiki of npx commands. Commit the setting so every clone matches.
{ "mcp": { "docs": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "./docs"] } } }
Gotcha: Filesystem MCP on $HOME (in a shared repo)
Scope the directory to the repo or a docs folder. A laptop-only tweak will look like a model regression on CI.
{ "args": ["-y", "server-filesystem", "/home"] }
Source: https://opencode.ai/docs/mcp
────────────────────────────────────────────────────────
<-- back to posts