get_file_diff
Unified diff of one file between two branches/commits (changed hunks only)
How to use it
get_file_diff is exposed by the Azure Devops MCP Onprem MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_file_diff tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Azure Devops MCP Onprem
claude mcp add azure-devops --env AZURE_DEVOPS_ENV_FILE=$HOME/.azure-devops-mcp.env -- npx -y @burcusg/azure-devops-mcp-onpremOther tools in Azure Devops MCP Onprem (39)
Comment on a PR — general, file-anchored (filePath+line), or reply (threadId)
Add a comment
Branch diff (ahead/behind + changed files)
Create a new PR
Create a new work item
Get build status
File changes in a commit
Identity of the authenticated PAT owner (displayName, id, uniqueName)
Get file content from repo
Get PR details
List PR comment threads (file-anchored + general)
Get test plan details
Get work item by ID
All TFVC changesets linked to a work item (with file changes)
List comments (paginated, asc/desc, optional rendered HTML)
Git commits & PRs linked to a work item
Full change audit trail (who/what/when with old/new values)
Work item counts by area path + monthly timeline (handles 20K+ items)
Link two work items
List branches in a repo
List pipeline definitions
List recent builds
Commit history with filters
List PRs; omit repositoryId for project-wide, filter by reviewer (accepts @me)
List releases
List all Git repos in project
List test plans
Execute a WIQL query (@Me, @CurrentIteration, @Today macros)
Trigger a build
Browse files/folders at a TFVC path
Get changeset details
List file changes in a changeset
Get file content
Unified diff of one TFVC file between two changesets (changed hunks only)
Get shelveset details + changes
Get shelved (pending) content of one file in a shelveset
List changesets with filters
List shelvesets; pass name+owner to find one in a single call
Update work item fields (returns before/after diff)