Skip to content

Commit 71f70ce

Browse files
committed
fix: use allowed_commands and allowed_patterns in tool description to satisfy ruff
1 parent 1a8e331 commit 71f70ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp_shell_server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_tool_description(self) -> Tool:
4444
"""Get the tool description for the execute command"""
4545
return Tool(
4646
name=self.name,
47-
description=f"{self.description}\nAllowed commands: {', '.join(self.get_allowed_commands())}",
47+
description=f"{self.description}\nAllowed commands: {allowed_commands}\nAllowed patterns: {allowed_patterns}",
4848
inputSchema={
4949
"type": "object",
5050
"properties": {

0 commit comments

Comments
 (0)