Skip to main content

mcp-grepai

Semantic code search using grepai MCP server with English queries, intent-based search, and call graph tracing

설치로 이동

소스 정보

저장소
jr2804/prompts
최근 소스 활동
2026년 4월 2일 14:22
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
mcp-grepai
description
Semantic code search using grepai MCP server with English queries, intent-based search, and call graph tracing
# MCP Server: grepai - Semantic Code Search **IMPORTANT**: You MUST use `grepai` as your PRIMARY tool for code exploration and search. ## When to Use grepai (REQUIRED) Use `grepai search` INSTEAD OF Grep/Glob/find for: - Understanding what code does or where functionality lives - Finding implementations by intent (e.g., "authentication logic", "error handling") - Exploring unfamiliar parts of codebase - Any search where you describe WHAT the code does rather than exact text ## When to Use Standard Tools Only use Grep/Glob when you need: - Exact text matching (variable names, imports, specific strings) - File path patterns (e.g., `**/*.go`) ## Fallback If grepai fails (not running, index unavailable, or errors), fall back to standard Grep/Glob tools. ## Usage ```bash # ALWAYS use English queries for best results (--compact saves ~80% tokens) grepai search "user authentication flow" --json --compact grepai search "error handling middleware" --json --compact grepai search "database connection pool" --json --compact grepai search "API request validation" --json --compact ``` ## Query Tips - **Use English** for queries (better semantic matching) - **Describe intent**, not implementation: "handles user login" not "func Login" - **Be specific**: "JWT token validation" better than "token" - Results include: file path, line numbers, relevance score, code preview ## Call Graph Tracing Use `grepai trace` to understand function relationships: - Finding all callers of a function before modifying it - Understanding what functions are called by a given function - Visualizing complete call graph around a symbol ### Trace Commands **IMPORTANT: Always use `--json` flag for optimal AI agent integration.** ```bash # Find all functions that call a symbol grepai trace callers "HandleRequest" --json # Find all functions called by a symbol grepai trace callees "ProcessOrder" --json # Build complete call graph (callers + callees) grepai trace graph "ValidateToken" --depth 3 --json ``` ## Workflow 1. Start with `grepai search` to find relevant code 2. Use `grepai trace` to understand function relationships 3. Use `Read` tool to examine files from results 4. Only use Grep for exact string searches if needed ## References - [grepai GitHub](https://github.com/yoanbernabeu/grepai) - [grepai Documentation](https://yoanbernabeu.github.io/grepai/getting-started/)
GitHub에서 보기