1
1
# Capabilities
2
2
3
- ## ** rust- mcp-filesystem-server 0.1.0 **
4
-
3
+ <!-- mcp-discovery-render -->
4
+ ## rust-mcp-filesystem 0.1.3
5
5
| 🟢 Tools (14) | <span style =" opacity :0.6 " >🔴 Prompts</span > | <span style =" opacity :0.6 " >🔴 Resources</span > | <span style =" opacity :0.6 " >🔴 Logging</span > | <span style =" opacity :0.6 " >🔴 Experimental</span > |
6
- | ------------- | ------------------------------------------- | --------------------------------------------- | ------------------------------------------- | ------------------------------------------------ |
7
-
6
+ | --- | --- | --- | --- | --- |
8
7
## 🛠️ Tools (14)
9
8
10
9
<table style =" text-align : left ;" >
13
12
<th style="width: auto;"></th>
14
13
<th style="width: auto;">Tool Name</th>
15
14
<th style="width: auto;">Description</th>
15
+ <th style="width: auto;">Inputs</th>
16
16
</tr>
17
17
</thead >
18
18
<tbody style =" vertical-align : top ;" >
19
19
<tr>
20
20
<td>1.</td>
21
- <td>
22
- <code><b>read_file</b></code>
23
- </td>
24
- <td>Read the complete contents of a file from the file system. Handles various text encodings and provides detailed error messages if the file cannot be read. Use this tool when you need to examine the contents of a single file. Only works within allowed directories.</td>
25
- </tr>
26
- <tr>
27
- <td>2.</td>
28
21
<td>
29
22
<code><b>create_directory</b></code>
30
23
</td>
31
24
<td>Create a new directory or ensure a directory exists. Can create multiple
32
25
nested directories in one operation. If the directory already exists,
33
26
this operation will succeed silently. Perfect for setting up directory
34
27
structures for projects or ensuring required paths exist. Only works within allowed directories.</td >
28
+ <td >
29
+ <ul >
30
+ <li style =" white-space : nowrap ;" > <code >path</code > : string<br /></li >
31
+ </ul >
32
+ </td >
35
33
</tr >
36
34
<tr >
37
- <td >3 .</td >
35
+ <td >2 .</td >
38
36
<td >
39
37
<code ><b >directory_tree</b ></code >
40
38
</td >
41
39
<td >Get a recursive tree view of files and directories as a JSON structure.
42
40
Each entry includes <code >name</code >, <code >type</code > (file/directory), and <code >children</code > for directories.
43
41
Files have no children array, while directories always have a children array (which may be empty).
44
42
The output is formatted with 2-space indentation for readability. Only works within allowed directories.</td >
43
+ <td >
44
+ <ul >
45
+ <li style =" white-space : nowrap ;" > <code >path</code > : string<br /></li >
46
+ </ul >
47
+ </td >
45
48
</tr >
46
49
<tr >
47
- <td >4 .</td >
50
+ <td >3 .</td >
48
51
<td >
49
52
<code ><b >edit_file</b ></code >
50
53
</td >
51
54
<td >Make line-based edits to a text file. Each edit replaces exact line sequences
52
55
with new content. Returns a git-style diff showing the changes made.
53
56
Only works within allowed directories.</td >
57
+ <td >
58
+ <ul >
59
+ <li style =" white-space : nowrap ;" > <code >dryRun</code > : boolean<br /></li >
60
+ <li style =" white-space : nowrap ;" > <code >edits</code > : {newText : string, oldText : string} [ ] <br /></li >
61
+ <li style =" white-space : nowrap ;" > <code >path</code > : string<br /></li >
62
+ </ul >
63
+ </td >
54
64
</tr >
55
65
<tr >
56
- <td >5 .</td >
66
+ <td >4 .</td >
57
67
<td >
58
68
<code ><b >get_file_info</b ></code >
59
69
</td >
60
70
<td >Retrieve detailed metadata about a file or directory. Returns comprehensive
61
71
information including size, creation time, last modified time, permissions,
62
72
and type. This tool is perfect for understanding file characteristics
63
73
without reading the actual content. Only works within allowed directories.</td >
74
+ <td >
75
+ <ul >
76
+ <li style =" white-space : nowrap ;" > <code >path</code > : string<br /></li >
77
+ </ul >
78
+ </td >
64
79
</tr >
65
80
<tr >
66
- <td >6 .</td >
81
+ <td >5 .</td >
67
82
<td >
68
83
<code ><b >list_allowed_directories</b ></code >
69
84
</td >
70
85
<td >Returns a list of directories that the server has permission to access.
71
86
Subdirectories within these allowed directories are also accessible.
72
87
Use this to identify which directories and their nested paths are available before attempting to access files.</td >
88
+ <td >
89
+ <ul >
90
+ </ul >
91
+ </td >
73
92
</tr >
74
93
<tr >
75
- <td >7 .</td >
94
+ <td >6 .</td >
76
95
<td >
77
96
<code ><b >list_directory</b ></code >
78
97
</td >
79
98
<td >Get a detailed listing of all files and directories in a specified path.
80
- Results clearly distinguish between files and directories with <code >[ FILE] </code > and <code >[ DIR] </code >
99
+ Results clearly distinguish between files and directories with <code >FILE</code > and <code >DIR</code >
81
100
prefixes. This tool is essential for understanding directory structure and
82
101
finding specific files within a directory. Only works within allowed directories.</td >
102
+ <td >
103
+ <ul >
104
+ <li style =" white-space : nowrap ;" > <code >path</code > : string<br /></li >
105
+ </ul >
106
+ </td >
83
107
</tr >
84
108
<tr >
85
- <td >8 .</td >
109
+ <td >7 .</td >
86
110
<td >
87
111
<code ><b >move_file</b ></code >
88
112
</td >
89
113
<td >Move or rename files and directories. Can move files between directories
90
114
and rename them in a single operation. If the destination exists, the
91
115
operation will fail. Works across different directories and can be used
92
116
for simple renaming within the same directory. Both source and destination must be within allowed directories.</td >
117
+ <td >
118
+ <ul >
119
+ <li style =" white-space : nowrap ;" > <code >destination</code > : string<br /></li >
120
+ <li style =" white-space : nowrap ;" > <code >source</code > : string<br /></li >
121
+ </ul >
122
+ </td >
123
+ </tr >
124
+ <tr >
125
+ <td >8.</td >
126
+ <td >
127
+ <code ><b >read_file</b ></code >
128
+ </td >
129
+ <td >Read the complete contents of a file from the file system. Handles various text encodings and provides detailed error messages if the file cannot be read. Use this tool when you need to examine the contents of a single file. Only works within allowed directories.</td >
130
+ <td >
131
+ <ul >
132
+ <li style =" white-space : nowrap ;" > <code >path</code > : string<br /></li >
133
+ </ul >
134
+ </td >
93
135
</tr >
94
136
<tr >
95
137
<td >9.</td >
@@ -101,6 +143,11 @@ efficient than reading files one by one when you need to analyze
101
143
or compare multiple files. Each file's content is returned with its
102
144
path as a reference. Failed reads for individual files won't stop
103
145
the entire operation. Only works within allowed directories.</td >
146
+ <td >
147
+ <ul >
148
+ <li style =" white-space : nowrap ;" > <code >paths</code > : string [ ] <br /></li >
149
+ </ul >
150
+ </td >
104
151
</tr >
105
152
<tr >
106
153
<td >10.</td >
@@ -112,45 +159,81 @@ Searches through all subdirectories from the starting path. The search
112
159
is case-insensitive and matches partial names. Returns full paths to all
113
160
matching items. Great for finding files when you don't know their exact location.
114
161
Only searches within allowed directories.</td >
162
+ <td >
163
+ <ul >
164
+ <li style =" white-space : nowrap ;" > <code >excludePatterns</code > : string [ ] <br /></li >
165
+ <li style =" white-space : nowrap ;" > <code >path</code > : string<br /></li >
166
+ <li style =" white-space : nowrap ;" > <code >pattern</code > : string<br /></li >
167
+ </ul >
168
+ </td >
115
169
</tr >
116
170
<tr >
117
171
<td >11.</td >
172
+ <td >
173
+ <code ><b >unzip_file</b ></code >
174
+ </td >
175
+ <td >Extracts the contents of a ZIP archive to a specified target directory.
176
+ It takes a source ZIP file path and a target extraction directory.
177
+ The tool decompresses all files and directories stored in the ZIP, recreating their structure in the target location.
178
+ Both the source ZIP file and the target directory should reside within allowed directories.</td >
179
+ <td >
180
+ <ul >
181
+ <li style =" white-space : nowrap ;" > <code >target_path</code > : string<br /></li >
182
+ <li style =" white-space : nowrap ;" > <code >zip_file</code > : string<br /></li >
183
+ </ul >
184
+ </td >
185
+ </tr >
186
+ <tr >
187
+ <td >12.</td >
118
188
<td >
119
189
<code ><b >write_file</b ></code >
120
190
</td >
121
191
<td >Create a new file or completely overwrite an existing file with new content.
122
192
Use with caution as it will overwrite existing files without warning.
123
193
Handles text content with proper encoding. Only works within allowed directories.</td >
124
- </tr >
125
- <tr >
126
- <td >12.</td >
127
194
<td >
128
- <code ><b >zip_files</b ></code >
195
+ <ul >
196
+ <li style =" white-space : nowrap ;" > <code >content</code > : string<br /></li >
197
+ <li style =" white-space : nowrap ;" > <code >path</code > : string<br /></li >
198
+ </ul >
129
199
</td >
130
- <td >Creates a ZIP archive by compressing files.
131
- It takes a list of files to compress and a target path for the resulting ZIP file.
132
- Both the source files and the target ZIP file should reside within allowed directories.</td >
133
200
</tr >
134
201
<tr >
135
202
<td >13.</td >
136
203
<td >
137
- <code ><b >unzip_file</b ></code >
204
+ <code ><b >zip_directory</b ></code >
205
+ </td >
206
+ <td >Creates a ZIP archive by compressing a directory , including files and subdirectories matching a specified glob pattern.
207
+ It takes a path to the folder and a glob pattern to identify files to compress and a target path for the resulting ZIP file.
208
+ Both the source directory and the target ZIP file should reside within allowed directories.</td >
209
+ <td >
210
+ <ul >
211
+ <li style =" white-space : nowrap ;" > <code >input_directory</code > : string<br /></li >
212
+ <li style =" white-space : nowrap ;" > <code >pattern</code > : string<br /></li >
213
+ <li style =" white-space : nowrap ;" > <code >target_zip_file</code > : string<br /></li >
214
+ </ul >
138
215
</td >
139
- <td >Extracts the contents of a ZIP archive to a specified target directory.
140
- It takes a source ZIP file path and a target extraction directory.
141
- The tool decompresses all files and directories stored in the ZIP, recreating their structure in the target location.
142
- Both the source ZIP file and the target directory should reside within allowed directories.</td >
143
216
</tr >
144
217
<tr >
145
218
<td >14.</td >
146
219
<td >
147
- <code ><b >zip_directory</b ></code >
220
+ <code ><b >zip_files</b ></code >
221
+ </td >
222
+ <td >Creates a ZIP archive by compressing files.
223
+ It takes a list of files to compress and a target path for the resulting ZIP file.
224
+ Both the source files and the target ZIP file should reside within allowed directories.</td >
225
+ <td >
226
+ <ul >
227
+ <li style =" white-space : nowrap ;" > <code >input_files</code > : string [ ] <br /></li >
228
+ <li style =" white-space : nowrap ;" > <code >target_zip_file</code > : string<br /></li >
229
+ </ul >
148
230
</td >
149
- <td >Creates a ZIP archive by compressing a directory , including files and subdirectories matching a specified glob pattern.
150
- It takes a path to the folder and a glob pattern to identify files to compress and a target path for the resulting ZIP file.
151
- Both the source directory and the target ZIP file should reside within allowed directories.</td >
152
231
</tr >
153
232
</tbody >
154
233
</table >
155
234
156
- <sub >◾ generated by mcp-discovery<sub >
235
+
236
+
237
+
238
+ <sub >◾ generated by [ mcp-discovery] ( https://github.com/rust-mcp-stack/mcp-discovery ) </sub >
239
+ <!-- mcp-discovery-render-end -->
0 commit comments