Bluemesh
Language: EnglishEN
Menu

Home / Selected work

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.
Talk to Bluemesh

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.

  1. User in Teamsasks for a change
  2. Agentplans the steps
  3. MCP proxyacts as the signed-in user (prototype)
  4. Jira and Confluencetickets and pages
  5. GitHubcode
  6. 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.