← Back to Pull requests

Add Access Control for MCP page #41614

Closed
unknown closed this pull request without merging on Nov 13, 2026 17:35 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 21:19 UTC
Author

What does this PR do? What is the motivation?

Adds Access Control for MCP under Access Control (/account_management/rbac/mcp_access/). Customers and field teams keep asking how to restrict what agents can do through the Datadog MCP Server (for example, "read everything, but write only to Notebooks"). The answer is spread across the MCP Server setup page, the Permissions page, and Mobile and Third-Party Access, and the per-AI-client OAuth scope control isn't discoverable from the MCP docs at all.

The new page brings these controls together as layers: the MCP Access and MCP Write Access org settings, the IP allowlist, MCP Read/Write role permissions, OAuth application scopes for each AI client, and standard access controls (RBAC, Data Access Control, granular access). It also notes that OAuth scopes don't apply to connections that use API/application keys or access tokens.

Cross-links added from the MCP Server overview and setup pages, Mobile and Third-Party Access, and the Access Control overview, plus a nav entry ("MCP Access") under Access Control.

Merge readiness

  • Ready for merge
  • Draft — pending review from the MCP Server team.

    AI assistance

    Used Claude Code to draft the page and cross-link edits from existing docs and internal discussion; edited and reviewed by the author.

    Additional notes

  • MCP Write Access default: documented as off. When the default changes for new orgs, this page and the setup page need updating.

  • The IP allowlist section restates the existing claim on the MCP Server setup page; please confirm it applies to the MCP endpoint.
  • 🤖 Generated with Claude Code

    Diff: 210 lines (+157 / -53) across 2 files Reviewer: joepeeples Review duration: 4095m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 210 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.320
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #41614"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.5% (MEDIUM) · Higher = larger blast radius
    36.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.4% · Safe to merge
    14.4%