# diagrid mcpserver access grant

Grant a caller access to tools on an MCP server

```
diagrid mcpserver access grant <mcpserver> [flags]
```

### Examples

```

  # Allow agent-a to call the "query" and "search" tools on my-mcp.
  diagrid mcpserver access grant my-mcp --project my-project --caller agent-a --allow-tools query,search

  # Allow multiple callers at once.
  diagrid mcpserver access grant my-mcp --project my-project --callers agent-a,agent-b --allow-tools query,search

  # Allow any caller to call any tool (open the server up).
  diagrid mcpserver access grant my-mcp --project my-project --caller '*' --allow-tools '*'

```

### Options

```
  -p, --project string        Name of existing project
      --caller string         ID of a single caller to grant access to (use '*' for any caller)
      --callers strings       Comma-separated caller IDs to grant access to
      --allow-tools strings   Tool names to allow (comma-separated or repeatable; use '*' for all tools)
  -w, --wait                  Wait for long-running resource update to finish
  -h, --help                  help for grant
```

### Options inherited from parent commands

```
      --api-key string   Diagrid Cloud API key
```

### SEE ALSO

- [diagrid mcpserver access](./access.md)	 - Manage authorization for an MCP server
