Azure DevOps

v0.1.54
io.github.billg118/mcp-server-azure-devops Checked 6 hours ago Published 27 days ago

Azure DevOps MCP server: projects, repos, work items, pull requests, pipelines, and wikis.

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

get_me

Get details of the authenticated user (id, displayName, email)

list_organizations

List all Azure DevOps organizations accessible to the current authentication

list_projects

List all projects in an organization

ParameterTypeDescription
continuationTokennumberGets the projects after the continuation token provided
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
skipnumberNumber of projects to skip
stateFilternumberFilter on team project state (0: all, 1: well-formed, 2: creating, 3: deleting, 4: new)
topnumberMaximum number of projects to return

get_project

Get details of a specific project

ParameterTypeDescription
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)

get_project_details

Get comprehensive details of a project including process, work item types, and teams

ParameterTypeDescription
expandTeamIdentity *booleanExpand identity information in the team objects
includeFields *booleanInclude field information for work item types
includeProcess *booleanInclude process information in the project result
includeTeams *booleanInclude associated teams in the project result
includeWorkItemTypes *booleanInclude work item types and their structure
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)

get_repository

Get details of a specific repository

ParameterTypeDescription
repositoryId *stringThe ID or name of the repository
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)

get_repository_details

Get detailed information about a repository including statistics and refs

ParameterTypeDescription
includeRefs *booleanWhether to include repository refs
includeStatistics *booleanWhether to include branch statistics
repositoryId *stringThe ID or name of the repository
branchNamestringName of specific branch to get statistics for (if includeStatistics is true)
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)
refFilterstringOptional filter for refs (e.g., "heads/" or "tags/")

list_repositories

List repositories in a project

ParameterTypeDescription
includeLinksbooleanWhether to include reference links
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)

get_file_content

Get content of a file or directory from a repository

ParameterTypeDescription
path *stringPath to the file or folder
repositoryId *stringThe ID or name of the repository
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)
versionstringThe version (branch, tag, or commit) to get content from
versionTypestringType of version specified (branch, commit, or tag)

get_all_repositories_tree

Displays a hierarchical tree view of files and directories across multiple Azure DevOps repositories within a project, based on their default branches

ParameterTypeDescription
depth *integerMaximum depth to traverse within each repository (0 = unlimited)
organizationIdstringThe ID or name of the Azure DevOps organization (Default: unknown-organization)
patternstringFile pattern (wildcard characters allowed) to filter files by within each repository
projectIdstringThe ID or name of the project (Default: no default project)
repositoryPatternstringRepository name pattern (wildcard characters allowed) to filter which repositories are included

get_repository_tree

Displays a hierarchical tree view of files and directories within a single repository starting from an optional path

ParameterTypeDescription
depth *integerMaximum depth to traverse (0 = unlimited)
path *stringPath within the repository to start from
repositoryId *stringThe ID or name of the repository
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)

create_branch

Create a new branch from an existing one

ParameterTypeDescription
newBranch *stringName of the new branch to create (without "refs/heads/", e.g., "feature/my-branch")
repositoryId *stringThe ID or name of the repository
sourceBranch *stringName of the branch to copy from (without "refs/heads/", e.g., "master")
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)

create_commit

