aiguicai/mcp-gateway/codegraph
Claude Code and agent skill by aiguicai/mcp-gateway
- community
Checking that the SKILL.md file is still in the repository.
Run CodeGraph CLI commands through npx for local codebase indexing, semantic search, context building, and impact analysis. First read the complete builtin://codegraph/SKILL.md to get skillToken; this SKILL.md read does not require skillToken. Calls without the correct skillToken will fail and must be retried.
Install
npx vskill@latest install aiguicai/mcp-gateway/codegraphSKILL.md
CodeGraph
CodeGraph builds a local semantic graph of a codebase and exposes CLI commands for indexing, symbol search, task context, file structure, call relationships, impact analysis, and affected-test discovery.
Use this tool when a repository has or should have a .codegraph/ index and the task needs structural code intelligence: "where is this symbol", "how does this area work", "who calls this", "what might break if I change it", or "which tests are affected by these files".
IMPORTANT: How to Use This Tool
This is a dedicated built-in tool named codegraph. You MUST follow these rules:
- Do NOT use `shell_command` to run CodeGraph commands. The gateway blocks
attempts to run codegraph or npx -y @colbymchenry/codegraph through shell_command when this tool is enabled. Always use this codegraph tool.
- Executing commands (skillToken required):
- Every
execvalue MUST start with thecodegraphprefix. - You MUST include the
skillTokenreturned from reading this document. - Example:
codegraph({"exec": "codegraph status", "cwd": "D:/project", "skillToken": "<token>"})
- The gateway runs CodeGraph through npx. You write
codegraph ..., and
the gateway executes npx -y @colbymchenry/codegraph ... directly without a shell wrapper.
- This is NOT the CodeGraph MCP server integration. Do not run
codegraph serve --mcp. This built-in tool only supports selected CLI commands. Upstream MCP-only tools such as codegraph_trace, codegraph_explore, and codegraph_node are not available through this built-in tool.
Prerequisites
Node.js/npm must be installed so npx is available. The upstream npm package currently requires a supported Node runtime, and the first call may download or refresh the @colbymchenry/codegraph npm package cache.
Always set cwd to the project root or a directory inside the configured allowed directories. CodeGraph stores its local SQLite index under .codegraph/.
Allowed Commands
Use these commands through the codegraph tool:
Blocked commands:
Do not use the no-argument codegraph installer through this tool.
Typical Workflow
Check whether the project is initialized:
Initialize and index a project when needed:
Search for a symbol or inspect a broad area:
Inspect call relationships:
Find affected tests or files:
Notes
- Prefer
codegraph statusbefore assuming the project is indexed. - Use
codegraph syncafter large file changes if the index looks stale. - Use
codegraph contextfirst for architecture or "how does this work"
questions; use query for exact symbol lookup; use callers, callees, or impact for change planning.
- Prefer
--jsonwhen you need structured output for follow-up reasoning. - Do not use shell redirection, pipes, or
affected --stdinwith this tool. If
you need affected tests, pass file paths as arguments. If you need to persist output, use multi_edit_file for files and read_file for inspection.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmcp-gateway/crates/gateway-http/builtin-skills/codegraph/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aiguicai/mcp-gateway/codegraph)