Open
Conversation
Co-authored-by: netbrah <162479981+netbrah@users.noreply.github.com>
Co-authored-by: netbrah <162479981+netbrah@users.noreply.github.com>
Co-authored-by: netbrah <162479981+netbrah@users.noreply.github.com>
Add incoming_calls tool for LSP call hierarchy support
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.
This pull request adds a new
incoming_callstool to the MCP server, which enables users to find all callers of a function or method throughout the codebase. It includes a robust implementation for Go, comprehensive integration tests, and updates to documentation and snapshots to support this new functionality.New Tool Implementation:
incoming_callstool to the MCP server, allowing users to find all callers of a specified function or method. The tool is registered intools.goand exposes asymbolNameparameter for specifying the target symbol.internal/tools/incoming-calls.go, including symbol resolution, call hierarchy queries, grouping results by file, and context-aware output formatting.Testing and Snapshots:
integrationtests/tests/go/incoming_calls/incoming_calls_test.goto validate the tool’s behavior for various symbol types and scenarios (multiple callers, single caller, method callers, and no callers).Documentation:
README.mdto include the newincoming_callstool in the list of available MCP server tools, with a description of its purpose.Miscellaneous:
go.modin the integration test workspace by removing unused dependencies.