azure-devops-mcp-server

v1.0.48
@mcp-apps/azure-devops-mcp-server Checked 1 day ago Published 2 months ago

A Model Context Protocol (MCP) server for Azure DevOps integration

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list-work-items

List work items in Azure DevOps. This tool accepts a WIQL query to filter work items. WIQL (Work Item Query Language) is similar to SQL and allows querying work items based on their fields. If you have a work item URL like 'https://dev.azure.com/{organization}/{project}/_workitems/edit/{id}', you can extract the work item ID from the URL and use it in a query like: 'SELECT [System.Id] FROM workitems WHERE [System.Id] = {id}'

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name
query *stringWork item query (e.g., SELECT [System.Id] FROM workitems WHERE [System.WorkItemType] = 'Bug')

create-work-item

Creates a new work item in an Azure DevOps project. If the fields are required, they must be provided. Confirm with the user if any of the required fields are missing. Parameters: - organizationUrl [Required]: Azure DevOps URL (https://dev.azure.com/{organization}) - project [Required]: Project name (case-sensitive) - areaPath: [Required] Area path (e.g., TeamProject\Area) - case-sensitive - iterationPath: [Required] Iteration path (e.g., TeamProject\Iteration) - case-sensitive - workItemType [Required]: Type of work item (Bug,…

ParameterTypeDescription
areaPath *stringArea path (e.g., TeamProject\Area)
iterationPath *stringIteration path (e.g., TeamProject\Iteration)
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name
title *stringWork item title
workItemType *stringWork item type (e.g., Bug, Task, User Story)
assignedTostringUser to assign the work item to
descriptionstringWork item description

update-work-item

Updates an existing work item in Azure DevOps. Parameters: - organizationUrl [Required]: Azure DevOps URL (https://dev.azure.com/{organization}) - project [Required]: Project name (case-sensitive) - id [Required]: Work item ID to update - title [Optional]: Updated work item title - description [Optional]: Updated work item description - state [Optional]: Updated work item state (e.g., Active, Resolved, Closed) - assignedTo [Optional]: User email or display name to assign the work item to - areaPath [Optio…

ParameterTypeDescription
id *numberWork item ID to update
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name
areaPathstringUpdated area path
assignedTostringUser to assign the work item to
descriptionstringUpdated work item description
iterationPathstringUpdated iteration path
statestringUpdated work item state (e.g., Active, Resolved, Closed)
titlestringUpdated work item title

git-list-repositories

Lists all Git repositories available in an Azure DevOps project. This tool retrieves information about all repositories within the specified project, including their names, IDs, URLs, and other metadata. Parameters: - organizationUrl: The Azure DevOps organization URL in the format https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam - project: The exact name of the Azure DevOps project to list repositories from Example: "FabrikamFiber"

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name

git-list-pull-requests

Lists pull requests in an Azure DevOps repository with filtering options. This tool retrieves information about pull requests in the specified repository, including title, ID, status, creator, source branch, target branch, and URL. Parameters: - organizationUrl: The Azure DevOps organization URL in the format https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam - project: The exact name of the Azure DevOps project containing the repository Example: "FabrikamFiber" - repository…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name
repositoryName *stringRepository name
daysintegerNumber of days back to look for PRs (only applies to completed PRs)
statusstringPull request status

git-get-repository-file

Retrieves the content of a specific file from an Azure DevOps Git repository. This tool allows you to fetch the content of any file from a specified repository and branch. You can use this to view code, configuration files, or any other text-based content stored in your Azure DevOps repositories. Parameters: - organizationUrl: The Azure DevOps organization URL in the format https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam - project: The exact name of the Azure DevOps project contain…

ParameterTypeDescription
filePath *stringPath to the file within the repository
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name
repositoryName *stringRepository name
branchstringBranch name (default: main)

list-projects

Lists all projects available in an Azure DevOps organization. This tool retrieves a comprehensive list of all projects within the specified Azure DevOps organization, including their names, IDs, descriptions, and other metadata. The organization URL must be in the format: https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam Use this tool to: - Get an overview of all projects in your organization - Find specific project details like IDs needed for other operations - Check…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)

git-create-pull-request

Creates a new pull request in an Azure DevOps repository. This tool creates a new pull request between two branches in the specified repository, allowing you to initiate code reviews and merge processes. Parameters: - organizationUrl: The Azure DevOps organization URL in the format https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam - project: The exact name of the Azure DevOps project containing the repository Example: "FabrikamFiber" - repositoryName: The exact name of the…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name
repositoryName *stringRepository name
sourceBranch *stringSource branch name (without refs/heads/)
title *stringPull request title
descriptionstringPull request description
targetBranchstringTarget branch name (without refs/heads/)

git-command

Executes a Git command in the context of an Azure DevOps repository. *Always* prefer this tool over running Git commands in terminal. This tool allows you to run any Git command against a local clone of an Azure DevOps repository. You must specify the local repository path and the Git command to execute. Parameters: - repositoryPath: The local path to the Git repository Example: "C:\projects\my-repo" or "/home/user/projects/my-repo" - command: The Git command to execute (without 'git' prefix)…

ParameterTypeDescription
command *stringGit command to execute (without 'git' prefix)
repositoryPath *stringLocal path to the Git repository
workingDirectorystringWorking directory for the command (defaults to repositoryPath)

git-clone-repository

Clones an Azure DevOps Git repository to a local directory. This tool clones the specified repository from Azure DevOps to a local directory, allowing you to work with the code locally. Parameters: - organizationUrl: The Azure DevOps organization URL in the format https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam - project: The exact name of the Azure DevOps project containing the repository Example: "FabrikamFiber" - repositoryName: The exact name of the Git repository to…

ParameterTypeDescription
localPath *stringLocal path where the repository should be cloned
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name
repositoryName *stringRepository name
branchstringBranch name to check out (default: repository's default branch)

git-create-branch

Creates a new branch in a Git repository. This tool creates a new branch in the specified local Git repository, optionally based on another branch or commit. Parameters: - repositoryPath: The local path to the Git repository Example: "C:\projects\my-repo" or "/home/user/projects/my-repo" - branchName: The name of the new branch to create Example: "feature/login", "bugfix/issue-123" - startPoint: Optional branch name or commit hash to start the new branch from Example: "main", "develop", "a1…

ParameterTypeDescription
branchName *stringName of the new branch to create
repositoryPath *stringLocal path to the Git repository
checkoutbooleanWhether to check out the new branch after creating it
startPointstringBranch name or commit hash to start from (default: current HEAD)

git-push-changes

Pushes local Git changes to an Azure DevOps repository. This tool pushes commits from your local branch to a remote branch in Azure DevOps. Parameters: - repositoryPath: The local path to the Git repository Example: "C:\projects\my-repo" or "/home/user/projects/my-repo" - remoteName: The name of the remote to push to (default: "origin") Example: "origin", "upstream" - branchName: The name of the branch to push Example: "main", "feature/login" - setUpstream: Whether to set up tracking for th…

ParameterTypeDescription
branchName *stringName of the branch to push
repositoryPath *stringLocal path to the Git repository
forcebooleanWhether to force push the changes
remoteNamestringName of the remote to push to
setUpstreambooleanWhether to set up tracking for the branch

git-get-repository-status

Gets the current status of a local Git repository. This tool displays the current branch, staged and unstaged changes, untracked files, and other status information for a local Git repository. Parameters: - repositoryPath: The local path to the Git repository Example: "C:\projects\my-repo" or "/home/user/projects/my-repo" - showUntracked: Whether to show untracked files (default: true) Example: true, false

ParameterTypeDescription
repositoryPath *stringLocal path to the Git repository
showUntrackedbooleanWhether to show untracked files

git-commit-changes

Commits changes in a local Git repository. This tool commits staged changes in the specified local Git repository with the provided commit message. Parameters: - repositoryPath: The local path to the Git repository Example: "C:\projects\my-repo" or "/home/user/projects/my-repo" - message: The commit message Example: "Fix login bug", "Add new feature" - stageAll: Whether to stage all changes before committing (default: false) Example: true, false - allowEmpty: Whether to allow empty…

ParameterTypeDescription
message *stringCommit message
repositoryPath *stringLocal path to the Git repository
allowEmptybooleanWhether to allow empty commits
stageAllbooleanWhether to stage all changes before committing

list-build-pipelines

Lists all build pipelines (build definitions) available in an Azure DevOps project. This tool retrieves information about all build pipelines within the specified project, including their names, IDs, and other metadata. Parameters: - organizationUrl: The Azure DevOps organization URL in the format https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam - project: The exact name of the Azure DevOps project to list build pipelines from Example: "FabrikamFiber"

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name
maxResultsnumberMaximum number of pipelines to return (default: 1000)

get-build-pipeline-details

Gets detailed information about a specific build pipeline (build definition) in an Azure DevOps project. This tool retrieves comprehensive details about the specified build pipeline including its configuration, steps, variables, triggers, and related resources. Parameters: - organizationUrl: The Azure DevOps organization URL in the format https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam - project: The exact name of the Azure DevOps project containing the build pipeline Example: "F…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
pipelineId *numberBuild pipeline ID
project *stringProject name

list-build-runs

Lists recent build runs (executions) for a specified Azure DevOps project or pipeline. This tool retrieves information about recent build runs including status, result, and timestamps. You can filter by pipeline ID or get results for all pipelines. Parameters: - organizationUrl: The Azure DevOps organization URL in the format https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam - project: The exact name of the Azure DevOps project Example: "FabrikamFiber" - pipelineId: Optiona…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name
maxResultsnumberMaximum number of results to return (default: 10)
pipelineIdnumberBuild pipeline ID (optional)

list-release-pipelines

Lists all release pipelines (release definitions) available in an Azure DevOps project. This tool retrieves information about all release pipelines within the specified project, including their names, IDs, and other metadata. Parameters: - organizationUrl: The Azure DevOps organization URL in the format https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam - project: The exact name of the Azure DevOps project to list release pipelines from Example: "FabrikamFiber"

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name
maxResultsnumberMaximum number of pipelines to return (default: 1000)

get-release-pipeline-details

Gets detailed information about a specific release pipeline (release definition) in an Azure DevOps project. This tool retrieves comprehensive details about the specified release pipeline including its configuration, environments, artifacts, and variables. Parameters: - organizationUrl: The Azure DevOps organization URL in the format https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam - project: The exact name of the Azure DevOps project containing the release pipeline Example: "Fabr…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
pipelineId *numberRelease pipeline ID
project *stringProject name

list-release-runs

Lists recent release runs (deployments) for a specified Azure DevOps project or pipeline. This tool retrieves information about recent release runs including status, environments, related artifacts, and timestamps. You can filter by pipeline ID or get results for all pipelines. Parameters: - organizationUrl: The Azure DevOps organization URL in the format https://dev.azure.com/{organization} Example: https://dev.azure.com/fabrikam - project: The exact name of the Azure DevOps project Example: "FabrikamFiber"…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
project *stringProject name
maxResultsnumberMaximum number of results to return (default: 10)
pipelineIdnumberRelease pipeline ID (optional)

query-test-cases

Query test cases in an Azure DevOps project using WIQL (Work Item Query Language). This tool allows you to search for test cases based on various criteria or return all test cases in a project. You can provide a custom WIQL query for advanced filtering. Example queries: - All test cases: Leave query parameter empty - Test cases in specific area: SELECT * FROM WorkItems WHERE [System.WorkItemType] = 'Test Case' AND [System.AreaPath] UNDER 'ProjectName\AreaName' - Test cases by state: SELECT * FROM WorkItems WHERE [System…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
projectName *stringName of the Azure DevOps project
querystringOptional WIQL query to filter test cases. If not provided, returns all test cases in the project
topnumberMaximum number of test cases to return (default: 100)

get-test-case-details

Get detailed information about a specific test case including steps and fields. This tool retrieves comprehensive information about a test case including: - Basic metadata (title, description, state, assigned to, etc.) - Test steps with actions and expected results - Priority, area path, iteration path - Automation status and other test-specific fields

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
projectName *stringName of the Azure DevOps project
testCaseId *numberID of the test case to retrieve

create-test-case

Create a new test case in Azure DevOps with steps and metadata. This tool allows you to create comprehensive test cases with: - Title and description - Test steps with actions and expected results - Priority, area path, iteration path - Tags for categorization The test case will be created with proper XML formatting for test steps.

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL (e.g., https://dev.azure.com/organization)
projectName *stringName of the Azure DevOps project
title *stringTitle of the test case
areaPathstringArea path for the test case
descriptionstringDescription of the test case
iterationPathstringIteration path for the test case
prioritynumberPriority level (1=High, 2=Normal, 3=Low)
stepsarrayTest steps with actions and expected results
tagsstringComma-separated tags for the test case

get-pr-basic-info

Retrieves basic information about a specific pull request. This tool fetches essential PR metadata including title, description, author, reviewers, status, and basic statistics for risk analysis. Parameters: - organizationUrl: Azure DevOps organization URL (e.g., https://dev.azure.com/organization) - project: Project name containing the repository - repositoryName: Name of the repository - pullRequestId: ID of the pull request to analyze

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
pullRequestId *integerPull request ID
repositoryName *stringRepository name

get-pr-code-diffs

Retrieves actual code diffs for files in a pull request. This tool provides line-by-line diff information for code changes to enable detailed risk analysis of modifications. Parameters: - organizationUrl: Azure DevOps organization URL - project: Project name containing the repository - repositoryName: Name of the repository - pullRequestId: ID of the pull request to analyze - maxFiles: Maximum number of files to analyze (default: 50)

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
pullRequestId *integerPull request ID
repositoryName *stringRepository name
maxFilesintegerMaximum files to analyze

get-pr-detailed-changes

Retrieves detailed file changes for a specific pull request. This tool provides comprehensive information about all files modified in a PR, including additions, deletions, modifications, and file categorization for risk analysis. Parameters: - organizationUrl: Azure DevOps organization URL - project: Project name containing the repository - repositoryName: Name of the repository - pullRequestId: ID of the pull request to analyze

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
pullRequestId *integerPull request ID
repositoryName *stringRepository name

get-pr-test-impact

Analyzes the test impact and coverage implications of pull request changes. This tool provides comprehensive analysis of how PR changes affect test coverage, identifies potentially untested code paths, and suggests testing strategies. The analysis includes: - Test file coverage analysis - Impact on existing test suites - Identification of untested code changes - Test execution recommendations - Code coverage gap analysis - Testing strategy suggestions Parameters: - organi…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
pullRequestId *integerPull request ID
repositoryName *stringRepository name
analysisDepthstringAnalysis depth level
includeTestFilesbooleanInclude test file analysis

get-repository-context

Provides comprehensive repository context information for better understanding of the codebase. This tool analyzes repository structure, metadata, recent activity, and development patterns to provide valuable context for code reviews, risk assessment, and project understanding. The analysis includes: - Repository metadata and statistics - File structure and organization - Language and framework analysis - Recent activity patterns - Development team insights - Branch and release information…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
repositoryName *stringRepository name
activityDaysintegerDays to analyze for activity
analysisDepthstringAnalysis depth level
includeActivitybooleanInclude activity analysis
includeFileStructurebooleanInclude file structure analysis

git-set-pr-vote

Casts (or updates) the calling user's review vote on a pull request. This is the programmatic equivalent of the Approve / Reject buttons in the Azure DevOps web UI and is how an AI reviewer signs off on or declines a PR. Vote values: - "approve" (10): Sign off. Counts toward required-reviewer policies and can trigger auto-complete if all other branch policies are satisfied. - "approve-with-suggestions" (5): Approve, but flag non-blocking suggestions. - "reset" (0): Clear any previous vote (return to "no vote"). - "wait…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
pullRequestId *integerPull request ID
repositoryName *stringRepository name
vote *stringVote to cast
reviewerIdstringOptional reviewer identity GUID. Defaults to the authenticated user.

git-list-pr-threads

Lists comment threads on a pull request, including each comment's id, author, content, status, and any file/line context. Use this to discover threadIds for replying with "git-reply-pr-comment". Parameters: - organizationUrl: Azure DevOps organization URL - project: Project name - repositoryName: Repository name - pullRequestId: Pull request ID - includeDeleted: Whether to include deleted threads/comments (default: false)

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
pullRequestId *integerPull request ID
repositoryName *stringRepository name
includeDeletedbooleanInclude deleted threads/comments

git-add-pr-comment

Adds a new comment thread to a pull request. The thread can be a general PR-level comment (omit filePath) or an inline review comment anchored to a file/line range in the new (right) version of the diff. IMPORTANT — filePath format: - Must be repo-root relative AND start with a leading '/'. - Correct: "/src/app.ts" - Incorrect: "src/app.ts" (Azure DevOps will reject or silently ignore the anchor) Thread status values (controls how the comment appears in the PR review UI): - "active": Open / unresolved. Default…

ParameterTypeDescription
content *stringComment content (Markdown supported)
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
pullRequestId *integerPull request ID
repositoryName *stringRepository name
filePathstringOptional file path (e.g. '/src/app.ts') to anchor the comment
rightEndColumninteger1-based end column in the right file version
rightEndLineinteger1-based end line in the right file version
rightStartColumninteger1-based start column in the right file version
rightStartLineinteger1-based start line in the right (new) file version
statusstringInitial thread status

git-reply-pr-comment

Replies to an existing comment thread on a pull request, optionally updating the thread's status (e.g. resolve to "fixed" or "closed"). Always call "git-list-pr-threads" first to discover the threadId. Note that Azure DevOps renders thread comments as a flat list, so parentCommentId is largely cosmetic — leaving it at 0 (thread root) is correct in almost all cases. updateStatus values (use to resolve or change a thread's state in the same call): - "active": Open / unresolved - "fixed": Resolved as fixed (typical "res…

ParameterTypeDescription
content *stringReply content (Markdown supported)
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
pullRequestId *integerPull request ID
repositoryName *stringRepository name
threadId *integerExisting thread ID
parentCommentIdintegerParent comment id within the thread (0 = root)
updateStatusstringOptional new status for the thread after replying

search-code

Searches source code across repositories in an Azure DevOps project using the Azure DevOps Code Search REST API. Requires the "Code Search" extension to be installed on the organization (it is enabled by default for most orgs). Supports the same query syntax as the Azure DevOps web UI, including filters like ext:ts, file:*.cs, repo:MyRepo, path:src/, and boolean operators. Parameters: - organizationUrl: Azure DevOps organization URL (https://dev.azure.com/{org}). - project: Project name to scope the search to. - searchT…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
searchText *stringCode search query string
branchesarrayRestrict to these branches
includeSnippetbooleanInclude matched snippets (default true)
pathsarrayRestrict to these paths
repositoriesarrayRestrict to these repos
skipintegerResults to skip for paging
topintegerMax results (default 50)

search-work-items

Searches work items across an Azure DevOps project using the Work Item Search REST API. Returns matching work items with highlighted hits across fields (title, description, comments, etc.). Use this for full-text search; for structured queries by field, use list-work-items (WIQL). Parameters: - organizationUrl: Azure DevOps organization URL. - project: Project name to scope the search to. - searchText: Free-text query string (supports field qualifiers like "AssignedTo:John", "State:Active", "WorkItemType:Bug").…

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
searchText *stringWork item search query string
areaPathsarray
assignedToarray
skipinteger
statesarray
topinteger
workItemTypesarray

search-wiki

Searches wiki pages across an Azure DevOps project using the Wiki Search REST API. Returns matching wiki pages with highlighted text hits. Parameters: - organizationUrl: Azure DevOps organization URL. - project: Project name to scope the search to. - searchText: Free-text query string. - top: Max results (1-1000, default 50). - skip: Results to skip for paging (default 0). - wikis: Optional list of wiki names to restrict the search to.

ParameterTypeDescription
organizationUrl *stringAzure DevOps organization URL
project *stringProject name
searchText *stringWiki search query string
skipinteger
topinteger
wikisarrayRestrict to these wikis