Azure DevOps MCP by usefulapi

v1.2.1
io.usefulapi/azure-devops Checked 1 day ago Published 10 hours ago

Read 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.

ParameterTypeDescription
skipintegerNumber of projects to skip (paging).
state_filterstringProject state filter (default wellFormed).
topintegerMaximum 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}.

ParameterTypeDescription
project *stringProject 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.

ParameterTypeDescription
project *stringProject 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.

ParameterTypeDescription
project *stringProject name or id, for example "Fabrikam".
repository *stringRepository name or id.
statusstringPull request status (default active).
target_branchstringOnly pull requests into this branch, for example "main".
topintegerMaximum 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}.

ParameterTypeDescription
project *stringProject name or id, for example "Fabrikam".
pull_request_id *integerPull 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.

ParameterTypeDescription
project *stringProject name or id, for example "Fabrikam".
namestringFilter by pipeline name (prefix match).
topintegerMaximum 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.

ParameterTypeDescription
project *stringProject name or id, for example "Fabrikam".
branchstringBranch name, for example "refs/heads/main".
definition_idsstringComma-separated pipeline ids (from azuredevops_list_build_definitions).
resultstringBuild result filter (completed builds only).
statusstringBuild status filter.
topintegerMaximum 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}.

ParameterTypeDescription
build_id *integerBuild id (the number in the build URL).
project *stringProject 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.

ParameterTypeDescription
project *stringProject name or id, for example "Fabrikam".
wiql *stringWIQL text, for example SELECT [System.Id] FROM WorkItems WHERE [System.State] = 'Active'.
topintegerMaximum 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.

ParameterTypeDescription
ids *arrayWork item ids, up to 200 per call.
project *stringProject name or id, for example "Fabrikam".
fieldsarrayField 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}.

ParameterTypeDescription
project *stringProject name or id, for example "Fabrikam".
title *stringWork item title (System.Title).
work_item_type *stringWork item type, for example Task, Bug or User Story.
descriptionstringDescription, 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.

ParameterTypeDescription
content *stringComment text (Markdown).
project *stringProject name or id, for example "Fabrikam".
pull_request_id *integerPull request id (the number in its URL).
repository *stringRepository name or id.