ado-workflows-mcp

v0.12.0
ado-workflows-mcp Checked 41 minutes ago Published 6 months ago

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

ParameterTypeDescription
project *stringAzure DevOps project name.
creator_idOptional GUID to filter by PR creator.
repository_idOptional repository ID for repo-scoped queries.
reviewer_idOptional GUID to filter by reviewer.
statusstringPR status filter (default "all").
topintegerMaximum number of results (default 50).
working_directoryOptional 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.

ParameterTypeDescription
project *stringAzure DevOps project name.
wiql *stringWIQL query string.
topOptional maximum number of results.
working_directoryOptional 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.

ParameterTypeDescription
repo_path *stringAbsolute path to the local git repository.
authorsOptional list of author names/emails to filter by.
max_countintegerMaximum number of commits to return (default 100).
sinceOptional 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.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
working_directoryOptional 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.

ParameterTypeDescription
comment_text *stringComment body text.
pr_url_or_id *stringA full PR URL or numeric PR ID.
statusstringThread status (default "active").
working_directoryOptional 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.

ParameterTypeDescription
comment_text *stringReply body text.
pr_url_or_id *stringA full PR URL or numeric PR ID.
thread_id *integerExisting thread ID to reply to.
working_directoryOptional 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.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
thread_ids *arrayThread IDs to resolve.
statusstringTarget thread status (default "fixed").
working_directoryOptional path for context resolution.

post_pr_comments Post Pr Comments

Batch-post comments to a PR with optional file/line positioning.

ParameterTypeDescription
comments *arrayList of comment dicts to post.
pr_url_or_id *stringA full PR URL or numeric PR ID.
dry_runbooleanIf True, validate without posting.
working_directoryOptional path for context resolution.

post_rich_comments Post Rich Comments

Batch-post structured review comments with severity, type, and formatting.

ParameterTypeDescription
comments *arrayList of comment dicts to post.
pr_url_or_id *stringA full PR URL or numeric PR ID.
batch_sizeintegerNumber of comments per API batch (default 5).
dry_runbooleanIf True, validate without posting.
filter_self_praisebooleanIf True, filter out self-praise comments.
working_directoryOptional 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.

ParameterTypeDescription
pr_url_or_id *stringA full Azure DevOps PR URL or a numeric PR ID.
working_directoryOptional 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.

ParameterTypeDescription
source_branch *stringSource branch name (with or without refs/heads/).
descriptionOptional PR description.
is_draftbooleanWhether to create as a draft PR.
target_branchstringTarget branch name. Defaults to "main".
titleOptional PR title.
work_item_idsOptional list of work item IDs to link to the PR.
working_directoryOptional 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.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
working_directoryOptional 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.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
exclude_extensionsOptional list of file extensions to skip (e.g. [".png", ".lock"]). Case-insensitive; leading dot optional.
file_pathsOptional list of specific file paths to fetch.
working_directoryOptional 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.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
working_directoryOptional 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.

ParameterTypeDescription
working_directoryOptional path for context resolution.

get_pull_request Get Pull Request

Retrieve full PR metadata including reviewers, labels, and work items.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
working_directoryOptional path for context resolution.

update_pull_request Update Pull Request

Update title and/or description of an existing PR.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
descriptionNew description (optional).
titleNew title (optional).
work_item_idsOptional list of work item IDs to link to the PR.
working_directoryOptional path for context resolution.

retarget_pull_request Retarget Pull Request

Change the target branch of an existing PR.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
target_branch *stringNew target branch name.
working_directoryOptional path for context resolution.

set_pr_draft_status Set Pr Draft Status

Toggle a PR between draft and published state.

ParameterTypeDescription
is_draft *booleanTrue to mark as draft, False to publish.
pr_url_or_id *stringA full PR URL or numeric PR ID.
working_directoryOptional path for context resolution.

abandon_pull_request Abandon Pull Request

Abandon (close without merging) an existing PR.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
working_directoryOptional path for context resolution.

complete_pull_request Complete Pull Request

Complete (merge) a PR with configurable merge strategy.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
bypass_policybooleanWhether to bypass branch policies.
bypass_reasonRequired when bypass_policy is True.
delete_source_branchbooleanWhether to delete the source branch after merge.
merge_commit_messageOptional merge commit message.
merge_strategystringOne of: squash, noFastForward, rebase, rebaseMerge.
transition_work_itemsbooleanWhether to transition linked work items.
working_directoryOptional path for context resolution.

