本页列出了运行每个 Cloud Storage MCP 服务器方法所需的 Identity and Access Management (IAM) 权限。
您可以通过向用户和群组授予角色来管理对 Cloud Storage 资源的访问权限。每个角色都包含特定权限。您可以使用这些权限为 MCP 服务器方法配置访问权限控制。
| 方法 | 所需的 IAM 权限 |
|---|---|
create_bucket |
mcp.tools.callstorage.buckets.create |
delete_bucket |
mcp.tools.callstorage.buckets.delete |
delete_object |
mcp.tools.callstorage.objects.delete |
get_object_metadata |
mcp.tools.callstorage.objects.get |
list_buckets |
mcp.tools.callstorage.buckets.list |
list_objects |
mcp.tools.callstorage.objects.list |
read_object |
mcp.tools.callstorage.objects.get |
write_text |
mcp.tools.callstorage.objects.create |
后续步骤
如需查看角色及其所含权限的列表,请参阅适用于 Cloud Storage 的 IAM 角色。
在项目和存储桶级层分配 IAM 角色。