ToolmarkCheck a package

Behaviour report · published

version 2.4.0 | run 2026-11-22

@modelcontextprotocol/server-filesystem

Recorded by Toolmark on 2026-11-22. Version 2.4.0. Run 2026-11-22. A behaviour report, not a rating or an endorsement.

Tools declared
16
Called
16
Not called
0
Checks passed
18
Checks failed
0
To review
1

Not a rating; there is no score. Not tested is never counted against a tool.

To review (1)

Things a person should look at. Not failures.

  • idempotentHint is set on read-only tools; the MCP spec says it only applies when readOnlyHint is false (harmless noise)read_file, read_text_file, read_media_file, read_multiple_files, list_directory, list_directory_with_sizes, directory_tree, search_files, get_file_info, list_allowed_directories

Declared and observed

What each tool says about itself, next to what happened when we called it.

Declared
Observed
read_file
Read the complete contents of a file as text. DEPRECATED: Use read_text_file instead. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: True
output matched its declared schema
passed: rejects input outside its schema
review item
read_text_file
Read the complete contents of a file from the file system as text. Handles various text encodings and provides detailed error messages if the file cannot be read. Use this tool when you need to examine the contents of a single file. Use the 'head' parameter to read only the first N lines of a file, or the 'tail' parameter to read only the last N lines of a file. Operates on the file as text regardless of extension. Only works within allowed directories. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: True
output matched its declared schema
review item
read_media_file
Read a file and return it as a base64-encoded content block with its MIME type. Image and audio files are returned as image/audio content; any other file type is returned as an embedded resource. Only works within allowed directories. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: True
output matched its declared schema
passed: accepts a second valid input; rejects input outside its schema
review item
read_multiple_files
Read the contents of multiple files simultaneously. This is more efficient than reading files one by one when you need to analyze or compare multiple files. Each file's content is returned with its path as a reference. Failed reads for individual files won't stop the entire operation. Only works within allowed directories. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: True
output matched its declared schema
review item
write_file
Create a new file or completely overwrite an existing file with new content. Use with caution as it will overwrite existing files without warning. Handles text content with proper encoding. Only works within allowed directories. destructiveHint: True, idempotentHint: True, openWorldHint: False, readOnlyHint: False
output matched its declared schema
passed: accepts a second valid input; rejects input outside its schema
output matched its declared schema · accepts a second valid input · rejects input outside its schema · verified
append_file
Append text to the end of a file, creating the file if it does not exist. The existing content is never changed or replaced. The text is appended exactly as given, with no newline added before or after it, so end it with a newline if the next append should start on a new line. Only works within allowed directories. destructiveHint: False, idempotentHint: False, openWorldHint: False, readOnlyHint: False
output matched its declared schema
passed: accepts a second valid input; rejects input outside its schema
output matched its declared schema · accepts a second valid input · rejects input outside its schema · verified
edit_file
Make line-based edits to a text file. Edits apply in order, each to the result of the ones before it, and each replaces the first match of its oldText with newText. oldText must match the file's text exactly, except that line endings (LF or CRLF) never matter and, when there is no exact match, a run of whole lines matches if each line is equal once leading and trailing whitespace is ignored (newText then takes the file's indentation). Whitespace inside a line must match. If any edit has no match, nothing is written and the error shows the closest lines of the file, numbered, to copy oldText from. Returns a git-style diff showing the changes made. Only works within allowed directories. destructiveHint: True, idempotentHint: False, openWorldHint: False, readOnlyHint: False
output matched its declared schema
output matched its declared schema · verified
create_directory
Create a new directory or ensure a directory exists. Can create multiple nested directories in one operation. If the directory already exists, this operation will succeed silently. Perfect for setting up directory structures for projects or ensuring required paths exist. Only works within allowed directories. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: False
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): EEXIST: file already exists, mkdir 'README.md'
called; returned an error for our synthetic input
not tested
list_directory
List the files and directories directly inside a path, each marked [FILE] or [DIR]. Use it to see what a directory contains; when you also need each entry's size or want entries sorted by size, use list_directory_with_sizes instead, and for a recursive view use directory_tree. Returns one line per entry. Only works within allowed directories. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: True
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): ENOTDIR: not a directory, scandir '/fixture/README.md'
review item
list_directory_with_sizes
List the files and directories directly inside a path with each file's size, marked [FILE] or [DIR], sorted by name or by size, largest first (sortBy). Use it when sizes matter, such as finding the largest files; for names only, use list_directory, which returns less text. Returns one line per entry, followed by the totals. Only works within allowed directories. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: True
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): ENOTDIR: not a directory, scandir '/fixture/README.md'
review item
directory_tree
Get a recursive tree view of files and directories as a JSON structure. Each entry includes 'name', 'type' (file/directory), and 'children' for directories. Files have no children array, while directories always have a children array (which may be empty), except at the last level when 'depth' limits the tree: those directories are not read and have no children array. The output is formatted with 2-space indentation for readability. Only works within allowed directories. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: True
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): ENOTDIR: not a directory, scandir '/fixture/README.md'
review item
move_file
Move or rename files and directories. Can move files between directories and rename them in a single operation. If the destination exists, the operation will fail. Works across different directories and can be used for simple renaming within the same directory. Both source and destination must be within allowed directories. destructiveHint: True, idempotentHint: False, openWorldHint: False, readOnlyHint: False
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): ENOENT: no such file or directory, rename '/fixture/toolmark-synthetic-test' -> '.mcp-d46805ba11a71977.moving'
called; returned an error for our synthetic input
not tested
copy_file
Copy a file to a new location, without reading its content into the conversation. Copies one regular file, keeping its permissions and modification time; directories are not copied. If the destination exists, the operation will fail: it never overwrites. Both source and destination must be within allowed directories. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: False
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): ENOENT: no such file or directory, lstat '/fixture/toolmark-synthetic-test'
called; returned an error for our synthetic input
not tested
search_files
Find files and directories by NAME, not by content: this tool never reads or searches inside files. It walks the tree under 'path' and matches a glob pattern against each entry's path relative to 'path' (case-sensitive). Use '*.ext' to match entries directly under 'path', and '**/*.ext' or '**/name' to match at any depth. Returns full paths to all matching items. Great for finding files when you don't know their exact location. Only searches within allowed directories. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: True
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): ENOTDIR: not a directory, scandir '/fixture/README.md'
review item
get_file_info
Retrieve detailed metadata about a file or directory. Returns comprehensive information including size, creation time, last modified time, permissions, type and hard-link count. This tool is perfect for understanding file characteristics without reading the actual content. Only works within allowed directories. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: True
output matched its declared schema
passed: accepts a second valid input; rejects input outside its schema
review item
list_allowed_directories
Returns the list of directories that this server is allowed to access. Subdirectories within these allowed directories are also accessible. Use this to understand which directories and their nested paths are available before trying to access files. destructiveHint: False, idempotentHint: True, openWorldHint: False, readOnlyHint: True
output matched its declared schema
review item

