fix(filesystem): clarify that search_files matches names, not contents - #3716
fix(filesystem): clarify that search_files matches names, not contents#3716chasewhughes wants to merge 1 commit into
Conversation
The description for search_files was ambiguous — it could be interpreted as searching file contents (like grep) when it actually matches file/directory names against a glob pattern. This caused AI assistants to misuse the tool by passing content strings as the pattern. Fixes modelcontextprotocol#896
|
@claude review |
|
Claude finished @cliffhall's task in 1m 5s —— View job PR Review
Summary: This is a clean, minimal documentation fix that correctly disambiguates What changed (
|
LuuOW
left a comment
There was a problem hiding this comment.
Technical audit: Verified MCP server implementation for consistency with current SDK patterns.
Summary
Fixes #896 — the
search_filestool description was ambiguous, leading AI assistants (including Claude) to misinterpret it as a content search (like grep) when it actually matches file/directory names against a glob pattern.Changes
No logic changes — description only.
Test plan
lib.tsusesminimatchagainstrelativePath(name-based matching)