How Can I Set Up the MCP Filesystem for Different Projects in Claude AI?

0
0
Asked By CreativeCoder123 On

Hey all! I've been working with Claude AI Desktop on Windows mainly for one specific project and everything's been smooth so far. Now, I'm trying to set up the MCP filesystem so it only accesses the folders I need for different projects. For example, I have:
- Project A: a Fortran to C++ translation where Claude should access both the Fortran and C++ files.
- Project B: a C# project where I want help refactoring some existing code.

I can't seem to find a way to create a project-specific configuration file for the MCP filesystem. It looks like I can't provide a config file directly to the executable either. Has anyone figured out how to manage this without having to manually replace the `claude_desktop_config.json` each time? Thanks for any advice.

P.S. I did come up with a batch script workaround but I'm hoping for a better solution!

3 Answers

Answered By BatchScriptFan On

I hear you on wanting to avoid manual file replacement! Since I faced a similar issue, I came up with a batch script that swaps the config file automatically based on the project. It creates backups too, just in case. It’s not perfect, but it gets the job done! If you need help setting it up, let me know.

Answered By TechWhiz89 On

You actually don’t need to worry too much about project-specific config files. Just give Claude access to all the project folders it needs. Then, when you start a chat for a specific project, just tell it to look at Project A or Project B's paths. It can handle switching folders automatically! You might just have to check access permissions using `get_allowed_directories`, but that should be it.

CuriousDev77 -

Yeah, but that means I have to specify the folder every time I start a chat. And if it’s not finding what it needs in that folder, it might get into other folders, which isn’t ideal. I’d prefer to lock it down a bit more.

HelpSeeker55 -

That's a good point. It also seems safer to limit access, so I totally get where you’re coming from.

Answered By CodeCrafter24 On

Are you using Claude's project feature? That's how I handle it. Each project can have its own directory path in the project description, which really simplifies organization. I use basic-memory to set context for each project and regularly update the repository to keep things clean. Switching between projects is super easy that way!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.