Azure DevOps MCP by usefulapi
v1.2.1Read pull requests, builds and work items, and create work items or PR comments in Azure DevOps.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
azuredevops_list_projects List projects
List the projects in the Azure DevOps organization. Good first call to discover project names. Azure DevOps API: GET /_apis/projects.
| Parameter | Type | Description |
|---|---|---|
skip | integer | Number of projects to skip (paging). |
state_filter | string | Project state filter (default wellFormed). |
top | integer | Maximum number of results to return. |
azuredevops_get_project Get a project
Get one project's details (name, description, state, visibility). Azure DevOps API: GET /_apis/projects/{projectId}.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project name or id, for example "Fabrikam". |
azuredevops_list_repositories List repositories
List the Git repositories in a project, with their default branch and web URL. Azure DevOps API: GET /{project}/_apis/git/repositories.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project name or id, for example "Fabrikam". |
azuredevops_list_pull_requests List pull requests
List pull requests in one repository, by default the active ones. Azure DevOps API: GET /{project}/_apis/git/repositories/{repositoryId}/pullrequests.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project name or id, for example "Fabrikam". |
repository * | string | Repository name or id. |
status | string | Pull request status (default active). |
target_branch | string | Only pull requests into this branch, for example "main". |
top | integer | Maximum number of results to return. |
azuredevops_get_pull_request Get a pull request
Get one pull request: title, description, status, reviewers, source and target branches. Azure DevOps API: GET /{project}/_apis/git/pullrequests/{pullRequestId}.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project name or id, for example "Fabrikam". |
pull_request_id * | integer | Pull request id (the number in its URL). |
azuredevops_list_build_definitions List pipelines
List build pipeline definitions in a project, optionally filtered by name. Azure DevOps API: GET /{project}/_apis/build/definitions.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project name or id, for example "Fabrikam". |
name | string | Filter by pipeline name (prefix match). |
top | integer | Maximum number of results to return. |
azuredevops_list_builds List builds
List recent pipeline runs (builds) in a project, filtered by pipeline, status, result or branch. Azure DevOps API: GET /{project}/_apis/build/builds.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project name or id, for example "Fabrikam". |
branch | string | Branch name, for example "refs/heads/main". |
definition_ids | string | Comma-separated pipeline ids (from azuredevops_list_build_definitions). |
result | string | Build result filter (completed builds only). |
status | string | Build status filter. |
top | integer | Maximum number of results to return. |
azuredevops_get_build Get a build
Get one pipeline run: status, result, requester, source branch, start and finish times. Azure DevOps API: GET /{project}/_apis/build/builds/{buildId}.
| Parameter | Type | Description |
|---|---|---|
build_id * | integer | Build id (the number in the build URL). |
project * | string | Project name or id, for example "Fabrikam". |
azuredevops_query_work_items Query work items
Run a WIQL query and return the matching work item ids. Use azuredevops_get_work_items for the fields. Azure DevOps API: POST /{project}/_apis/wit/wiql.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project name or id, for example "Fabrikam". |
wiql * | string | WIQL text, for example SELECT [System.Id] FROM WorkItems WHERE [System.State] = 'Active'. |
top | integer | Maximum number of results to return. |
azuredevops_get_work_items Get work items
Get work items by id, with the requested fields (default: the standard fields). Azure DevOps API: POST /{project}/_apis/wit/workitemsbatch.
| Parameter | Type | Description |
|---|---|---|
ids * | array | Work item ids, up to 200 per call. |
project * | string | Project name or id, for example "Fabrikam". |
fields | array | Field reference names, for example System.Title, System.State, System.AssignedTo. |
azuredevops_create_work_item Create a work item
Create one work item (for example a Task or a Bug) in a project. Writes to the tracker; it is not idempotent. Azure DevOps API: POST /{project}/_apis/wit/workitems/${type}.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project name or id, for example "Fabrikam". |
title * | string | Work item title (System.Title). |
work_item_type * | string | Work item type, for example Task, Bug or User Story. |
description | string | Description, as HTML or plain text (System.Description). |
azuredevops_create_pull_request_comment Comment on a pull request
Post a new comment thread on a pull request. Writes to the repository review; it is not idempotent. Azure DevOps API: POST /{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads.
| Parameter | Type | Description |
|---|---|---|
content * | string | Comment text (Markdown). |
project * | string | Project name or id, for example "Fabrikam". |
pull_request_id * | integer | Pull request id (the number in its URL). |
repository * | string | Repository name or id. |