# Configure collaboration and communication

Configure collaboration tools with explicit ownership and authority
Give project documentation accountable roles, bound agent actions and configure MCP for the actual host and service. Distinguish webhook delivery, tool invocation and reusable guidance, then inspect a guarded Boards-to-GitHub hyperlink without claiming native integration or unperformed writes.

Author: LearningPathX Editorial Team
Content version: 1.0
Published: 2026-12-05T06:03:12.343475+00:00
HTML: https://learningpathx.com/material/AZ-401/configure-collaboration-and-communication.html

Knowledge domain: Design and implement processes and communications (15–20%)
Tags: MCP Integration / Action Authorization

## Configure collaboration and communication

## Learning objectives

* Give each project document a clear purpose and maintain review ownership.
* Bound an agent's work through explicit inputs, permissions, stop conditions and evidence.
* Configure the appropriate MCP host/server combination and distinguish it from webhooks and skills.
* Explain a revision-guarded, verified Boards-to-GitHub hyperlink operation.

## Give documentation an accountable purpose

A README introduces purpose, setup, entry points and contribution. A wiki organizes shared explanations and links to authoritative versioned procedures. A change log explains evolution and user impact; release notes describe a selected version or tag. A license states permitted use: public visibility alone does not grant unrestricted reuse. CODEOWNERS routes reviews by path, while a process diagram explains sequence and decisions.

Give an assistant verified repository facts, the intended audience and version boundaries. Review its links, commands and compatibility claims. Generated release notes need inspection of the selected range, categories and exclusions; configure the relevant categories in `.github/release.yml`. A commit list is not automatically a useful account of what changed for users.

GitHub searches for CODEOWNERS in `.github/`, the repository root and `docs/`, using the first file found. A PR uses its **base branch's** file. Within that file the last matching pattern wins:

```text
* @example-org/general-reviewers
/docs/ @example-org/documentation-reviewers
```

In this illustrative configuration, `/docs/setup.md` selects the documentation team, rather than accumulating both lines. Replace these example identities with actual owners. Users need write access; owner teams must be visible and have write access even if their members individually have access. Invalid or underprivileged owners are not assigned. Draft PRs do not automatically request owner review until ready.

Review routing and required approval are separate. Enable required code-owner review in branch protection when that is the intent. If several owners appear on one matching line, approval from one can satisfy that ownership requirement; the line does not necessarily require all of them.

A process diagram can retain editable source such as:

```mermaid
flowchart LR
    Plan --> Build --> Deploy --> Operate
```

Preview it on the actual supported wiki or Markdown surface. The fence preserves syntax; this lesson does not claim a rendering test.

## Set boundaries at the agent's actual control layers

An agent loop gathers context, chooses tools, acts, inspects outcomes and decides whether to continue toward a goal. A custom agent preserves a role's specialization and tool choices. A skill packages reusable workflow instructions, metadata and optional resources or scripts. A prompt supplies the immediate request. Use these layers together without maintaining contradictory copies of the same standard.

Specify allowed projects and inputs, intended outputs, completion evidence and approval boundaries. Define when to stop or pause: unavailable permissions, contradictory evidence, unresolved dependencies, exhausted allowance or an unsafe proposed action. Preserve completed results and uncertain-operation identities before retrying. Repeating an unclear write can duplicate its effects; “keep trying” is not a recovery design.

Instructions cannot shrink a credential's real permissions. Enforced read-only tools or scoped credentials provide a stronger boundary than a read-only sentence. Optional skill scripts remain executable code that needs review and trust. Choose finite operational limits appropriate to the host; a VS Code request-count setting is not a universal budget for every CLI or cloud agent.

## Configure the server and the host together

MCP exposes capabilities to a host; it does not supply independent reasoning or service authorization. Identify transport, authentication, deployment, organization, permitted tools and the host consuming the configuration. A desktop or editor configuration may not be read by a CLI or repository cloud agent.

The adopted local Azure DevOps MCP route uses Node 20 or later and stdio. Remote HTTP needs an Entra-backed organization and a compatible authentication flow; a standalone MSA organization does not meet that remote prerequisite. Remote `X-MCP-Toolsets` and `X-MCP-Tools` are alternative selection mechanisms. GitHub's toolsets and explicit tools instead combine additively. Read-only mode overrides requested writes, while lockdown filtering and `readOnlyHint` are not independent proof that writes are impossible.

For a compatible VS Code host, place an illustrative configuration in `.vscode/mcp.json`. The cited GitHub remote/OAuth setup requires VS Code 1.101 or later:

```json
{
  "servers": {
    "ado-remote-mcp": {
      "type": "http",
      "url": "https://mcp.dev.azure.com/{organization}",
      "headers": {
        "X-MCP-Toolsets": "wit,repos",
        "X-MCP-Readonly": "true"
      }
    },
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/"
    }
  }
}
```

