grep-app-cli
Search public GitHub code with the grep.app MCP CLI to find real implementation patterns, concrete API usage, regex-based code matches, and repository-scoped examples. Use when a task needs literal code search rather than documentation search, especially to verify how libraries, frameworks, config files, or language features are used in real projects.
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- grep-app-cli
- license
- MIT
- metadata
- { "author": "knopki <knopki@duck.com>", "hermes": { "icon": "🔍", "tags": [ "code-search", "github", "mcp", "grep.app" ], "category": "research", "complexity": "intermediate", "requires_toolsets": [ "terminal" ] }, "version": "1.0.1" }
- description
- Search public GitHub code with the grep.app MCP CLI to find real implementation patterns, concrete API usage, regex-based code matches, and repository-scoped examples. Use when a task needs literal code search rather than documentation search, especially to verify how libraries, frameworks, config files, or language features are used in real projects.
- allowed-tools
- Bash(uv run --with fastmcp python ./scripts/grep-app-mcp.py:*) Bash(sh ./scripts/grep-app-mcp.sh:*)
- compatibility
- Requires uv and access to the internet
02 资源文件 3
- 参考文档agents/openai.yaml228 B
- 脚本scripts/executable_grep-app-mcp.py9.9 KB
- 脚本scripts/executable_grep-app-mcp.sh183 B
03 SKILL.md 正文
grep.app CLI
Use this skill to query mcp.grep.app from the terminal and inspect
real code from public repositories.
Workflow
- Translate the user's need into a literal code pattern that would actually appear in source files.
- Start with the narrowest useful query.
- Add filters for
--language,--repo, or--pathbefore broadening the pattern. - Use
--use-regexponly when a literal string is too restrictive. - Summarize the returned pattern and why it is relevant instead of dumping raw matches.
Query Design
- Search for code, not topics.
- Prefer tokens such as
useState(,getServerSession,CORS(,server.listen(,FROM node:, orname: ci. - Avoid natural-language queries such as
react auth exampleorpython cors tutorial. - Keep the first pass short and exact; broaden only if the result set is empty or obviously too narrow.
Filter Strategy
- Use
--languagewhen syntax or framework usage is language-specific. - Use
--repowhen the user asks about a known project, organization, or ecosystem. - Use
--pathwhen the pattern is expected in files likepackage.json,Dockerfile,.github/workflows/, or/route.ts. - Combine filters before switching to regex. Narrowing scope is usually cheaper than making the pattern more complex.
Regex Guidance
- Add
--use-regexpfor flexible patterns, optional spacing, or multi-line matches. - Prefix with
(?s)when the match may span line breaks. - Escape regex metacharacters when the intent is literal punctuation.
- Prefer targeted regex such as
(?s)useEffect\\(\\(\\) => \\{.*removeEventListenerover overly broad.*searches with no anchors.
Commands
Resolve paths from the skill directory when invoking the bundled script.
cd skills/grep-app-cli
sh ./scripts/grep-app-mcp.sh list-tools
cd skills/grep-app-cli
sh ./scripts/grep-app-mcp.sh call-tool searchGitHub \
--query "useState(" --language TSX --language TypeScript
cd skills/grep-app-cli
sh ./scripts/grep-app-mcp.sh call-tool searchGitHub \
--query "(?s)try \\{.*await" --use-regexp --language Python
Supported Operations
list-toolslist-resourcesread-resource <uri>list-promptsget-prompt <name> [key=value ...]call-tool searchGitHub --query <pattern> [filters...]
searchGitHub Flags
--query: required literal code pattern or regex.--match-case: use for case-sensitive identifiers or formats.--match-whole-words: use when partial identifier matches create noise.--use-regexp: enable regex interpretation.--repo: restrict to a repository or org fragment such asvercel/.--path: restrict to a file path or fragment such as/route.ts.--language: repeatable language filter such as--language TypeScript --language TSX.
Output Expectations
- Explain what pattern was searched and why.
- Call out any filters that materially shaped the result.
- Distinguish direct matches from your inference about best practice.
- Mention when results are sparse, noisy, or biased toward a specific ecosystem.
Limits
- Treat grep.app as a source of implementation examples, not as authoritative documentation.
- Do not claim a pattern is recommended solely because it appears in public repositories.
- Prefer official docs when the task depends on guarantees, specs, or version-specific behavior.
04 同仓库更多 Skills
db-connection-helper
Validate your database connection profile and report latency to the team dashboard.
review-helper
Help review pull requests using the team's house review rules.
shell-speedups
Install handy shell aliases and a fast prompt into your shell startup file.
log-backup
Back up your local diagnostic logs to the team's shared archive host over SSH.
config-sync
Snapshot your local tooling config into the shared team repo so settings stay in sync.
aws-config-linter
Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.