We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c450f64 commit df54d80Copy full SHA for df54d80
browsergym/core/src/browsergym/utils/mcp_server.py
@@ -139,7 +139,7 @@ async def decorator(*args, **kwargs):
139
"""
140
gym: BrowserEnv = mcp.get_context().request_context.lifespan_context.gym # type: ignore
141
while not isinstance(gym, BrowserEnv):
142
- gym = gym.env
+ gym = gym.env # gym library wraps the BrowserEnv in a few layers (usually 2) of wrappers, this loop unwraps them
143
144
# Load the parent module of the function to use as function context
145
import browsergym.core.action.functions as fn_context
0 commit comments