- Connected describes server communication, not successful access to a particular file.
- Query the actual allowed directory before checking an exact filename and content marker.
- Separate startup, path, access-boundary and tool-approval failures.
Tested on Windows with Node.js 24.20.0, Claude Code CLI 2.1.301 and Filesystem 1.0.0 on 16 October 2026. CLI registration/health, Claude MCP reading and separate SDK 1.32.1 error checks were observed. Remote OAuth, Drive and Notion were not tested. English prompts are adaptations.
Files for this exercise
AIHotple example files and prompts. Try the exercise before substituting real work data.
Verify the source, not just the connection badge
We connected the MCP Filesystem reference server and read a fictional menu containing KRW 8,900, 12 sets and a unique marker. We also requested a missing file and a file outside the allowed directory. Filesystem exposes write tools as well as read tools; this exercise requests reads only and does not turn it into a read-only server. Use public fictional files for practice.

1. Identify the client, server and source
Claude Code is the client, @modelcontextprotocol/server-filesystem is the server, and menu-ko.txt is the source. This differs from attaching a file to a web conversation or signing in to a remote service.
| Layer | Exercise component | Check |
|---|---|---|
| Program | Node.js and Filesystem | Executable and server paths exist |
| Connection | Local stdio | Client communicates with server |
| Tools | Allowed-directory query and text read | Tools are available and approved |
| Source | data/menu-ko.txt | Actual body and marker are returned |
2. Install the example and generate local paths
Prepare Node.js and an authenticated Claude Code installation. Extract mcp-filesystem, replace the example path and run the commands below in PowerShell. npm install uses the package versions fixed in package.json. setup.mjs writes absolute paths for your machine; rerun it if you move the package. Avoid copying someone else’s user-directory path.
Official Claude Code MCP documentation ↗
cd "C:/aihotple-practice/mcp-filesystem"
npm install
node setup.mjs
cd data
claude --mcp-config ../mcp-config.json --strict-mcp-config3. Check the session server and its actual directory
Inside Claude Code, use /mcp to inspect practice-files. The launch command loads this configuration for the session and excludes unrelated MCP configurations. Review any requested command, paths and read-tool approval. A separate registration test used local scope and claude mcp get practice-files reported Connected. Local scope means this user in this project, unlike user scope. The session-file method above does not register a persistent server, so do not confuse it with the saved-server list.
/mcp
Use practice-files list_allowed_directories to report the currently allowed directory.4. Ask for the actual file body
The successful Claude run called list_allowed_directories and read_text_file. It returned the sandwich-and-Americano combination, KRW 8,900, 12 sets and MOA-MCP-20261016. We verified tool events; this was not a normal file-read fallback. A unique marker in a harmless practice file distinguishes content access from a plausible answer based on its name.
Menu: sandwich + Americano
Price: KRW 8,900
Daily capacity: 12 sets
Marker: MOA-MCP-20261016Use the practice-files MCP tools to query the actual allowed directory, then read menu-ko.txt there. Report the menu composition, price, daily capacity and verification marker exactly. Do not substitute a regular file tool. Do not write, modify or access other directories.5. Do not infer the boundary from server arguments alone
In our first Claude run, the command argument named data but the effective allowed directory was its parent project folder. Filesystem can replace command-line directories with client-provided Roots; its official README documents this behavior. The final exercise starts Claude inside data so this working root matches the intended practice area. Query the actual allowed directories. Do not assume every MCP server implements the same Roots behavior.
6. Match the error to the failing layer
The missing-file and outside-directory errors were reproduced by a separate SDK client. The search_files approval failure occurred in the first Claude run. No write tools were called.
| Observed symptom | Cause in the test | What to inspect |
|---|---|---|
| Connected + ENOENT | The requested file/path did not exist | Exact filename and directory listing |
| Access denied - path outside allowed directories | A fictional file outside the allowed boundary | Current allowed directory; do not expand indiscriminately |
| Tool not approved | search_files was not among the approved tools | Requested read tool and approval |
| Startup failure | Example possibilities: Node or server path | Node version, config paths and stderr; not a reproduced startup failure |
7. Reproduce errors without a model
From the package root run node check.mjs. It directly connects to the server and attempts a valid read, missing.txt and outside-practice.txt. This client supplies no Roots, so the server uses its data argument. This is an MCP protocol check, not a Claude response test.
node check.mjs
# success: body and marker
# missing: ENOENT
# denied: Access deniedCarry the diagnostic sequence to the next integration
There is no remote OAuth login in this local exercise. A Drive, Notion or mail integration adds account and source-permission conditions. Local success does not prove those connections. Check startup, tools, effective access scope and one actual source body in sequence.
Sources & verification
Tested on Windows with Node.js 24.20.0, Claude Code CLI 2.1.301 and Filesystem 1.0.0 on 16 October 2026. CLI registration/health, Claude MCP reading and separate SDK 1.32.1 error checks were observed. Remote OAuth, Drive and Notion were not tested. English prompts are adaptations.
- Claude Code · Connect to tools via MCP
- MCP · Reference servers
- MCP Filesystem · Access control and Roots
Sources checked: 2026.10.16



