Skip to content

feat(opencode): leave lich's operations to its MCP server when lich registered it - #95

Merged
omartelo merged 1 commit into
mainfrom
feat/opencode-tools-defer-to-mcp
Oct 27, 2026
Merged

omartelo merged 1 commit into
mainfrom
feat/opencode-tools-defer-to-mcp

Conversation

@omartelo

Copy link
Copy Markdown
Collaborator

Summary

lich now hands opencode its MCP server at spawn, as mcp.lich in OPENCODE_CONFIG_CONTENT (lichdotdev/lich, feat/opencode-mcp-at-spawn). When that entry is present, opencode/lich.js defines no tools. Each operation is then listed once, and the browser_* tools come with the rest.

An older lich registers nothing, and its sessions keep the JavaScript tools as before. lich 0.79 accepts any 0.20.x plugin, so deleting the tools outright would have left those sessions without any. The reports are unaffected in both cases.

Test plan

  • node --test tests/*.test.mjs: 469 tests pass. Two are new: with the entry present there are no tools and the reports stay; without it, or with an inline config that is not JSON, the tools stay.

…egistered it

A lich that hands opencode its MCP server at spawn puts it under mcp.lich in
OPENCODE_CONFIG_CONTENT. The module now defines no tools then, so each
operation is listed once and browser_* comes with the rest. An older lich
registers nothing and keeps the JavaScript tools.
@omartelo
omartelo merged commit 23e303f into main Oct 27, 2026
2 checks passed
@omartelo
omartelo deleted the feat/opencode-tools-defer-to-mcp branch October 27, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant