We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18c15b0 commit 29ae6ffCopy full SHA for 29ae6ff
1 file changed
tests/test_mcp_server.py
@@ -142,14 +142,16 @@ async def test_handle_list_tools():
142
assert "action_json" in properties
143
assert "wait_for_seconds" in properties
144
# Check type field has all the command types
145
- type_properties = properties["action_json"]["anyOf"]
146
- type_refs = set(p["$ref"].split("/")[-1] for p in type_properties)
+ type_properties = tool.inputSchema["$defs"]["ActionJsonSchema"][
+ "properties"
147
+ ]
148
+ type_refs = set(type_properties)
149
required_types = {
- "Command",
- "StatusCheck",
150
- "SendText",
151
- "SendSpecials",
152
- "SendAscii",
+ "command",
+ "status_check",
+ "send_text",
153
+ "send_specials",
154
+ "send_ascii",
155
}
156
assert required_types.issubset(type_refs)
157
elif tool.name == "FileWriteOrEdit":
0 commit comments