Fix client tool name mismatch for callees/callers#13
Merged
bsamuels453 merged 2 commits intomainfrom Feb 3, 2026
Merged
Conversation
The MCP client was calling "function_callees" and "function_callers" but the tools are registered as "get_function_callees" and "get_function_callers" in the tool registry. This mismatch caused validation warnings and would fail when using the client. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR fixes a critical bug where the MCP client was calling tools with incorrect names ("function_callees" and "function_callers") while the server registered them with "get_" prefixes ("get_function_callees" and "get_function_callers"). This mismatch would cause tool validation warnings and failures when using the client.
Changes:
- Updated tool name from "function_callees" to "get_function_callees" in mcp_client.py
- Updated tool name from "function_callers" to "get_function_callers" in mcp_client.py
- Bumped version from 2.3.1 to 2.3.2 (patch version for bug fix)
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| slither_mcp/client/mcp_client.py | Fixed tool names in _call_tool() invocations to match registered tool names in the tool registry |
| slither_mcp/init.py | Bumped package version to 2.3.2 |
| pyproject.toml | Bumped package version to 2.3.2 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
The MCP client was calling "function_callees" and "function_callers" but the tools are registered as "get_function_callees" and "get_function_callers" in the tool registry. This mismatch caused validation warnings and would fail when using the client.
Description
Please provide a clear and concise description of your changes.
Related Issues
Fixes #(issue number)
Relates to #(issue number)
Type of Change
Please delete options that are not relevant:
Testing
Please describe the tests you ran to verify your changes:
uv run pytest)Checklist
Additional Notes
Add any additional notes, context, or screenshots here.