Skip to main content

diagrid mcpserver access revoke

Revoke a caller's access to tools on an MCP server

diagrid mcpserver access revoke <mcpserver> [flags]

Examples


# Remove the "query" tool grant for agent-a.
diagrid mcpserver access revoke my-mcp --project my-project --caller agent-a --allow-tools query

# Remove agent-a's entire rule (all of its tool grants).
diagrid mcpserver access revoke my-mcp --project my-project --caller agent-a --all

Options

-p, --project string Name of existing project
--caller string App ID of the caller to revoke access from (use '*' for the any-caller rule)
--allow-tools strings Tool grants to remove (comma-separated or repeatable)
--all Remove the caller's entire rule (all of its tool grants)
-w, --wait Wait for long-running resource update to finish
--approve Skip confirmation prompt
-y, --yes Skip confirmation prompt
-h, --help help for revoke

Options inherited from parent commands

--api-key string Diagrid Cloud API key

SEE ALSO