WarUI

MCP Per-Client Consent and Scope Negotiation

GRID-A27-F20P3beyond-baselinePlanned

Each MCP client must be approved by the user before it gets any tools, and it receives only the scopes granted for that client. Consent can be time-limited and revoked at any moment. This applies least privilege per assistant rather than per grid.

Planned. This page shows the specification from issue #207. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Two simulated MCP clients are pending consent, and no tools are exposed yet.

Expected behavior

A pending client sees an empty tool list. After approval it sees only the tools for its granted scopes. When the TTL expires or the client is revoked, its next call fails with a permission error and the user is notified.

Planned API surface

mcp.requireClientConsentgrid.ai.mcp.listClients()grid.ai.mcp.setClientScopes(clientId,scopes)grid.ai.mcp.revokeClient(clientId)onMcpConsentRequestedmcp.consentTtl

Acceptance criteria

  • Clients see no tools before consent (pending)
  • Per-client scopes are never broader than the grid's global AI scopes (pending)
  • Revocation takes effect for the next call (pending)
  • Consent state is held in memory unless the host persists it explicitly (pending)