Client does not support MCP Roots, using allowed directories set from server args:

Hi folks, I get this error when starting a filesystem MCP server like so:
filesystem: {
// Le client va déclencher lui-même le programme qui agit comme serveur MCP
// (en cas d'erreur, testez la commande à la main)
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
// Folder must exist already
// can only write temporary files
"."
]
filesystem: {
// Le client va déclencher lui-même le programme qui agit comme serveur MCP
// (en cas d'erreur, testez la commande à la main)
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
// Folder must exist already
// can only write temporary files
"."
]
` Secure MCP Filesystem Server running on stdio Client does not support MCP Roots, using allowed directories set from server args: [ '/home/eric-burel/code/formations/mastra-code/jour-2-agents/stackpicker-mastra/.mastra/output' ] Using /tmp for instance is not possible. The file will always be written in .mastra/output That's ok for know but why this behaviour?
2 Replies
Mastra Triager
GitHub
[DISCORD:1425505184418631730] Client does not support MCP Roots, us...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1425505184418631730 Hi folks, I get this error when starting a filesystem MCP server like so: filesystem: ...
Daniel Lew
Daniel Lew2w ago
Hi @Eric Burel this is known that our MCPClient doesn't support roots. It's not going to be prioritized to add support for this as roots is still a feature not used by many yet but we'd love a PR if you are curious about implementing it!

Did you find this page helpful?