[November 25, 2026]
OpenCode
Declare MCP in version control: in CI
Onboarding should be clone-and-run, not a wiki of npx commands. Use the headless entrypoint and fail the job on a non-zero exit.
────────────────────────────────────────────────────────
Declare MCP in version control: in CI
Tip: The server list is part of the build
Onboarding should be clone-and-run, not a wiki of npx commands. Use the headless entrypoint and fail the job on a non-zero exit.
{ "mcp": { "docs": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "./docs"] } } }
Gotcha: Filesystem MCP on $HOME (in ci)
Scope the directory to the repo or a docs folder. The TUI will hang with no TTY; never pipe yes into permission prompts.
{ "args": ["-y", "server-filesystem", "/home"] }
Source: https://opencode.ai/docs/mcp
────────────────────────────────────────────────────────
<-- back to posts