File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
# MCP Text Editor Server
2
2
3
+ [ ![ codecov] ( https://codecov.io/gh/tumf/mcp-text-editor/graph/badge.svg?token=52D51U0ZUR )] ( https://codecov.io/gh/tumf/mcp-text-editor )
4
+
3
5
A Model Context Protocol (MCP) server that provides text file editing capabilities through a standardized API.
4
6
5
7
## Features
@@ -232,6 +234,7 @@ Important Notes:
232
234
### Common Usage Pattern
233
235
234
236
1 . Get current content and hash:
237
+
235
238
``` python
236
239
contents = await get_text_file_contents({
237
240
" files" : [
@@ -244,6 +247,7 @@ contents = await get_text_file_contents({
244
247
```
245
248
246
249
2 . Edit file content:
250
+
247
251
``` python
248
252
result = await edit_text_file_contents({
249
253
" files" : [
@@ -263,6 +267,7 @@ result = await edit_text_file_contents({
263
267
```
264
268
265
269
3 . Handle conflicts:
270
+
266
271
``` python
267
272
if result[" file.txt" ][" result" ] == " error" :
268
273
if " hash mismatch" in result[" file.txt" ][" reason" ]:
@@ -356,4 +361,4 @@ New features should include appropriate tests. Try to maintain or improve the cu
356
361
357
362
### Code Style
358
363
359
- All code should be formatted with Black and pass Ruff linting. Import sorting should be handled by isort.
364
+ All code should be formatted with Black and pass Ruff linting. Import sorting should be handled by isort.
You can’t perform that action at this time.
0 commit comments