Google has announced new features for Managed Agents in the Gemini API, enabling developers to build reliable, production-ready AI agents. The expansion addresses developer feedback and includes background execution, remote MCP server integration, custom functions, and credential refresh – all operating within an isolated cloud sandbox environment.
Key Takeaways
- Background Execution: Agents run asynchronously on the server; the API returns an ID immediately instead of keeping HTTP connections open
- Remote MCP Servers: Direct connection to private databases and internal APIs without custom proxy middleware
- Custom Functions: Execute local business logic alongside built-in sandbox tools
- Credential Refresh: Rotate access tokens and API keys while preserving filesystem state and installed packages
Asynchronous Work Without Blocking
The core challenge with long-running agent tasks has been reliability: keeping HTTP connections open is fragile. With background: true, interactions now run asynchronously on the server. The API returns an ID immediately, allowing client applications to poll status, stream progress, or reconnect later while the agent continues working remotely.
Direct Integration of External Systems
Another major addition is Remote MCP Server Integration (Model Context Protocol). Instead of writing custom proxy middleware, developers can connect Managed Agents directly to remote MCP servers. This means agents in the sandbox can communicate with private databases and internal APIs – while simultaneously leveraging Google Search or code execution. Tools can be mixed and matched flexibly.
Additionally, Custom Function Calling allows local business logic to run on the client while built-in tools execute on the server. The API uses "step matching" to route operations correctly.
Credentials Refresh, State Persists
For production environments, Credential Refresh is a practical addition. Access tokens and short-lived API keys expire. Developers can now pass updated network configuration with fresh credentials on the next interaction – and the sandbox retains its filesystem state, installed packages, and cloned repositories.
What This Means for You
For developers and enterprises building production AI agents, these updates address critical gaps: Background Execution solves timeout issues with long-running tasks. Remote MCP Integration enables secure connection to legacy systems and internal APIs without workarounds. Credential Refresh makes multi-tenant and enterprise scenarios viable. These are the building blocks often missing between prototype and production. Whether your team is already experimenting with Gemini agents or planning to start, these capabilities make reliable, asynchronous agent workflows significantly more accessible.
Sources
Editorially owned by Ideal Syka. Sources and method: Newsroom & method. Tips and corrections: ai@i6eal.de.




