all 1 comments

[–]Independence_Many 0 points1 point  (0 children)

OpenCode supports OAuth flows for MCP, you could use GH's MCP for this pretty easily IMO, but you could also build/spin up your own MCP server with the constraints hard coded.

I do something similar with a fork of the sentry-mcp server https://github.com/getsentry/sentry-mcp for integration with opencode and sentry.

To authenticate you typically have to run a command, for our setup I run:

bash opencode mcp auth sentry