Skip to content

Conversation

@cseed
Copy link

@cseed cseed commented Apr 1, 2025

Description

[filesystem] Added an excludePatterns input to the directory_tree tool, similar to the search_files tool. Also, document the directory_tree tool in READE.md.

Server Details

  • Server:filesystem
  • Changes to: tools (directory_tree)

Motivation and Context

I think it will be generally useful, but I wanted it to exclude irrelevant files in listing source code directories (.git, node_modules, *~, etc.), stuff that would normally be in a .gitignore.

How Has This Been Tested?

I built it and verified the TS compiles cleanly. I used it with the Claude Desktop Application without issue.

Breaking Changes

It only adds an input. It is not a breaking change.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Protocol Documentation
  • My changes follows MCP security best practices
  • I have updated the server's README accordingly
  • I have tested this with an LLM client
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have documented all environment variables and configuration options

There are no tests that I'm aware of.

Additional context

cseed added 2 commits April 1, 2025 16:02
tool, similar to the search_files tool.  Also, document the
directory_tree tool in READE.md.
@olaservo olaservo added server-filesystem Reference implementation for the Filesystem MCP server - src/filesystem enhancement New feature or request labels Apr 18, 2025
@domdomegg
Copy link
Member

Thanks for your contribution! This looks like a duplicate of #623. We're tracking this there, so I'm going to close this one to keep the discussion consolidated. Feel free to add any additional context or thoughts to the original issue if you have them!

@domdomegg domdomegg closed this Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request server-filesystem Reference implementation for the Filesystem MCP server - src/filesystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants