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 multiple callers' entire rules at once.
diagrid mcpserver access revoke my-mcp --project my-project --callers agent-a,agent-b --all

# 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 ID of a single caller to revoke access from (use '*' for the any-caller rule)
--callers strings Comma-separated caller IDs to revoke access from
--allow-tools strings Tool grants to remove (comma-separated or repeatable)
--all Remove the caller(s)' entire rule (all 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