You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Net of the incompatibilities (not just differences, it's not backwards compat/optional):
command is an array, with all args in there, too, so:
no args
env is environment
there must be an explicit type, and that type does not account for remote being either streamable http or SSE variants (although perhaps you can test/investigate that at run time and hope /sse in the URL gives you a hit as convention, but this isn't necessarily a standard).
I'm not sure why they deviated here, and I don't find it to be more usable or specific, really. I love sst/opencode a lot, they're doing a great job, so maybe they had wisdom here I just can't decode. But, word of warning to any implementer (or if I get around to it, to me if I pick this up?).
Activity
24601 commentedon Jun 25, 2025
Oddly, the MCP schema for opencode is different from the standard (and in their JSON schema it seems like it's not the "familiar" JSON config format).
For ex, a standard/familiar MCP server config:
in OpenCode would not validate against their schema (https://opencode.ai/config.json) and must be:
Net of the incompatibilities (not just differences, it's not backwards compat/optional):
commandis an array, with all args in there, too, so:argsenvisenvironmenttype, and thattypedoes not account forremotebeing either streamable http or SSE variants (although perhaps you can test/investigate that at run time and hope/ssein the URL gives you a hit as convention, but this isn't necessarily a standard).I'm not sure why they deviated here, and I don't find it to be more usable or specific, really. I love
sst/opencodea lot, they're doing a great job, so maybe they had wisdom here I just can't decode. But, word of warning to any implementer (or if I get around to it, to me if I pick this up?).feat: Implement OpenCode agent support
Merge pull request #65 from intellectronica/feat/opencode-agent