diff --git a/.release-manifest.json b/.release-manifest.json index 5e0df8c..c2f95fa 100644 --- a/.release-manifest.json +++ b/.release-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.3" + ".": "0.3.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b2fea23..9a92d0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [0.3.0](https://github.com/rust-mcp-stack/rust-mcp-filesystem/compare/v0.2.3...v0.3.0) (2025-09-21) + + +### π Features + +* Add multiple new tools + enhancements ([#44](https://github.com/rust-mcp-stack/rust-mcp-filesystem/issues/44)) ([6188eb3](https://github.com/rust-mcp-stack/rust-mcp-filesystem/commit/6188eb3b54e58fad8bf22488b306bf3523f60cda)) +* Add new tool for reading media files (Image / Audio) ([#43](https://github.com/rust-mcp-stack/rust-mcp-filesystem/issues/43)) ([534d803](https://github.com/rust-mcp-stack/rust-mcp-filesystem/commit/534d8036cdd2e9b7e6d6635bce136949acc32518)) +* Implement mcp roots protocol support ([#41](https://github.com/rust-mcp-stack/rust-mcp-filesystem/issues/41)) ([df715f1](https://github.com/rust-mcp-stack/rust-mcp-filesystem/commit/df715f13bddb1c980513ef87ec3911c8cade1bce)) + + +### βοΈ Miscellaneous Chores + +* Release 0.3.0 ([4a01d17](https://github.com/rust-mcp-stack/rust-mcp-filesystem/commit/4a01d1725319ced7324e24e71922a2f9a59ebb9e)) + ## [0.2.3](https://github.com/rust-mcp-stack/rust-mcp-filesystem/compare/v0.2.2...v0.2.3) (2025-08-30) diff --git a/Cargo.lock b/Cargo.lock index 494f207..dfdc190 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1078,7 +1078,7 @@ checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001" [[package]] name = "rust-mcp-filesystem" -version = "0.2.3" +version = "0.3.0" dependencies = [ "async-trait", "async_zip", diff --git a/Cargo.toml b/Cargo.toml index c9b4a5c..37e8a2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-mcp-filesystem" -version = "0.2.3" +version = "0.3.0" edition = "2024" repository = "https://github.com/rust-mcp-stack/rust-mcp-filesystem" authors = ["Ali Hashemi"] diff --git a/docs/_coverpage.md b/docs/_coverpage.md index f2e15a3..c2dc56b 100644 --- a/docs/_coverpage.md +++ b/docs/_coverpage.md @@ -6,7 +6,7 @@ -# Rust MCP FileSystem (v0.2.3) +# Rust MCP FileSystem (v0.3.0) diff --git a/docs/capabilities.md b/docs/capabilities.md index 7cb0e5e..835ad26 100644 --- a/docs/capabilities.md +++ b/docs/capabilities.md @@ -1,10 +1,10 @@ # Capabilities -## rust-mcp-filesystem 0.2.3 -| π’ Tools (16) | π΄ Prompts | π΄ Resources | π΄ Logging | π΄ Experimental | +## rust-mcp-filesystem 0.3.0 +| π’ Tools (24) | π΄ Prompts | π΄ Resources | π΄ Logging | π΄ Experimental | | --- | --- | --- | --- | --- | -## π οΈ Tools (16) +## π οΈ Tools (24)
| 1. | +
+ calculate_directory_size
+ |
+ Calculates the total size of a directory specified by root_path.It recursively searches for files and sums their sizes. The result can be returned in either a human-readable format or as bytes, depending on the specified output_format argument.Only works within allowed directories. |
+
+
|
+ ||
| 2. |
create_directory
|
@@ -29,20 +42,20 @@
||||
| 2. | +3. |
directory_tree
|
Get a recursive tree view of files and directories as a JSON structure. Each entry includes name, type (file/directory), and children for directories. Files have no children array, while directories always have a children array (which may be empty). If the max_depth parameter is provided, the traversal will be limited to the specified depth. As a result, the returned directory structure may be incomplete or provide a skewed representation of the full directory tree, since deeper-level files and subdirectories beyond the specified depth will be excluded. The output is formatted with 2-space indentation for readability. Only works within allowed directories. |
|
|
| 3. | +4. |
edit_file
|
@@ -56,7 +69,38 @@
|||
| 4. | +5. | +
+ find_duplicate_files
+ |
+ Find duplicate files within a directory and return list of duplicated files as text or json formatOptional pattern argument can be used to narrow down the file search to specific glob pattern.Optional exclude_patterns can be used to exclude certain files matching a glob.min_bytes and max_bytes are optional arguments that can be used to restrict the search to files with sizes within a specified range.The output_format argument specifies the format of the output and accepts either text or json (default: text).Only works within allowed directories. |
+
+
|
+ |
| 6. | +
+ find_empty_directories
+ |
+ Recursively finds all empty directories within the given root path.A directory is considered empty if it contains no files in itself or any of its subdirectories.Operating system metadata files `.DS_Store` (macOS) and `Thumbs.db` (Windows) will be ignored.The optional exclude_patterns argument accepts glob-style patterns to exclude specific paths from the search.Only works within allowed directories. | +
+
|
+ ||
| 7. |
get_file_info
|
@@ -68,7 +112,33 @@
||||
| 5. | +8. | +
+ head_file
+ |
+ Reads and returns the first N lines of a text file.This is useful for quickly previewing file contents without loading the entire file into memory.If the file has fewer than N lines, the entire file will be returned.Only works within allowed directories. | +
+
|
+ |
| 9. | +
+ head_file
+ |
+ Reads and returns the last N lines of a text file.This is useful for quickly previewing file contents without loading the entire file into memory.If the file has fewer than N lines, the entire file will be returned.Only works within allowed directories. | +
+
|
+ ||
| 10. |
list_allowed_directories
|
@@ -79,7 +149,7 @@
||||
| 6. | +11. |
list_directory
|
@@ -91,7 +161,7 @@
|||
| 7. | +12. |
list_directory_with_sizes
|
@@ -103,7 +173,7 @@
|||
| 8. | +13. |
move_file
|
@@ -116,53 +186,97 @@
|||
| 9. | +14. |
- read_file
+ read_file_lines
|
- 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. | +Reads lines from a text file starting at a specified line offset (0-based) and continues for the specified number of lines if a limit is provided.This function skips the first offset lines and then reads up to limit lines if specified, or reads until the end of the file otherwise.It's useful for partial reads, pagination, or previewing sections of large text files.Only works within allowed directories. |
|
| 10. | +15. | +
+ read_media_file
+ |
+ Reads an image or audio file and returns its Base64-encoded content along with the corresponding MIME type. The max_bytes argument could be used to enforce an upper limit on the size of a file to read if the media file exceeds this limit, the operation will return an error instead of reading the media file. Access is restricted to files within allowed directories only. | +
+
|
+ |
| 16. |
- read_multiple_files
+ read_multiple_media_files
|
- Read the contents of multiple files simultaneously. This is more efficient than reading files one by one when you need to analyze or compare multiple files. Each file's content is returned with its path as a reference. Failed reads for individual files won't stop the entire operation. Only works within allowed directories. | +Reads multiple image or audio files and returns their Base64-encoded contents along with corresponding MIME types. This method is more efficient than reading files individually. The max_bytes argument could be used to enforce an upper limit on the size of a file to read Failed reads for specific files are skipped without interrupting the entire operation. Only works within allowed directories. |
|
|
| 11. | +17. | +
+ read_multiple_text_files
+ |
+ Read the contents of multiple text files simultaneously as text. This is more efficient than reading files one by one when you need to analyze or compare multiple files. Each file's content is returned with its path as a reference. Failed reads for individual files won't stop the entire operation. Only works within allowed directories. | +
+
|
+ |
| 18. | +
+ read_text_file
+ |
+ Read the complete contents of a text file from the file system as text. 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. | +
+
|
+ ||
| 19. |
search_files
|
- Recursively search for files and directories matching a pattern. Searches through all subdirectories from the starting path. The search is case-insensitive and matches partial names. Returns full paths to all matching items. Great for finding files when you don't know their exact location. Only searches within allowed directories. | +Recursively search for files and directories matching a pattern. Searches through all subdirectories from the starting path. The search is case-insensitive and matches partial names. Returns full paths to all matching items.Optional min_bytes and max_bytes arguments can be used to filter files by size, ensuring that only files within the specified byte range are included in the search. This tool is great for finding files when you don't know their exact location or find files by their size.Only searches within allowed directories. |
|
|
| 12. | +20. |
search_files_content
|
- Searches for text or regex patterns in the content of files matching matching a GLOB pattern.Returns detailed matches with file path, line number, column number and a preview of matched text.By default, it performs a literal text search; if the is_regex parameter is set to true, it performs a regular expression (regex) search instead.Ideal for finding specific code, comments, or text when you donβt know their exact location. |
+ Searches for text or regex patterns in the content of files matching matching a GLOB pattern.Returns detailed matches with file path, line number, column number and a preview of matched text.By default, it performs a literal text search; if the is_regex parameter is set to true, it performs a regular expression (regex) search instead.Optional min_bytes and max_bytes arguments can be used to filter files by size, ensuring that only files within the specified byte range are included in the search. Ideal for finding specific code, comments, or text when you donβt know their exact location. |
|
| 13. | +21. |
unzip_file
|
@@ -183,7 +297,7 @@
|||
| 14. | +22. |
write_file
|
@@ -196,7 +310,7 @@
|||
| 15. | +23. |
zip_directory
|
@@ -210,7 +324,7 @@
|||
| 16. | +24. |
zip_files
|
diff --git a/docs/guide/install.md b/docs/guide/install.md
index 41064f7..5e115d6 100644
--- a/docs/guide/install.md
+++ b/docs/guide/install.md
@@ -7,13 +7,13 @@
```sh
-curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-mcp-stack/rust-mcp-filesystem/releases/download/v0.2.3/rust-mcp-filesystem-installer.sh | sh
+curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-mcp-stack/rust-mcp-filesystem/releases/download/v0.3.0/rust-mcp-filesystem-installer.sh | sh
```
#### **PowerShell script**
```sh
-powershell -ExecutionPolicy Bypass -c "irm https://github.com/rust-mcp-stack/rust-mcp-filesystem/releases/download/v0.2.3/rust-mcp-filesystem-installer.ps1 | iex"
+powershell -ExecutionPolicy Bypass -c "irm https://github.com/rust-mcp-stack/rust-mcp-filesystem/releases/download/v0.3.0/rust-mcp-filesystem-installer.ps1 | iex"
```
@@ -38,78 +38,78 @@ brew install rust-mcp-stack/tap/rust-mcp-filesystem
|||
| - rust-mcp-filesystem-aarch64-apple-darwin.tar.gz + rust-mcp-filesystem-aarch64-apple-darwin.tar.gz | Apple Silicon macOS | - checksum + checksum | |||
| - rust-mcp-filesystem-x86_64-apple-darwin.tar.gz + rust-mcp-filesystem-x86_64-apple-darwin.tar.gz | Intel macOS | - checksum + checksum | |||
| - rust-mcp-filesystem-x86_64-pc-windows-msvc.zip + rust-mcp-filesystem-x86_64-pc-windows-msvc.zip | x64 Windows (zip) | - checksum + checksum | |||
| - rust-mcp-filesystem-x86_64-pc-windows-msvc.msi + rust-mcp-filesystem-x86_64-pc-windows-msvc.msi | x64 Windows (msi) | - checksum + checksum | |||
| - rust-mcp-filesystem-aarch64-unknown-linux-gnu.tar.gz + rust-mcp-filesystem-aarch64-unknown-linux-gnu.tar.gz | ARM64 Linux | - checksum + checksum | |||
| - rust-mcp-filesystem-x86_64-unknown-linux-gnu.tar.gz + rust-mcp-filesystem-x86_64-unknown-linux-gnu.tar.gz | x64 Linux | - checksum + checksum | |||
| - rust-mcp-filesystem-aarch64-apple-darwin.tar.gz + rust-mcp-filesystem-aarch64-apple-darwin.tar.gz | Apple Silicon macOS | - checksum + checksum | |||
| - rust-mcp-filesystem-x86_64-apple-darwin.tar.gz + rust-mcp-filesystem-x86_64-apple-darwin.tar.gz | Intel macOS | - checksum + checksum | |||
| - rust-mcp-filesystem-x86_64-pc-windows-msvc.zip + rust-mcp-filesystem-x86_64-pc-windows-msvc.zip | x64 Windows (zip) | - checksum + checksum | |||
| - rust-mcp-filesystem-x86_64-pc-windows-msvc.msi + rust-mcp-filesystem-x86_64-pc-windows-msvc.msi | x64 Windows (msi) | - checksum + checksum | |||
| - rust-mcp-filesystem-aarch64-unknown-linux-gnu.tar.gz + rust-mcp-filesystem-aarch64-unknown-linux-gnu.tar.gz | ARM64 Linux | - checksum + checksum | |||
| - rust-mcp-filesystem-x86_64-unknown-linux-gnu.tar.gz + rust-mcp-filesystem-x86_64-unknown-linux-gnu.tar.gz | x64 Linux | - checksum + checksum |