Skip to content

Commit bbe87f5

Browse files
Refine the description of the directory input
An LLM may decide to pass `.` as the `directory` value, which leads to an error `ValueError: Directory must be an absolute path: .`. This PR specifies that the `directory` has to be an absolute path to help the LLM provide an appropriate value.
1 parent 987f137 commit bbe87f5

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
@@ -49,7 +49,7 @@ def get_tool_description(self) -> Tool:
4949
},
5050
"directory": {
5151
"type": "string",
52-
"description": "Working directory where the command will be executed",
52+
"description": "Absolute path to a working directory where the command will be executed",
5353
},
5454
"timeout": {
5555
"type": "integer",

0 commit comments

Comments
 (0)