modelcontextprotocol / modelcontextprotocol/servers
Specify directory exclusion pattern in Filesystem config file
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 90.5k
- Forks
- 11.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 5
Description
In my ant.dir.ant.anthropic.filesystem.json config file, in additon to 'allowed_directories' I'd like to be able to specify 'exclusion_patterns'.
In my case, my allowed_directory is a .NET solution folder, and I'd like to exclude all '/obj' and '/bin' sub directories in order to exclude all the build artefacts that .NET generates. This way, Claude during RAG can focus only on actual source code files. I have seen it search through hundreds of artefacts inside /obj/ folders which only confuses Claude.
I'm sure I'm not the only developer who needs this?
Thank you for considering.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Filesystem server configuration handling for ant.dir.ant.anthropic.filesystem.json and its existing allowed_directories support. Add the requested exclusion_patterns behavior for paths such as /obj and /bin, then verify that filesystem searches omit those directories and add or update tests if the relevant test entry point is found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100