Spaces:
Sleeping
Sleeping
Update mcp_server.py
Browse files- mcp_server.py +1 -1
mcp_server.py
CHANGED
|
@@ -139,7 +139,7 @@ def get_valid_actions() -> str:
|
|
| 139 |
# Access the underlying Jericho interface via the TextAdventureEnv wrapper
|
| 140 |
if game.env and hasattr(game.env, 'env'):
|
| 141 |
valid = game.env.env.get_valid_actions()
|
| 142 |
-
return json.dumps(valid[:
|
| 143 |
return "[]"
|
| 144 |
|
| 145 |
if __name__ == "__main__":
|
|
|
|
| 139 |
# Access the underlying Jericho interface via the TextAdventureEnv wrapper
|
| 140 |
if game.env and hasattr(game.env, 'env'):
|
| 141 |
valid = game.env.env.get_valid_actions()
|
| 142 |
+
return json.dumps(valid[:50])
|
| 143 |
return "[]"
|
| 144 |
|
| 145 |
if __name__ == "__main__":
|