FREE STUDY NOTES · AZ-401

The Azure DevOps MCP server: setup, sign-in and tool limits

How the Azure DevOps MCP server runs locally or remotely, signs in and limits which tools an agent can call.

From Ultra Transcenders AZ-401 by Tony Rough

The Azure DevOps MCP server gives an AI assistant access to work items, pull requests, builds, test plans, wikis and Advanced Security alerts in an Azure DevOps organisation. The server is free, though standard Azure DevOps pricing and AI platform costs still apply, and the assistant must run in agent mode to use it.

Remote or local

The remote server became generally available on 20 August 2026 and is the recommended option; the local server remains supported, but new development focuses on the remote one and existing users are advised to plan migration.

Feature Remote server Local server
Endpoint or package https://mcp.dev.azure.com/{organization} npx -y @azure-devops/mcp {organization}
Transport Streamable HTTP stdio
Authentication Microsoft Entra ID (OAuth) Azure DevOps PAT or Microsoft Entra ID (for example --authentication azcli)
Prerequisites Organisation backed by a Microsoft Entra tenant; MSA-only organisations not supported Node.js 20 or later
Filtering X-MCP-Toolsets, X-MCP-Tools, X-MCP-Readonly, X-MCP-Insiders headers Domains with -d
Updates Managed by Azure DevOps Local package version (@next for nightly builds)

Remote clients that work with Microsoft Entra authentication include VS Code with GitHub Copilot, Visual Studio, Microsoft Foundry, Microsoft Copilot Studio, GitHub Copilot CLI and the GitHub Copilot app. Cursor and Claude Code need a custom Entra app registration that grants delegated permissions to the Azure DevOps MCP enterprise application. Claude Desktop and Codex require dynamic client registration, which Entra ID does not support, so they must use the local server.

{
  "servers": {
    "ado-remote-mcp": {
      "type": "http",
      "url": "https://mcp.dev.azure.com/my-org",
      "headers": { "X-MCP-Toolsets": "wit,repos,wiki", "X-MCP-Readonly": "true" }
    }
  }
}

Toolsets and capabilities

Remote toolset Local domain Capabilities
wit work-items Get, create, update and link work items; saved queries; backlogs; work item search; WIQL (Insiders only on the remote server)
work work Iterations, team settings and capacity
repos repositories (plus search for search tools) Repositories, branches, files, pull requests, threads, votes, code search
pipelines pipelines Builds, logs, runs, artifacts; queue runs and create YAML pipelines
wiki wiki List and read pages, wiki search, create or update a page
testplan test-plans Plans, suites, cases, runs and results
advsec advanced-security List and get Advanced Security alerts
elm (preview, on by default) Not listed Enterprise Live Migration tools
Core tools (always on) core (always include it) Organisations, projects, teams

On the remote server the default is all; X-MCP-Toolsets and X-MCP-Tools should not be combined. Many remote tools are consolidated dispatchers selected by an action parameter, such as wit_work_item_write with create, update or add_child. On the local server, omitting -d loads every domain. Project and team defaults can be set with the ado_mcp_project and ado_mcp_team environment variables to avoid selection prompts.

Using it from the cloud agent

GitHub documents running the local Azure DevOps server inside the cloud agent: configure OIDC on a Microsoft Entra application that trusts GitHub, give that identity access to the Azure DevOps organisation, add an azure/login step (with id-token: write) to copilot-setup-steps.yml, store the client and tenant IDs as Agents secrets, and add an ado server with an explicit tools list. This applies only to sessions on GitHub Actions.

The related Azure MCP Server connects agents to Azure resources (Storage, Cosmos DB, Log Analytics and more) using Entra ID and Azure RBAC, so tool availability follows the user’s or managed identity’s subscription permissions. Its tools are disabled by default in supported hosts and need a GitHub Copilot subscription; in Visual Studio 2022 17.14.30 and later they ship with the Azure development workload.

Common trap: Choosing the remote Azure DevOps MCP server for an organisation that signs in with Microsoft accounts only - the remote server requires an organisation backed by a Microsoft Entra tenant, so MSA-backed organisations must use the local server.

Get the whole book

This note is one section of Ultra Transcenders AZ-401: Designing and Implementing Microsoft Agentic DevOps Solutions, an independent study guide that explains every topic the exam covers by technology, with comparison tables, diagrams and the common traps, plus a glossary linked to Microsoft Learn.

Amazon.co.ukKindlePaperback
Amazon.comKindlePaperback

Free to read with Kindle Unlimited. Opens Amazon in a new tab.

About the book · AZ-401 terms in the glossary · All AZ-401 study notes

More AZ-401 study notes