Skip to content

adtk mcp

The mcp command starts the Model Context Protocol (MCP) server for Azure DevOps. This exposes all 13 MCP tools (82 actions) to AI agents and editors that support the MCP protocol.

Terminal window
# Start via stdio (default — for Claude Code, Cursor, etc.)
adtk mcp
# Start via HTTP Streamable transport on a specific port
adtk mcp --port 8080
FlagShortDefaultDescription
--port-p0Port for HTTP Streamable transport. When 0, runs on stdio.

Used by Claude Code, Cursor, Windsurf, and most MCP clients. Configure in your client’s MCP config:

{
"mcpServers": {
"adtk": {
"command": "adtk",
"args": ["mcp"],
"env": {
"AZURE_DEVOPS_ORG": "your-org",
"AZURE_DEVOPS_PAT": "your-pat"
}
}
}
}

For network-accessible deployments or clients that support HTTP-based MCP:

Terminal window
adtk mcp --port 3000
Starting Azure DevOps MCP Server on :3000 (HTTP Streamable)
VariableDescription
AZURE_DEVOPS_ORGOrganization name (alternative to adtk auth)
AZURE_DEVOPS_PATPersonal Access Token (alternative to adtk auth)
ADTK_ENABLE_WRITESSet to true to enable write operations (create, update, delete)
AZURE_DEVOPS_DISABLED_TOOLSComma-separated list of tool names to disable