Is it possible for `opencode` to manipulate issues and pull requests on git hosting platforms like `GitHub` or `GitLab` ?
A core question: Is opencode designed or capable of interacting with and managing issues and pull requests on external git hosting services?
My broader thought is to combine the opencode SDK/server with tools like Vagrant or Terraform to create a local, chat-like UI. In this system, each AI agent would have its own VM and a unique ID (similar to a chat contact). The interface would use group chats and private messages to handle context isolation, allowing multiple agents and a human user to interact.
This setup would enable parallel, high-speed development across many git branches within a project. The idea is that git's branching mechanism naturally manages state/context, while a chat-style interface provides an intuitive way to switch between these contexts (like switching chat windows).
I'm curious if opencode could act as the bridge to also directly handle platform issues/PRs as part of this workflow.
All agents that support MCP integrations support this! The mCP server is the bridge that connects your agent runtime with bespoke tooling. GitHub itself has an mCP server - I'm on mobile right now so I'm not going to link it, but you should be able to use easily. Look it up.
At work, I have a GitHub MCP server connected so that my agent can interact with pull requests, I have a jira MCP server connected so that my agent can interact with tickets, and my company even has an internal MCP server to interact with the company internal knowledge base, all the documents, code, internal company knowledge that's built up over time.
Here are the open code mCP Docs: https://opencode.ai/docs/mcp-servers
GitHub MCP is pretty bad — it’s better to just let the LLM use gh (GitHub CLI). 😂
You don't need the GH MCP - OpenCode works pretty well with Github CLI (gh) tool.
Few typical prompts that I use:
- Commit, push and create a PR
- Investigate why ci pipeline has failed
- Figure out why test pass locally but the are not passing in CI
As long as your GitHub CLI is authenticated, OpenCode will correctly recognize the context (current branch, if PR is created, etc).