Skip to content
Changelog

Serve MCP statelessly so any replica can answer any request

ContributorSannya SingalSoftware Engineer

September 4, 20261 min read

We added MCPConfig(stateless=True), which serves /mcp without tracking sessions. With it on, any replica can answer any request, so a multi-instance deployment no longer needs session affinity in front of it.

from agno.os import AgentOS, MCPConfig
 
agent_os = AgentOS(agents=[assistant], mcp=MCPConfig(stateless=True))

We left it off by default, because dropping session state also drops server-initiated notifications and SSE resumability. Turn it on when horizontal scale matters more than those.

See the cookbook, and learn more about the AgentOS MCP server in the documentation.

Shipped around the same time