Skip to content

feat(filesystem): add idempotentHint and openWorldHint annotations#3875

Open
ykshah1309 wants to merge 1 commit intomodelcontextprotocol:mainfrom
ykshah1309:feat/filesystem-annotation-hints
Open

feat(filesystem): add idempotentHint and openWorldHint annotations#3875
ykshah1309 wants to merge 1 commit intomodelcontextprotocol:mainfrom
ykshah1309:feat/filesystem-annotation-hints

Conversation

@ykshah1309
Copy link
Copy Markdown

Summary

Adds idempotentHint and openWorldHint to tool annotations in server-filesystem, completing the annotation coverage for all four standard MCP hints.

Closes #3402

Changes

  • Add idempotentHint: true to 10 read-only tools — reads are inherently safe to retry and produce identical results
  • Add openWorldHint: false to all 14 tools — every operation is scoped to allowed directories with no network access or external side effects

Testing

Metadata-only change with no behavioral impact.

  • npm run build --workspace=src/filesystem compiles cleanly
  • npm test --workspace=src/filesystem — all 146 tests pass

Add idempotentHint: true to all 10 read-only tools (reads are inherently
safe to retry) and openWorldHint: false to all 14 tools (all operations
are scoped to allowed directories with no external side effects).

Closes modelcontextprotocol#3402
@cliffhall cliffhall added enhancement New feature or request server-filesystem Reference implementation for the Filesystem MCP server - src/filesystem labels Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request server-filesystem Reference implementation for the Filesystem MCP server - src/filesystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add missing idempotentHint and openWorldHint to server-filesystem

2 participants