OpenCode configures MCP servers in opencode.json (project scope) or
~/.config/opencode/opencode.json (global scope).
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"sidemux": {
"type": "local",
"command": ["node", "/path/to/sidemux/dist/index.js"],
"enabled": true
}
}
}{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"sidemux": {
"type": "local",
"command": ["npx", "-y", "sidemux"],
"enabled": true
}
}
}Optional configuration is passed through the environment key:
"sidemux": {
"type": "local",
"command": ["npx", "-y", "sidemux"],
"environment": {
"SIDEMUX_SESSION": "smux"
},
"enabled": true
}- sidemux runs commands in the
smuxworkspace session. Runs are grouped byname/projectinto tmux windows; with no attached client the workspace is detached. Attach withtmux attach -t smuxto watch, or pressPrefix efrom any tmux session for the dashboard popup (tmux ≥ 3.2). - Personal settings that should apply to every project (session name,
dashboard key/density, TTLs, …) belong in the global config file
~/.config/sidemux/config.tomlrather than per-projectenvironmentblocks; env vars override the file when both are set. See configuration.md. - If you use OpenCode rules files (
AGENTS.md), the "loop" section of skills/tmux-delegate/SKILL.md is a ready-made paste that teaches the workflow explicitly.