Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

search_graph: `file_pattern` is a glob, `name_pattern` is a regex, neither is documented

未关闭 适合新手
#2,050 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
冷清
技术栈
c
领域
documentation

调研方向

先在 C 源码中搜索 file_pattern 在哪里被解析并与文件路径匹配,以确认实际观察到的 glob 方言(不区分大小写、*/? 可跨越 /、不支持 [a-z])。同时定位 MCP 工具输入 schema 描述的构建位置,因为 tools/list 对 file_pattern、name_pattern 和 qn_pattern 返回空描述。完成的标志是 README 和这些工具描述明确说明 file_pattern 是不区分大小写的 glob,而 name_pattern 是正则表达式;可选择性地添加校验,在 glob 中拒绝仅属于正则表达式的字符。

由索引模型根据 Issue 内容生成。

描述

documentation priority/normal ux/behavior
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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DeusData/codebase-memory-mcp 的其他 Issue

查看 DeusData/codebase-memory-mcp 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。