Skip to content
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

Add workspacefolder option for mcp server config #14689

Open
wss29 opened this issue Dec 31, 2024 · 2 comments
Open

Add workspacefolder option for mcp server config #14689

wss29 opened this issue Dec 31, 2024 · 2 comments

Comments

@wss29
Copy link

wss29 commented Dec 31, 2024

When configuring the MCP server, such as with @modelcontextprotocol/server-filesystem, it would be more convenient to include the current workspace as an argument.

Originally raised in 14679

@JonasHelming
Copy link
Contributor

The issue is that we have to pass the allowed directories at start-up. The user can change the workspace after we started the MCP server. It would be better if the the file system MCP server would work with roots, which I requested: modelcontextprotocol/servers#401

@JonasHelming
Copy link
Contributor

JonasHelming commented Jan 4, 2025

Additionally, this option is for the filesystem server only, as allowedDirectories is a custom argument.
So as useful as this would be, I would rather wait until modelcontextprotocol/servers#401 is fixed and then support an option "addWorkspaceAsRoot" which is generic for all MCP servers that support roots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants