MCP configuration
Canonical per-module MCP manifests and how each harness wires them.
MCP configuration
Each module declares its MCP servers once in a mcp.json manifest (harness-agnostic), and each harness wires it into its own runtime config through a single shared translator — the same architecture as the Hooks manifests:
- Translation —
src/_shared/mcp_translate.pymaps a canonical manifest to a harness shape. No consumer re-implements the mapping, so per-harness drift (the oldmcp.opencode.json/mcp.claudecode.jsonpair suffered exactly that) cannot reappear. - OpenCode —
bin/init.shtranslates and merges each manifest into themcpblock ofopencode.jsonc;opencode/reset.shprunes stale and disabled-module entries. - Claude Code — the claudecode harness
_wire_mcptranslates and regenerates.mcp.jsonfrom scratch.
Module gate
Module enablement is the primary gate:
- module enabled → all servers it declares are wired into the selected harness (see
harness); - module disabled → its servers are pruned from the selected harness’s config on reinit. An unselected harness is deliberately left untouched, so a manifest it generated while it was selected can remain in its tree.
Within an enabled module a server can additionally ship wired but not started — see Per-server enablement.
A config in a parent directory also counts. opencode reads an opencode.jsonc it finds above the project as well as the project’s own, so a session started in a child project can reach servers that project never declares. It is invisible in the project’s config — devbot reinit neither adds nor removes those entries, and the mcp-sync plugin logs <server>: not in …/opencode.jsonc — skipped when it refuses to write one back. When a tool appears that the project’s config does not mention, look at the directories above it before suspecting the wiring.
Reducing the footprint
Every enabled server’s tool schemas are injected into the session context, and every harness instance starts its own copy of the server process. Measured per server (2026-09-14, tools/list schema bytes):
| server | tools | ~tokens of schema |
|---|---|---|
| chrome-devtools | 29 | ~6.5k |
| codebase-memory | 15 | ~5.9k |
| playwright | 21 | ~3.5k |
| devbot-tools | 11 | ~1.1k |
| mdctx | 3 | ~0.3k |
Twelve of these already ship disabled by default — atlassian, chrome-devtools, figma, notion, playwright, react-nextjs-devtools, sentry, signoz, sonarqube, vite, jetbrains and each ds-<name> gateway — so an enabled project pays nothing for them until they are switched on (Per-server enablement). amplitude, atlassian, figma, notion, react, sentry, sonarqube and vite are additionally opt-in modules, so they are absent from the config entirely until enabled in the modules map. To remove a server from the config entirely, disable its module:
// .devbot.project.jsonc
{ "modules": { "chrome-devtools": false, "playwright": false } }
Its servers then appear in no harness config (opencode reset prunes them on reinit; claudecode regenerates without them). This also drops the module’s skills and tools — for the browser modules the MCP server is essentially the whole module, so the trade is usually free.
mcp.<name>.enabled: false in the runtime opencode.jsonc is a local escape hatch for disabling an inherited server without unregistering it. opencode reads its config once at startup (no hot-reload), so a change requires a restart.
LSP servers are the other per-instance cost — see Harnesses.
Per-server enablement
In opencode a server entry may carry "enabled": false: the server is still registered there — the flag means “wired, do not start yet” — so turning it on is a config edit, not a re-run of devbot init. claudecode has no such per-server state and omits the server instead (see the table below).
| Harness | What enabled: false does |
|---|---|
| opencode | Emitted as mcp.<name>.enabled: false in opencode.jsonc — registered but not started. Flip it to true (or toggle it in the harness) and restart; opencode reads its config once at startup. |
| claudecode | Not wired. The server is omitted from .mcp.json — it has no per-server on/off, and Claude Code ignores a disabled/enabled key in it, so a disabled server is simply not registered. This matches opencode’s end state (registered but not started): no process, no tool schema. |
Twelve servers ship disabled by default — atlassian, chrome-devtools, figma, notion, playwright, react-nextjs-devtools, sentry, signoz, sonarqube, vite, the per-datasource ds-<name> gateways, and jetbrains (amplitude, atlassian, figma, notion, react, sentry, sonarqube and vite as opt-in modules, absent entirely until enabled). Whichever harness is selected treats them as inert: opencode registers each but does not start it, and Claude Code does not receive it at all — so neither pays tool-schema tokens or a process for a server a session never uses.
enabled is optional and defaults to true — a manifest that omits it is wired and started exactly as before. Declare it only to opt out. To switch one on, set its enabled to true in the generated opencode.jsonc entry (or toggle it in the harness) and restart.
An enabled value in the config is yours: reinit never reverts it. The module’s declared default applies only to an entry that expresses no opinion — so a release newly declaring enabled still reaches an existing install, while a server you switched on stays on. That holds for a declared manifest (mcp.json, or jetbrains’s wire_disabled); a generated one — amplitude’s dynamic entry, kctl-* — is re-emitted whenever its definition differs, and a definition that declares enabled inherits the config’s value, so its on/off has to come from the switch that produces it.
Two switches, and the module one is not the server one. modules.<name>: true wires the module — its skills, commands and tools appear — while the server stays off unless enabled is also true. That pair is easy to half-set: a project with modules.atlassian: true and no mcps opt-in gets devbot:atlassian in its skill list and no Jira tools, because the module’s manifest ships enabled: false. Turning on the module is not consent to reach the service, so check both when a skill is present but its tools are not. amplitude is the exception: its manifest is generated rather than declared, so modules.amplitude: true is both switches at once.
Runtime toggles are written back
opencode keeps enablement in memory: it does not rewrite opencode.jsonc, and opencode mcp list reads the config back rather than the session. The mcp-sync plugin polls the harness’s own mcp.status() and, when a server’s status changes between two polls and the config disagrees, writes the implied value — connected → enabled: true, disabled → enabled: false.
failed and needs_auth are not user intent and never write, and the first poll only seeds a baseline, so startup states cannot rewrite anything. A failed write keeps its transition pending and is retried. A server declared only in the global config gets a project override, copied from the global file verbatim — never from the harness’s resolved config, which can hold an interpolated secret. The edit is span-based, so comments and {env:VAR} tokens survive.
The write target is the project’s opencode.jsonc — the same file devbot tool project-for-path --key mcps reads (resolve_mcps() does not read .opencode/ or opencode.json). When that file is missing the plugin logs a warning and skips, rather than writing a surface nothing reads. opencode reads its config at startup, so the write takes effect on the next launch.
Slow-starting servers
opencode allows a server 30 s to connect and fetch tools. A container-backed server can exceed that on a cold start — sonarqube pulls its image once, boots a JVM and syncs analyzers — and the harness then reports the enabled server as failed, not connected. Declare timeout (milliseconds) in the canonical manifest to raise it: sonarqube ships 120000. opencode applies the same value to tool calls, which suits a long analysis better than the default.
Authenticating a server
A server whose canonical manifest omits oauth — the two hosted OAuth servers, atlassian and notion — is authenticated once per machine, from the project directory:
opencode mcp auth atlassian
opencode mcp auth notion
opencode runs the consent flow and stores the tokens itself; opencode mcp logout <server> clears them. Claude Code has no CLI equivalent — run /mcp inside a session and follow the browser flow. The token alternative ("oauth": false plus a header reading {env:VAR}) is documented on each module’s page.
Shared machine-wide gateways
A dev-bot MCP server must never launch its own per-instance process. Servers that are stateless and machine-global run once per machine as a docker compose service; every harness instance connects over streamable-http instead of spawning its own stdio copy. This follows the module-owned compose pattern (docker-compose.yml in the module dir, auto-discovered by devbot up/down; up is gated by module enablement resolved over every registered project, while down is machine-wide and session-gated).
The gateway pattern is for machine-global servers. A server that carries a per-user identity or per-project context — aws, chrome-devtools, sonarqube — stays stdio and is started only when its module and MCP entry are both enabled. playwright used to be on that list: it is a gateway now because Playwright MCP isolates clients itself — each HTTP client gets its own browser context, and the workspace root it may use is the root that client declares over MCP roots (opencode answers with the session’s project directory, verified; a client that declares none gets the container’s working directory instead). One container therefore still gives every project its own context.
The canonical manifest declares such a server as http:
{ "mcp": { "mdctx": { "type": "http", "url": "http://127.0.0.1:18501/mcp" } } }
The translator maps http to opencode’s remote and Claude Code’s http — no per-harness wiring.
Port registry
Gateways bind 127.0.0.1 only (never exposed off the machine), in the 18500–18599 block:
| port | server |
|---|---|
| 18501 | mdctx |
| 18502 | signoz |
| 18503 | svelte |
| 18504 | codebase-memory |
| 18505 | playwright |
| 18510 | datasources |
| 18520+ | datasources sidecars — one per opensearch/s3 datasource, allocated by sorted name |
The datasources gateway is the one gateway whose compose file is generated
(storage/datasources/docker-compose.yml) rather than shipped in its module
directory: it must receive every env var the declared datasources reference, and
those names come from the config at run time. It therefore brings its own compose
up and down from up.sh/down.sh instead of being discovered by bin/up.sh,
and for the same reason it uses host networking — so a database running on
this machine is reachable at the address the host sees. The toolbox image is
distroless, so its readiness check lives in up.sh rather than in a container
healthcheck. Its config holds only the sources the gateway can initialize right
now, decided once when devbot up runs — see datasources in
docs/configuration.md.
Credentials
A gateway’s credentials are interpolated from the environment devbot up builds — never written into a config file:
bin/up.shloads the repo-root.envbefore invoking compose. This matters because compose interpolation reads the project directory’s.env, and with a module-first-flist (the norm — there is no root compose) that directory is the module’s. Without the explicit load, the repo.envis ignored and${VAR}silently interpolates to empty.- Put the value in the repo-root
.env, or export it in the shell that runsdevbot up.
Changing a credential needs a container recreate — devbot up runs compose with --no-recreate, and devbot down removes nothing while any devbot session is alive (it is gated on the install-level session registry). Recreate that one service explicitly instead:
docker compose -f src/agentic/<module>/docker-compose.yml up -d --force-recreate <service>
A recreate is not a removal, so the lifetime gate does not apply to it. (The codebase-memory gateway reconciles its own repo mount on devbot up — see its module up.sh — so no manual recreate is needed there.)
A missing credential is not reliably visible to a readiness probe: an MCP initialize handshake succeeds against a gateway with no working credential. So signoz/up.sh reports DEGRADED rather than reachable when SIGNOZ_AUTH_TOKEN is unset.
Lifecycle and health
Gateways are started on demand by devbot up and left running. They use restart: "no" deliberately rather than unless-stopped: a gateway is a dev-machine service tied to the dev-bot services around it, so it should not come back on its own after a reboot without devbot up having started its neighbours.
A gateway whose image is built from a module Dockerfile is rebuilt when that build input changes: devbot up runs a cache-warm build for each selected module that builds its own image and recreates the container only when the resulting image id actually changed. A module that merely references a published image (signoz) is not built.
Each gateway declares a healthcheck that performs a real MCP handshake on its own port, so docker ps reports a gateway that has stopped answering as unhealthy. The probe runs python3 — the bridge images install it for mcp-proxy and carry no HTTP client.
signoz is the exception: its official image is distroless (no shell, and none of curl/wget/python3/node), so nothing can run a probe inside it. Its readiness is covered by signoz/up.sh instead, which handshakes over the network and reports DEGRADED when the API token is missing. The compose file states this rather than leaving it implicit.
stdio servers behind a bridge
A server that only speaks stdio runs behind mcp-proxy inside its container, which exposes streamable-http at /mcp:
CMD ["mcp-proxy", "--port=18501", "--host=0.0.0.0", "--", "mdctx-mcp"]
--host=0.0.0.0 is required inside the container so the host port mapping can reach it. Pin mcp-proxy together with mcp<2 — 0.12.0 is incompatible with the 2.x SDK.
If the container is not running the server is simply unavailable; there is no stdio fallback (that would reintroduce the per-instance process).
Canonical manifest
src/agentic/<module>/mcp.json:
{
"mcp": {
"qmd": {
"type": "stdio",
"command": ["bash", "-c", "mkdir -p .agents/logs && exec qmd mcp 2>>.agents/logs/qmd-mcp.log"],
"env": {
"QMD_LLAMA_GPU": "__GPU_ENABLED__",
"QMD_EXPAND_CONTEXT_SIZE": "512"
}
},
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
"oauth": false
}
}
}
| Field | Required | Meaning |
|---|---|---|
type |
yes | Transport: stdio (spawn a local command) or http (remote endpoint). |
command |
stdio | Uniform argv array launching the server (claudecode splits argv[0]/args). |
url |
http | Remote MCP endpoint. |
oauth |
http | Optional false to disable opencode’s automatic OAuth detection. |
enabled |
no | false disables the server: opencode registers it wired but not started, claudecode omits it entirely (see Per-server enablement). Defaults to true. |
timeout |
no | Milliseconds opencode may spend connecting and fetching tools, default 30000. Raise it for a server whose start (image pull, container boot, background sync) outruns the default. Dropped for claudecode, which takes MCP_TIMEOUT from the environment instead. |
headers |
http | Request headers for a remote server. An {env:VAR} token may be embedded here (see Tokens and placeholders). |
env |
no | Environment for the server process — single source of truth for both harnesses. |
Any other key (e.g. a leftover environment) fails translation loudly — a migration safety net. Keys starting with _ are ignored (annotation convention, as in hooks.json).
Tokens and placeholders
Resolved at translation time by mcp_translate.py:
| Token | Resolves to | Used by |
|---|---|---|
{harness-dir} |
.opencode | .claude |
wrapper/serve-script paths in commands |
{host} |
opencode | claude (product name) |
servers with a --host config selector (opencodebase-index) |
__GPU_ENABLED__ |
metal|cuda|vulkan|false (registration) |
reserved — no shipped module uses it |
__DEV_BOT_ROOT__ |
the dev-bot install root (registration) | mdctx index paths |
{env:VAR} |
see below | secrets / per-machine config |
{env:VAR} is an env indirection resolved by each client natively at launch — the shared translator maps it to the harness’s native spelling, so the value is never resolved into a config file:
- opencode keeps
{env:VAR}inopencode.jsonc— opencode interpolates it at launch from its own process env. - claudecode
.mcp.jsoncarries${VAR}— Claude Code’s native expansion (the claudecode target cannot use{env:VAR}, and Claude Code expands${VAR}inenv,command,args,urlandheaders). A missing variable (no${VAR:-default}) loads the config with a warning and registers the unexpanded text.
In an env value {env:VAR} is whole-value-only (it must be the entire value, never embedded in a URL or path) — the translator rejects malformed or embedded tokens so both harnesses cannot silently diverge. A header value may embed one, because an upstream API needs its scheme prefix on the same value ("Authorization": "Sentry-Bearer {env:SENTRY_ACCESS_TOKEN}"). Both clients expand an embedded token — opencode interpolates {env:VAR} natively, Claude Code substitutes ${VAR} anywhere in a header.
Env-var presence check (init / harness start)
Because the client resolves {env:VAR} at launch, a missing variable only surfaces when the server fails to start — long after init wrote the config. src/_shared/mcp_env_refs.py + the _devbot_*_mcp_env_vars helpers in src/_shared/functions.sh close that gap by checking, against the current shell env, every {env:VAR} referenced by the canonical manifests of enabled modules — env and headers values alike (plugin-provided and disabled modules are skipped, mirroring the registration skip set):
devbot init/ single-projectreinit— after MCP registration, if any referenced var is unset/empty, init prints the notice (var + module/server +export VAR=…in~/.bashrc) and waits for a press-any-key acknowledgement before continuing.devbot reinit --all— each per-project init emits only a compact notice (DEV_BOT_DEFER_ENV_DIALOG=1defers the dialog); after all projects are processed, reinit shows one full notice for the union of missing vars across projects.devbot(harnessstart.sh, opencode + claudecode) — before launching, the same check asks “Launch the harness anyway? [y/N]”; answering No aborts the launch.- Non-interactive runs (
SKIP_CONFIRM=1or no TTY) print the notice but never block.
The notice tells the user to add the vars to their shell profile (~/.bashrc or equivalent) and start devbot from a new terminal — the running process cannot pick up vars added after it started. The check only tests presence; values are never resolved or written to any config (secrets stay out of configs, per the design above).
Interpretation per harness
mcp_translate.py output shapes:
| Canonical | opencode | claudecode |
|---|---|---|
stdio |
{type: local, command, environment} |
{type: stdio, command, args, env} |
http |
{type: remote, url, oauth?, headers?} |
{type: http, url, headers?, env?} |
enabled |
carried when declared | disabled servers omitted (key dropped) |
timeout |
carried when declared | key dropped (MCP_TIMEOUT instead) |
The canonical env block is renamed per harness (environment for opencode, env for claudecode); placeholders resolve at registration except when comparing templates (below). enabled is carried to opencode; for claudecode a disabled server is omitted from .mcp.json (the key itself has no equivalent field). timeout is carried to opencode only; Claude Code reads its equivalent from MCP_TIMEOUT, so writing the key into .mcp.json would claim a setting the client ignores.
Registration
- opencode (
bin/init.sh:_register_module_mcp) — translates each enabled module’s manifest (resolving__GPU_ENABLED__/__DEV_BOT_ROOT__), then merges each server intoopencode.jsoncwithmerge_mcp_jsonc.py. Merge is skip-if-exists, so local/user edits to anopencode.jsoncMCP entry survive reinit — except entries of the modules on init’s explicit refresh list (see below), which are replaced when stale. - claudecode (
src/harnesses/claudecode/init.sh:_wire_mcp) — translates each enabled module’s manifest, resolves__GPU_ENABLED__/__DEV_BOT_ROOT__, merges into a temp map, validates transport types (an invalidtypewould make Claude Code reject the whole.mcp.json), and writes.mcp.jsonfrom scratch. Dynamic runtime manifests (.claude/*.mcp.json, e.g. jetbrains’ port) merge the same way.
Reset / reinit
src/_shared/mcp_key_is_current.py is the staleness oracle: it compares a registered entry against its module’s canonical manifest translated to that harness and answers whether the entry is current, so a caller touches an entry only when it differs from its template — keeping reinit byte-idempotent (audit-32). It reads both config shapes (opencode’s flat mcp.<key> and opencode-v2’s nested mcp.servers.<key>), inverts the template’s enabled into opencode-v2’s disabled, and ignores the cwd dev-bot pins for a local server.
A stale entry is replaced, never dropped. Both opencode harnesses own the replacement in init: both harnesses translate each module’s manifest before registering it, so init holds the new definition and the config’s own value to carry across — bin/init.sh::_register_module_mcp (flat shape) and src/harnesses/opencode-v2/init.sh::_register_module_mcps (nested) remove a stale entry and re-register the canonical one with the entry’s previous enabled/disabled re-applied, whenever the module’s definition declares that field. Every listed module declares it, so a per-server switch the runtime toggle wrote to the config (opencode-v2’s mcp-sync hook) is user intent and survives the refresh; a listed module that ever stopped declaring the field would instead have that switch dropped by the canonical definition. Dropping it in reset.sh instead would hand the key back to the module default and silently switch a working server off. Claude Code needs neither: reset.sh leaves .mcp.json untouched, and _wire_mcp regenerates it from the enabled manifests, so a stale entry cannot survive there. The refresh is scoped to an explicit list per harness:
- opencode —
bin/init.sh:codebase-memory,mdctx,signoz,svelte,tools-mcp,playwright,chrome-devtools,sonarqube. - opencode-v2 —
src/harnesses/opencode-v2/init.sh: the same eight. Not because a v2 config can carry a v1-era entry by accident, but because it can carry one by design:migrate_v1.pycopies every entry intomcp.serversverbatim, so a project that switches harness keeps its old definitions, andbin/init.shregisters no MCPs for this harness. The two lists being one list is what keeps a migrated config refreshable; a v2 test asserts they are equal.
Every other module’s entry is user-owned and never replaced, only pruned when its module is disabled. Add a module to the list of every harness it runs on when a release changes that server’s definition in place. A renamed or dropped server belongs in the retired-key lists below instead: the new key does not exist yet, so re-registration cannot be blocked by the skip-if-exists merge, and the list is what removes the old one. A refreshed entry that was not the last key in the mcp map is re-appended at the end, so the reinit that refreshes it reorders keys once; the re-registered entry then matches, so later reinits are no-ops. The retired-key lists then do the removal: RETIRED_MCP_KEYS holds exact keys (qmd’s removed qmd mcp server; the react devtools server, renamed from next-devtools to react-nextjs-devtools), and RETIRED_MCP_KEY_PREFIXES holds families an exact list cannot enumerate — datasources-<source> was the datasources server key before it was shortened to ds-<source>. Both resets carry the same lists, and they read the servers in either config shape: bin/init.sh resets before it wires, and opencode-v2 migrates a v1 config at the end of its init, so at sweep time the keys may still sit directly under mcp. Pruning is keyed on the literal server key, never a dotted lookup path. The prefix sweep matters most while the module is enabled: the disabled-module prune matches a module’s own name and declared prefixes, so it only sweeps those orphans once the module is turned off. Unlike every other prune, the prefix sweep is unconditional and permanent — a key matching a retired prefix is deleted whatever wrote it, forever (see modules). It normalizes the machine-dependent placeholders before comparing:
__GPU_ENABLED__— with--gpusupplied (each caller passes_qmd_gpu_value(), the same source init resolves the placeholder with), the config value must equal that host value or the entry is stale, so a stale/wrong GPU value self-heals; without--gpu, any resolved string is current (GPU value is machine-dependent);__DEV_BOT_ROOT__— the suffix after the placeholder must still match (root layout drift is stale);{env:VAR}— current whether the config holds the native token literal (opencode{env:VAR}, claudecode${VAR}) or omits the key; the same tolerance applies to a header carrying an embedded token.
Inventory
devbot list mcps / devbot list mcps -a reads the canonical manifests (see MCPs for the generated inventory).
Special cases
- opencodebase-index — plugin-provided on opencode. opencode integrates it via
plugin.opencode.json(the plugin spawns the server), so the opencode registration adapter skips modules that declare a plugin manifest — registering the server as an MCP too would double-load it. Its canonicalmcp.json(using{harness-dir}+--host {host}) serves claudecode. - Dynamic runtime manifests (a server known only at runtime, e.g. jetbrains’ IDE port) are published canonically to
<devbot_dir>/mcp-runtime/<group>.jsonand applied to the selected harness — modules never write a harness manifest. A dynamic emitter declares the server-key prefixes it owns inmcp.dynamic.json({"prefixes": ["aws"]}); opencode reset prunes<prefix>/<prefix>-<detail>keys for a disabled module that ships that declaration, so a key left behind by an older install does not keep its server live — and only when.opencode/.devbot-managed-mcpsrecords dev-bot as the one that wrote the key. A module without the declaration is never swept by name — absence of a manifest does not establish ownership, and a user’s ownmcp.<module>entry (e.g.mcp.git) must survive disabling a module that ships no MCP server. opencode registration upserts: a def that differs from the registered entry replaces it, so a release can change what a module emits (e.g. flippingenabled) and existing configs pick it up on reinit — while a def that already matches is left untouched, keeping reinit byte-idempotent. - Docker-only servers — skipped when no docker daemon is available. A hybrid definition (docker plus a non-docker fallback its own launcher picks — playwright) is kept: it declares
"_hybrid": truein its canonical manifest, which is what the guard reads, never the fallback’s command text.
Harness differences
- opencode — merge-only registration preserves local config edits; entries of the explicit refresh-list modules and of disabled modules are pruned by
reset.sh(byte-idempotent), and only the entries the ownership record names — a server you added yourself under a module’s name stays.opencode.jsoncis gitignored. - claudecode —
.mcp.jsonis regenerated from scratch on every init (also gitignored, so nothing dev-bot-managed is ever committed); edit the module’s canonicalmcp.jsonto change defaults, since per-project.mcp.jsonedits are overwritten on reinit.
Consumer projects: gitignore the dotfile — a bare
mcp.jsonrule (common in###> ai ###blocks) does not match.mcp.json. Update it to.mcp.jsonso a regenerated claudecode config is never committed.
Wrapper scripts are linked by the harness
A module that starts its server through a wrapper script (.opencode/my-serve.sh,
.claude/my-wrapper.js) does not create that link itself. It declares it in
harness-assets.json and the selected harness links it:
{ "mcp": [{ "name": "my-mcp-serve.sh", "path": "server/start-mcp.sh" }] }
The name must match the path the server’s command references. See
Create a module.
Runtime manifests (server discovered at init)
A server whose existence is only known at init — a JetBrains port, a NetSuite
account, the AWS connections, the selected datasources — is not declared in the
module’s mcp.json. The module publishes it instead:
_devbot_publish_runtime_mcp "${PROJECT_DIR}" "aws-prod" "$defs"
_devbot_apply_runtime_mcps "${PROJECT_DIR}"
$defs is the canonical inner map ({"aws-prod": {type: ...}}) written to
<devbot_dir>/mcp-runtime/<group>.json. The module never names a harness.
_devbot_apply_runtime_mcps resolves the selected harness and translates every
published group into that harness’s own per-server manifest
(.opencode/<group>.mcp.json, .claude/<group>.mcp.json), which the harness’s
normal registration step then merges. It also retires what it generated before:
a group whose canonical file is gone takes its manifest with it, and on opencode
its opencode.jsonc key — that merge is insert-only, so a deleted manifest
alone would leave the server live. Ownership is tracked in
<devbot_dir>/mcp-runtime/.owned.<harness>, so manifests dev-bot did not write
are never touched.
wire_disabled
Canonical wire_disabled: true means register it, do not start it — an
optional server the user turns on without a reinit (aws connections,
datasources, the JetBrains server). Each harness gets the meaning it can express:
| Harness | Result |
|---|---|
| opencode | enabled: false — registered, not started |
| claudecode | wired; .mcp.json has no per-server on/off |
Do not use enabled: false for this: _wire_mcp reads canonical enabled and
omits a disabled server from .mcp.json entirely, and
_devbot_apply_runtime_mcps applies the same rule to the runtime manifests.