Sunxt25 commited on
Commit
296522c
·
verified ·
1 Parent(s): 7a03c0f

Update mcp_server.py

Browse files
Files changed (1) hide show
  1. 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[:20])
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__":