Skip to content

Windows filesystem MCP enhancements #543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
aa38212
fix: comprehensive Windows path handling improvements
mfcasazza Jan 16, 2025
83e1dee
tested locally and working now
mfcasazza Jan 18, 2025
88089fc
Merge pull request #1 from mfcasazza/fix-windows-paths
mfcasazza Jan 18, 2025
6355f12
Merge branch 'modelcontextprotocol:main' into main
mfcasazza Jan 18, 2025
baa5f39
Add filesystem path utils and tests
mfcasazza Jan 18, 2025
9d6b7aa
Resolve merge conflicts - keep Unix path handling
mfcasazza Jan 18, 2025
4d9a35c
Merge branch 'main' into main
mfcasazza Jan 20, 2025
ac4e10e
Merge branch 'main' into main
mfcasazza Jan 22, 2025
0ecf33a
Merge branch 'main' into main
mfcasazza Jan 30, 2025
5e4a2bd
Merge branch 'modelcontextprotocol:main' into main
mfcasazza Jan 31, 2025
382e679
Merge branch 'modelcontextprotocol:main' into main
mfcasazza Feb 3, 2025
9c2091b
Merge branch 'main' into main
mfcasazza Feb 8, 2025
b82487e
Ensure Windows drive letters are capitalized in normalizePath
mfcasazza Feb 8, 2025
3ebe30e
Merge pull request #2 from mfcasazza/pr-543
mfcasazza Feb 8, 2025
0f948c7
Merge branch 'main' into main
mfcasazza Feb 9, 2025
5c6f8f4
Merge branch 'main' into main
mfcasazza Feb 12, 2025
b305280
Merge branch 'main' into main
mfcasazza Feb 23, 2025
02f4c74
Merge branch 'main' into main
mfcasazza Feb 27, 2025
cc9d6cf
adding test for gh pr comment
mfcasazza Mar 1, 2025
133a02c
Merge branch 'main' into main
mfcasazza Mar 5, 2025
340edd0
Merge branch 'main' into main
mfcasazza Mar 12, 2025
b5882f5
Merge branch 'main' into main
mfcasazza Mar 14, 2025
92e90e0
Merge branch 'main' into main
mfcasazza Mar 26, 2025
d404db8
pushing jest and windows testing config
mfcasazza Apr 1, 2025
2f277a1
Merge branch 'main' into main
mfcasazza Apr 1, 2025
0498f20
Merge branch 'main' of https://github.com/mfcasazza/servers
mfcasazza Apr 1, 2025
3bf4af1
Merge branch 'main' into main
mfcasazza Apr 1, 2025
2e8143d
last commit? fixing comments on PR
mfcasazza Apr 1, 2025
9322044
Merge branch 'main' into main
mfcasazza Apr 10, 2025
26e5118
Merge remote-tracking branch 'upstream/main' into pr-543
olaservo Jun 21, 2025
2d31340
Fix bin and bump sdk
olaservo Jun 21, 2025
477f993
Remove redundant commonjs version of path-utils and import from ts ve…
olaservo Jun 21, 2025
8fafc93
Remove copying cjs file
olaservo Jun 21, 2025
b9a3299
Remove copying run-server
olaservo Jun 21, 2025
87fc65d
Remove complex args parsing and do other cleanup
olaservo Jun 21, 2025
ae2ed89
Add missing tools details to Readme
olaservo Jun 21, 2025
6d3b39c
Move utility functions from index to lib
olaservo Jun 23, 2025
8b35629
Add more tests and handle very small and very large files edge cases
olaservo Jun 23, 2025
4b9c747
Merge branch 'main' into main
olaservo Jun 23, 2025
c1a907a
Merge branch 'main' into main
olaservo Jun 25, 2025
609e7b0
Merge branch 'main' into main
olaservo Jun 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 22 additions & 1 deletion src/filesystem/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ Node.js server implementing Model Context Protocol (MCP) for filesystem operatio

- **read_file**
- Read complete contents of a file
- Input: `path` (string)
- Inputs:
- `path` (string): File path to read
- `head` (number, optional): Read only the first N lines of the file
- `tail` (number, optional): Read only the last N lines of the file
- Reads complete file contents with UTF-8 encoding
- Cannot specify both `head` and `tail` simultaneously

- **read_multiple_files**
- Read multiple files simultaneously
Expand Down Expand Up @@ -64,6 +68,23 @@ Node.js server implementing Model Context Protocol (MCP) for filesystem operatio
- List directory contents with [FILE] or [DIR] prefixes
- Input: `path` (string)

- **list_directory_with_sizes**
- List directory contents with [FILE] or [DIR] prefixes, including file sizes
- Inputs:
- `path` (string): Directory path to list
- `sortBy` (string, optional): Sort entries by "name" or "size" (default: "name")
- Returns detailed listing with file sizes and summary statistics
- Shows total files, directories, and combined size

- **directory_tree**
- Get a recursive tree view of files and directories as a JSON structure
- Input: `path` (string): Starting directory path
- Returns JSON structure with:
- `name`: File/directory name
- `type`: "file" or "directory"
- `children`: Array of child entries (for directories only)
- Output is formatted with 2-space indentation for readability

- **move_file**
- Move or rename files and directories
- Inputs:
Expand Down
Loading