mcp-devops-onpremise
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEVOPS_PAT | No | Personal Access Token for PAT authentication | |
| DEVOPS_API_URL | Yes | Azure DevOps API URL (e.g., https://server/org/project) | |
| DEVOPS_PASSWORD | No | Password or PAT for NTLM authentication | |
| DEVOPS_USERNAME | No | Username for NTLM authentication (DOMAIN\username) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
MCP server for Azure DevOps Server (formerly Team Foundation Server, TFS), the on-premises edition of Azure DevOps. Use this server whenever the user wants to work with DevOps pull requests, repositories, work items (PBIs/bugs), or wiki pages.
Available tools:
devops_pull_request_list: list PRs of a repository, filtered by status, target branch, and creation time, with paging
devops_pull_request_get: fetch a PR by ID, returns title, description, source/target branch, author, reviewers, merge status, linked work items, and commit SHAs for diffing
devops_pull_request_write: create or update PRs, update reviewers, or cast a PR vote
devops_pull_request_list_threads: list a PR's comment threads with their comments
devops_pull_request_list_thread_comments: list the comments in one PR thread
devops_pull_request_create_comment: post a general or inline code comment on a PR
devops_pull_request_reply_comment: reply to an existing PR comment thread
devops_pull_request_update_thread: change the status of a PR comment thread
devops_pull_request_update_comment: update an existing PR comment
devops_pull_request_delete_comment: delete a PR comment
devops_repository_list: list all repositories in the project
devops_repository_get: get repository details by name or ID
devops_repository_commit_changes: list files changed in a specific commit
devops_repository_diffs_commits: diff two commits (returns changed file paths)
devops_repository_item_content: get the raw content of a file at a specific commit
devops_get_item_content_diff: get a line-level text diff of a file between two commits
devops_code_search: search source code with repository, path, and branch filters
devops_work_item_search: search work items with area, type, state, and assigned-to filters
devops_wiki_search: search wiki pages with an optional wiki filter
devops_work_item_get: retrieve a work item (PBI, bug, task) by numeric ID; returns key fields, attachments, and linked items
devops_work_item_attachment_get: download a work item attachment by GUID, returns base64 content or saves to a local path
devops_work_item_type_get: get the definition of a work item type, e.g. Bug or User Story
devops_work_item_query_by_wiql: run a WIQL query and return the matching work items
devops_work_item_create: create a work item of a given type with field values
devops_work_item_update: update work item fields (add, replace, remove)
devops_work_item_delete: delete a work item (Recycle Bin by default, destroy=True is permanent)
devops_work_item_undelete: restore a work item from the Recycle Bin
devops_work_item_link_update: add or remove a relation link between two work items
devops_work_item_artifact_link_update: add or remove an artifact link (PR, build, commit, branch, changeset) on a work item
devops_work_item_comment_list: list comments on a work item
devops_work_item_comment_add: add a comment to a work item
devops_work_item_comment_update: update a work item comment
devops_work_item_comment_delete: delete a work item comment
devops_wiki_page_get: get wiki page metadata and content by wiki ID and page ID
devops_wiki_page_create_or_update: create or update a wiki page under a parent page
devops_wiki_page_update: update an existing wiki page by ID
devops_wiki_page_delete: delete a wiki page by ID
Typical PR review workflow: call devops_pull_request_get with the repo and PR ID, then use devops_repository_diffs_commits with the returned commit SHAs to see which files changed, then call devops_get_item_content_diff per file to read the actual diff.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tasks | {
"list": {},
"cancel": {},
"requests": {
"tools": {
"call": {}
},
"prompts": {
"get": {}
},
"resources": {
"read": {}
}
}
} |
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| devops_pull_request_writeA | Write operations for pull requests. Use the action parameter to create or update pull requests, add or remove reviewers, or cast the authenticated user's vote. |
| devops_pull_request_listA | List pull requests of a repository, optionally filtered by status, target branch, and a time range. 'min_time'/'max_time' filter on the creation time by default, or on the closing time when 'time_range_type' is 'closed' (completed pull requests only). Supports paging with 'top' and 'skip'. Use 'devops_pull_request_get' with a returned 'prId' for details. |
| devops_pull_request_getA | Retrieve a pull request by ID, including author, reviewers, merge status, closing date, and linked work items. Use the 'lastMergeTargetCommit' and 'lastMergeSourceCommit' from the result to obtain changes with 'devops_repository_diffs_commits' tool. |
| devops_pull_request_list_threadsB | Retrieve a hierarchical list of non-deleted comment threads and their text comments for a pull request. |
| devops_pull_request_list_thread_commentsB | Retrieves a list of non-deleted text comments in a specific thread. |
| devops_pull_request_create_commentA | Create a new thread with initial comment in the specified pull request. |
| devops_pull_request_reply_commentC | Replies to a specific comment on a pull request. |
| devops_pull_request_update_threadC | Update the status of a comment thread. |
| devops_pull_request_update_commentC | Update an existing comment in the specified pull request. |
| devops_pull_request_delete_commentC | Delete a comment from the specified pull request. |
| devops_repository_listC | Get the list of repositories. |
| devops_repository_getA | Retrieve repository details by repository name or ID. |
| devops_repository_commit_changesB | Retrieve a list of files changed in the specified commit, including the type of change for each file (e.g., add, edit, remove). |
| devops_repository_diffs_commitsC | Get the difference between the base and target commits. |
| devops_repository_item_contentB | Get raw file content for a repository path at a specific version. |
| devops_get_item_content_diffA | Get textual diff between two versions of a file (changed hunks only). Lines are numbered; added lines are prefixed with '+', and removed with '-'. For full content of specific file, use item content tool with target version . |
| devops_code_searchB | Search source code in the configured Azure DevOps project. Returns matching file locations with snippet context. Optionally filter by repository, path, and branch. |
| devops_work_item_searchA | Search work items (PBIs, bugs, tasks, etc.) in the configured Azure DevOps project using full-text search. Optionally filter by area path, work item type, state, or assigned-to user. |
| devops_wiki_searchA | Search wiki pages in the configured Azure DevOps project. Returns matching pages with snippet context. Optionally filter by wiki name. |
| devops_wiki_page_getA | Retrieves metadata (path, isParentPage) and/or content of a wiki page. The wiki_id and page_id are found in the browser URL: https://.../_wiki/wikis/{wiki_id}/{page_id}/... |
| devops_wiki_page_create_or_updateB | Create or update a wiki page under the specified parent page. |
| devops_wiki_page_updateC | Update an existing wiki page. |
| devops_wiki_page_deleteC | Delete an existing wiki page. |
| devops_work_item_getA | Retrieve a single work item by numeric ID. Returns a compact object with key fields (title, state, type, assignee, description, acceptance criteria, tags, parent), plus attachments (files and inline images) and linked items (work items, pull requests, commits). |
| devops_work_item_attachment_getA | Download a work item attachment by specified ID. Returns base64-encoded content, or saves to a local directory if savePath is provided. |
| devops_work_item_type_getB | Get definition for the specified work item type. |
| devops_work_item_query_by_wiqlC | Execute a WIQL (Work Item Query Language) query and return the matching work items. |
| devops_work_item_createC | Create a new work item of the specified work item type. |
| devops_work_item_updateC | Update fields on a work item by ID. |
| devops_work_item_deleteA | Delete a work item by ID. By default the item is sent to the Recycle Bin and can be restored. Set destroy=True to permanently destroy the item — WARNING: this is irreversible. |
| devops_work_item_undeleteA | Restore a work item from the Recycle Bin by ID. Only works for items deleted without the destroy flag. |
| devops_work_item_link_updateA | Add or remove a relation link between two work items. Use op='add' (default) to create a new link, op='remove' to delete an existing one. To change a link type, call remove then add. |
| devops_work_item_artifact_link_updateA | Add or remove an artifact link (Pull Request, Build, Commit, Branch, Changeset, Versioned Item) on a work item. Use op='add' (default) to attach, op='remove' to detach. The artifact_id format depends on link_type (see parameter doc). |
| devops_work_item_comment_listB | List comments on a work item. Returns up to |
| devops_work_item_comment_addC | Add a comment to a work item. |
| devops_work_item_comment_updateB | Update an existing comment on a work item. |
| devops_work_item_comment_deleteC | Delete a comment from a work item. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 37 tools
Most tools are cleanly separated by domain (repository, pull request, wiki, work item) and action. Minor ambiguity exists between devops_wiki_page_create_or_update and devops_wiki_page_update, and devops_pull_request_write is a broad multi-action tool that partly overlaps with dedicated PR tools.
The set mostly follows a consistent devops_<domain>_<entity>_<action> pattern, with clear prefixes and readable verbs. A few deviations exist, such as devops_get_item_content_diff, devops_repository_diffs_commits, and the generic devops_pull_request_write.
37 tools is high for an MCP server surface and exceeds the typical well-scoped range. The breadth is somewhat justified by covering four Azure DevOps areas, but several CRUD/comment tools could likely be consolidated.
Core work item, wiki, pull request, and repository-read workflows are well covered, with CRUD operations in several areas. However, notable gaps remain for a general on-premise DevOps server, including repository write/branch operations, pipelines/builds/releases, and project/team administration.