ado-workflows-mcp
v0.12.0MCP server exposing Azure DevOps workflow automation tools
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_pull_requests List Pull Requests
List pull requests matching search criteria. Returns PR summaries with id, title, status, web_url, and more.
| Parameter | Type | Description |
|---|---|---|
project * | string | Azure DevOps project name. |
creator_id | Optional GUID to filter by PR creator. | |
repository_id | Optional repository ID for repo-scoped queries. | |
reviewer_id | Optional GUID to filter by reviewer. | |
status | string | PR status filter (default "all"). |
top | integer | Maximum number of results (default 50). |
working_directory | Optional path for ADO context resolution. |
query_work_items Query Work Items
Query work items via WIQL and return enriched data. Executes a WIQL query and returns work item summaries with id, title, state, type, and effort tracking fields.
| Parameter | Type | Description |
|---|---|---|
project * | string | Azure DevOps project name. |
wiql * | string | WIQL query string. |
top | Optional maximum number of results. | |
working_directory | Optional path for ADO context resolution. |
list_commits List Commits
List git commits from a local repository. Returns commit summaries with sha, message, author, date, and repo name. No ADO connection is needed.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Absolute path to the local git repository. |
authors | Optional list of author names/emails to filter by. | |
max_count | integer | Maximum number of commits to return (default 100). |
since | Optional date string to filter commits after (e.g. "2026-01-01"). |
analyze_pr_comments Analyze Pr Comments
Analyze all comment threads on a PR. Fetches threads, categorizes by status, and extracts author statistics for a structured overview.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
working_directory | Optional path for context resolution. |
post_pr_comment Post Pr Comment
Post a new comment thread to a PR. Creates a new comment thread with the specified content and status.
| Parameter | Type | Description |
|---|---|---|
comment_text * | string | Comment body text. |
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
status | string | Thread status (default "active"). |
working_directory | Optional path for context resolution. |
reply_to_pr_comment Reply To Pr Comment
Reply to an existing comment thread. Adds a reply to a specific thread on a PR.
| Parameter | Type | Description |
|---|---|---|
comment_text * | string | Reply body text. |
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
thread_id * | integer | Existing thread ID to reply to. |
working_directory | Optional path for context resolution. |
resolve_pr_comments Resolve Pr Comments
Batch-resolve PR comment threads. Sets thread status to the target status for a list of thread IDs. Uses partial-success semantics — individual thread errors don't fail the entire batch.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
thread_ids * | array | Thread IDs to resolve. |
status | string | Target thread status (default "fixed"). |
working_directory | Optional path for context resolution. |
post_pr_comments Post Pr Comments
Batch-post comments to a PR with optional file/line positioning.
| Parameter | Type | Description |
|---|---|---|
comments * | array | List of comment dicts to post. |
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
dry_run | boolean | If True, validate without posting. |
working_directory | Optional path for context resolution. |
post_rich_comments Post Rich Comments
Batch-post structured review comments with severity, type, and formatting.
| Parameter | Type | Description |
|---|---|---|
comments * | array | List of comment dicts to post. |
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
batch_size | integer | Number of comments per API batch (default 5). |
dry_run | boolean | If True, validate without posting. |
filter_self_praise | boolean | If True, filter out self-praise comments. |
working_directory | Optional path for context resolution. |
establish_pr_context Establish Pr Context
Create reusable PR context from a URL or numeric ID. Parses a full PR URL or resolves a numeric PR ID using cached repository context.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full Azure DevOps PR URL or a numeric PR ID. |
working_directory | Optional path for context resolution when using a numeric ID. |
create_pull_request Create Pull Request
Create a new pull request via the Azure DevOps SDK. Constructs a PR from branch names with optional title, description, and draft mode.
| Parameter | Type | Description |
|---|---|---|
source_branch * | string | Source branch name (with or without refs/heads/). |
description | Optional PR description. | |
is_draft | boolean | Whether to create as a draft PR. |
target_branch | string | Target branch name. Defaults to "main". |
title | Optional PR title. | |
work_item_ids | Optional list of work item IDs to link to the PR. | |
working_directory | Optional path for context resolution. |
get_pr_file_changes Get Pr File Changes
List files changed in a PR with iteration metadata. Returns a list of dicts, each with keys: path, change_type, change_tracking_id, iteration_id. Uses the latest iteration.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
working_directory | Optional path for context resolution. |
get_pr_file_contents Get Pr File Contents
Fetch file contents for files changed in a PR. Returns a list of dicts, each with keys: path, content, encoding, size_bytes. Files that fail to fetch are omitted from successes and included as error entries with ai_guidance. If file_paths is None, fetches all changed files.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
exclude_extensions | Optional list of file extensions to skip (e.g. [".png", ".lock"]). Case-insensitive; leading dot optional. | |
file_paths | Optional list of specific file paths to fetch. | |
working_directory | Optional path for context resolution. |
get_pr_author Get Pr Author
Get the identity of a PR's creator. Returns the display name, GUID, and email of the user who created the pull request.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
working_directory | Optional path for context resolution. |
get_current_user Get Current User
Get the identity of the authenticated user. Returns the display name and GUID of the user whose credentials are active for Azure DevOps operations. Useful for self-praise filtering, commit attribution, and permission checks.
| Parameter | Type | Description |
|---|---|---|
working_directory | Optional path for context resolution. |
get_pull_request Get Pull Request
Retrieve full PR metadata including reviewers, labels, and work items.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
working_directory | Optional path for context resolution. |
update_pull_request Update Pull Request
Update title and/or description of an existing PR.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
description | New description (optional). | |
title | New title (optional). | |
work_item_ids | Optional list of work item IDs to link to the PR. | |
working_directory | Optional path for context resolution. |
retarget_pull_request Retarget Pull Request
Change the target branch of an existing PR.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
target_branch * | string | New target branch name. |
working_directory | Optional path for context resolution. |
set_pr_draft_status Set Pr Draft Status
Toggle a PR between draft and published state.
| Parameter | Type | Description |
|---|---|---|
is_draft * | boolean | True to mark as draft, False to publish. |
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
working_directory | Optional path for context resolution. |
abandon_pull_request Abandon Pull Request
Abandon (close without merging) an existing PR.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
working_directory | Optional path for context resolution. |
complete_pull_request Complete Pull Request
Complete (merge) a PR with configurable merge strategy.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
bypass_policy | boolean | Whether to bypass branch policies. |
bypass_reason | Required when bypass_policy is True. | |
delete_source_branch | boolean | Whether to delete the source branch after merge. |
merge_commit_message | Optional merge commit message. | |
merge_strategy | string | One of: squash, noFastForward, rebase, rebaseMerge. |
transition_work_items | boolean | Whether to transition linked work items. |
working_directory | Optional path for context resolution. |
add_pr_reviewer Add Pr Reviewer
Add a reviewer to a PR.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
reviewer_id * | string | Azure DevOps identity GUID of the reviewer. |
is_required | boolean | Whether the reviewer is required. |
working_directory | Optional path for context resolution. |
remove_pr_reviewer Remove Pr Reviewer
Remove a reviewer from a PR.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
reviewer_id * | string | Azure DevOps identity GUID of the reviewer. |
working_directory | Optional path for context resolution. |
list_pr_reviewers List Pr Reviewers
List all reviewers on a PR with vote details.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
working_directory | Optional path for context resolution. |
add_pr_label Add Pr Label
Add a label/tag to a PR.
| Parameter | Type | Description |
|---|---|---|
name * | string | Label name. |
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
working_directory | Optional path for context resolution. |
remove_pr_label Remove Pr Label
Remove a label from a PR.
| Parameter | Type | Description |
|---|---|---|
label_name * | string | Label name to remove. |
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
working_directory | Optional path for context resolution. |
list_pr_labels List Pr Labels
List all labels on a PR.
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
working_directory | Optional path for context resolution. |
get_pr_work_items Get Pr Work Items
List work items linked to a PR (read-only).
| Parameter | Type | Description |
|---|---|---|
pr_url_or_id * | string | A full PR URL or numeric PR ID. |
working_directory | Optional path for context resolution. |
get_pr_review_status Get Pr Review Status
Get comprehensive review status with vote invalidation detection. Fetches PR details, reviewer votes, commit history, and detects stale approvals that the raw API buries.
| Parameter | Type | Description |
|---|---|---|
pr_id * | integer | Pull request ID. |
working_directory | Optional path for context resolution. |
analyze_pending_reviews Analyze Pending Reviews
Discover PRs needing review attention across a repository. Lists active PRs, filters by age and creator, and enriches each with staleness detection data.
| Parameter | Type | Description |
|---|---|---|
creator_filter | Optional substring match on PR creator. | |
max_days_old | integer | Exclude PRs older than this many days. Default 30. |
working_directory | Optional path for context resolution. |
list_repo_items List Repo Items
List files and folders at a path on any branch, commit, or tag. Returns a list of dicts, each with keys: path, is_folder, git_object_type, object_id, commit_id, url. Context (repository, project, org) is resolved from the cached RepositoryContext unless explicit params are provided.
| Parameter | Type | Description |
|---|---|---|
path | string | Directory path to list. Defaults to "/". |
project | Project name (overrides context). | |
recursion | string | "none", "oneLevel" (default), or "full". |
ref | Branch name, commit SHA, or tag. None = default branch. | |
repository | Repository name (overrides context). | |
working_directory | Optional path for context resolution. |
get_repo_file_content Get Repo File Content
Fetch a single file's content from any branch, commit, or tag. Returns a dict with keys: path, content, encoding, size_bytes. Context (repository, project, org) is resolved from the cached RepositoryContext unless explicit params are provided.
| Parameter | Type | Description |
|---|---|---|
path * | string | File path within the repository. |
project | Project name (overrides context). | |
ref | Branch name, commit SHA, or tag. None = default branch. | |
repository | Repository name (overrides context). | |
working_directory | Optional path for context resolution. |
repository_discovery Repository Discovery
Discover Azure DevOps repositories from local git remotes. Scans the working directory (or cwd) for git repos, extracts ADO remote metadata, and selects the best match.
| Parameter | Type | Description |
|---|---|---|
working_directory | Path to scan. Defaults to the current working directory when omitted. |
discover_all_repositories Discover All Repositories
List every Azure DevOps repository discovered under the working directory. Walks the working directory (or cwd) for git repositories with Azure DevOps remotes. Use this tool when another tool surfaces a multi-repo ambiguity error to enumerate the candidate repos so an end user can disambiguate.
| Parameter | Type | Description |
|---|---|---|
working_directory | Path to scan. Defaults to the current working directory when omitted. |
set_repository_context Set Repository Context
Cache repository context for the session. Sets the working directory and caches discovery results so subsequent tool calls skip redundant git CLI lookups.
| Parameter | Type | Description |
|---|---|---|
working_directory * | string | Path to the git repository root. |
get_repository_context_status Get Repository Context Status
Inspect current cached context state. Returns cache state, timestamps, and working directory details. Useful for agents debugging context issues or verifying setup.
clear_repository_context Clear Repository Context
Reset cached context. Clears cached discovery results, forcing fresh discovery on the next tool call. Idempotent — safe to call even when no context is set.
establish_work_item_context Establish Work Item Context
Resolve a work-item URL or numeric ID into a structured context. Parses a full Azure DevOps work-item URL or resolves a bare numeric work-item ID using the cached repository context. The returned ``AzureDevOpsWorkItemContext`` carries the organisation, project, work-item ID, and computed ``org_url`` for downstream tools. Caveat — work board ≠ code repo: when resolving a bare numeric ID against a workspace whose work board lives in a different organisation than any of the discovered code repos, the resolved ``org_url`` will land on the code-repo organisation, not the work board's. Prefer…
| Parameter | Type | Description |
|---|---|---|
work_item_url_or_id * | string | A full Azure DevOps work-item URL or a numeric work-item ID. |
working_directory | Optional path for repository-context resolution when using a numeric ID. |
get_work_item Get Work Item
Fetch a single work item by URL or numeric ID. Returns WorkItemDetail with all fields, area path, parent ID, and a full fields dict for type-specific access. Caveat — work board ≠ code repo: passing a bare numeric ID resolves the org/project from the cached repository context, which can land on the wrong organization when the work board lives in a different tenant than any of the discovered code repos. Prefer passing a full work-item URL whenever one is available.
| Parameter | Type | Description |
|---|---|---|
work_item_url_or_id * | string | A full Azure DevOps work-item URL or a numeric work-item ID. |
working_directory | Optional path for repository-context resolution when using a numeric ID. |
get_work_items Get Work Items
Batch-fetch multiple work items by ID with full field data.
| Parameter | Type | Description |
|---|---|---|
project * | string | Azure DevOps project name. |
work_item_ids * | array | List of numeric work item IDs. |
working_directory | Optional path for ADO context resolution. |
update_work_item Update Work Item
Update fields on an existing work item, addressed by URL or ID. Accepts a dict of field reference names to values (e.g. ``{"System.State": "Closed", "System.IterationPath": "..."}``). Caveat — work board ≠ code repo: passing a bare numeric ID resolves the org/project from the cached repository context, which can land on the wrong organization when the work board lives in a different tenant than any of the discovered code repos. Prefer passing a full work-item URL whenever one is available — mutations in the wrong tenant are unrecoverable without manual intervention.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Dict mapping field reference names to new values. |
work_item_url_or_id * | string | A full Azure DevOps work-item URL or a numeric work-item ID. |
working_directory | Optional path for repository-context resolution when using a numeric ID. |
create_work_item Create Work Item
Create a new work item of any type.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Dict mapping field reference names to values. |
project * | string | Azure DevOps project name. |
work_item_type * | string | Work item type (e.g. "Task", "Bug", "Product Backlog Item"). |
parent_id | Optional parent work item ID for hierarchy linking. | |
working_directory | Optional path for ADO context resolution. |
move_work_items_to_sprint Move Work Items To Sprint
Move work items to a target sprint by updating their iteration path. Does not auto-include children — callers decide which IDs to move.
| Parameter | Type | Description |
|---|---|---|
iteration_path * | string | Target iteration path (e.g. "One\\FY26\\Q4\\2Wk\\2Wk22"). |
project * | string | Azure DevOps project name. |
work_item_ids * | array | List of work item IDs to move. |
working_directory | Optional path for ADO context resolution. |
clone_work_item Clone Work Item
Clone a work item into a new item of the same type, addressed by URL or ID. Copies all fields from the source, applies optional overrides, and preserves the parent link. Does not close the source. Caveat — work board ≠ code repo: passing a bare numeric ID resolves the org/project from the cached repository context, which can land on the wrong organization when the work board lives in a different tenant than any of the discovered code repos. Prefer passing a full work-item URL — clones created in the wrong tenant are unrecoverable without manual cleanup.
| Parameter | Type | Description |
|---|---|---|
source_work_item_url_or_id * | string | A full Azure DevOps work-item URL or a numeric work-item ID for the source. |
field_overrides | Optional dict of fields to override in the clone. | |
working_directory | Optional path for repository-context resolution when using a numeric ID. |
get_work_item_type_fields Get Work Item Type Fields
Discover available fields for a work item type in a project. Returns field metadata including name, reference name, type, and whether the field is required.
| Parameter | Type | Description |
|---|---|---|
project * | string | Azure DevOps project name. |
work_item_type * | string | Work item type (e.g. "Task", "Bug"). |
working_directory | Optional path for ADO context resolution. |