Skip to content

fix(opencode): drop mcp shrink auto-registration and fix tools schema#452

Open
alaa-alghazouli wants to merge 2 commits into
JuliusBrussee:mainfrom
alaa-alghazouli:fix-opencode-mcp-shrink
Open

fix(opencode): drop mcp shrink auto-registration and fix tools schema#452
alaa-alghazouli wants to merge 2 commits into
JuliusBrussee:mainfrom
alaa-alghazouli:fix-opencode-mcp-shrink

Conversation

@alaa-alghazouli

Copy link
Copy Markdown
  • Stop registering broken standalone caveman-shrink mcp. Emit wrap instructions instead.
  • Convert agents/cavecrew-*.md tools array to opencode object schema.
  • Add missing caveman-compress.md command file to fix installer tests.

CI will resync plugins/caveman/agents/... on merge.

- Stop registering broken standalone caveman-shrink mcp. Emit wrap instructions instead.
- Convert agents/cavecrew-*.md tools array to opencode object schema.
- Add missing caveman-compress.md command file to fix installer tests.
@gitPhate

Copy link
Copy Markdown

@alaa-alghazouli thank you for this PR as it saved me a lot of headaches; I installed caveman for OpenCode on windows via powershell (solution to the .ps1 script not working: here) but I also had to manually move all the installed files from C:\Users\<username>\AppData\Roaming\opencode\ to C:\Users\<username>\.config\opencode\ according to the opencode docs, you might want to fix this as well in your PR.

@de-flandres

Copy link
Copy Markdown

Is there any quick manual fix?

Per opencode documentation, the config directory is always
~/.config/opencode regardless of platform. The previous code used
APPDATA on Windows, which caused installed files to land in
C:\Users\<user>\AppData\Roaming\opencode instead of the expected
C:\Users\<user>\.config\opencode, requiring users to manually move
files after installation.

Both bin/install.js and src/plugins/opencode/plugin.js are updated
to remove the APPDATA branch so opencodeConfigDir() always resolves
to ~/.config/opencode (or XDG_CONFIG_HOME/opencode when set).

Reported-by: gitPhate
@alaa-alghazouli alaa-alghazouli force-pushed the fix-opencode-mcp-shrink branch from 878d04b to 1b999cf Compare May 27, 2026 18:32
@alaa-alghazouli

Copy link
Copy Markdown
Author

@alaa-alghazouli thank you for this PR as it saved me a lot of headaches; I installed caveman for OpenCode on windows via powershell (solution to the .ps1 script not working: here) but I also had to manually move all the installed files from C:\Users\<username>\AppData\Roaming\opencode\ to C:\Users\<username>\.config\opencode\ according to the opencode docs, you might want to fix this as well in your PR.

Hey @gitPhate, glad my PR saved you some headaches! Just pushed a fix for the Windows path issue too, opencodeConfigDir() now always uses ~/.config/opencode so no manual file moving needed anymore

@gitPhate

Copy link
Copy Markdown

@alaa-alghazouli great work, many thanks!
@de-flandres the fix is to manually apply the content of this PR

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.

3 participants