add_pr_reviewer Add Pr Reviewer

Add a reviewer to a PR.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
reviewer_id *stringAzure DevOps identity GUID of the reviewer.
is_requiredbooleanWhether the reviewer is required.
working_directoryOptional path for context resolution.

remove_pr_reviewer Remove Pr Reviewer

Remove a reviewer from a PR.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
reviewer_id *stringAzure DevOps identity GUID of the reviewer.
working_directoryOptional path for context resolution.

list_pr_reviewers List Pr Reviewers

List all reviewers on a PR with vote details.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
working_directoryOptional path for context resolution.

add_pr_label Add Pr Label

Add a label/tag to a PR.

ParameterTypeDescription
name *stringLabel name.
pr_url_or_id *stringA full PR URL or numeric PR ID.
working_directoryOptional path for context resolution.

remove_pr_label Remove Pr Label

Remove a label from a PR.

ParameterTypeDescription
label_name *stringLabel name to remove.
pr_url_or_id *stringA full PR URL or numeric PR ID.
working_directoryOptional path for context resolution.

list_pr_labels List Pr Labels

List all labels on a PR.

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
working_directoryOptional path for context resolution.

get_pr_work_items Get Pr Work Items

List work items linked to a PR (read-only).

ParameterTypeDescription
pr_url_or_id *stringA full PR URL or numeric PR ID.
working_directoryOptional 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.

ParameterTypeDescription
pr_id *integerPull request ID.
working_directoryOptional 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.

ParameterTypeDescription
creator_filterOptional substring match on PR creator.
max_days_oldintegerExclude PRs older than this many days. Default 30.
working_directoryOptional 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.

ParameterTypeDescription
pathstringDirectory path to list. Defaults to "/".
projectProject name (overrides context).
recursionstring"none", "oneLevel" (default), or "full".
refBranch name, commit SHA, or tag. None = default branch.
repositoryRepository name (overrides context).
working_directoryOptional 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.

ParameterTypeDescription
path *stringFile path within the repository.
projectProject name (overrides context).
refBranch name, commit SHA, or tag. None = default branch.
repositoryRepository name (overrides context).
working_directoryOptional 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.

ParameterTypeDescription
working_directoryPath 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.

ParameterTypeDescription
working_directoryPath 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.

ParameterTypeDescription
working_directory *stringPath 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…

ParameterTypeDescription
work_item_url_or_id *stringA full Azure DevOps work-item URL or a numeric work-item ID.
working_directoryOptional 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.

ParameterTypeDescription
work_item_url_or_id *stringA full Azure DevOps work-item URL or a numeric work-item ID.
working_directoryOptional 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.

ParameterTypeDescription
project *stringAzure DevOps project name.
work_item_ids *arrayList of numeric work item IDs.
working_directoryOptional 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.

ParameterTypeDescription
fields *objectDict mapping field reference names to new values.
work_item_url_or_id *stringA full Azure DevOps work-item URL or a numeric work-item ID.
working_directoryOptional path for repository-context resolution when using a numeric ID.

create_work_item Create Work Item

Create a new work item of any type.

ParameterTypeDescription
fields *objectDict mapping field reference names to values.
project *stringAzure DevOps project name.
work_item_type *stringWork item type (e.g. "Task", "Bug", "Product Backlog Item").
parent_idOptional parent work item ID for hierarchy linking.
working_directoryOptional 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.

ParameterTypeDescription
iteration_path *stringTarget iteration path (e.g. "One\\FY26\\Q4\\2Wk\\2Wk22").
project *stringAzure DevOps project name.
work_item_ids *arrayList of work item IDs to move.
working_directoryOptional 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.

ParameterTypeDescription
source_work_item_url_or_id *stringA full Azure DevOps work-item URL or a numeric work-item ID for the source.
field_overridesOptional dict of fields to override in the clone.
working_directoryOptional 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.

ParameterTypeDescription
project *stringAzure DevOps project name.
work_item_type *stringWork item type (e.g. "Task", "Bug").
working_directoryOptional path for ADO context resolution.