AI

Gemini API Adds Managed Agents With Remote MCP

Gemini API Adds Managed Agents With Remote MCP

AI · zbrandco

Google’s Managed Agents feature bundle — Source: blog.google official announcement

Google’s latest update adds four capabilities to Managed Agents in the Gemini API, aimed squarely at production agent workloads: server-side background execution, remote MCP server integration, custom function calling alongside sandbox tools, and network credential refresh across interactions. The announcement, published July 7, 2026 on the official Google blog (blog.google), is the clearest signal yet that the Interactions API is being positioned as a managed runtime, not just a model endpoint.

Background execution ends the open-socket problem

The headline change is background: true. Today, a long-running agent task means holding an HTTP connection open while the model reasons, installs packages, and runs code — fragile under any network blip. With background execution, the API immediately returns an interaction ID and the agent finishes remotely.

The client polls for status, streams progress, or reconnects later (Google’s background execution guide). That shifts the reliability burden off your own socket management and onto Google’s sandbox, which is where most teams would rather it sit.

The official example spins up a task against antigravity-preview-05-2026 that clones a repo, scans for TODO comments, and writes a categorized report — then polls every five seconds until completed. It is a small but meaningful change in mental model: you now build agents that fire-and-forget against a durable remote worker rather than coroutines tethered to a live request.

Remote MCP without the proxy boilerplate

The second capability is the one that should interest anyone who has already wired up Model Context Protocol servers. Instead of standing up custom proxy middleware to reach a private database or internal API, you can now point a managed agent directly at a remote MCP server (ai.google.dev MCP docs). You pass an mcp_server tool at interaction time alongside built-in capabilities like Google Search or code execution, and the agent talks to your endpoints from inside its secure sandbox.

This is the part with real architectural weight. MCP has been gaining traction as the lingua franca for tool-calling, but the practical friction has been the glue code — auth, transport, retries — between your agent and your internal services. Letting the managed runtime own that connection collapses a layer of infrastructure.

The trade-off to watch: anything reachable from the sandbox now depends on the network allowlist you configure, so the security best practices around external tools matter more, not less.

Where this sits against local-agent stacks

For the AI Insider crowd running local stacks — Ollama, a self-hosted LangGraph loop, or a Claude-style desktop agent — the comparison is worth being blunt about. A managed remote agent buys you zero-ops execution and a persistent filesystem, cloned repos, and installed packages that survive across calls. You give up data residency and a slice of control.

The credential-refresh feature (ai.google.dev) softens one objection: you can rotate an expired access token or short-lived API key on a subsequent interaction by passing the same environment_id with a new network configuration, and the sandbox keeps its state intact.

Cost is the other open question. Google has not bundled a price into this announcement — the value proposition is engineering time saved on glue code and socket management, not a cheaper token. Teams already paying for Gemini API usage will likely absorb background execution as part of that bill, but the economics of leaving long workers running remotely versus scheduling them locally are not spelled out yet.

Custom functions keep business logic on your side

The third addition is step-matched function calling (ai.google.dev). Built-in tools run automatically on the server; custom functions transition the interaction to requires_action, handing control back to your client to run local business logic before returning a function_result. That is the clean seam for anything you do not want leaving your perimeter — payments, writes to a production database, or calls to systems with their own auth.

Gemini API Managed Agents Background Tasks: Getting started

The capabilities are documented under the Gemini Interactions API (ai.google.dev overview), with a managed-agents quickstart covering custom agent definitions, environment configuration, and streaming patterns. Code samples ship for the @google/genai JavaScript SDK, with Python and cURL covered in the Antigravity agent documentation. Google notes that AI coding agents can pull the Interactions API skill via npx skills add google-gemini/gemini-skills --skill gemini-interactions-api.

The takeaway for builders: Managed Agents is moving from “a model you call” toward “a worker Google runs for you,” and the remote-MCP and background-execution pieces are the ones that remove the most handwritten infrastructure. The remaining watch-items are pricing clarity and the operational discipline of securing whatever you expose to the sandbox.

We may earn commission from affiliate links at no extra cost to you. Last updated: Jul 8, 2026.
Aira

Founding Editor and Publisher of ZBrandCo, covering artificial intelligence, open-source software, and the developer tools people actually use. Signal over hype: every story starts from a primary source and explains why it matters. ZBrandCo runs no paid reviews and no affiliate links. Tips and corrections: editorial@zbrandco.com.