Skip to content

Commit eb72f6d

Browse files
authored
fix: duplicate tool name (#55)
1 parent 030f1ea commit eb72f6d

20 files changed

+60
-24
lines changed

src/tools/calculate_directory_size.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub enum FileSizeOutputFormat {
1515

1616
#[mcp_tool(
1717
name = "calculate_directory_size",
18-
title="Calculate Directory Size",
18+
title="Calculate directory size",
1919
description = concat!("Calculates the total size of a directory specified by `root_path`.",
2020
"It recursively searches for files and sums their sizes. ",
2121
"The result can be returned in either a `human-readable` format or as `bytes`, depending on the specified `output_format` argument.",

src/tools/create_directory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::fs_service::FileSystemService;
88

99
#[mcp_tool(
1010
name = "create_directory",
11-
title="Create Directory",
11+
title="Create directory",
1212
description = concat!("Create a new directory or ensure a directory exists. ",
1313
"Can create multiple nested directories in one operation. ",
1414
"If the directory already exists, this operation will succeed silently. ",

src/tools/directory_tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::fs_service::FileSystemService;
88

99
#[mcp_tool(
1010
name = "directory_tree",
11-
title= "Directory Tree",
11+
title= "Directory tree",
1212
description = concat!("Get a recursive tree view of files and directories as a JSON structure. ",
1313
"Each entry includes 'name', 'type' (file/directory), and 'children' for directories. ",
1414
"Files have no children array, while directories always have a children array (which may be empty). ",

src/tools/edit_file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub struct EditOperation {
1919

2020
#[mcp_tool(
2121
name = "edit_file",
22-
title="Edit File",
22+
title="Edit file",
2323
description = concat!("Make line-based edits to a text file. ",
2424
"Each edit replaces exact line sequences with new content. ",
2525
"Returns a git-style diff showing the changes made. ",

src/tools/find_duplicate_files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::{collections::BTreeMap, fmt::Write};
88

99
#[mcp_tool(
1010
name = "find_duplicate_files",
11-
title="Calculate Directory Size",
11+
title="Find duplicate files",
1212
description = concat!("Find duplicate files within a directory and return list of duplicated files as text or json format",
1313
"Optional `pattern` argument can be used to narrow down the file search to specific glob pattern.",
1414
"Optional `exclude_patterns` can be used to exclude certain files matching a glob.",

src/tools/find_empty_directories.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ use std::path::Path;
77

88
use crate::fs_service::{FileSystemService, utils::OutputFormat};
99

10-
// head_file
10+
// find_empty_directories
1111
#[mcp_tool(
1212
name = "find_empty_directories",
13-
title="Find Empty Directories",
13+
title="Find empty directories",
1414
description = concat!("Recursively finds all empty directories within the given root path.",
1515
"A directory is considered empty if it contains no files in itself or any of its subdirectories.",
1616
"Operating system metadata files `.DS_Store` (macOS) and `Thumbs.db` (Windows) will be ignored.",

src/tools/get_file_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::fs_service::FileSystemService;
88

99
#[mcp_tool(
1010
name = "get_file_info",
11-
title="Get File Info",
11+
title="Get file info",
1212
description = concat!("Retrieve detailed metadata about a file or directory. ",
1313
"Returns comprehensive information including size, creation time, ",
1414
"last modified time, permissions, and type. ",

src/tools/list_allowed_directories.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::fs_service::FileSystemService;
66

77
#[mcp_tool(
88
name = "list_allowed_directories",
9-
title="List Allowed Directories",
9+
title="List allowed directories",
1010
description = concat!("Returns a list of directories that the server has permission ",
1111
"to access Subdirectories within these allowed directories are also accessible. ",
1212
"Use this to identify which directories and their nested paths are available ",

src/tools/list_directory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::fs_service::FileSystemService;
88

99
#[mcp_tool(
1010
name = "list_directory",
11-
title="List Directory",
11+
title="List directory",
1212
description = concat!("Get a detailed listing of all files and directories in a specified path. ",
1313
"Results clearly distinguish between files and directories with [FILE] and [DIR] ",
1414
"prefixes. This tool is essential for understanding directory structure and ",

src/tools/list_directory_with_sizes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::fs_service::utils::format_bytes;
99

1010
#[mcp_tool(
1111
name = "list_directory_with_sizes",
12-
title="List Directory With File Sizes",
12+
title="List directory with file sizes",
1313
description = concat!("Get a detailed listing of all files and directories in a specified path, including sizes. " ,
1414
"Results clearly distinguish between files and directories with [FILE] and [DIR] prefixes. " ,
1515
"This tool is useful for understanding directory structure and " ,

0 commit comments

Comments
 (0)