Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Give a device-local AI agent its own Microsoft Entra identity. Reference implementation for Microsoft Agent 365 and Entra Agent ID.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Write & edit code.
Model Context Protocol integration for CodeIndexer
Same catalog task: Write & edit code.
MCP server for ESLint
Same catalog task: Write & edit code.
MCP session management for Metorial. Provides session handling and tool lifecycle management for Model Context Protocol.
Fetched from the repository for this visit.
Entrabot is a Python MCP server that gives a device-local agent its own Entra Agent ID and Agent User. The agent can sign in autonomously, send and receive Teams messages from its own account, use its mailbox, work with Microsoft 365 files, and write audit events against its own object ID. It runs on macOS, Linux, and Windows and works with Claude Code, Copilot CLI, or any MCP-speaking client.
Watch the five-minute tour on YouTube: a day of working with an agent in Teams, Outlook and Word, then how its identity works.
All you need to get started is:
The scripts will take care of the rest: provisioning the Agent Identity Blueprint, Agent Identity, and Agent User in Entra; uploading a self-signed certificate; assigning the license; and configuring the local MCP server.
The Microsoft Entra Agent ID platform is generally available (Microsoft Entra, April 2026) and Microsoft Agent 365 is generally available, licensed per user. Agents with their own user account, the Agent User Entrabot is built on, are still available only to tenants in Microsoft's Frontier preview program (Microsoft Learn, November 2026), so your tenant needs Frontier. Entrabot is an open-source reference implementation that pulls those primitives together on a real device.
A device-local MCP server that turns an LLM agent into a first-class principal in Microsoft Entra. Three things change when you do this:
It is for developers building agents on Microsoft 365 who want the security posture to match the architecture. The agent's smarts are up to you. entrabot gives it a secure seat at the table and the keys to the kingdom; what it does with that power is your call.
The body prompt (prompts/agent_system.md plus prompts/anatomy/*.md) loads before any optional persona. Security rules, channel discipline, and external-content boundaries are enforced by the body and reinforced in code. These controls reduce instruction-injection risk; they are not an absolute guarantee against every jailbreak technique.
entrabot is the device-side glue for a set of Microsoft platform primitives, some generally available and some in preview.
idtyp=user for the Agent User leaf. (platform docs)microsoft-opentelemetry) when it is switched on; see Telemetry and the Agent 365 registry. (platform docs)user_fic grant). No client secret in flight. Private key in macOS Keychain, a non-exportable Windows CNG key (held by the TPM when the TPM accepts it), or Linux Secret Service.entrabot connects these. The Blueprint is provisioned via Graph. The Agent User is licensed and visible in Teams. The MCP server runs locally, mints tokens against Entra without a human, and exposes the resulting capability surface to the agent.
flowchart LR
subgraph Device["Local device — Mac / Windows / Linux"]
Client["MCP client<br/>(Claude Code, Copilot CLI)"]
Server["entrabot MCP server<br/>(FastMCP)"]
Body["Body prompt<br/>(non-overridable)"]
Keys[("OS keystore<br/>Keychain / TPM / Keyring")]
end
subgraph Entra["Microsoft Entra ID"]
AgentID["Blueprint →<br/>Agent Identity →<br/>Agent User"]
end
subgraph M365["Microsoft 365 / Azure"]
Graph["Graph API<br/>(Teams / Outlook / Files)"]
A365["Agent 365 Work IQ<br/>(Word, Mail, Copilot)"]
Blob[("Azure Blob<br/>(optional)")]
end
Client <-->|stdio| Server
Server --> Body
Server --> Keys
Server -->|3-hop cert chain| AgentID
AgentID -->|idtyp=user| Graph
AgentID -->|delegated| A365
AgentID -->|user_fic| Blob
The agent talks to the MCP server over stdio. The server reads the Blueprint's private key from the OS keystore, walks the three-hop chain to produce a delegated user token, and uses that token for every Graph and Work IQ call.
Inbound delivery differs by host. On Claude Code, the server's background poll pushes every inbound Teams message and email directly into the LLM as a notifications/claude/channel system reminder — the agent sees a DM the moment it lands, with no tool call and no human prompt required. The conversation in Teams becomes the conversation with the agent. On Copilot CLI, Codex, Cursor, and any MCP host that doesn't implement the channel-push extension, the same background poll runs server-side, but messages accumulate in the interaction log instead of streaming in. The agent reads them on demand via read_teams_messages, send_teams_message auto-blocks for the sponsor's reply when push is unavailable, and scripts/catch_up.py prints recent activity from the CLI. Channel push is the better UX; the polling fallback is a working second-class path for hosts that haven't shipped the extension yet.
Operational state (interaction log, daily summaries, watched chats) lives locally by default, or in Azure Blob Storage scoped to the Agent User's object ID when cloud memory is enabled.
Full walkthrough in docs/architecture/system-overview.md. The module-by-module breakdown lives in docs/architecture/layers/.
Download the latest release (the source code ZIP on https://github.com/microsoft/entrabot/releases/latest) or clone it, then double-click scripts\setup-windows.cmd. Or from a terminal:
git clone --branch v0.3.1 https://github.com/microsoft/entrabot.git
cd entrabot
scripts\setup-windows.cmd
Nothing needs installing first: no PowerShell 7, Python, Azure CLI, winget, or administrator rights on the PC. Setup asks a few questions (each has a suggested answer), signs you in to Microsoft, creates the agent, and tests it. When it finishes, double-click start-entrabot.cmd to start the agent.
What you need: a Microsoft 365 tenant, an account that administers it, and a free licence that includes Teams. To skip the questions, pass the answers: scripts\setup-windows.cmd -NewChain -UpnSuffix workstation -Yes. Guide, limits, and what has and has not been tested: docs/getting-started/windows.md.
git clone --branch v0.3.1 https://github.com/microsoft/entrabot.git
cd entrabot
./scripts/setup.sh
./start-entrabot.sh
This clones the latest release, v0.3.1. main is development and may be ahead of it. Git then prints a note about a "detached HEAD": that is normal when you check out a release tag, not an error. To upgrade an existing install, see Upgrading to a new release.
Setup needs Python 3.12 or newer and nothing else first: no Azure CLI and no az login. It runs the same setup wizard as Windows: it asks a few questions (each has a suggested answer), signs you in to Microsoft, creates the agent, keeps its sign-in key in your Keychain or keyring, and tests it. To skip the questions, pass the answers: ./scripts/setup.sh --new --with-upn-suffix=workstation --yes. On Ubuntu 24.04 the wizard has been run end to end against a real tenant; on macOS only a repair run and the health check have. Guide, limits, and what has and has not been tested: docs/getting-started/macos-linux.md.
Setup is idempotent on every platform. It provisions the Blueprint, BlueprintPrincipal, Agent Identity, and Agent User; assigns a Teams-capable license; uploads a self-signed certificate to Entra; and writes .env plus .mcp.json with no secrets on disk. Full walkthrough — including cloud memory, cross-tenant group chats, and the Work IQ Word setup — is in docs/getting-started/quickstart.md and INSTALL.md.
The repo isn't published to npm/pypi — your host CLI loads the local stdio MCP server from .mcp.json in the cwd. No flag needed for that; it's auto-discovered. What differs between hosts is how inbound Teams DMs reach the agent.
Claude Code (recommended). Channel push: inbound Teams messages and emails arrive as next-turn system reminders without a tool call. Requires the dev-channel allowlist flag:
claude --dangerously-load-development-channels server:entrabot
./start-entrabot.sh (macOS and Linux) and start-entrabot.cmd (Windows) run this command for you. Claude Code on Windows also needs Git for Windows for this repo's hooks; setup offers to install both there. On macOS and Linux, setup does not install Claude Code.
The double-dash matters — single-dash silently treats server:entrabot as prompt text (Learning #44). server:entrabot is the MCP server name from .mcp.json, not a publication identifier.
GitHub Copilot CLI, Codex, Cursor, other non-Claude hosts. MCP tools work, but there's no notifications/claude/channel equivalent — channel push is silently absent. Inbound Teams messages instead arrive inline as sponsor_reply on send_teams_message, which auto-blocks until the sponsor replies (host-detected, server-side).
copilot # or: codex, cursor, etc. — no flag, just launch from the repo dir
While the agent is blocked waiting on a Teams reply (any host that calls wait_for_sponsor_dm explicitly), the host CLI shows a heartbeat animation so you know it's listening to Teams, not your keyboard:
__
(___()'`; woof! 🐕
/, /`
\"--\
(•ᴗ•) zZz... listening for Teams DM [42s] (Ctrl+C to break)
Frames cycle (ʕ•ᴥ•ʔ waiting on sponsor, (´・ω・) sponsor hasn't replied yet, (◕‿◕) still here, still waiting, …) every ~30s with elapsed time. Ctrl+C breaks out cleanly. Full host-by-host protocol: [docs/clients/overview.md#sponsor-dm-wait-pattern](docs/clients/overview.md#sponsor-dm-wait-pattern) and [prompts/anatomy/channel-discipline.md`](prompts/anatomy/channel-discipline.md).
After setup, use ./status.sh as the canonical health and identity check:
./status.sh
./status.sh --health-only --strict
./scripts/setup.sh --status --json # delegates to ./status.sh
./scripts/setup.sh --diagnose # setup's own health check; changes nothing
On Windows:
scripts\setup-windows.cmd -Diagnose
powershell -ExecutionPolicy Bypass -File status-windows.ps1 -HealthOnly -Strict
The full doc site: https://microsoft.github.io/entrabot/
Direct pointers:
setup.sh options and behaviorThis is a research repo, not a production service. It runs reliably on a developer's machine. It is not packaged for tenant-wide deployment.
Shipped:
agent_user (full three-hop), delegated (MSAL interactive for demos or environments without a provisioned Agent User)LocalBackend (default) and BlobBackend (Azure Blob Storage, opt-in via setup.sh --use-cloud-memory or the Windows setup wizard)persona-sati)audit_log are marked as the model'sENTRABOT_OUTBOUND_ALLOWentrabot, an optional terminal front end on the GitHub Copilot SDK that runs the model loop itself). Agent 365 keeps them only if the tenant has a Microsoft 365 E7 or Agent 365 licence assignedpytest -v --tb=short && ruff check . gates every commitPersona-sati host bootstrap: Hosts that attach persona-sati must call bootstrap_session before the first substantive answer because FastMCP instructions do not reliably reach the LLM prompt. If mind_contract_available is false, operate in body-only mode. When the mind contract is available, follow the per-turn cognition tools: observe around external tools, reflect for durable observations, and recall when a returned memory excerpt is insufficient.
OS coverage:
| OS | Status |
|---|---|
| macOS | The same setup wizard as Windows, with one Keychain item per certificate (the certificate and its key), certificate rotation, and teardown that disconnects this computer. Against a real tenant only a repair run and the health check have been run; a new agent, rotation and teardown are covered by unit and script tests. See macOS and Linux installation. |
| Linux | The same wizard and runtime, with the key in a Secret Service, KWallet or libsecret keyring that is running and unlocked. Run end to end on Ubuntu 24.04.5 against a real tenant (new agent, rotation, joining, teardown). |
| Windows | Shipped — one-step setup wizard, non-exportable CNG keys (TPM first, software key store otherwise), certificate rotation, teardown. Setup, repair, rotation, status and teardown were run end to end on Windows 11 25H2 x64 with a virtual TPM, as a non-administrator. Not yet tested: ARM64, physical TPMs, Windows 10, Entra-joined or Intune-managed PCs. See Windows installation. |
Open:
This is a prototype. It is designed to show the pattern and make the implementation copyable, not to be run unchanged as a production platform.
Loading reviews...
GitHub checked 256h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.