Create a commit on an existing branch using file changes. - Provide plain branch names (no "refs/heads/"). - ⚠️ Each file path may appear only once per commit request—combine all edits to a file into a single change entry. - Prefer multiple commits when you have sparse or unrelated edits; smaller focused commits keep review context clear. 🎯 RECOMMENDED: Use the SEARCH/REPLACE format (much easier, no line counting!). **Option 1: SEARCH/REPLACE format (EASIEST)** Simply provide the exact text to find and replace: ```json { "changes": [{ "path": "src/api/services/function-call.ts…

ParameterTypeDescription
branchName *stringThe branch to commit to (without "refs/heads/", e.g., "codex/test2-delete-main-py")
changes *arrayList of file changes as either unified git diffs OR search/replace pairs
commitMessage *stringCommit message
repositoryId *stringThe ID or name of the repository
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)

list_commits

List recent commits on a branch including file-level diff content for each commit

ParameterTypeDescription
branchName *stringBranch name to list commits from
repositoryId *stringThe ID or name of the repository
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)
skipintegerNumber of commits to skip from the newest
topintegerMaximum number of commits to return (Default: 10)

list_work_items

List work items in a project

ParameterTypeDescription
fieldsarrayList of additional fields to include in the response beyond the defaults (System.Id, System.Title, System.State, System.AssignedTo). Use full field reference names, e.g. "Microsoft.VSTS.Scheduling.Sto…
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)
queryIdstringID of a saved work item query
skipnumberNumber of work items to skip
teamIdstringThe ID of the team
topnumberMaximum number of work items to return
wiqlstringWork Item Query Language (WIQL) query

get_work_item

Get details of a specific work item

ParameterTypeDescription
workItemId *numberThe ID of the work item
expandstringThe level of detail to include in the response. Defaults to "all" if not specified.

create_work_item

Create a new work item

ParameterTypeDescription
title *stringThe title of the work item
workItemType *stringThe type of work item to create (e.g., "Task", "Bug", "User Story")
additionalFieldsobjectAdditional Azure DevOps fields to set by reference name (fields not exposed as named parameters). Example for Bug severity: { "Microsoft.VSTS.Common.Severity": "1 - Critical" } (accepted values: "1 -…
areaPathstringThe area path for the work item
assignedTostringThe email or name of the user to assign the work item to
descriptionstringWork item description in HTML format. Multi-line text fields (i.e., System.History, AcceptanceCriteria, etc.) must use HTML format. Do not use CDATA tags.
iterationPathstringThe iteration path for the work item
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
parentIdnumberThe ID of the parent work item to create a relationship with
prioritynumberThe priority of the work item
projectIdstringThe ID or name of the project (Default: no default project)
tagsarrayTags to add to the work item

update_work_item

Update an existing work item

ParameterTypeDescription
workItemId *numberThe ID of the work item to update
additionalFieldsobjectAdditional Azure DevOps fields to update by reference name (fields not exposed as named parameters). Example for Bug severity: { "Microsoft.VSTS.Common.Severity": "1 - Critical" } (accepted values: "1…
areaPathstringThe updated area path for the work item
assignedTostringThe email or name of the user to assign the work item to
descriptionstringWork item description in HTML format. Multi-line text fields (i.e., System.History, AcceptanceCriteria, etc.) must use HTML format. Do not use CDATA tags.
iterationPathstringThe updated iteration path for the work item
prioritynumberThe updated priority of the work item
statestringThe updated state of the work item
tagsarrayOverwrite/set the complete set of tags
tagsToAddarrayList of tags to append to the work item
tagsToRemovearrayList of tags to remove from the work item
titlestringThe updated title of the work item

get_work_item_comments

Get comments and discussion history for a specific work item

ParameterTypeDescription
expand *stringThe level of detail to include in the comments response (Default: "all")
order *stringThe order in which to sort the comments (Default: "asc")
workItemId *numberThe ID of the work item
continuationTokenstringContinuation token to retrieve the next page of comments
includeDeletedbooleanInclude deleted comments
projectIdstringThe ID or name of the project
topnumberMaximum number of comments to return

create_work_item_attachment

Upload a file and attach it to a work item. The file is read from the local filesystem, uploaded to Azure DevOps, and linked to the specified work item.

ParameterTypeDescription
filePath *stringThe absolute path to the file to upload as an attachment
workItemId *numberThe ID of the work item to attach the file to
commentstringOptional comment for the attachment
fileNamestringThe name to use for the attachment. If not provided, the name will be extracted from the file path.

get_work_item_attachment

Download an attachment from Azure DevOps and save it to the local filesystem. The attachment ID can be obtained from the work item relations.

ParameterTypeDescription
attachmentId *stringThe ID (GUID) of the attachment to download. Can be obtained from the work item relations.
outputPath *stringThe absolute path where the attachment will be saved

delete_work_item_attachment

Delete an attachment from a work item. The attachment ID can be obtained from the work item relations.

ParameterTypeDescription
attachmentId *stringThe ID (GUID) of the attachment to delete. Can be obtained from the work item relations.
workItemId *numberThe ID of the work item to delete the attachment from

search_code

Search for code across repositories in a project

ParameterTypeDescription
includeContent *booleanWhether to include full file content in results (default: true)
includeSnippet *booleanWhether to include code snippets in results (default: true)
searchText *stringThe text to search for
skip *integerNumber of results to skip for pagination (default: 0)
top *integerNumber of results to return (default: 100, max: 1000)
filtersobjectOptional filters to narrow search results
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project to search in (Default: no default project). If not provided, the default project will be used.

search_wiki

Search for content across wiki pages in a project

ParameterTypeDescription
includeFacets *booleanWhether to include faceting in results (default: true)
searchText *stringThe text to search for in wikis
skip *integerNumber of results to skip for pagination (default: 0)
top *integerNumber of results to return (default: 100, max: 1000)
filtersobjectOptional filters to narrow search results
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project to search in. If omitted, the search runs across the organization when supported.

search_work_items

Search for work items across projects in Azure DevOps

ParameterTypeDescription
includeFacets *booleanWhether to include faceting in results (default: true)
searchText *stringThe text to search for in work items
skip *integerNumber of results to skip for pagination (default: 0)
top *integerNumber of results to return (default: 100, max: 1000)
filtersobjectOptional filters to narrow search results
orderByarrayOptions for sorting search results
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project to search in. If omitted, the search runs across the organization when supported.

create_pull_request

Create a new pull request, including reviewers, linked work items, and optional tags

ParameterTypeDescription
repositoryId *stringThe ID or name of the repository
sourceRefName *stringThe source branch name (e.g., refs/heads/feature-branch)
targetRefName *stringThe target branch name (e.g., refs/heads/main)
title *stringThe title of the pull request
additionalPropertiesobjectAdditional properties to set on the pull request
descriptionstringThe description of the pull request (markdown is supported)
isDraftbooleanWhether the pull request should be created as a draft
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)
reviewersarrayList of reviewer email addresses or IDs
tagsarrayList of tags to apply to the pull request
workItemRefsarrayList of work item IDs to link to the pull request

get_pull_request

Get a pull request by ID (no repositoryId required; best for Azure DevOps Server where PR IDs are project-scoped)

ParameterTypeDescription
projectId *stringThe ID or name of the project
pullRequestId *numberThe ID of the pull request
organizationIdstringThe ID or name of the organization (Default: unknown-organization)

list_pull_requests

List pull requests in a repository

ParameterTypeDescription
repositoryId *stringThe ID or name of the repository
top *numberMaximum number of pull requests to return (default: 10)
creatorIdstringFilter by creator ID (must be a UUID string)
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)
reviewerIdstringFilter by reviewer ID (must be a UUID string)
skipnumberNumber of pull requests to skip for pagination
sourceRefNamestringFilter by source branch name
statusstringFilter by pull request status
targetRefNamestringFilter by target branch name

get_pull_request_comments

Get comments from a specific pull request

ParameterTypeDescription
pullRequestId *numberThe ID of the pull request
repositoryId *stringThe ID or name of the repository
includeDeletedbooleanWhether to include deleted comments
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)
threadIdnumberThe ID of the specific thread to get comments from
topnumberMaximum number of threads/comments to return

add_pull_request_comment

Add a comment to a pull request (repositoryId optional; derived from pullRequestId when omitted)

ParameterTypeDescription
content *stringThe content of the comment in markdown
pullRequestId *numberThe ID of the pull request
filePathstringThe path of the file to comment on (for new thread on file)
lineNumbernumberThe line number to comment on (for new thread on file)
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
parentCommentIdnumberID of the parent comment when replying to an existing comment
projectIdstringThe ID or name of the project (Default: no default project)
repositoryIdstringThe ID or name of the repository (optional; derived from pullRequestId when omitted)
statusstringThe status to set for a new thread
threadIdnumberThe ID of the thread to add the comment to

update_pull_request

Update an existing pull request with new properties, manage reviewers and work items, and add or remove tags

ParameterTypeDescription
pullRequestId *numberThe ID of the pull request to update
repositoryId *stringThe ID or name of the repository
addReviewersarrayList of reviewer email addresses or IDs to add
addTagsarrayList of tags to add to the pull request
addWorkItemIdsarrayList of work item IDs to link to the pull request
additionalPropertiesobjectAdditional properties to update on the pull request
descriptionstringThe updated description of the pull request
isDraftbooleanWhether the pull request should be marked as a draft (true) or unmarked (false)
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)
removeReviewersarrayList of reviewer email addresses or IDs to remove
removeTagsarrayList of tags to remove from the pull request
removeWorkItemIdsarrayList of work item IDs to unlink from the pull request
statusstringThe updated status of the pull request
titlestringThe updated title of the pull request

get_pull_request_changes

Get the files changed in a pull request, their unified diffs, source/target branch names, and the status of policy evaluations

ParameterTypeDescription
pullRequestId *numberThe ID of the pull request
repositoryId *stringThe ID or name of the repository
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)

get_pull_request_checks

Summarize the latest status checks and policy evaluations for a pull request. - Surfaces pipeline and run identifiers so you can jump straight to the blocking validation. - Pair with pipeline tools (e.g., get_pipeline_run, pipeline_timeline) to inspect failures in depth.

ParameterTypeDescription
pullRequestId *numberThe ID of the pull request
repositoryId *stringThe ID or name of the repository
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)

update_pull_request_thread_status

Update the status of a comment thread in a pull request (repositoryId optional; derived from pullRequestId when omitted)

ParameterTypeDescription
pullRequestId *numberThe ID of the pull request
status *stringThe status to set on the thread
threadId *numberThe ID of the thread to update
organizationIdstringThe ID or name of the organization (Default: unknown-organization)
projectIdstringThe ID or name of the project (Default: no default project)
repositoryIdstringThe ID or name of the repository (optional; derived from pullRequestId when omitted)

list_pipelines

List pipelines in a project

ParameterTypeDescription
orderBystringOrder by field and direction (e.g., "createdDate desc")
projectIdstringThe ID or name of the project (Default: no default project)
topnumberMaximum number of pipelines to return

get_pipeline

Get details of a specific pipeline

ParameterTypeDescription
pipelineId *integerThe numeric ID of the pipeline to retrieve
pipelineVersionintegerThe version of the pipeline to retrieve (latest if not specified)
projectIdstringThe ID or name of the project (Default: no default project)

list_pipeline_runs

List recent runs for a pipeline

ParameterTypeDescription
orderBy *stringSort order for run creation date
pipelineId *integerPipeline numeric ID
top *integerMaximum number of runs to return (1-100)
branchstringBranch to filter by (e.g., "main" or "refs/heads/main")
continuationTokenstringContinuation token for pagination
createdFromstringFilter runs created at or after this time (ISO 8601)
createdTostringFilter runs created at or before this time (ISO 8601)
projectIdstringThe ID or name of the project (Default: no default project)
resultstringFilter by final run result
statestringFilter by current run state

get_pipeline_run

Get details for a specific pipeline run

ParameterTypeDescription
runId *integerPipeline run identifier
pipelineIdintegerOptional guard; validates the run belongs to this pipeline
projectIdstringThe ID or name of the project (Default: no default project)

download_pipeline_artifact

Download a file from a pipeline run artifact and return its textual content

ParameterTypeDescription
artifactPath *stringPath to the desired file inside the artifact (format: <artifactName>/<path/to/file>)
runId *integerPipeline run identifier
pipelineIdintegerOptional guard; validates the run belongs to this pipeline
projectIdstringThe ID or name of the project (Default: no default project)

pipeline_timeline

Retrieve the timeline of stages and jobs for a pipeline run, to reduce the amount of data returned, you can filter by state and result

ParameterTypeDescription
runId *integerRun identifier
pipelineIdintegerOptional pipeline numeric ID for reference only
projectIdstringThe ID or name of the project (Default: no default project)
resultOptional result filter (single value or array) applied to returned timeline records
stateOptional state filter (single value or array) applied to returned timeline records
timelineIdstringOptional timeline identifier to select a specific timeline record

get_pipeline_log

Retrieve a specific pipeline log using the timeline log identifier

ParameterTypeDescription
logId *integerLog identifier from the timeline record
runId *integerPipeline run identifier
endLineintegerOptional ending line number for the log segment
formatstringOptional format for the log contents (plain or json)
pipelineIdintegerOptional pipeline numeric ID for reference only
projectIdstringThe ID or name of the project (Default: no default project)
startLineintegerOptional starting line number for the log segment

trigger_pipeline

Trigger a pipeline run

ParameterTypeDescription
pipelineId *integerThe numeric ID of the pipeline to trigger
branchstringThe branch to run the pipeline on (e.g., "main", "feature/my-branch"). If left empty, the default branch will be used
projectIdstringThe ID or name of the project (Default: no default project)
stagesToSkiparrayStages to skip in the pipeline run
templateParametersobjectParameters for template-based pipelines
variablesobjectVariables to pass to the pipeline run

get_wikis

Get details of wikis in a project

ParameterTypeDescription
organizationIdstring | nullThe ID or name of the organization (Default: unknown-organization)
projectIdstring | nullThe ID or name of the project (Default: no default project)

get_wiki_page

Get the content of a wiki page

ParameterTypeDescription
pagePath *stringThe path of the page within the wiki
wikiId *stringThe ID or name of the wiki
organizationIdstring | nullThe ID or name of the organization (Default: unknown-organization)
projectIdstring | nullThe ID or name of the project (Default: no default project)

create_wiki

Create a new wiki in the project

ParameterTypeDescription
mappedPath *string | nullFolder path inside repository which is shown as Wiki (only for codeWiki)
name *stringThe name of the new wiki
type *stringType of wiki to create (projectWiki or codeWiki)
organizationIdstring | nullThe ID or name of the organization (Default: unknown-organization)
projectIdstring | nullThe ID or name of the project (Default: no default project)
repositoryIdstring | nullThe ID of the repository to associate with the wiki (required for codeWiki)

update_wiki_page

Update content of a wiki page

ParameterTypeDescription
content *stringThe new content for the wiki page in markdown format
pagePath *stringPath of the wiki page to update
wikiId *stringThe ID or name of the wiki
commentstring | nullOptional comment for the update
organizationIdstring | nullThe ID or name of the organization (Default: unknown-organization)
projectIdstring | nullThe ID or name of the project (Default: no default project)

list_wiki_pages

List pages within an Azure DevOps wiki

ParameterTypeDescription
wikiId *stringThe ID or name of the wiki
organizationIdstring | nullThe ID or name of the organization (Default: unknown-organization)
projectIdstring | nullThe ID or name of the project (Default: no default project)

create_wiki_page

Create a new page in a wiki. If the page already exists at the specified path, it will be updated.

ParameterTypeDescription
content *stringThe content for the new wiki page in markdown format
pagePath *string | nullPath of the wiki page to create. If the path does not exist, it will be created. Defaults to the wiki root (/). Example: /ParentPage/NewPage
wikiId *stringThe ID or name of the wiki
commentstringOptional comment for the creation or update
organizationIdstring | nullThe ID or name of the organization (Default: unknown-organization)
projectIdstring | nullThe ID or name of the project (Default: no default project)