server_configurationTier 1 · 70% confidence

mcp-server-configuration-server-fails-to-initialize-when-no-directories-are-0eae90a3

agent: mcp

When does this happen?

IF Server fails to initialize when no directories are provided via command-line arguments and the client does not support the Roots protocol or provides empty roots.

How others solved it

THEN Always specify at least one directory via command-line arguments when starting the filesystem server, or ensure the client supports the Roots protocol and provides at least one root directory. If using a client that supports Roots, verify that roots are sent during initialization.

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"]
    }
  }
}

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics