Skip to content

Commit 6595e5b

Browse files
authored
Merge pull request #4 from reward-protocol/remove_env_simplified
remove redundant tools
2 parents f60dffc + 8379f10 commit 6595e5b

File tree

4 files changed

+21
-57
lines changed

4 files changed

+21
-57
lines changed

examples/frozen_lake_mcp/frozen_lake_mcp.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -99,29 +99,6 @@ def lake_move(action: str, ctx: Context) -> Dict[str, Any]:
9999

100100
return observation_data
101101

102-
@self.mcp.tool(
103-
name="get_control_plane_state",
104-
description="Get current control plane state for this session (for rollout system).",
105-
)
106-
def get_control_plane_state(ctx: Context) -> Dict[str, Any]:
107-
"""
108-
Get control plane state for current session.
109-
110-
Args:
111-
ctx: MCP context
112-
113-
Returns:
114-
Control plane state dictionary
115-
"""
116-
session_id = self._get_session_id(ctx)
117-
control_state = self.get_control_plane_state(session_id)
118-
119-
if control_state is None:
120-
# Initialize session if it doesn't exist
121-
session_data = self._get_or_create_session(ctx)
122-
control_state = self._get_or_create_session_control_plane(session_id)
123-
124-
return control_state
125102

126103
@staticmethod
127104
def format_observation(obs: int, env: Any) -> Dict[str, Any]:

0 commit comments

Comments
 (0)