AI agents for Jira, Confluence and GitHub, inside Microsoft Teams through MCP
The goal was Jira and Confluence workflows run by an AI agent from inside Microsoft Teams. Bluemesh's lead architect designed the MCP-based integrations and prototyped a proxy so the agent works with the rights of the signed-in user, not a shared account.
At a glance
- Service
- AI Solutions Architecture
- Platform
- Microsoft Teams, Model Context Protocol
- When
- Between 2022 and 2026
- Who
- Bluemesh's lead architect, in an earlier role. Client not named.
The story
The situation
Work lived in separate tools: tickets, documents and code. The goal was to let people run Jira and Confluence workflows through an AI agent, from inside Microsoft Teams.
What was really holding it back
The problem was identity more than the connection. An agent connected with one shared service account sees everything and acts as no one: the audit trail breaks, and the agent can be tricked into using rights the person never had. This is called the confused deputy problem.
What was decided, and why
- MCP to reach the tools. Agents use the Model Context Protocol (MCP), an open standard, to connect to Atlassian (Jira, Confluence) and GitHub, so people can run Jira and Confluence workflows from inside Microsoft Teams.
- The agent acts as the user (prototype). A prototype MCP proxy layer makes the agent act on behalf of the signed-in user, instead of a shared service account.
- People decide what cannot be undone (prototype). Human approval for any operation that cannot be reversed.
- Governance. Aligned to the client's AI governance standards.
How the parts fit
The parts used in this project, in the order a request moves through them.
- User in Teamsasks for a change
- Agentplans the steps
- MCP proxyacts as the signed-in user (prototype)
- Jira and Confluencetickets and pages
- GitHubcode
- Approvala person confirms what cannot be undone
Technology used in this project
- Model Context Protocol (MCP)
- Atlassian (Jira, Confluence)
- GitHub
- Microsoft Teams
- Salesforce
- Azure DevOps
- Microsoft Foundry
- MCP proxy layer (prototype)
- On-behalf-of identity (prototype)
- Human approval (prototype)
How Bluemesh builds it today
A reference architecture for a new project, based on current Azure and AWS guidance. It describes what Bluemesh would build now, not what was built in the project above.
MCP behind a gateway
- An AI gateway in front of MCP servers for sign-in, limits per user and logs.
Identity
- OAuth with delegated, per-user tokens exchanged for each tool. Sign-in tokens are never passed straight through to a tool's API.
Least privilege
- A tool allow-list per agent, read tools separate from write tools, and approval for every write that matters.
Controls and tests
- Defences against prompt injection, the confused deputy, token passthrough and tool poisoning, with an attack test set in the release pipeline.
- An audit trail: who asked, which tool ran, with what input, and the result.
Platform choice
- Copilot Studio for low-code agents in Microsoft 365, and Foundry Agent Service for custom agents.
Questions
What is an MCP server?
A small service that exposes a tool or a data source to AI agents through the Model Context Protocol, an open standard. One server can serve many agents.
Is MCP secure?
It can be, when each call runs with the signed-in person's own rights, write actions need approval, sign-in tokens are exchanged instead of passed through, and every call is logged.
What is the confused deputy problem in AI agents?
An agent with broad rights is tricked into doing something for a user who does not have those rights. Making the agent act as the user prevents it.
Facing the same problem?
Send a few lines about your system. You get a reply with the first questions to answer and a way to start small.
Talk to BluemeshUpdated:
More work
- Chat with your business data, without letting AI write SQL
- A document assistant designed so each person sees only what they are allowed to read
- A production generative AI platform with six model providers and more than 40% fewer prompt tokens
- From ASP.NET Web Forms to .NET microservices on Azure, with no big-bang rewrite
- Enterprise architecture aimed at sales: a new biotechnology product line in the public supply chain
- Java EE point-of-sale platforms rebuilt as microservices on AWS
- SAP Business One integrations that keep each system independent
- Moving a large group of servers to the cloud, riskiest dependencies first
- An AI assistant that puts the caller's history on the representative's screen