search_graph: `file_pattern` is a glob, `name_pattern` is a regex, neither is documented
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- c
调研方向
先在 C 源码中搜索 file_pattern 在哪里被解析并与文件路径匹配,以确认实际观察到的 glob 方言(不区分大小写、*/? 可跨越 /、不支持 [a-z])。同时定位 MCP 工具输入 schema 描述的构建位置,因为 tools/list 对 file_pattern、name_pattern 和 qn_pattern 返回空描述。完成的标志是 README 和这些工具描述明确说明 file_pattern 是不区分大小写的 glob,而 name_pattern 是正则表达式;可选择性地添加校验,在 glob 中拒绝仅属于正则表达式的字符。
由索引模型根据 Issue 内容生成。
描述
Version
codebase-memory-mcp 0.10.8
Platform
Linux (WSL2, x86_64)
Install channel
GitHub release archive / install.sh
Binary variant
portable
What happened, and what did you expect?
The README documents name_pattern as a regex (--name-pattern '.*Handler.*'), so I assumed file_pattern was one too. It isn't. It's a glob, and a regex pattern returns 0 results with no error.
--label Function -> total: 13006
--label Function --file-pattern '.*src.*' -> total: 0
--label Function --file-pattern 'src/*' -> total: 2162
Poking at it, the glob looks restricted. * and ? both work and cross /, [a-z] matches nothing, and matching is case insensitive: SRC/* returns the same 2162 as src/*.
tools/list returns an empty description for file_pattern, name_pattern and qn_pattern, so there's nowhere to look this up short of guessing.
Documenting the syntax would be enough. Rejecting patterns that contain regex-only characters would be better, since a zero here looks exactly like a real "nothing matched".
- 主要语言
- C
- 星标
- 45.8k
- 派生
- 3.8k
- 平均合并
- 3 天 6 小时
- 30 天内合并 PR
- 201
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DeusData/codebase-memory-mcp 的其他 Issue
-
Generated Pi extension (cbmem.ts) breaks Gemini/Antigravity: Type.Union of Type.Literal serializes to anyOf/const可能已有人在做 @divakantpandey 于 1 天前认领。 未关闭bug editor/integration
难度 2/5 1-3 小时 新手友好度 72/100
DeusData/codebase-memory-mcp#2787 · 1 条评论 ·
维护者通常 2 天内回复
-
editor/integration parsing/quality
难度 2/5 1-3 小时 新手友好度 68/100
DeusData/codebase-memory-mcp#2286 ·
维护者通常 2 天内回复
-
install writes an unsupported `args` key into the Claude Code SubagentStart hook, so it never runs未关闭bug editor/integration priority/high stability/performance ux/behavior
难度 2/5 1-3 小时 新手友好度 72/100
DeusData/codebase-memory-mcp#2239 · 1 条评论 ·
维护者通常 2 天内回复
-
bug priority/high ux/behavior
难度 2/5 1-3 小时 新手友好度 72/100
DeusData/codebase-memory-mcp#2232 · 2 条评论 ·
维护者通常 2 天内回复
-
documentation editor/integration parsing/quality priority/normal
难度 2/5 1-3 小时 新手友好度 85/100
DeusData/codebase-memory-mcp#2169 ·
维护者通常 2 天内回复
查看 DeusData/codebase-memory-mcp 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
JustAResearcher/gpu-unlock-ada#98 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
-
bug intrinsic medium priority rt_lib
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
espressif/esp-vision#18 ·