feat(cli): add callers, callees, impact commands for CLI/MCP parity#204
Open
zhuchaokn wants to merge 1 commit into
Open
feat(cli): add callers, callees, impact commands for CLI/MCP parity#204zhuchaokn wants to merge 1 commit into
zhuchaokn wants to merge 1 commit into
Conversation
MCP couples graph intelligence to the agent runtime. Developers using scripts, CI pipelines, git hooks, or editor-agnostic workflows need the same capabilities without a running MCP server. This brings the CLI to feature parity with the three most-used graph traversal MCP tools. New commands: codegraph callers <symbol> Find what calls a function/method (--limit, --json) codegraph callees <symbol> Find what a function/method calls (--limit, --json) codegraph impact <symbol> Analyze what code is affected by a change (--depth, --json) All three commands support --path for explicit project targeting and --json for machine-readable output suitable for piping into other tools. impact groups output by file, matching the MCP codegraph_impact layout. Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MCP couples graph intelligence to the agent runtime. Developers using scripts, CI pipelines, git hooks, or editor-agnostic workflows need the same capabilities without a running MCP server. This brings the CLI to feature parity with the three most-used graph traversal MCP tools.
New commands:
codegraph callers Find what calls a function/method (--limit, --json)
codegraph callees Find what a function/method calls (--limit, --json)
codegraph impact Analyze what code is affected by a change (--depth, --json)
All three commands support --path for explicit project targeting and --json for machine-readable output suitable for piping into other tools. impact groups output by file, matching the MCP codegraph_impact layout.