Expanding Managed Agents in Gemini API: background tasks, remote MCP and more

Google just made a quiet but significant move for developers building production AI agents. On July 7, 2026, the Google DeepMind team announced a bundle of new capabilities for Managed Agents in the Gemini API — background execution, remote MCP server integration, custom function calling, and creden

Share
Editorial illustration: A control panel or dashboard viewed from above, with multiple switches, dials, and indicator lights  — MonstarX

```html

Expanding Managed Agents in Gemini API: Background Tasks, Remote MCP and More

Google just made a quiet but significant move for developers building production AI agents. On July 7, 2026, the Google DeepMind team announced a bundle of new capabilities for Managed Agents in the Gemini API — background execution, remote MCP server integration, custom function calling, and credential refresh. Expanding Managed Agents in Gemini API with background tasks and remote MCP support isn't just a feature update; it's a signal that the industry is getting serious about what "production-ready" actually means for autonomous AI agents.

If you've been frustrated by flaky long-running agent jobs, brittle tool integrations, or the constant overhead of managing credentials between sessions — this announcement is worth your full attention.

What Happened

Google's Managed Agents in the Gemini API let developers call a single endpoint and offload the heavy lifting — reasoning, code execution, package installation, file management, and web browsing — to an isolated cloud sandbox. You don't manage the runtime. You don't babysit the execution environment. You just describe what you want done and Gemini handles the rest.

The July 2026 update adds four concrete capabilities on top of that foundation:

  • Background execution: Pass background: true to your interaction call and the API immediately returns an ID. Your client doesn't need to hold the HTTP connection open. Instead, it can poll for status, stream progress updates, or reconnect later while the agent finishes work server-side. This directly solves the fragility problem of long-running tasks over open connections.
  • Remote MCP server integration: Agents can now connect to remote Model Context Protocol (MCP) servers, meaning they can reach external tools and data sources without you having to build custom glue code for every integration.
  • Custom function calling: Developers can define their own functions and expose them to the agent, giving precise control over what actions the agent can take within a workflow.
  • Credential refresh across interactions: Agents can now refresh credentials mid-session, which is critical for any workflow that spans authentication boundaries — think OAuth tokens expiring mid-task during a multi-step data pipeline.

The SDK examples in the announcement use the @google/genai JavaScript package, with Python and cURL equivalents available in the Antigravity agent documentation. Getting started is a single install: npm install @google/genai.

What's notable here isn't any single feature — it's the pattern. Each of these additions directly addresses a known failure mode in production agent deployments. Google is clearly listening to developer feedback rather than shipping capabilities in search of use cases.

Why It Matters for Asia

Asia's developer ecosystem is building AI agents at a pace that often outstrips the infrastructure maturity of the tools available. In Southeast Asia, South Korea, Japan, and India, teams are deploying agents for everything from logistics coordination and financial document processing to customer support automation across multiple languages. The common thread in almost every production deployment? The hard problems aren't the AI reasoning — they're the plumbing.

Background execution matters enormously in this context. Many high-value workflows in Asian markets are inherently long-running. A compliance agent processing regulatory filings in Singapore, a supply chain agent reconciling cross-border invoices between Vietnam and China, or a document analysis agent working through hundreds of Thai-language contracts — none of these complete in seconds. Holding an HTTP connection open for minutes at a time isn't just fragile; in mobile-first markets with variable connectivity, it's often impossible.

The remote MCP integration is equally significant for the Asia tech landscape. Enterprise systems across the region are fragmented — a mix of legacy ERP platforms, regional SaaS tools, local payment gateways, and government APIs that don't always follow Western API conventions. The ability to connect agents to remote MCP servers means teams can build thin adapter layers once and reuse them across agent workflows, rather than rebuilding integrations from scratch for every new agent.

Credential refresh sounds like a footnote but it's actually a blocker for many real-world deployments. Government and financial APIs in markets like Indonesia, Thailand, and the Philippines frequently use short-lived tokens. An agent that can't refresh its own credentials mid-task simply can't complete certain workflows without human intervention — which defeats the purpose of automation entirely.

For founders building on MonstarX, Asia's AI-native dev platform, these Gemini API updates lower the infrastructure tax on building serious agent products. The primitives are getting better. The question shifts from "can we make this work?" to "what's worth building?"

What This Means for Developers

Let's get concrete about what you can actually build differently now.

Async agent pipelines without custom infrastructure. Before background execution, running a long agent task reliably meant building your own job queue — Redis, BullMQ, or a cloud task service — just to manage the async execution layer. Now you get that for free from the API. Your architecture gets simpler. A workflow that previously required a queue worker, a status database, and a webhook handler can now be a single API call with polling.

Here's the pattern in practice:

// Start the task — returns immediately with an interaction ID
const interaction = await client.interactions.create({
  model: "gemini-2.0-flash",
  prompt: "Analyze Q2 financial reports and flag anomalies",
  background: true
});

// Poll or reconnect later
const result = await client.interactions.get(interaction.id);

That's the entire async infrastructure for a long-running agent task. No queue. No worker process. No status table.

Tool ecosystems via remote MCP. The MCP protocol has been gaining traction as a standard way to expose tools to AI agents. Remote MCP support means you can now connect a Gemini agent to any MCP-compatible server — internal tools, third-party APIs, specialized data sources — without writing bespoke function wrappers for each one. If your team has already invested in building MCP servers for other tooling, that investment now carries over directly to Gemini agents.

Composable agent workflows with custom functions. Custom function calling gives you the control layer that pure prompt-based agents lack. You define the functions, their signatures, and their behavior. The agent decides when to call them. This is the pattern that makes agents trustworthy enough to deploy in production — you're not giving the model open-ended access to your systems, you're giving it a well-defined set of tools with predictable interfaces.

Credential management that doesn't break long sessions. For any agent that touches authenticated APIs, credential refresh is now a first-class concern rather than an afterthought. Build agents that operate over hours without requiring a human to re-authenticate mid-task. This is particularly relevant for overnight batch processing workflows — the kind of background jobs that are most valuable precisely because no human is watching.

One practical consideration for teams already using the Gemini API: the announcement notes that if you're running an AI coding agent, you can install the Interactions API skill directly with npx skills add google-gemini/gemini-skills --skill gemini-interactions-api. That's a small detail but it reflects a broader shift — the tooling is being designed to be used by agents as well as humans.

For teams building on platforms that already abstract infrastructure concerns, these improvements compound. When your connectors and deployment layer are handled at the platform level, adding Gemini's new agent capabilities becomes a matter of configuration rather than engineering weeks.

Key Takeaways

Step back from the individual features and the picture that emerges is this: the gap between "AI demo" and "production AI agent" is closing, but it's closing on specific dimensions. Background execution, reliable tool integration, and credential management aren't glamorous — they don't make for exciting conference demos. But they're exactly what separates agents that run in notebooks from agents that run in production at 2am when no one is watching.

For Asian developers and founders, the timing matters. The region is at an inflection point where AI agent adoption is accelerating across industries — logistics, fintech, healthtech, legal tech — and the teams that ship reliable infrastructure now will have a significant advantage over those still debugging async execution issues six months from now.

A few things worth tracking as you evaluate these capabilities:

  • Latency and reliability of background execution in your specific region. Google's infrastructure footprint in Asia has expanded, but you'll want to benchmark actual job completion times for your workload before committing to this pattern in production.
  • MCP server ecosystem growth. The value of remote MCP integration scales with how many quality MCP servers exist for the tools your agents need. Watch this space — it's moving fast.
  • Cost model for long-running background tasks. The announcement doesn't detail pricing for background execution. Understand the cost structure before you architect workflows that assume cheap async compute.
  • Security model for credential refresh. Refreshing credentials inside an agent sandbox raises questions about how secrets are stored and rotated. Review the credential refresh documentation carefully before putting sensitive credentials into agent workflows.

The broader trend here is that AI infrastructure is maturing from a research-grade to an engineering-grade discipline. Background tasks, remote tool protocols, credential management — these are the concerns of production systems, not prototypes. The developers who internalize that shift earliest will build the most durable AI products.

The real competitive advantage in AI development isn't access to the most powerful model — it's the ability to ship reliable agent systems faster than anyone else. That's an infrastructure problem as much as an AI problem, and Google just made part of it significantly easier to solve.

```