⚡Claude Code running in Microsoft Copilot! 🤩 Wouldn't it be cool if you could run Claude Code in Copilot? Well, with Microsoft 365 Copilot declarative agents and some nifty MCP Apps UI components, you can! ✨ In this demo, you'll see a live interactive Claude Code session embedded directly inside a Microsoft 365 Copilot declarative agent - typing, streaming output, the works. 💾 🤖 The tech: 🔸 A custom MCP server spawns Claude Code locally under a Windows pseudo-terminal. 🔸 An MCP Apps UI resource (single-file HTML bundle with xterm.js) renders inside the Copilot chat surface 🔸 A WebSocket bridges them - bidirectional, real-time, byte-for-byte. And yes, it runs in your Power App too. Check out the video! 📹 #MicrosoftCopilot
Pointless. With less effort you could have configured Qwen3.6 with OpenCode and local DGX Spark - at least you would have gained independence and offline mode. What you did is curiously purposeless - correct me if I'm wrong please and thank you 😘 https://opencode.ai
That’s impressive Andreas Adner . This might be a stupid question but what is the use case for this solution? Trying to get my head around what this enables.
What is the benefit here, outside of simply using Claude Code on its own?
Interesting! How are you locking down the Claude Code environment, what controls / guardrails etc? How are you preventing another caller from tasking Claude code?
Hi Andreas Adner Can we do something like this for Claude Cowork?
Andreas Adner you are brilliant. People in the comments, saying "what is the use case" and this being pointless, etc., have no idea what this means. Some things are just fun, and some things just teach you ways to do productive things. Everything doesn't have to be a direct implementation, right at this time. Who knows.. Maybe a company is interested in Copilot being the single orchestration engine, or the app where people just don't navigate from that. That is why now people don't go to SharePoint sites; they access them in Microsoft Teams themselves and the other apps. It's really about the experience and the flow of work. The less you have to switch, the more productive you are, so this is great stuff, and I absolutely love this. keep rocking and keep sharing. I look forward to your posts.
The next step would be to run Github Copilot inside of Claude Caude inside of Copilot 😅
The xterm.js + WebSocket + MCP Apps UI combo is slick. Curious how the Windows pseudo-terminal holds up under longer Claude sessions — any backpressure or buffering quirks on the WS bridge during heavy streaming, or does it stay byte-clean end to end?
The technology that is powering this demo - M365 Copilot declarative agents with MCP plugins that serve MCP Apps UIs: https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/declarative-agent-ui-widgets