Skip to content

feat!: Remove deprecated MCP roots feature - #442

Open
matz3 wants to merge 1 commit into
mainfrom
remove-deprecated-roots
Open

matz3 wants to merge 1 commit into
mainfrom
remove-deprecated-roots

Conversation

@matz3

@matz3 matz3 commented Sep 11, 2026

Copy link
Copy Markdown
Member

The MCP "roots" feature has been deprecated by SEP-2577 (roots capability, listRoots request, and roots/list_changed notification).

Remove the roots protocol wiring from the server and the roots-based path restriction it fed in Context. normalizePath now only validates that a path is absolute and resolves it via realpath, without an allowed-roots boundary.

See: https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/2577-deprecate-roots-sampling-and-logging.md

BREAKING CHANGE: The roots-based path restriction is removed. Tools no longer limit file access to client-provided roots and now accept any absolute path.

The MCP "roots" feature has been deprecated by SEP-2577 (roots capability,
listRoots request, and roots/list_changed notification).

Remove the roots protocol wiring from the server and the roots-based path
restriction it fed in Context. normalizePath now only validates that a path
is absolute and resolves it via realpath, without an allowed-roots boundary.

See: https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/2577-deprecate-roots-sampling-and-logging.md

BREAKING CHANGE: The roots-based path restriction is removed. Tools no longer
limit file access to client-provided roots and now accept any absolute path.
@matz3
matz3 requested review from akudev and flovogt September 11, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants