AZ-401: MCP Integration for Azure DevOps and GitHub
Connect a bounded assistant through a supported client, configure separate Azure DevOps and GitHub Model Context Protocol (MCP) server entries, authenticate the intended accounts, and expose only the operations needed for the task. Then verify the actual work item, repository and pull request through returned records. Configure a service-hook subscription separately when an event must send feedback without waiting for an assistant request. A skill can describe this workflow, but it neither establishes a connection nor grants access.
The procedure below combines a local Azure DevOps MCP Server entry with a remote GitHub MCP Server entry, using Visual Studio Code configuration examples. It includes an existing Azure Boards–GitHub repository connection and an approved notification receiver. These are instructions for an authorized nonproduction exercise, not a report of connections, credential changes or cloud operations performed here.
Define identities, resources and expected operations
Complete AZ-401: Project Repository and Team Access Boundaries first. Record the actual Azure DevOps account, organization, project and work item, plus the GitHub account, repository and disposable pull request. Keep an owner-confirmed test repository outside the account's allowed scope for a negative read check.
GitHub and Azure DevOps manage their users separately. Similar account names do not establish matching permissions. Azure DevOps team, project and organization administration also have distinct prerequisites; an MCP setup task should not silently become an invitation or membership change.
Use the following exercise contract:
| Component | Allowed outcome | Boundary to verify |
|---|---|---|
| Azure DevOps connection | Read the selected work item and its current relations | Correct account, organization, project and object access |
| GitHub connection | Identify the signed-in account and read selected repository/pull-request content | Limited exposed tools and actual repository authorization |
| Boards relationship | Associate the disposable pull request with the work item | Existing project-repository connection and authorized edit |
| Service hook | Deliver the selected test event to an approved receiver | Event/filter/recipient scope and actual delivery evidence |
| Assistant | Explain those returned records | No invented observations or unapproved write actions |
Preserve existing client configuration and connection ownership before editing. Use disposable records and an approved receiver rather than production work. Record expected results before testing, so a later failure cannot be reclassified as success.
Configure the Azure DevOps client entry
Azure DevOps Services provides remote and local MCP servers. Its remote server uses streamable Hypertext Transfer Protocol (HTTP), Microsoft Entra authentication and an Entra-backed organization; standalone Microsoft-account organizations are unsupported. Some clients cannot complete its required authentication flow and need the local server instead. Confirm the current client support before choosing.
For this local example, use Visual Studio Code with its supported assistant extension, Node.js 20.0 or later and an active Azure DevOps organization. The overview's one-click installation link supplies this server-entry shape:
{
"type": "stdio",
"command": "npx",
"args": ["-y", "@azure-devops/mcp", "${input:ado_org}"]
}
It also supplies the organization input:
{
"id": "ado_org",
"type": "promptString",
"description": "Azure DevOps organization name"
}
Use the installer-generated client configuration and supply the approved organization name. Preserve the client's surrounding configuration structure. Start the entry, use agent mode and complete the supported client/server authentication flow with the intended identity. Stop if authentication is unsupported; do not guess a universal personal access token (PAT) setting.
Select only the task's required Azure DevOps tools in the client. Confirm their actual names from the loaded server rather than inventing operation identifiers.
Configure GitHub tool exposure independently
The GitHub server guide supplies HTTP server-entry examples and separate local options. For the remote entry, replace the following explicit placeholder with the official endpoint from that guide; it is not a runnable endpoint value:
{
"type": "http",
"url": "OWNER_SUPPLIED_GITHUB_MCP_ENDPOINT",
"headers": {
"X-MCP-Tools": "get_me,get_file_contents,pull_request_read",
"X-MCP-Readonly": "true"
}
}
Save it as a separate client server entry. Complete its supported authentication flow; remote OAuth authorization can request additional scopes when needed. Do not reuse Azure DevOps credentials as GitHub credentials.
The guide's local equivalents include --tools and --read-only; authentication and host setup differ. Do not paste this HTTP fragment into a local standard-input/output configuration.
Read-only mode removes write tools even if requested. Tool exclusions also override explicit selections. Lockdown, when used, is best-effort filtering of untrusted content, not a credential authorization boundary. It cannot establish that the underlying credential lacks other access. Keep permissions narrow independently of these filters.
Verify retrieval before trusting analysis
Start with a read of the intended GitHub identity, then the selected repository file and pull request. Through the Azure DevOps entry, retrieve the chosen work item and its current relations. Record the server entry, authenticated account, target identifiers, operation, time and actual returned result.
Use a prompt such as:
Retrieve the specified work item and pull request using the configured tools. Use current returned records, not a previous summary. Report the identifiers and existing relationships you observed. Do not change either record. If a tool, permission or relation is unavailable, report that limitation rather than inferring it.
Compare the response with the raw tool results. A fluent explanation cannot establish that the intended tool ran, that the object exists in the selected project, or that a relationship is present. If the assistant reports a missing association, inspect the actual records before authorizing any correction.
MCP retrieval and model processing are separate parts of the data path. GitHub's Copilot guidance describes retrieved private content entering the selected model's context and applicable session history. Review the actual surface, provider and organization policies; running a server locally does not establish that all assistant processing stays inside a private network.
Create and verify the bounded Boards relationship
Use an existing owner-approved Azure Boards project connection to the selected GitHub repository. The documented linking mechanism requires Contributor access to both the Boards project and repository. If that connection is absent, stop and return its setup to the responsible owner rather than assuming MCP configuration created it.
For a disposable example work item 614, an authorized person adds AB#614 to the pull request description and saves it. Confirm the resulting association in the work item's Development section. A mention in a pull request title or comment does not create that link. Avoid completion keywords when the exercise should create a link without a workflow-state transition.
Now repeat the bounded reads through the two MCP entries. Compare the returned pull-request description and the work-item relation with the manual observation. Keep these three facts separate: the description contains a reference, Boards shows the relationship, and the assistant can retrieve the evidence it is using.
This exercise deliberately leaves GitHub write tools disabled. The authorized manual link edit and subsequent MCP retrieval are different operations; do not claim that a read-only assistant created the relationship.
Configure service-hook feedback as a separate connection
Service hooks bind publisher events to subscriptions and consumer actions. In the selected Azure DevOps project, the authorized subscription owner opens Project settings, then Service hooks, and chooses Create subscription.
Choose the approved Webhooks consumer, an available event for the disposable work-item exercise, and the narrowest applicable filters. Configure the supported consumer action using the owner's receiver details. Available actions depend on the event and consumer. Check the target service's configuration and endpoint network requirements before testing.
Test the subscription in the wizard and inspect both its result and the receiver's actual observation before finishing. Setup requires Edit subscriptions and View subscriptions permissions; project access alone is insufficient. Do not broaden permissions merely to make the exercise pass.
Retain event identity, selected scope, subscription identity, observation time and receiver result. A delivered notification proves that tested path, not that an MCP tool ran or that an assistant investigated the work item.
Keep receiver credentials out of prompts and evidence shared with broad audiences. GitHub Actions security guidance separately warns that secret redaction is not guaranteed and untrusted workflow content needs appropriate isolation. Do not move this exercise into an untrusted workflow and assume the interactive client's controls carry over.
Check permitted and prohibited operations separately
Use the following as expected outcomes, not fabricated results. For each row, record what actually happened and its evidence.
| Check | Expected outcome | What a mismatch means |
|---|---|---|
| Read the designated Boards work item | Its actual identifier and current fields are returned | Investigate account, organization, project, tool selection and permission evidence |
| Read the designated GitHub file and pull request | Requested repository/revision or pull-request data is returned | Check the target, selected tool and authenticated account |
| Inspect GitHub write-tool availability | Write tools are absent with this read-only configuration | Stop and inspect the active entry; do not test by making an unwanted write |
| Read the owner-designated excluded private repository | No protected content is returned under the agreed access specification | Stop on unexpected data access; trace the actual credential and grants |
| Confirm the Boards relationship | UI observation and available returned relation agree | A text reference alone or an incomplete tool response is insufficient proof |
| Deliver the scoped test event | The approved receiver observes the matching test | Separate event/filter, delivery and receiver failures |
Do not interpret every missing object as proof of authorization enforcement. Confirm the fixture exists and that the actual account is excluded; retain the returned error without assuming a particular status code. Likewise, missing tools can result from configuration, while a failed read can result from authentication or authorization. Diagnose the layer that failed before changing access.
For a meaningful negative test, the owner must authorize the test context and confirm the intended boundary. Never probe arbitrary private repositories or use a destructive operation merely to obtain a denial.
Keep skills, events and invoked tools distinct
GitHub agent skills package instructions, scripts and resources for specialized tasks. Their availability and storage depend on the Copilot surface and version. A skill could describe how to compare a work item with a pull request, but it does not replace the authenticated servers or grant their credentials permission.
An MCP tool is invoked by the assistant/client; a service hook reacts to a configured event. Neither guarantees that a reusable skill is loaded. Preserve those distinctions when documenting the integration, especially when a webhook delivery succeeds but retrieval fails, or the assistant explains a workflow without actually invoking a tool.
Finish by restoring only the client entries, disposable description edit and subscription changes introduced for the exercise, through their responsible owners. Preserve shared connections and baseline access. Retain the allowed/denied observations and unresolved limitations. Do not uninstall a shared integration or widen credentials as a cleanup shortcut.
Authoritative Sources
- Enable AI assistance with Azure DevOps MCP Server — remote/local conditions, client prerequisites, agent mode and the source-contained local install configuration.
- GitHub MCP Server Configuration Guide — server-entry examples, selected tools, read-only mode, scope handling and Lockdown limitations.
- Link GitHub commits, pull requests, branches, and issues to work items in Azure Boards — connection, permissions, link creation and verification.
- Integrate with service hooks — subscription setup, testing, consumer actions and permissions.
- Agent skills — instruction/resource packages and surface-dependent availability.
- Application card: GitHub Copilot Agents — model context, session handling, surface permissions and review responsibilities.
- Secure use reference — GitHub Actions secret handling and untrusted execution boundaries.
- Build GitHub repositories — independent Azure DevOps and GitHub identities.
- Add users or groups to a team or project — scoped membership administration prerequisites.

