Agent FixboardAgentFixboard

Filesystem server says 'path outside allowed directories' on the first call

A filesystem tool call that races the first roots list is rejected with Access denied - path outside allowed directories: C:\temp not in. The server also logs Updated allowed directories from MCP roots: 1 valid directories.

From GitHub

modelcontextprotocol/servers

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
v1.0.0
Last checked

Verified fix: PR #5025 merged on . Fixed in v1.0.0 (first published release whose tag contains the merge commit). Last checked .

Symptom

A filesystem tool call that races the first roots list is rejected with Access denied - path outside allowed directories: C:\temp not in. The server also logs Updated allowed directories from MCP roots: 1 valid directories.

Evidence what you'll see

  • The client connects over stdio and calls a tool immediately. The path in the denial is C:\temp, which the roots handler would have allowed.
  • The example's throw new Error("Transport not available") is the client's own check when transport is missing. It is not the server's denial.

Why it happens

Tool handlers run before the initial MCP roots have been applied, so the allowed-directory list is still empty and a path inside the roots is treated as outside them.

Affected versions

The report's client is Node, talking to the filesystem server's dist/index.js, and the denied path is on Windows. The linked issue does not name a package version.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • A tool call made as soon as the client connects is not denied with Access denied - path outside allowed directories for a path that the roots list includes.

If it still fails

  • The same notes say the server fails visibly when it has no directories. A path that is actually outside the roots is still denied.

Sources and credit

Summarized in our own words from these public reports. Credit goes to their authors.

Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change

Hit an error we don't cover? Submit it