Repository navigation
0.2.1: an mcp entry opencode 1.1.2 accepts
0.2.1 fixes a configuration error that made opencode 1.1.2 refuse to start in a
deployed workspace, and replaces the caveat the previous release could only write.
The defect
0.2.0 wrote a cwd key into the mcp entry of opencode.json:
"file_example": {
"type": "local",
"command": ["hermit", "serve", ".opencode/adapter", "--audit-log", ".opencode/audit/tool-calls.jsonl"],
"cwd": ".",
"enabled": true
}
opencode 1.1.2 rejects that key and refuses the whole file:
$ opencode agent list
Error: Configuration is invalid at …/ws/opencode.json
↳ Invalid input mcp.file_example
EXIT CODE: 1
--print-logs --log-level DEBUG names the cause — Unrecognized key: "cwd".
A schema check could not have caught this. OpenCode's published JSON schema
still documents cwd for a local MCP server, and the copy committed under
tests/assets/ validates a configuration carrying it; the validator built into
1.1.2 is narrower than the schema the same project publishes. 0.2.1 emits the
entry without cwd, and the suite now pins the keys it may carry.
What this release proves, and what it does not
opencode 1.1.2 loads a workspace this tool deploys. opencode agent list there
exits 0 and lists the adapter's reviewer subagent after the CLI's seven
built-ins; the same command in an empty directory lists the seven and no
reviewer, so the eighth line is read from the deployed files.
Not proven: a model-driven session using those parts. No provider credentials
exist on the machine this was measured on, so nothing here shows a model
answering while calling the adapter's tool. opencode run and opencode auth login would close it; both need a provider account.
Install
pip install https://github.com/argszero/hermit-opencode/releases/download/0.2.1/hermit_opencode-0.2.1-py3-none-any.whl
Still needs hermit-harness 0.2.0 or later from PyPI to serve the embedded
adapter (pip install "hermit-harness>=0.2.0").
Assets
hermit_opencode-0.2.1-py3-none-any.whl
sha256 f6bb6757ba81d6bf4c6281f29c5373eb446ad63e70d5e3655c4626a19c813813
hermit_opencode-0.2.1.tar.gz
sha256 8c043fbfde8d40d15743251fc80f05585dfa1265cbd9bbb813be54ebbf8d54cc
Both were installed from the release URL and re-run before this note was
published. 26 tests pass with PYTHONPATH cleared.