loading…
Search for a command to run...
loading…
MCP server for Azure DevOps Server 2022 / TFS - READ-ONLY access to builds, work items, releases, git, pipelines, and test results
MCP server for Azure DevOps Server 2022 / TFS - READ-ONLY access to builds, work items, releases, git, pipelines, and test results
A READ-ONLY MCP (Model Context Protocol) server that connects AI assistants to Azure DevOps Server (on-premises). Works with Claude Code CLI, VS Code AI extensions (Continue, Cline), Cursor, and any MCP-compatible client.
npx azure-devops-mcp@latest
git clone https://github.com/elad-nofy/azure-devops-mcp.git
cd azure-devops-mcp
npm install
npm run build
Add to your global settings (~/.claude.json on macOS/Linux, %USERPROFILE%\.claude.json on Windows):
Windows:
{
"mcpServers": {
"azure-devops": {
"command": "cmd",
"args": ["/c", "npx", "azure-devops-mcp"],
"env": {
"AZURE_DEVOPS_URL": "http://your-tfs-server:8080/tfs",
"AZURE_DEVOPS_PAT": "your-personal-access-token",
"AZURE_DEVOPS_COLLECTION": "YourCollection",
"AZURE_DEVOPS_PROJECT": "YourDefaultProject"
}
}
}
}
macOS / Linux:
{
"mcpServers": {
"azure-devops": {
"command": "npx",
"args": ["azure-devops-mcp"],
"env": {
"AZURE_DEVOPS_URL": "http://your-tfs-server:8080/tfs",
"AZURE_DEVOPS_PAT": "your-personal-access-token",
"AZURE_DEVOPS_COLLECTION": "YourCollection",
"AZURE_DEVOPS_PROJECT": "YourDefaultProject"
}
}
}
}
Add similar configuration to the extension's MCP settings.
| Variable | Required | Description |
|---|---|---|
AZURE_DEVOPS_URL |
Yes | Server base URL (e.g., http://tfs:8080/tfs) |
AZURE_DEVOPS_PAT |
Yes | Personal Access Token |
AZURE_DEVOPS_COLLECTION |
No | Collection name (default: DefaultCollection) |
AZURE_DEVOPS_PROJECT |
No | Default project for commands |
| Tool | Description |
|---|---|
test_connection |
Test connection to Azure DevOps and verify authentication |
list_projects |
List all projects in the organization |
get_project |
Get detailed project information |
| Tool | Description |
|---|---|
list_repos |
List repositories in a project |
list_branches |
List branches in a repository |
list_commits |
Get commit history with filters |
get_commit |
Get commit details with changes |
get_commit_diff |
Get file diff for a commit |
list_pull_requests |
List pull requests |
get_pull_request |
Get PR details with comments |
compare_branches |
Compare two branches (regression analysis) |
search_code |
Search for text in repository files |
get_file_content |
Get file content from a repo at a specific branch/commit |
get_commits_for_work_item |
Find commits referencing a work item |
get_prs_for_work_item |
Find PRs linked to a work item |
| Tool | Description |
|---|---|
list_builds |
List recent builds |
get_build |
Get build details |
get_build_logs |
Get build logs |
list_build_definitions |
List build definitions |
analyze_build_errors |
Extract errors from failed builds |
| Tool | Description |
|---|---|
query_work_items |
Search work items (WIQL or filters) |
get_work_item |
Get work item details |
list_work_item_types |
List available work item types |
list_iterations |
List iterations/sprints in a project |
list_areas |
List area paths in a project |
| Tool | Description |
|---|---|
list_releases |
List releases |
get_release |
Get release details |
list_release_definitions |
List release definitions |
get_release_logs |
Get deployment logs |
| Tool | Description |
|---|---|
list_pipelines |
List YAML pipelines |
get_pipeline_runs |
Get recent pipeline runs |
get_pipeline_yaml |
Get pipeline YAML configuration |
get_pipeline_variables |
Get pipeline variables |
| Tool | Description |
|---|---|
list_test_runs |
List test runs in a project |
get_test_run |
Get test run details |
get_test_results |
Get test results from a run |
get_failed_tests |
Get failed tests from a run |
get_test_runs_for_build |
Get test runs for a specific build |
analyze_test_failures |
Analyze and group test failures |
Once configured, you can ask your AI assistant questions like:
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
AZURE_DEVOPS_URL is correct and accessibleAZURE_DEVOPS_PROJECT environment variable, orproject parameter in tool callsMIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"azure-devops-mcp": {
"command": "npx",
"args": [
"-y",
"azure-devops-mcp"
]
}
}
}