az-devops-cli-mcp
Azure DevOps MCP tools for Claude Code and Codex CLI — boards, work items, repos, and PRs.
Install & Register
# 1. Install
pip install az-devops-cli-mcp
# 2. Login (once per machine)
az login
az devops configure --defaults organization=https://dev.azure.com/YOUR_ORG
# 3. Register with Claude Code
claude mcp add az-devops-cli-mcp -- python -m az_devops_cli_mcp.server
# 4. Register with Codex CLI
codex mcp add az-devops-cli-mcp -- python -m az_devops_cli_mcp.server
Restart Claude Code or Codex CLI. All 13 tools are ready.
How It Works
The server runs as a stdio process — spawned on demand by the client, no ports or background services needed.
Claude Code / Codex CLI
| spawns on demand
v
python -m az_devops_cli_mcp.server (stdin/stdout)
|
v
az CLI (your az login session)
Available Tools (13 total)
Work Items
| Tool | What it does |
|---|---|
create_work_item |
Create Task, Bug, User Story, Epic |
get_work_item |
Get item by ID |
update_work_item |
Update state, assignment, title |
set_iteration |
Assign to sprint (required for Sprint board) |
query_work_items |
WIQL query for bulk lookups |
link_work_items |
Link items (Child, Parent, Related) |
get_work_item_relations |
Verify hierarchy after linking |
add_comment |
Add discussion comment / agent log |
Repos / PRs
| Tool | What it does |
|---|---|
list_prs |
List PRs by status |
get_pr |
Get PR details |
create_pr |
Open a new PR |
link_pr_to_work_item |
Trace PR to work item |
list_branches |
List repo branches |
AG2 Usage (optional)
from autogen import ConversableAgent
from az_devops_cli_mcp import ALL_TOOLS, WORK_ITEM_TOOLS, REPO_TOOLS
agent = ConversableAgent(
name="devops_agent",
tools=ALL_TOOLS,
system_message="You manage Azure DevOps for LytStore..."
)
Configuration
| Method | How |
|---|---|
az devops configure |
Preferred — org set globally for your machine |
AZURE_DEVOPS_ORG env var |
Per-session override |
.env file |
AZURE_DEVOPS_ORG=https://dev.azure.com/YOUR_ORG |
Safety
Destructive commands (delete, remove, destroy) are blocked at the core layer.
The agent returns an error and requires explicit user confirmation.
Manual MCP Config (fallback)
If claude mcp add / codex mcp add aren't available, add this to your config file manually.
Claude Code — ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"az-devops-cli-mcp": {
"type": "stdio",
"command": "python",
"args": ["-m", "az_devops_cli_mcp.server"]
}
}
}
Codex CLI — ~/.codex/config.json: same block.
Contributing
git clone https://github.com/PraiseSinkamba/az-devops-cli-mcp
cd az-devops-cli-mcp
pip install -e ".[dev]"
pytest tests/
Release files for az-devops-cli-mcp 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| az_devops_cli_mcp-1.0.3.tar.gz | 13.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| az_devops_cli_mcp-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.1 kB
Release files / az_devops_cli_mcp-1.0.3.tar.gz
| Download URL | az_devops_cli_mcp-1.0.3.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f18312c91cc7bdefc515a15faa5fbab91b2ea788af9916ae1549cc74984a3fc
|
|
BLAKE2b-256 checksum How to use checksums |
5724a6fa2a2d751a7c00572fca8f8c81db4f18278d2d8bbcc567ff12a707c9f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.
Transparency logRelease files / az_devops_cli_mcp-1.0.3-py3-none-any.whl
| Download URL | az_devops_cli_mcp-1.0.3-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
929c6466a138eedfb19ef2e358815b754d1348ff33af81e8f18a5ea33aafa824
|
|
BLAKE2b-256 checksum How to use checksums |
2256eed5f042969c43fa10ab4475d675ee7c86471f89c133c317c8a773a067f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.
Transparency log