Model Context Protocol servers v2.4.0
Give an MCP client read-only access to selected directories while keeping others writable.
Before you upgrade to v2.4.0
10 to fixUse ordinary files: FIFOs, sockets and devices are refused. On Windows, remove alternate-data-stream syntax, reserved device names and trailing dots/spaces from requested path components.
Read the evidence
Bare `excludePatterns` names in `search_files` match at every depth; globs ending `/**` prune the directory itself in search and tree results.
Read the evidence
Move the existing graph to a durable location and set `MEMORY_FILE_PATH` to that absolute path before updating an installation that stores it under `node_modules`; startup now warns about such storage.
Read the evidence
For a volume on `/app/dist`, stop clients, replace its `.js` files from the new image while preserving the graph, and give ownership to `node`; repeat per image upgrade, or migrate the graph to a separate data volume.
Read the evidence
Docker images now run as `node` (TypeScript) or `app` (Python). For writable Linux bind mounts, run Filesystem/Git with `--user <uid>:<gid>` matching the owner; ensure Memory storage is writable by its container user.
Install Git 2.31 or later; older versions now fail every tool call. Pass `git_log.max_count` of at least 1.
Read the evidence
Git commands disable hooks, external diffs/textconv, automatic signing and repository-local filter/merge programs; global/system drivers still work. Dirty submodule contents are omitted; inspect the submodule path directly.
Read the evidence
Under `--repository`, make shared/reference clones self-contained with `git repack -a -d`, then remove `objects/info/alternates`; remove outside Git-directory symlinks. Nested repositories cannot borrow another worktree's Git directory.
Read the evidence
Fetch requests prefer native Markdown; HTML results begin with the page title when available. Invalid prompt URLs return JSON-RPC `-32602`.
Read the evidence
Keep response bodies within 5 MiB after decoding; oversized pages now fail rather than return partial content. Only gzip/deflate content encodings are supported; `max_length` and `start_index` do not raise the cap.
Read the evidence
`convert_time` returns both occurrences of an ambiguous fall-back time, adding `later_occurrence`; this field is null for unambiguous times.
Read the evidence
Connections keep at most `MAX_THOUGHT_HISTORY` thoughts (default 1000), discarding the oldest from history and branches; stderr thought boxes cap width at 100 characters and text at 1000 rows.
Set `HOST` explicitly for remote HTTP/SSE clients: the default bind is now `127.0.0.1`; the Docker image sets `HOST=0.0.0.0` internally.
Read the evidence
Keep `tasks/update` answers within 64 KiB in UTF-8 bytes; non-ASCII answers are no longer counted by string length.
Read the evidence
What changed in v2.4.0
`--read-only`, `--confine-roots` and `--read-only-dir` add file-access controls; `append_file`, `copy_file` and file resources expand access. The grouped releases also add Git merge/remotes/prompts, fetch controls, elapsed-time lookup and security fixes.
Also: Append and copy files, merge Git branches, filter memory reads and restrict fetch hosts; upgrades change Docker permissions and Git behavior.
Everything and Filesystem 2.3.0, Memory and Sequential Thinking 2.1.1 on npm; Fetch, Git and Time 2026.11.11 on PyPI. Git server requires Git 2.31+; Docker images now run as non-root users.
Fixed and improved
Use `--read-only` to expose only read tools, or `--confine-roots` to stop legacy client Roots widening command-line directories; `--` ends option parsing.
Read the evidence
Use repeatable `--read-only-dir <path>` for selected allowed directories; write tools remain listed but refuse protected paths. Protected directories must exist at startup and client Roots cannot lift the marking.
Read the evidence
Append text with `append_file`; copy a regular file without overwriting a destination with `copy_file`; limit tree traversal with `directory_tree.depth`.
Read the evidence
Read allowed files through `file://{+path}` with `resources/read`, as text or MIME-typed base64 blobs; `resources/list` remains empty.
Read the evidence
`head: 0` and `tail: 0` return empty text; unreadable search subdirectories are reported, unstattable sizes are `unknown`, and failed edits show closest matching lines.
Read the evidence
Allowed-directory names retain trailing spaces or quotes; `~\` expands to the home directory on Windows. Read tools explicitly advertise idempotent, non-destructive annotations.
Read the evidence
Read tools and file resources resist parent-directory swaps on Linux/macOS; same-device moves retain the checked source. Windows read/write races are narrowed but not closed.
Read the evidence
`edit_file` matches whole-line `oldText` ending in a newline when only indentation differs; writes into absent parents report the missing directory.
Read the evidence
Limit returned observations with `observationLimit`, filter `read_graph` by `entityTypes`, and cap `search_nodes` matches with `limit`; defaults still return full results.
Read the evidence
Repeated observations within one `add_observations` call are stored and reported once; create/add tools now advertise `idempotentHint: true`.
Read the evidence
A process stops refreshing a lock another process has taken over, allowing recovery if the new owner crashes.
Read the evidence
Use `git_merge` (fast-forward only by default; conflicts abort), list redacted remote URLs with `git_remote`, and request staged commit-message or working-tree-summary prompts.
Read the evidence
`git_diff` accepts `a..b` and `a...b` revision ranges; omitted endpoints mean HEAD.
Read the evidence
Restrict requests, robots checks and redirects with `--allowed-hosts`; configure 100–600000 ms request timeouts using `timeout_ms`, `--timeout-ms` or `FETCH_TIMEOUT_MS`.
Read the evidence
Readability.js runs off the event loop with a 30-second timeout and pure-Python fallback; its first-use npm installation is bounded to 120 seconds and logs stay off protocol stdout.
Read the evidence
Private-address checks reject IPv6 site-local and other non-global ranges; robots.txt matches both the written and normalized path, blocking repeated-slash and dot-segment bypasses.
Read the evidence
Omitted timezone arguments use the server's local timezone; `get_time_ago` subtracts elapsed days, hours, minutes and seconds from the current instant.
Read the evidence
The `sequentialthinking` tool description fits the 1024-character OpenAI/Azure cap; multiline thought logs wrap within a bounded box.
Test resource collections with multiple contents per read and light/dark icons on primitives; run the Everything Docker image in Streamable HTTP mode.
Cancelling `trigger-long-running-operation` clears its timer and stops progress in both protocol eras, so it no longer delays stdio shutdown.
Read the evidence
Seeded by @iluxav with Codex, from the release's public sources. Each change links to its evidence.