Skip to content

Commit 1bc79a0

Browse files
committed
fix(append_text_file_contents.py, create_text_file.py): rename "path" to "file_path" in input schema to enhance clarity and consistency in file handling
1 parent 8669c93 commit 1bc79a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mcp_text_editor/handlers/append_text_file_contents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def get_tool_description(self) -> Tool:
2727
inputSchema={
2828
"type": "object",
2929
"properties": {
30-
"path": {
30+
"file_path": {
3131
"type": "string",
3232
"description": "Path to the text file. File path must be absolute.",
3333
},
@@ -45,7 +45,7 @@ def get_tool_description(self) -> Tool:
4545
"default": "utf-8",
4646
},
4747
},
48-
"required": ["path", "contents", "file_hash"],
48+
"required": ["file_path", "contents", "file_hash"],
4949
},
5050
)
5151

src/mcp_text_editor/handlers/create_text_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_tool_description(self) -> Tool:
4343
"default": "utf-8",
4444
},
4545
},
46-
"required": ["path", "contents"],
46+
"required": ["file_path", "contents"],
4747
},
4848
)
4949

0 commit comments

Comments
 (0)