Skip to content

Commit aff3085

Browse files
author
Yoshihiro Takahara
committed
feat: make directory required in input schema
1 parent af259a6 commit aff3085

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mcp_shell_server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def get_tool_description(self) -> Tool:
5656
"minimum": 0,
5757
},
5858
},
59-
"required": ["command"],
59+
"required": ["command", "directory"],
6060
},
6161
)
6262

tests/test_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ async def test_list_tools():
2727
assert tool.inputSchema["type"] == "object"
2828
assert "command" in tool.inputSchema["properties"]
2929
assert "stdin" in tool.inputSchema["properties"]
30-
assert "directory" in tool.inputSchema["properties"] # New assertion
31-
assert tool.inputSchema["required"] == ["command"]
30+
assert "directory" in tool.inputSchema["properties"]
31+
assert tool.inputSchema["required"] == ["command", "directory"]
3232

3333

3434
@pytest.mark.asyncio

0 commit comments

Comments
 (0)