Skip to content

Conversation

@cbbayburt
Copy link
Contributor

Whenever the server tries to make a nested tool call, it fails with the following error because of @mcp.tool wrapping:

TypeError: 'FunctionTool' object is not callable

This PR extracts the business logic to separate methods and uses these plain methods for nested calls to fix the problem.

How to reproduce:

Execute the tool: schedule_apply_pending_updates_to_system. It fails with the error when it tries to call the nested check_system_updates tool.

@cbbayburt cbbayburt requested a review from ycedres October 30, 2025 12:15
@ycedres ycedres mentioned this pull request Nov 11, 2025
@ycedres
Copy link
Contributor

ycedres commented Nov 19, 2025

Since I was improving the testing part I included this fix in #32
If that one is merged we can close this one in favour of the former.

@cbbayburt
Copy link
Contributor Author

Closing in favor of #32

@cbbayburt cbbayburt closed this Nov 26, 2025
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.

3 participants