智能体
cloud.google.com ·
@Google Cloud Blog
Google Cloud CLI 远程 MCP server 开启预览,让 Agent 直接操作 gcloud 与 BigQuery
Google Cloud 推出 Google Cloud CLI 远程 MCP server 预览版,将数百个 gcloud 和 bq 命令封装进单一 MCP server,使 AI Agent 无需在本地安装 CLI 即可管理 Google Cloud 基础设施并执行 BigQuery 工作流。官方称该方案提供更高层抽象、利用 LLM 对命令行文档的预训练优势,并通过隔离执行沙箱、零环境凭证、Agent Identity、OAuth 2.0、IAM 与组织策略约束以及 Model Armor 实现企业级安全治理。目前为预览阶段。
AI推荐理由 Google Cloud 官方博客发布 Google Cloud CLI 远程 MCP server 预览版,把 gcloud 和 bq 命令封装为单一 MCP server,让 AI Agent 无需本地安装 CLI 即可管理 GCP 基础设施和 BigQuery 工作流。文中给出具体设计理由:CLI 命令提供更高层抽象、LLM 对命令行文档预训练充分;并说明远程 MCP 的隔离沙箱、零环境凭证、Agent Identity/OAuth 2.0/IAM 鉴权、组织策略约束和 Model Armor 防护。属于官方首发、面向 Agent 开发者的可验证产品更新,信息密度高,对 Agent 工具链和云上落地有实际价值;但仍是 preview,实际效果与限制需后续验证。
78
正文
Today, we’re expanding our ecosystem of managed remote MCP servers by introducing the Google Cloud CLI remote MCP server in preview. Powered by the popular gcloud and bq (BigQuery) command-line tools, this new server gives AI agents immediate, broad access to command-line operations for managing Google Cloud infrastructure and working with advanced BigQuery workflows securely and seamlessly. Why CLI matters for AI agents Agents are increasingly performing complex cloud operations, but standardizing how they interact with backend systems remains a challenge. The Google Cloud CLI remote MCP server bridges this gap by packaging the versatility of hundreds of gcloud and bq commands into one single MCP server. This results in two strong benefits for the agent: Higher-level abstractions: CLI commands package complex multi-step workflows, validation checks, and high-level operations into unified commands rather than requiring multi-step API orchestration. Leverages model training: LLMs are heavily pre-trained on public command-line documentation, syntaxes, and usage examples, making CLI invocation intuitive and highly accurate for models. The benefits of putting CLI behind remote MCP Managing cloud infrastructure with AI agents traditionally requires installing and maintaining Google Cloud CLI binaries inside agent execution environments. The Cloud CLI remote MCP server bridges CLI capabilities with MCP benefits by providing an isolated execution sandbox on Google Cloud infrastructure. This solves key infrastructure challenges: Simplified dependency and runtime management: For teams building custom agents, maintaining local CLI versions and dependencies across dev, test, and production environments creates operational overhead. Remote MCP eliminates local installations and runtime maintenance. Access for web-based agent endpoints: Web-hosted agent platforms and web interfaces (such as Gemini Enterprise and other hosted enterprise agent platforms) run in environments where users cannot control or install local packages. Remote MCP enables secure, managed access to Google Cloud CLI operations directly from these surfaces. Enterprise-grade security and governance Connecting an AI agent to your infrastructure requires strict, enterprise-ready safeguards. This remote server leverages Google Cloud's standard identity and governance frameworks to keep your environments secure: Zero ambient credentials: The server isolates execution in a network-restricted proxy boundary with no ambient credentials. Authentication and authorization are handled through Agent Identity, OAuth 2.0, and Identity and Access Management (IAM). Strict policy enforcement: Every command executed through the remote MCP server is run with the permissions of the authenticated caller identity. Both standard IAM permissions and organization policy service constraints are strictly enforced against downstream target resources. Advanced protection with Model Armor: To minimize the risks associated with AI tool calling, the Cloud CLI remote MCP server integrates with Model Armor. You can proactively screen LLM prompts and responses to protect against risks like prompt injection and malicious inputs. Cloud audit logging: The Cloud CLI remote MCP server can be configured to log every tool invocation to Audit Logs (Data Access logs under cloudcli.googleapis.com/mcp). Security teams can gain full visibility into caller identities, OAuth clients, and IAM authorization decisions (mcp.googleapis.com/tools.call) without exposing sensitive command payloads or personally identifiable information (PII). Connecting to the Google Cloud CLI Remote MCP Server Integrating cloud management into your agents no longer requires packaging Google Cloud CLI binaries, managing local execution runtimes, or maintaining dependencies inside agent container images. Because the Google Cloud CLI remote MCP server implements the standard Model Context Protocol, any MCP-compatible agent platform or orchestration runtime can connect immediately via standard configuration: code_block )])]> Your agent immediately gains access to execute gcloud and bq commands in a secure, network-isolated cloud sandbox. Authentication is handled via keyless Agent Identity for hosted Google Cloud platforms, or standard OAuth 2.0 for external runtimes. For authentication options, see the MCP Authentication Guide. Bringing infrastructure management to agents The Cloud CLI remote MCP server exposes two powerful tools, run_gcloud_command and run_bq_command, giving your AI agents broad, immediate access to Google Cloud operations through natural language. Managing cloud infrastructure with run_gcloud_command With run_gcloud_command, agents can execute the full breadth of gcloud operations to manage, diagnose, and secure your Google Cloud environment. An example follows: Observability and incident diagnostics: An agent streamlines incident diagnostics by automating command execution and reducing context-switching across tools. Extending BigQuery operations with the run_bq_command tool While the BigQuery MCP server already helps organizations analyze and explore data using AI agents, with the introduction of run_bq_command, agents can now tackle advanced BigQuery tasks such as resource allocation, job monitoring, and task scheduling by unlocking the full scope of bq CLI functionality. Key capabilities include: Automating scheduled queries: An agent utilizes BigQuery Data Transfer Service configurations to schedule queries automatically. Job and resource management: Gain deep insight into query execution details, including processed data volume, slot usage, and execution plans, as well as managing reservations. Access and permissions control: Data administrators and owners can inspect and update table permissions directly through the agent. Pricing and availability The Google Cloud CLI MCP server is available today in public preview. There is no additional charge to use the MCP server itself. You pay only for the GCP resources you create and any applicable data transfer costs. To get started, enable the Cloud CLI Execution API (`cloudcli.googleapis.com`) in your Google Cloud project, grant the required MCP Tool User (`roles/mcp.toolUser`) IAM role to your agent or user identity, and configure your MCP client to connect to `cloudcli.googleapis.com/mcp`. Use the Google Cloud CLI Remote MCP Server Guide Google Cloud CLI MCP Reference Google Cloud Remote MCP Servers Overview Full List of Google OneMCP Servers Set up authentication to Google and Google Cloud MCP servers Gemini Enterprise Agent Platform & Agent Identity Overview Automate Google Cloud with Cloud CLI Remote MCP Server
来源报道 · 2 篇 · 以下链接均前往原始媒体
opmlrss::Google Cloud Blog
Google Cloud CLI 远程 MCP server 开启预览,让 Agent 直接操作 gcloud 与 BigQuery
10-01 · 原文发布