From 062ac18eef41256c8c1683ba8bdff9fd7b5c7332 Mon Sep 17 00:00:00 2001 From: Ali Hashemi <14126952+hashemix@users.noreply.github.com> Date: Fri, 4 Jul 2025 22:20:58 -0300 Subject: [PATCH 1/2] chore: release --- .release-manifest.json | 2 +- CHANGELOG.md | 17 +++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- docs/_coverpage.md | 2 +- docs/guide/install.md | 28 ++++++++++++++-------------- docs/quickstart.md | 28 ++++++++++++++-------------- 7 files changed, 49 insertions(+), 32 deletions(-) diff --git a/.release-manifest.json b/.release-manifest.json index a397a7b..6c28b67 100644 --- a/.release-manifest.json +++ b/.release-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.10" + ".": "0.2.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index ea1d6be..d452ce8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [0.2.0](https://github.com/rust-mcp-stack/rust-mcp-filesystem/compare/v0.1.10...v0.2.0) (2025-07-05) + + +### β BREAKING CHANGES + +* upgrade to latest MCP protocol (2025-06-18) ([#29](https://github.com/rust-mcp-stack/rust-mcp-filesystem/issues/29)) + +### π Features + +* Add list_directory_with_sizes MCP Tool for Directory Listing with File Sizes ([#27](https://github.com/rust-mcp-stack/rust-mcp-filesystem/issues/27)) ([15121c8](https://github.com/rust-mcp-stack/rust-mcp-filesystem/commit/15121c8d1605366ea5185f6a9e2ffd7036693d13)) +* Upgrade to latest MCP protocol (2025-06-18) ([#29](https://github.com/rust-mcp-stack/rust-mcp-filesystem/issues/29)) ([cd6af1b](https://github.com/rust-mcp-stack/rust-mcp-filesystem/commit/cd6af1bfc14dab4b2ba68b014be860c8e9668667)) + + +### π Bug Fixes + +* Directory tree tool result ([#26](https://github.com/rust-mcp-stack/rust-mcp-filesystem/issues/26)) ([01f956e](https://github.com/rust-mcp-stack/rust-mcp-filesystem/commit/01f956efdde5fdd0e5fd14f30e4ebdac53d728f7)) + ## [0.1.10](https://github.com/rust-mcp-stack/rust-mcp-filesystem/compare/v0.1.9...v0.1.10) (2025-06-18) diff --git a/Cargo.lock b/Cargo.lock index eeb28c3..56ed8ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -939,7 +939,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "rust-mcp-filesystem" -version = "0.1.10" +version = "0.2.0" dependencies = [ "async-trait", "async_zip", diff --git a/Cargo.toml b/Cargo.toml index 44084c4..4177463 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-mcp-filesystem" -version = "0.1.10" +version = "0.2.0" edition = "2021" repository = "https://github.com/rust-mcp-stack/rust-mcp-filesystem" authors = ["Ali Hashemi"] diff --git a/docs/_coverpage.md b/docs/_coverpage.md index 7ab0b5d..890c6fc 100644 --- a/docs/_coverpage.md +++ b/docs/_coverpage.md @@ -6,7 +6,7 @@ -# Rust MCP FileSystem (v0.1.10) +# Rust MCP FileSystem (v0.2.0) diff --git a/docs/guide/install.md b/docs/guide/install.md index 47c9557..e4833a0 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.1.10/rust-mcp-filesystem-installer.sh | sh +curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-mcp-stack/rust-mcp-filesystem/releases/download/v0.2.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.1.10/rust-mcp-filesystem-installer.ps1 | iex" +powershell -ExecutionPolicy Bypass -c "irm https://github.com/rust-mcp-stack/rust-mcp-filesystem/releases/download/v0.2.0/rust-mcp-filesystem-installer.ps1 | iex" ``` @@ -38,78 +38,78 @@ brew install rust-mcp-stack/tap/rust-mcp-filesystem
| Create a new directory or ensure a directory exists. Can create multiple nested directories in one operation. If the directory already exists, this operation will succeed silently. Perfect for setting up directory structures for projects or ensuring required paths exist. Only works within allowed directories. |
|
@@ -33,10 +33,11 @@
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). The output is formatted with 2-space indentation for readability. Only works within allowed directories. |
+ 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. |
|
@@ -48,9 +49,9 @@
Make line-based edits to a text file. Each edit replaces exact line sequences with new content. Returns a git-style diff showing the changes made. Only works within allowed directories. |
|
@@ -62,7 +63,7 @@
Retrieve detailed metadata about a file or directory. Returns comprehensive information including size, creation time, last modified time, permissions, and type. This tool is perfect for understanding file characteristics without reading the actual content. Only works within allowed directories. |
|
@@ -85,127 +86,139 @@
Get a detailed listing of all files and directories in a specified path. Results clearly distinguish between files and directories with FILE and DIR prefixes. This tool is essential for understanding directory structure and finding specific files within a directory. Only works within allowed directories. |
|
| 7. | +
+ list_directory_with_sizes
+ |
+ Get a detailed listing of all files and directories in a specified path, including sizes. Results clearly distinguish between files and directories with FILE and DIR prefixes. This tool is useful for understanding directory structure and finding specific files within a directory. Only works within allowed directories. |
+
+
|
+ |
| 8. |
move_file
|
Move or rename files and directories. Can move files between directories and rename them in a single operation. If the destination exists, the operation will fail. Works across different directories and can be used for simple renaming within the same directory. Both source and destination must be within allowed directories. |
|
|
| 8. | +9. |
read_file
|
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. |
|
| 9. | +10. |
read_multiple_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. |
|
| 10. | +11. |
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. |
|
| 11. | +12. |
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. |
|
| 12. | +13. |
unzip_file
|
Extracts the contents of a ZIP archive to a specified target directory. It takes a source ZIP file path and a target extraction directory. The tool decompresses all files and directories stored in the ZIP, recreating their structure in the target location. Both the source ZIP file and the target directory should reside within allowed directories. |
|
| 13. | +14. |
write_file
|
Create a new file or completely overwrite an existing file with new content. Use with caution as it will overwrite existing files without warning. Handles text content with proper encoding. Only works within allowed directories. |
|
| 14. | +15. |
zip_directory
|
Creates a ZIP archive by compressing a directory , including files and subdirectories matching a specified glob pattern. 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. Both the source directory and the target ZIP file should reside within allowed directories. |
|
| 15. | +16. |
zip_files
|
Creates a ZIP archive by compressing files. It takes a list of files to compress and a target path for the resulting ZIP file. Both the source files and the target ZIP file should reside within allowed directories. |
|