MCP Environments
An MCP environment is a server that offers an agent tools over MCP and holds the state those tools change
An MCP environment is a server that offers an agent tools over the Model Context Protocol (MCP) and
holds the state those tools change. You write it as a subclass of AgentEnvEnvironment, from the
agentenv-framework-protocol package. Its tools are what the agent can do. Its data plane is a
second endpoint, never offered to the agent, through which the framework loads, reads and resets
that state.
These pages follow one such server, EmailEnv, an inbox that an agent can search and send from:
- Creating your own MCP environment: write
EmailEnv, with the tools an agent calls and the data plane the framework uses. - Composing many MCP environments: add
ContactsEnvand serve both as onemultienv. - Deploying your MCP environment: register it, deploy it in a sandbox, use it through its card and tear the instance down.
The other Environments pages cover topology, the environment card, the virtual clock, per-role tool access, triggers and more extensions.
Last updated on