Skip to content

Commit 5cfb0fc

Browse files
committed
fix(server.py): update descriptions for file_hash and range_hash fields to clarify their usage in concurrency control
chore(server.py): remove backup file server.py.bak to clean up the repository
1 parent 63137b2 commit 5cfb0fc

File tree

2 files changed

+4
-720
lines changed

2 files changed

+4
-720
lines changed

src/mcp_text_editor/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def get_tool_description(self) -> Tool:
346346
},
347347
"file_hash": {
348348
"type": "string",
349-
"description": "Hash of the file contents for concurrency control",
349+
"description": "Hash of the file contents for concurrency control. it should be matched with the file_hash when get_text_file_contents is called.",
350350
},
351351
"encoding": {
352352
"type": "string",
@@ -439,7 +439,7 @@ def get_tool_description(self) -> Tool:
439439
},
440440
"file_hash": {
441441
"type": "string",
442-
"description": "Hash of the file contents for concurrency control",
442+
"description": "Hash of the file contents for concurrency control. it should be matched with the file_hash when get_text_file_contents is called.",
443443
},
444444
"ranges": {
445445
"type": "array",
@@ -457,7 +457,7 @@ def get_tool_description(self) -> Tool:
457457
},
458458
"range_hash": {
459459
"type": "string",
460-
"description": "Hash of the content being deleted",
460+
"description": "Hash of the content being deleted. it should be matched with the range_hash when get_text_file_contents is called with the same range.",
461461
},
462462
},
463463
"required": ["start", "range_hash"],
@@ -544,7 +544,7 @@ def get_tool_description(self) -> Tool:
544544
},
545545
"file_hash": {
546546
"type": "string",
547-
"description": "Hash of the file contents for concurrency control",
547+
"description": "Hash of the file contents for concurrency control. it should be matched with the file_hash when get_text_file_contents is called.",
548548
},
549549
"contents": {
550550
"type": "string",

0 commit comments

Comments
 (0)