Azure DevOps
v0.1.54Azure 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
| Parameter | Type | Description |
|---|---|---|
continuationToken | number | Gets the projects after the continuation token provided |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
skip | number | Number of projects to skip |
stateFilter | number | Filter on team project state (0: all, 1: well-formed, 2: creating, 3: deleting, 4: new) |
top | number | Maximum number of projects to return |
get_project
Get details of a specific project
| Parameter | Type | Description |
|---|---|---|
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The 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
| Parameter | Type | Description |
|---|---|---|
expandTeamIdentity * | boolean | Expand identity information in the team objects |
includeFields * | boolean | Include field information for work item types |
includeProcess * | boolean | Include process information in the project result |
includeTeams * | boolean | Include associated teams in the project result |
includeWorkItemTypes * | boolean | Include work item types and their structure |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
get_repository
Get details of a specific repository
| Parameter | Type | Description |
|---|---|---|
repositoryId * | string | The ID or name of the repository |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
get_repository_details
Get detailed information about a repository including statistics and refs
| Parameter | Type | Description |
|---|---|---|
includeRefs * | boolean | Whether to include repository refs |
includeStatistics * | boolean | Whether to include branch statistics |
repositoryId * | string | The ID or name of the repository |
branchName | string | Name of specific branch to get statistics for (if includeStatistics is true) |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
refFilter | string | Optional filter for refs (e.g., "heads/" or "tags/") |
list_repositories
List repositories in a project
| Parameter | Type | Description |
|---|---|---|
includeLinks | boolean | Whether to include reference links |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
get_file_content
Get content of a file or directory from a repository
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the file or folder |
repositoryId * | string | The ID or name of the repository |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
version | string | The version (branch, tag, or commit) to get content from |
versionType | string | Type 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
| Parameter | Type | Description |
|---|---|---|
depth * | integer | Maximum depth to traverse within each repository (0 = unlimited) |
organizationId | string | The ID or name of the Azure DevOps organization (Default: unknown-organization) |
pattern | string | File pattern (wildcard characters allowed) to filter files by within each repository |
projectId | string | The ID or name of the project (Default: no default project) |
repositoryPattern | string | Repository 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
| Parameter | Type | Description |
|---|---|---|
depth * | integer | Maximum depth to traverse (0 = unlimited) |
path * | string | Path within the repository to start from |
repositoryId * | string | The ID or name of the repository |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
create_branch
Create a new branch from an existing one
| Parameter | Type | Description |
|---|---|---|
newBranch * | string | Name of the new branch to create (without "refs/heads/", e.g., "feature/my-branch") |
repositoryId * | string | The ID or name of the repository |
sourceBranch * | string | Name of the branch to copy from (without "refs/heads/", e.g., "master") |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The 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…
| Parameter | Type | Description |
|---|---|---|
branchName * | string | The branch to commit to (without "refs/heads/", e.g., "codex/test2-delete-main-py") |
changes * | array | List of file changes as either unified git diffs OR search/replace pairs |
commitMessage * | string | Commit message |
repositoryId * | string | The ID or name of the repository |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The 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
| Parameter | Type | Description |
|---|---|---|
branchName * | string | Branch name to list commits from |
repositoryId * | string | The ID or name of the repository |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
skip | integer | Number of commits to skip from the newest |
top | integer | Maximum number of commits to return (Default: 10) |
list_work_items
List work items in a project
| Parameter | Type | Description |
|---|---|---|
fields | array | List 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… |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
queryId | string | ID of a saved work item query |
skip | number | Number of work items to skip |
teamId | string | The ID of the team |
top | number | Maximum number of work items to return |
wiql | string | Work Item Query Language (WIQL) query |
get_work_item
Get details of a specific work item
| Parameter | Type | Description |
|---|---|---|
workItemId * | number | The ID of the work item |
expand | string | The level of detail to include in the response. Defaults to "all" if not specified. |
create_work_item
Create a new work item
| Parameter | Type | Description |
|---|---|---|
title * | string | The title of the work item |
workItemType * | string | The type of work item to create (e.g., "Task", "Bug", "User Story") |
additionalFields | object | Additional 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 -… |
areaPath | string | The area path for the work item |
assignedTo | string | The email or name of the user to assign the work item to |
description | string | Work item description in HTML format. Multi-line text fields (i.e., System.History, AcceptanceCriteria, etc.) must use HTML format. Do not use CDATA tags. |
iterationPath | string | The iteration path for the work item |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
parentId | number | The ID of the parent work item to create a relationship with |
priority | number | The priority of the work item |
projectId | string | The ID or name of the project (Default: no default project) |
tags | array | Tags to add to the work item |
update_work_item
Update an existing work item
| Parameter | Type | Description |
|---|---|---|
workItemId * | number | The ID of the work item to update |
additionalFields | object | Additional 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… |
areaPath | string | The updated area path for the work item |
assignedTo | string | The email or name of the user to assign the work item to |
description | string | Work item description in HTML format. Multi-line text fields (i.e., System.History, AcceptanceCriteria, etc.) must use HTML format. Do not use CDATA tags. |
iterationPath | string | The updated iteration path for the work item |
priority | number | The updated priority of the work item |
state | string | The updated state of the work item |
tags | array | Overwrite/set the complete set of tags |
tagsToAdd | array | List of tags to append to the work item |
tagsToRemove | array | List of tags to remove from the work item |
title | string | The updated title of the work item |
manage_work_item_link
Add or remove links between work items
| Parameter | Type | Description |
|---|---|---|
operation * | string | The operation to perform on the link |
relationType * | string | The reference name of the relation type (e.g., "System.LinkTypes.Hierarchy-Forward") |
sourceWorkItemId * | number | The ID of the source work item |
targetWorkItemId * | number | The ID of the target work item |
comment | string | Optional comment explaining the link |
newRelationType | string | The new relation type to use when updating a link |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
get_work_item_comments
Get comments and discussion history for a specific work item
| Parameter | Type | Description |
|---|---|---|
expand * | string | The level of detail to include in the comments response (Default: "all") |
order * | string | The order in which to sort the comments (Default: "asc") |
workItemId * | number | The ID of the work item |
continuationToken | string | Continuation token to retrieve the next page of comments |
includeDeleted | boolean | Include deleted comments |
projectId | string | The ID or name of the project |
top | number | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | The absolute path to the file to upload as an attachment |
workItemId * | number | The ID of the work item to attach the file to |
comment | string | Optional comment for the attachment |
fileName | string | The 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.
| Parameter | Type | Description |
|---|---|---|
attachmentId * | string | The ID (GUID) of the attachment to download. Can be obtained from the work item relations. |
outputPath * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
attachmentId * | string | The ID (GUID) of the attachment to delete. Can be obtained from the work item relations. |
workItemId * | number | The ID of the work item to delete the attachment from |
search_code
Search for code across repositories in a project
| Parameter | Type | Description |
|---|---|---|
includeContent * | boolean | Whether to include full file content in results (default: true) |
includeSnippet * | boolean | Whether to include code snippets in results (default: true) |
searchText * | string | The text to search for |
skip * | integer | Number of results to skip for pagination (default: 0) |
top * | integer | Number of results to return (default: 100, max: 1000) |
filters | object | Optional filters to narrow search results |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The 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
| Parameter | Type | Description |
|---|---|---|
includeFacets * | boolean | Whether to include faceting in results (default: true) |
searchText * | string | The text to search for in wikis |
skip * | integer | Number of results to skip for pagination (default: 0) |
top * | integer | Number of results to return (default: 100, max: 1000) |
filters | object | Optional filters to narrow search results |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The 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
| Parameter | Type | Description |
|---|---|---|
includeFacets * | boolean | Whether to include faceting in results (default: true) |
searchText * | string | The text to search for in work items |
skip * | integer | Number of results to skip for pagination (default: 0) |
top * | integer | Number of results to return (default: 100, max: 1000) |
filters | object | Optional filters to narrow search results |
orderBy | array | Options for sorting search results |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The 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
| Parameter | Type | Description |
|---|---|---|
repositoryId * | string | The ID or name of the repository |
sourceRefName * | string | The source branch name (e.g., refs/heads/feature-branch) |
targetRefName * | string | The target branch name (e.g., refs/heads/main) |
title * | string | The title of the pull request |
additionalProperties | object | Additional properties to set on the pull request |
description | string | The description of the pull request (markdown is supported) |
isDraft | boolean | Whether the pull request should be created as a draft |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
reviewers | array | List of reviewer email addresses or IDs |
tags | array | List of tags to apply to the pull request |
workItemRefs | array | List 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)
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The ID or name of the project |
pullRequestId * | number | The ID of the pull request |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
list_pull_requests
List pull requests in a repository
| Parameter | Type | Description |
|---|---|---|
repositoryId * | string | The ID or name of the repository |
top * | number | Maximum number of pull requests to return (default: 10) |
creatorId | string | Filter by creator ID (must be a UUID string) |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
reviewerId | string | Filter by reviewer ID (must be a UUID string) |
skip | number | Number of pull requests to skip for pagination |
sourceRefName | string | Filter by source branch name |
status | string | Filter by pull request status |
targetRefName | string | Filter by target branch name |
get_pull_request_comments
Get comments from a specific pull request
| Parameter | Type | Description |
|---|---|---|
pullRequestId * | number | The ID of the pull request |
repositoryId * | string | The ID or name of the repository |
includeDeleted | boolean | Whether to include deleted comments |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
threadId | number | The ID of the specific thread to get comments from |
top | number | Maximum number of threads/comments to return |
add_pull_request_comment
Add a comment to a pull request (repositoryId optional; derived from pullRequestId when omitted)
| Parameter | Type | Description |
|---|---|---|
content * | string | The content of the comment in markdown |
pullRequestId * | number | The ID of the pull request |
filePath | string | The path of the file to comment on (for new thread on file) |
lineNumber | number | The line number to comment on (for new thread on file) |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
parentCommentId | number | ID of the parent comment when replying to an existing comment |
projectId | string | The ID or name of the project (Default: no default project) |
repositoryId | string | The ID or name of the repository (optional; derived from pullRequestId when omitted) |
status | string | The status to set for a new thread |
threadId | number | The 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
| Parameter | Type | Description |
|---|---|---|
pullRequestId * | number | The ID of the pull request to update |
repositoryId * | string | The ID or name of the repository |
addReviewers | array | List of reviewer email addresses or IDs to add |
addTags | array | List of tags to add to the pull request |
addWorkItemIds | array | List of work item IDs to link to the pull request |
additionalProperties | object | Additional properties to update on the pull request |
description | string | The updated description of the pull request |
isDraft | boolean | Whether the pull request should be marked as a draft (true) or unmarked (false) |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
removeReviewers | array | List of reviewer email addresses or IDs to remove |
removeTags | array | List of tags to remove from the pull request |
removeWorkItemIds | array | List of work item IDs to unlink from the pull request |
status | string | The updated status of the pull request |
title | string | The 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
| Parameter | Type | Description |
|---|---|---|
pullRequestId * | number | The ID of the pull request |
repositoryId * | string | The ID or name of the repository |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The 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.
| Parameter | Type | Description |
|---|---|---|
pullRequestId * | number | The ID of the pull request |
repositoryId * | string | The ID or name of the repository |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The 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)
| Parameter | Type | Description |
|---|---|---|
pullRequestId * | number | The ID of the pull request |
status * | string | The status to set on the thread |
threadId * | number | The ID of the thread to update |
organizationId | string | The ID or name of the organization (Default: unknown-organization) |
projectId | string | The ID or name of the project (Default: no default project) |
repositoryId | string | The ID or name of the repository (optional; derived from pullRequestId when omitted) |
list_pipelines
List pipelines in a project
| Parameter | Type | Description |
|---|---|---|
orderBy | string | Order by field and direction (e.g., "createdDate desc") |
projectId | string | The ID or name of the project (Default: no default project) |
top | number | Maximum number of pipelines to return |
get_pipeline
Get details of a specific pipeline
| Parameter | Type | Description |
|---|---|---|
pipelineId * | integer | The numeric ID of the pipeline to retrieve |
pipelineVersion | integer | The version of the pipeline to retrieve (latest if not specified) |
projectId | string | The ID or name of the project (Default: no default project) |
list_pipeline_runs
List recent runs for a pipeline
| Parameter | Type | Description |
|---|---|---|
orderBy * | string | Sort order for run creation date |
pipelineId * | integer | Pipeline numeric ID |
top * | integer | Maximum number of runs to return (1-100) |
branch | string | Branch to filter by (e.g., "main" or "refs/heads/main") |
continuationToken | string | Continuation token for pagination |
createdFrom | string | Filter runs created at or after this time (ISO 8601) |
createdTo | string | Filter runs created at or before this time (ISO 8601) |
projectId | string | The ID or name of the project (Default: no default project) |
result | string | Filter by final run result |
state | string | Filter by current run state |
get_pipeline_run
Get details for a specific pipeline run
| Parameter | Type | Description |
|---|---|---|
runId * | integer | Pipeline run identifier |
pipelineId | integer | Optional guard; validates the run belongs to this pipeline |
projectId | string | The 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
| Parameter | Type | Description |
|---|---|---|
artifactPath * | string | Path to the desired file inside the artifact (format: <artifactName>/<path/to/file>) |
runId * | integer | Pipeline run identifier |
pipelineId | integer | Optional guard; validates the run belongs to this pipeline |
projectId | string | The 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
| Parameter | Type | Description |
|---|---|---|
runId * | integer | Run identifier |
pipelineId | integer | Optional pipeline numeric ID for reference only |
projectId | string | The ID or name of the project (Default: no default project) |
result | Optional result filter (single value or array) applied to returned timeline records | |
state | Optional state filter (single value or array) applied to returned timeline records | |
timelineId | string | Optional timeline identifier to select a specific timeline record |
get_pipeline_log
Retrieve a specific pipeline log using the timeline log identifier
| Parameter | Type | Description |
|---|---|---|
logId * | integer | Log identifier from the timeline record |
runId * | integer | Pipeline run identifier |
endLine | integer | Optional ending line number for the log segment |
format | string | Optional format for the log contents (plain or json) |
pipelineId | integer | Optional pipeline numeric ID for reference only |
projectId | string | The ID or name of the project (Default: no default project) |
startLine | integer | Optional starting line number for the log segment |
trigger_pipeline
Trigger a pipeline run
| Parameter | Type | Description |
|---|---|---|
pipelineId * | integer | The numeric ID of the pipeline to trigger |
branch | string | The branch to run the pipeline on (e.g., "main", "feature/my-branch"). If left empty, the default branch will be used |
projectId | string | The ID or name of the project (Default: no default project) |
stagesToSkip | array | Stages to skip in the pipeline run |
templateParameters | object | Parameters for template-based pipelines |
variables | object | Variables to pass to the pipeline run |
get_wikis
Get details of wikis in a project
| Parameter | Type | Description |
|---|---|---|
organizationId | string | null | The ID or name of the organization (Default: unknown-organization) |
projectId | string | null | The ID or name of the project (Default: no default project) |
get_wiki_page
Get the content of a wiki page
| Parameter | Type | Description |
|---|---|---|
pagePath * | string | The path of the page within the wiki |
wikiId * | string | The ID or name of the wiki |
organizationId | string | null | The ID or name of the organization (Default: unknown-organization) |
projectId | string | null | The ID or name of the project (Default: no default project) |
create_wiki
Create a new wiki in the project
| Parameter | Type | Description |
|---|---|---|
mappedPath * | string | null | Folder path inside repository which is shown as Wiki (only for codeWiki) |
name * | string | The name of the new wiki |
type * | string | Type of wiki to create (projectWiki or codeWiki) |
organizationId | string | null | The ID or name of the organization (Default: unknown-organization) |
projectId | string | null | The ID or name of the project (Default: no default project) |
repositoryId | string | null | The ID of the repository to associate with the wiki (required for codeWiki) |
update_wiki_page
Update content of a wiki page
| Parameter | Type | Description |
|---|---|---|
content * | string | The new content for the wiki page in markdown format |
pagePath * | string | Path of the wiki page to update |
wikiId * | string | The ID or name of the wiki |
comment | string | null | Optional comment for the update |
organizationId | string | null | The ID or name of the organization (Default: unknown-organization) |
projectId | string | null | The ID or name of the project (Default: no default project) |
list_wiki_pages
List pages within an Azure DevOps wiki
| Parameter | Type | Description |
|---|---|---|
wikiId * | string | The ID or name of the wiki |
organizationId | string | null | The ID or name of the organization (Default: unknown-organization) |
projectId | string | null | The 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.
| Parameter | Type | Description |
|---|---|---|
content * | string | The content for the new wiki page in markdown format |
pagePath * | string | null | Path 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 * | string | The ID or name of the wiki |
comment | string | Optional comment for the creation or update |
organizationId | string | null | The ID or name of the organization (Default: unknown-organization) |
projectId | string | null | The ID or name of the project (Default: no default project) |