filesystem: realistic examples in search_files' description stop small models refusing to search (measured; follow-up to #896 / #3419)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 68/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- node.js, typescript
- 領域
- tooling
研究方向
找出檔案系統伺服器的 search_files 描述,並將目前的範例與 issue 中的具體模式比較,例如 '/*.json' 和 '/invoice'。閱讀連結的案例研究,了解測量過的變體。新增實際的搜尋範例;若要處理選用的空結果提示,請檢查 search_files 如何格式化 'No matches found';當描述反映這些範例,且提示說明遞迴模式時,即完成。
由索引模型根據 Issue 內容生成。
描述
Which server?
filesystem (@modelcontextprotocol/server-filesystem)
Protocol era
Both, or not era-specific
MCP client
No response
The problem
Server: @modelcontextprotocol/server-filesystem, measured on 2.0.0 and 2.2.0 (checked: 2.3.0 ships the same search_files description and the same empty result). Run with npx -y @modelcontextprotocol/server-filesystem@<version> <dir>, stdio, Node 24, macOS.
Thanks for the rewrite from #896 / #3419. We measured it, and it clearly fixes how agents search: a small model that does search now finds files reliably.
What it doesn't fix: on questions like "How many orders are there in total?", the model usually doesn't search at all. It answers on step 1, "I don't have access to any database or system that would contain order information", while the data sits one tool call away. In a controlled test the example patterns in the description decided this:
search_files description (server 2.0.0, 4 tasks x 3 runs, answers checked in code) |
Pass |
|---|---|
| 2.0.0 original | 2/12 |
| 2.2.0 / 2.3.0 text | 2/12 |
precise rules + generic examples '**/*.ext', '**/name' |
3/12 |
precise rules + concrete examples '**/*.json', '**/*invoice*' |
9/12 (reproduced in 3 separate runs) |
The only difference between the last two rows is the two example patterns. On the two affected tasks they went from 0/6 to 6/6, and with the concrete examples the model searched **/*order* and found the data.
Case study (method, all tables, caveats): https://github.com/Tanishq67m/AgentGrade/blob/main/docs/CASE_STUDY.md
Raw reports: https://github.com/Tanishq67m/AgentGrade/tree/main/results
Solution you have in mind (optional)
- Add one or two realistic examples next to the generic ones, e.g.
'**/*.json','**/*report*'. Small models seem to read abstract placeholders as "this is a file utility", not "the user's data is here". - Replace the bare
No matches foundwith a hint, e.g. "No matches for '' under ''. Patterns are relative to path; use '**/' to search subdirectories." In earlier runs agents repeated non-recursive patterns up to 9 times after a bare empty result.
Which MCP feature does it demonstrate? (optional)
No response
Alternatives or workarounds you have tried
- Agent-side prompt advice ("Explore with the tools before saying information is unavailable"): 3/12 vs 1/12, still mostly refusals.
- Advising "look at the folder layout first" in the description: no effect (1/12).
- Removing search_files entirely: no effect (1/12); the refusal happens before any tool is chosen.
- A larger model (gpt-oss-120b) solved 11/12 even on 2.0.0, so this mainly affects small, cheap models. One small model and synthetic data, 12 runs per row: indicative, not universal.
Already built it locally?
No server code was changed. Each description was tested by having the client show the model only a different search_files description, with the server binary unchanged and the same tasks and repeats. Verified by code-checked answers, 12 runs per variant. The exact texts are in the case study.
Before you submit
- I searched existing issues and this is not a duplicate.
- This is a request for this repository or one of its servers, not a new server, the MCP specification or an SDK.
- 主要語言
- TypeScript
- 星號
- 92k
- 分支
- 12k
- 平均合併
- 3 小時 12 分鐘
- 30 天內合併 PR
- 174
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
modelcontextprotocol/servers 的其他 Issue
-
bug server-time v2
難度 2/5 1-3 小時 新手友好度 76/100
modelcontextprotocol/servers#5559 ·
維護者通常 1 天內回覆
-
enhancement server-git v2
難度 1/5 1 小時以內 新手友好度 88/100
modelcontextprotocol/servers#5552 · 2 則留言 ·
維護者通常 1 天內回覆
-
chore dependencies server-fetch v2
難度 2/5 1-3 小時 新手友好度 65/100
modelcontextprotocol/servers#5546 · 2 則留言 ·
維護者通常 1 天內回覆
-
chore dependencies v2
難度 2/5 1-3 小時 新手友好度 68/100
modelcontextprotocol/servers#5545 · 1 則留言 ·
維護者通常 1 天內回覆
-
chore server-everything v2
難度 2/5 1-3 小時 新手友好度 86/100
modelcontextprotocol/servers#5542 · 1 則留言 ·
維護者通常 1 天內回覆
查看 modelcontextprotocol/servers 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
[Bug]: Search input loses focus while typing on the Inventory, Reservations and Locations lists (view_configurations enabled)可能已有人在做 @medusa-os-bot 今天認領。 未關閉status: needs triaging type: bug version: 2.0
難度 2/5 1-3 小時 新手友好度 86/100
medusajs/medusa#17886 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 95/100
marimo-team/marimo#11949 ·
維護者通常 1 天內回覆
-
D1 Time Travel restore help advertises 30 days without a plan qualifier可能已有人在做 @akhil9tiet 今天認領。 未關閉bug package:wrangler product:d1
難度 1/5 1-3 小時 新手友好度 78/100
cloudflare/workers-sdk#17000 · 2 則留言 ·
維護者通常 1 天內回覆
-
bug severity:medium triage:confirmed triage:reproduced
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