Skip to main content
This guide walks you through running Scale Gymnasium environments on your own infrastructure using Docker. Select the environment type you want to deploy:
Prerequisites:
  • Docker installed (version 20.10+)
  • Docker images from Scale (contact Scale to receive)

MCP Environments

Deploy MCP (Model Context Protocol) server environments with 50+ available tools across calendar, email, CRM, filesystem, Slack, and more.

Step 1: Load the Docker Image

The MCP environment is distributed as agent-environment.tar. Load it into your local registry:
docker load -i agent-environment.tar
Verify the image is available:
docker images | grep agent-environment

Step 2: Run the Container

Start the container, exposing port 1984:
docker run -d -p 1984:1984 agent-environment:latest
The environment is now running at http://localhost:1984.Optionally, load a specific scenario by passing a universe ID:
docker run -d -p 1984:1984 -e UNIVERSE_ID=my_scenario_123 agent-environment:latest

Step 3: Initialize a Session

Reset the environment to start a new episode:
EndpointMethodPurpose
/resetPOSTReset all MCP servers and start a new episode
You can optionally pass a universe_id in the request body to load a specific scenario:
curl -X POST http://localhost:1984/reset \
  -H "Content-Type: application/json" \
  -d '{"options": {"universe_id": "my_scenario_123"}}'

Step 4: Interact with the Environment

Example: List available tools
curl -X POST http://localhost:1984/list-tools
Example: Call a tool
curl -X POST http://localhost:1984/call-tool \
  -H "Content-Type: application/json" \
  -d '{"tool_name": "calendar_get_calendar_events", "tool_args": {}}'
See the MCP Environment API Reference for all available endpoints.

Step 5: Verify Results

See the MCP Verifiers guide for more details on verification.

Success!

You’ve deployed an MCP environment locally. You can now:
  • Scale to multiple parallel containers
  • Integrate with your training pipeline
  • Implement your own agent loop

Next Steps