Discrete(4)
- NOTHING (0), FIRE_LEFT (1), FIRE_MAIN (2), FIRE_RIGHT (3)Box(8)
- [x, y, velocity_x, velocity_y, angle, angular_velocity, leg1_contact, leg2_contact]lander_action
toolMcpGym
and create an EnvironmentAdapter
, but there are some key differences.
LunarLanderMcp
class extends McpGym
with visual rendering capabilities in format_observation
:
LunarLanderAdapter
acts as an adapter to the Gymnasium library’s implementation of the LunarLander game, which includes both the physics simulation and visual rendering:
gpt-4.1
or other vision-capable modelsdefault_mcp_gym_rollout_processor
from Frozen Lake, demonstrating framework generalization across text and visual environmentssteps=15
is not enough for the Lunar Lander game to complete, it likely would take hundreds of steps.default_mcp_gym_rollout_processor
, pytest patterns, and evaluation infrastructure work seamlessly across text-based grid worlds and complex visual physics simulations. This unified approach enables practitioners to build comprehensive evaluation suites spanning the full spectrum of AI capabilities—from language understanding to visual reasoning to real-time control—all within a single, consistent framework.