Skip to content

Comments

Fix client tool name mismatch for callees/callers#13

Merged
bsamuels453 merged 2 commits intomainfrom
fix/client-tool-name-mismatch
Feb 3, 2026
Merged

Fix client tool name mismatch for callees/callers#13
bsamuels453 merged 2 commits intomainfrom
fix/client-tool-name-mismatch

Conversation

@bsamuels453
Copy link
Contributor

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:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Code refactoring
  • Test improvements

Testing

Please describe the tests you ran to verify your changes:

  • All existing tests pass (uv run pytest)
  • Added new tests for new functionality
  • Tested manually with example Solidity projects
  • Verified backwards compatibility

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation (README, docstrings, etc.)
  • My changes generate no new warnings or linter errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Add any additional notes, context, or screenshots here.

bsamuels453 and others added 2 commits February 3, 2026 14:43
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>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@bsamuels453 bsamuels453 merged commit 196a420 into main Feb 3, 2026
16 checks passed
@bsamuels453 bsamuels453 deleted the fix/client-tool-name-mismatch branch February 3, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant