-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Open
Labels
bugSomething isn't workingSomething isn't workingserver-filesystemReference implementation for the Filesystem MCP server - src/filesystemReference implementation for the Filesystem MCP server - src/filesystem
Description
Describe the bug
It is expected that the pattern argument of the search_files tool would support glob/regex style wildcard patterns, e.g. "*.py", but it does not.
Looking at the implementation it is easy to see why, for some reason it just does a basic substring inclusion test instead of a proper glob minimatch() like it does for the excludePatterns argument.
To Reproduce
Steps to reproduce the behavior:
- Start Filesystem MCP and connect client
- Try use
search_filestool providingpatternargument with glob/regex style wildcard pattern e.g. "*.py" - get "No matches found" even when there are files that match
Expected behavior
search_files tool pattern argument should support glob/regex style wildcard patterns
I'm planning on creating a fix for this soon!
braddo99 and huseinayub
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingserver-filesystemReference implementation for the Filesystem MCP server - src/filesystemReference implementation for the Filesystem MCP server - src/filesystem