What the server did in the sandbox

0Programs it started or tried to startnone seen
0Network connections it tried, with the answer it gotnone seen
0Names it looked upnone seen
0Key and secret files it tried to opennone seen
0Files it opened for writing outside the usual placesnone seen

Recorded with strace during this run, for the server and every process it started. The recorder runs inside the same sandbox as the tool, so a tool that targets it could hide from it; it covers the whole run, not each tool call.

Package facts
  • tool list size: 13790 bytes as JSON (names, descriptions and input schemas of 16 tools)
How this was tested
  • network check: DNS and TCP (IPv4 and IPv6) to the outside all failed before any call
  • Toolmark's synthetic fixture (files) was created in the data folder /fixture
  • started with fixed arguments of ours: /fixture
  • Dependencies (12)@hono/node-server@2.1.11, @isaacs/nonrecursive-glob-match@1.1.0, @modelcontextprotocol/core@2.4.0, @modelcontextprotocol/node@2.1.2, @modelcontextprotocol/server-filesystem@2.4.0, @modelcontextprotocol/server@2.4.0, balanced-match@4.0.4, brace-expansion@5.0.13, diff@8.0.4, hono@4.13.19, minimatch@11.0.9, zod@4.6.7
    as claimed by the package metadata

Only the published package was run, at this exact version, in Toolmark's sandbox with no network and no secrets, with synthetic input; the provider's hosted service, if any, was not tested. base_image node:22-bookworm-slim@sha256:e9f565d32859f0cbfb52125eafe8be39390f24dac302dc3cdf566e8ba3ab21ee, commit 1579aebe99ff4cabf23fc0e96576170733ad5f9b, modal_sdk 1.6.4, python 3.12.16, rules 1e5a2990d01b99a3, toolmark not installed