harden tool build - #30
Merged
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5fcecb0. Configure here.
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.

Note
Medium Risk
Autogen tool construction changes affect any agent using MCP tools; the generated client includes breaking query/field renames (e.g. chat_connection_id) and slimmer list payloads that callers may depend on.
Overview
Release 2.4.1 bumps the SDK version and documents a security-focused change to
create_autogen_tools(): tool wrappers are built with explicitinspect.Signatureclosures instead of compiled source strings, and MCP-supplied tool/parameter names are validated (invalid tools are skipped with a warning).The bulk of the diff is a regenerated Magnetar client aligned with the API: new organization event delivery and delivery attempt resources (list/get, plus delivery retry), event destination ping and optional
retryon create/update, and richer filters (searchon callbacks/destinations,adapteron auth configs,has_accesson chat channels).Several models shift from
chat_integration_idtochat_connection_id(events and destination listeners), integrations gainenable_callback_tools, dashboard provider triggers listing can omitprovider_version_idand filteruser_managed_callbacks, callback-event list responses drop embeddeddetails(still on get), and chat channels gainhas_accessand optionalrecipientmetadata.Reviewed by Cursor Bugbot for commit a6fc895. Bugbot is set up for automated code reviews on this repo. Configure here.