Replace the organization and use the host's MCP view to start each server and complete supported sign-in and consent. In Copilot Chat's Agent mode, select the needed read tools. Retrieve an authorized known project/work item and a repository/PR, checking returned identities and fields. The ADO header removes its write tools; the GitHub block does not enforce read-only. Configure GitHub's offered tools/read-only behavior and account scope separately. Both credential scope and the user's actual resource permissions constrain access.

When the selected ADO host cannot authenticate remotely, use its supported local route rather than inventing an OAuth workaround:

```json
{"servers":{"ado":{"type":"stdio","command":"npx","args":["-y","@azure-devops/mcp","{organization}"]}}}
```

This starts `npx -y @azure-devops/mcp <organization>` under the compatible Node runtime and prompts for an appropriate account. Optional local domains such as `-d core work work-items` are not remote header names; retain `core` for project lookup.

The adopted documentation dated 2026-11-14 describes local ADO MCP for Codex/Claude Desktop when remote Entra authentication is unsupported, and custom Entra app registration for Cursor/Claude Code remote access. Treat these as dated host observations, not universal protocol limits or authorization to register an app. Likewise, the repository cloud-agent/code-review restriction on remote OAuth does not prohibit this VS Code OAuth scenario. Cloud-agent allowlisted calls may proceed without per-call approval, so establish scope beforehand. Code review additionally requires the documented `annotations.readOnlyHint: true` eligibility hint; retain actual authorization controls.

## Select event push, tool invocation or guidance

A webhook sends an event to a receiver. MCP lets a host invoke discovered capabilities. A skill explains a reusable procedure. Choose the first to deliver a build event, the second to retrieve current work-item context, and the third to guide a consistent triage process. Their purposes can connect, but their authorization models are not interchangeable.

For an Azure DevOps Web Hooks subscription, an authorized Project Administrator or Project Collection Administrator opens **Project settings → Service hooks → Create subscription → Web Hooks**. Select the event and filters, configure the public HTTPS target, payload detail and supported authentication, choose **Test**, then **Finish** after the test succeeds. Inspect the received JSON at the destination. Localhost and special address ranges do not substitute for a supported public receiver.

Choose All, Minimal or None resource detail deliberately. Reducing the payload can limit disclosure, but authenticated follow-up still requires ordinary service access. An HTTP acknowledgement proves receipt at that boundary, not completion of the downstream business action.

For GitHub webhook authenticity, inspect `X-Hub-Signature-256: sha256=<hex digest>`. Compute HMAC SHA-256 with the shared secret over the **original UTF-8 request body**, then compare in constant time before processing. Parsing and reserializing JSON changes bytes. The event-type field is not authentication, and an authenticated event does not itself authorize every proposed effect. Keep the secret outside source code.

A project skill can live at `.github/skills/event-triage/SKILL.md`:

```text
---
name: event-triage
description: Read and summarize an authenticated work-item event.
---
After the receiver authenticates the event, use the available MCP read tool
with its verified organization, project and work-item ID. Confirm the returned
identity, summarize the requested fields, and stop before writes.
```

This is illustrative guidance. It creates neither a webhook-to-MCP execution engine nor permission for external changes.

## Verify a Boards-to-GitHub hyperlink

First distinguish three intents: configuring the native Boards–GitHub connection, using `AB#` within that connection, or adding a supported work-item Hyperlink. A URL-only operation cannot be reported as the native integration.

In a host exposing the documented tools, use `wit_work_item` with action `get` to read the actual item and revision. Separately use `pull_request_read` with method `get` and the actual GitHub owner/repository/PR parameters. Confirm the PR's canonical URL. For an explicitly authorized hyperlink write, the following example assumes item 125 at revision 9 and PR 42; all values are illustrative:

```json
{
  "action": "update",
  "id": 125,
  "updates": [
    {"op":"test","path":"/rev","value":9},
    {"op":"add","path":"/relations/-","value":{
      "rel":"Hyperlink",
      "url":"https://github.com/example-owner/example-repo/pull/42",
      "attributes":{"comment":"Related GitHub pull request"}
    }}
  ]
}
```

Submit through `wit_work_item_write` with the actual supported schema. Pass the relation as an object, not an encoded JSON string. Reread with relations expanded and confirm the exact URL, endpoint identities and expected unchanged work-item state. A revision mismatch requires a fresh read and reconciliation, not removal of the test. An ADO `vstfs:///Git/PullRequestId/...` example is not a GitHub URI template.

The verified outcome is a Hyperlink. It does not establish a native Development artifact, an `AB#` state transition or deployment evidence. The earlier read-only configuration intentionally cannot perform this write; a real operation needs an explicitly authorized write-capable connection. Tool names and parameters must match the actual selected server. No connection, webhook, tenant write or live verification was performed for these documentary examples.

## Summary

Maintain distinct documents, verified ownership rules and explicit agent boundaries. Configure MCP for the actual host and service, authenticate webhooks over original bytes, and keep skills within their guidance role. For cross-service changes, read both identities, use the supported guarded operation and verify the destination before describing the result.
