opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix: use official MCP SDK for better tool schema handling

Open seuros opened this issue 1 month ago • 9 comments

I was testing the dictator mcp with opencode and noticed that the experimental_createMCPClient do not have the full spec compliance.

This make tooling less fragile for future upgrades since it depends on the official sdk.

seuros avatar Dec 13 '25 01:12 seuros

/review

rekram1-node avatar Dec 13 '25 02:12 rekram1-node

lgtm

github-actions[bot] avatar Dec 13 '25 02:12 github-actions[bot]

@seuros did you test this? It does not work

i think there are some additional code changes needed?

any mcp server I use I get: Typeundefined is not an object (evaluating 'result.content')

rekram1-node avatar Dec 13 '25 02:12 rekram1-node

Yes, i did test it and was using, however i rebased in the last second , maybe i lost something.

I'm going to check now.

seuros avatar Dec 13 '25 02:12 seuros

@rekram1-node I did restore the working part.

I do have many other changes, but i prefer to send you focused PRs.

seuros avatar Dec 13 '25 03:12 seuros

lgtm

github-actions[bot] avatar Dec 13 '25 19:12 github-actions[bot]

@rekram1-node i rebased again.

Is there anything else i need to do ?

seuros avatar Dec 16 '25 15:12 seuros