devops-mcp
v1.9.1An MCP server for interacting with Azure DevOps
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
devops_list_advanced_security_alerts
List GitHub Advanced Security (GHAzDo) alerts for an Azure DevOps repository. Returns secret-scanning, dependency-scanning, and code-scanning alerts. Use alert_type to filter to a single category, and states/severities to narrow by triage status or risk level. Supports cursor-based pagination via the continuation_token field (pass the token returned in a previous response to retrieve the next page). Returns a JSON object with 'alerts' (list), 'count', and optionally 'continuation_token' when more results are available. Requires GitHub Advanced Security to be…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_advanced_security_alert
Get a single GitHub Advanced Security (GHAzDo) alert by its numeric ID. Returns full alert details including rule metadata, affected location, first/last-seen timestamps, state, and dismissal information if applicable. CAUTION: setting expand='validationFingerprint' can return secret values in cleartext in the response. Only use it when strictly necessary and ensure the response is handled securely. This field defaults to unset (server default: 'none') to avoid accidental secret exposure. Requires GitHub Advanced Security to be enabled on the repository.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_work_item
Get details of a specific Azure DevOps work item by ID. Returns work item fields including title, state, type, assigned user, area and iteration paths, created/changed dates, description, and tags. Use the 'fields' parameter to limit which fields are returned, and 'expand' to include relations or links.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_work_items
Bulk-fetch Azure DevOps work items by their IDs (max 200 per call). Returns full field values for each work item. Use devops_query_work_items to discover work item IDs via a WIQL query, then call this tool to retrieve the full details for a specific set of IDs.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_query_work_items
Query Azure DevOps work items using WIQL (Work Item Query Language). Executes a WIQL query and by default auto-fetches full field values for all returned work items (batching in groups of 200 as required by the API). Set fetch_details=False to return only IDs and URLs from the WIQL result. Common WIQL patterns: - All open items: WHERE [System.TeamProject] = @project AND [System.State] <> 'Closed' - Open bugs: WHERE [System.WorkItemType] = 'Bug' AND [System.State] <> 'Closed' - Assigned to me: WHERE [System.AssignedTo] = @me - Recent changes: WHERE [Sy…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_work_item_types
List work item types defined in an Azure DevOps project. Returns type names, reference names, descriptions, colors, and icons. Use the name with devops_create_work_item (work_item_type field) and devops_list_work_item_fields to discover valid fields per type.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_work_item_fields
List work item field definitions for an Azure DevOps project. When work_item_type is provided, returns only the fields applicable to that type (e.g., 'Bug', 'Task'). When omitted, returns all fields defined in the process. Use reference names with devops_create_work_item's additional_fields and with WIQL queries.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_work_item_attachments
List every attachment a work item references, from both of its surfaces. A work item holds attachments in two independent places, and looking at only one of them misses files: - AttachedFile relations — the files shown on the Attachments tab. - Inline images — a screenshot pasted into the description, acceptance criteria, repro steps or a comment is stored as a URL inside that field's text. It is not necessarily a relation, so it does not appear on the Attachments tab and is invisible to a relations-only listing. This tool reads the work item's rela…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_work_item_attachment
Download a work item attachment and return it as viewable image content. Use this to actually look at an image referenced by a work item — a pasted screenshot in a description or comment, or a file on the Attachments tab. The attachment endpoint requires this server's Entra bearer token, so a URL found in a description cannot be fetched by any other tool. Supply either attachment_id (the GUID) or url (paste the <img src> straight out of a description). A supplied url is never fetched as given: it is parsed for the GUID and fileName and the request is rebuilt aga…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_projects
List projects in an Azure DevOps organization. Returns project IDs, names, descriptions, state, and visibility. Use the project name or ID with other tools that accept an organization and project. Supports pagination via continuation_token for organizations with many projects.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_teams
List teams in an Azure DevOps project. Returns team IDs, names, descriptions, and project references. Use mine=true to return only teams the authenticated user belongs to.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_pipelines
List pipelines defined in an Azure DevOps project. Returns pipeline IDs, names, folder paths, and configuration types (yaml, designerJson, etc.). Use the returned pipeline ID with devops_list_pipeline_runs to see recent runs for a specific pipeline.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_pipeline_runs
List runs for a specific Azure DevOps pipeline. Returns run state (inProgress, completed), result (succeeded, failed, canceled), timestamps, triggered branch/commit, and the run ID. The run ID is the same as the build ID and can be used with devops_list_run_logs and devops_list_build_artifacts.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_pipeline_run
Get detailed information about a specific Azure DevOps pipeline run. Returns run state, result, timestamps, triggered branch/commit, variables, template parameters, and resource links. Use devops_list_run_logs to retrieve log entries for this run.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_run_logs
List log entries (metadata) for an Azure DevOps pipeline build/run. Returns log IDs, line counts, and timestamps for each log in the build. Accepts build_id directly — the 'buildId' value from a build URL (e.g., dev.azure.com/org/project/_build/results?buildId=12345). Use the returned log IDs with devops_get_run_log_content to fetch log text.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_build
Get details of a specific Azure DevOps build by build ID. Accepts the build_id directly from a build URL (e.g., dev.azure.com/org/project/_build/results?buildId=12345). Returns build status, result, branch, commit, triggered-by info, and the pipeline definition ID and name — useful for resolving a build URL to the pipeline_id needed by other tools.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_run_timeline
Get a compact, filtered timeline of an Azure DevOps pipeline build/run. This is the recommended starting point for "why did this build fail" — it returns a stripped-down projection of the build's step tree (stages, phases, jobs, tasks) with state/result/error counts, and each failing record's inline issues[] (error/warning messages), which frequently contain the actual failure text. This can often answer the question with zero log fetches. By default only failing records are returned (failed_only=True); set it False to see the full tree. Use the returned log…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_run_log_content
Get the plain-text content of a specific log from an Azure DevOps pipeline run. Uses the Build API to retrieve actual log text. The build_id is the same as the run_id for a given run. Use devops_list_run_logs or devops_get_run_timeline first to discover available log IDs. BEHAVIOR CHANGE: a call with no start_line/end_line/tail now returns at most max_lines lines (default 500) instead of the whole log — check has_more and next_start_line in the response to continue reading. Use start_line/end_line to window a specific portion, or tail to read the last N lines (m…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_search_run_log
Search (grep) a specific log from an Azure DevOps pipeline run. Downloads the full log text inside the MCP server process and returns only matching lines plus a little surrounding context — non-matching lines never reach the model, so even a very large log can cost only a few dozen lines of tokens. Defaults to a literal substring match; set is_regex=True for regular expressions (pattern length and match count are bounded to limit runaway regex cost). Use devops_get_run_timeline first — its inline issues[] often surface the failure text with no log fetch at…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_build_artifacts
List artifacts produced by an Azure DevOps pipeline build. Returns artifact names, types, and download URLs for each artifact associated with the build. The build_id is the same as the run_id. Optionally filter to a specific artifact by name.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_pull_request
Get details of a specific Azure DevOps pull request. Returns the full pull request object including ID, title, description, status, source and target branches, created-by identity, reviewers, merge status, completion options, and optional commits and work item refs.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_pull_requests
List pull requests in an Azure DevOps Git repository. Returns a list of pull requests matching the given filters. By default returns active pull requests. Supports filtering by status, source/target branch, creator, reviewer, labels, and title substring. Use skip and top for pagination.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_pull_request_threads
List all comment threads on an Azure DevOps pull request. Returns a JSON object with keys: - threads: array of thread objects, each containing id, status, comments, threadContext (file path and line/offset when present), identities, and timestamps. - count: total number of threads returned.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_pull_request_thread
Get a single comment thread from an Azure DevOps pull request. Returns the full thread object including id, status, comments (with content, author, and timestamps), threadContext (file path and line/offset for inline threads), and publishedDate / lastUpdatedDate.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_pull_request_iterations
List the push iterations for an Azure DevOps pull request. Each iteration represents a round of changes pushed to the source branch after the PR was created. Useful for understanding the history of updates and for targeting a specific iteration when calling devops_get_pull_request_changes. Returns a JSON object with keys: - iterations: array of iteration objects, each containing id, description, author, createdDate, sourceRefCommit, targetRefCommit, commonRefCommit, and optionally commits when include_commits is True. - count: total number of iteration…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_pull_request_changes
Get the file-change entries for a specific pull request iteration. Returns the list of files added, edited, deleted, or renamed in the given iteration. When compare_to is supplied, only the incremental changes between that iteration and iteration_id are returned. Use top and skip to paginate large change sets. Returns a JSON object with keys: - changes: array of change entry objects, each containing changeId, item (with path and other metadata), and changeType (e.g. 'edit', 'add', 'delete', 'rename'). - count: number of change entries in this response.…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_queries
Browse the saved-query hierarchy, or search saved queries by name. Two modes over one endpoint: - Hierarchy (default): returns the two root folders, 'My Queries' and 'Shared Queries', with their children nested to 'depth'. Use this to discover what a team has curated. - Search: set 'name_filter' to match QUERY names anywhere in the project. Results are flat, capped at 'top' (max 200), and there is NO continuation token — if 'has_more' is true, narrow the filter rather than paging. Search matches query names ONLY — folder names are not searched (ve…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_query
Read one saved query or folder — including its WIQL — by GUID or by path. A path looks like 'Shared Queries/Website team/All Bugs'; the only two roots are 'Shared Queries' and 'My Queries'. The default expand='minimal' includes the WIQL text, which is usually the reason to read a query at all — but it DROPS created_by and the created/modified dates, which expand='none' returns (query_type comes back at every level). Neither of those two levels returns columns: measured live, columns arrive only at expand='wiql' or 'all', which also return the WIQL. Pass 'wiql…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_run_query
Execute a saved Azure DevOps query and fetch the resulting work items. Accepts a query GUID or a path ('Shared Queries/Team/All Bugs'); a path costs one extra call to resolve the id. A folder cannot be run: addressed by path it is caught on that resolve call, so no run request is ever issued; addressed by GUID there is no resolve call to catch it on, so the service's 'Querying folders is not supported' 400 is mapped instead. Either way you never get a generic failure. WIQL returns only id stubs, so field values are fetched in a second batched step (200 per cal…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_repositories
List Git repositories in an Azure DevOps project. Returns repository IDs, names, default branches, HTTPS and SSH clone URLs, web URLs, sizes, and project details. Use the repository ID or name with devops_get_repository or devops_list_branches.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_repository
Get details of a specific Azure DevOps Git repository. Returns full repository metadata including ID, name, default branch, remote URL, SSH URL, web URL, size in bytes, fork status, maintenance status, and project information.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_branches
List branches in an Azure DevOps Git repository. Returns branch names (in full ref format, e.g., refs/heads/main), commit SHAs, and creator information. Use filter_contains to narrow results to branches whose names contain a given substring.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_file_content
Retrieve the text content of a file from an Azure DevOps Git repository. Returns the raw text content of the specified file as a JSON object with path, content, and optional branch/commit_id fields. Binary files return an error — for an image (png/jpeg/gif/webp) use devops_get_repository_image instead, which returns it as viewable image content. Use branch or commit_id to read a specific version; omit both to use the repository's default branch. 'content' is the file's own bytes decoded as text, not the Git item's metadata: the request sends $format=octetStream,…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_repository_image
Read an image file from a Git repository and return it as viewable content. Use this to actually look at a PNG/JPEG/GIF/WEBP committed to a repository — an architecture diagram in docs/, a chart, a design asset. devops_get_file_content cannot: it returns text and refuses binary. Address the file exactly as you would there (repository_id + path, plus branch or commit_id for a specific version; omit both for the default branch). Returns two content blocks for an image — a JSON metadata string and the image itself — and a single JSON block otherwise. Non-image…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_repository_items
List files and folders in an Azure DevOps Git repository. Returns item paths, object types (blob/tree), and folder flags. Use scope_path to browse a subfolder and recursion_level to control depth. Use branch or commit_id to read a specific version; omit both to use the repository's default branch. Pair with devops_get_file_content to read file contents after discovering paths.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_commits
List commits in an Azure DevOps Git repository. Returns commit IDs, authors, dates, and commit messages. Filter by branch, author, or date range. Use devops_get_commit to retrieve the full detail and file changes for a specific commit.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_commit
Get details of a specific commit from an Azure DevOps Git repository. Returns the commit ID, author, committer, date, message, and parents. Set change_count to include file changes (paths and change types) in the response.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_service_connections
List service connections (service endpoints) in an Azure DevOps project. Discovery tool — returns identity, health, and sharing info per connection, but never touches authorization.parameters (the credential bag); use devops_get_service_connection for the (still redacted) auth detail. Health is three separate signals: is_ready covers provisioning, while is_disabled (turned off) and is_outdated (stored config no longer matches the resource, typically an expired or rotated secret) cover runtime — a connection can be ready and still fail to authenticate. Filte…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_service_connection
Get details of a specific Azure DevOps service connection by GUID. Credential values are never returned. auth_parameters contains only non-secret identity fields from an explicit allowlist (e.g., tenantId, serviceprincipalid, username); auth_parameters_dropped lists the names (never values) of any authorization.parameters keys that were withheld. Set include_data=False to omit the 'data' bag (subscription id, scope level, etc.) entirely.
| Parameter | Type | Description |
|---|---|---|
params * |
devops_list_variable_groups
List variable groups in an Azure DevOps project. Discovery tool — returns names, shapes, and per-variable secret flags. Variable values are omitted by default (include_values=False); set include_values=True to include them (still subject to the same secret redaction as devops_get_variable_group). Use devops_get_variable_group for a targeted read of one group's values. Filter with group_name (supports a trailing '*' wildcard, e.g. 'Prod*'). Paginates via the continuation_token field: pass the token returned in a previous response to fetch the next page.…
| Parameter | Type | Description |
|---|---|---|
params * |
devops_get_variable_group
Get details of a specific Azure DevOps variable group by ID, including values. Secret variables (isSecret=true) never have their value returned — value_available=False is reported instead, regardless of what the server sends back. Non-secret variables whose name matches a credential-like pattern (e.g., 'DB_PASSWORD', 'api_key') are withheld too and flagged redacted='name_heuristic' as a safety net for values the author forgot to mark secret; redacted_variable_count reports how many were caught this way. Set include_values=False to return only names and flags.…
| Parameter | Type | Description |
|---|---|---|
params * |