Proposal: Integrating Claude Code with GitHub Copilot Agent Mode via MCP #166967
Replies: 7 comments 1 reply
-
|
Whoa, this is a super cool idea. Haven’t seen anyone do this kind of Copilot + Claude hybrid yet, but it totally makes sense. Copilot could manage the GitHub stuff and Claude could handle the actual code. I think the tricky part would be getting Copilot Agent Mode to trigger external tools like Claude, since it’s pretty closed right now. But maybe with GitHub webhooks or custom Actions, you could route issue events to Claude’s MCP and make it work that way. |
Beta Was this translation helpful? Give feedback.
-
|
Hey Hugues862, Your idea to combine Claude Code’s MCP with GitHub Copilot’s Agent Mode for issue-driven development is brilliant—it’s like having the best of both worlds: Copilot’s tight GitHub integration and Claude’s powerful code generation! 😎 While I haven’t seen this exact hybrid setup in the wild, it’s definitely feasible with some configuration, and I’d love to help you brainstorm how to make it work. Here’s a concise approach to explore this: Leverage the GitHub MCP Server: Set up the remote GitHub MCP server (available via GitHub’s recent release) in VS Code to let Copilot Agent Mode handle GitHub tasks like creating branches and PRs. Configure it in your .vscode/mcp.json file with OAuth for secure access to your repo (see GitHub Docs for setup: https://docs.github.com/en/copilot). This keeps Copilot as the orchestrator for issue management. Tool Coordination: Copilot Agent Mode might not natively call Claude’s MCP tools, so the webhook/Action bridge is critical. Test with a simple Action first (e.g., a Node.js script to call Claude’s API). |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for the input. I will look into this a bit more when I have some free time to spare. If I have any new information or make any advancements, I will post them here. |
Beta Was this translation helpful? Give feedback.
-
|
Your hybrid approach of combining Claude Code's MCP capabilities with GitHub Copilot's Agent Mode is absolutely fascinating and technically sound! While this exact integration isn't commonly documented yet, it's definitely achievable with the right architectural approach. The key is creating a bridge between Copilot's native issue-to-PR workflow and Claude Code's powerful generation capabilities. You'd essentially set up dual MCP servers in your VS Code environment - GitHub's official MCP server for repository management and a custom Claude Code MCP server for code generation. The missing piece is orchestration, which you can solve with GitHub Actions or webhooks that trigger when Copilot picks up an issue, routing the requirements to Claude Code and feeding the generated code back into Copilot's workflow. The technical challenges are manageable: authentication coordination between both MCP servers, potential latency in remote workflows, and ensuring the tools communicate properly through your webhook bridge. But the payoff - fully remote, issue-driven development from your phone - makes this incredibly compelling. I'd recommend starting with a simple test setup using GitHub's webhook documentation and the Claude Code SDK to build your MCP bridge. If you'd like to explore this further or need help with specific implementation details, I'm happy to dive deeper into the technical architecture. This kind of hybrid workflow could really change how we think about remote development! |
Beta Was this translation helpful? Give feedback.
-
|
Forgive me if I've misunderstood, but what exactly is the benefit of combining the two? If your desired functions are about Github management, can you just connect Claude Code to Github MCP? I don't see the point of using Copilot in this workflow. |
Beta Was this translation helpful? Give feedback.
-
|
It seems like either platform will work well for this, given the recent development of Claude Code's "Agent skills", which are basically just a folder of hardened instructions that make agents more likely to succeed in a given environment. I've only seen this implemented in Claude Code, but it seems like it'll bleed into other providers. |
Beta Was this translation helpful? Give feedback.
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Copilot Feature Area
Copilot Agent Mode
Body
I primarily use Claude Code, but I’ve been considering the possibility of integrating it with an MCP server alongside GitHub Copilot’s Agent Mode. Here’s the idea:
When you create an issue in your GitHub repository and assign GitHub Copilot, it can:
This flow is very intuitive and well-integrated into VSCode, especially with the GitHub Copilot extension and GitHub PR extension.
Would it be possible to plug Claude Code’s MCP into this flow?
This setup could allow for fully remote, issue-driven development, from ideation to merge, entirely from your phone.
Has anyone already managed to:
To be clear, I am not talking about using it in chat directly, that works fine, i'm really talking about the spawned agent when assigning a issue.
I’d really appreciate any insights, and if anyone’s interested, let’s explore this together.
Beta Was this translation helpful? Give feedback.
All reactions