feat: use new breakability endpoint#44
Merged
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Jira ticket: FAN-277
60dd0af to
4c592f8
Compare
ifeanyiecheruo
approved these changes
Jun 23, 2026
ifeanyiecheruo
left a comment
Contributor
There was a problem hiding this comment.
Changes look good
ShawkyZ
approved these changes
Jun 23, 2026
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.
Description
Jira ticket: FAN-277
Updates the
snyk_breakability_checkMCP tool to use the Breakability API2025-11-05contract instead of2024-10-15.The generated OpenAPI client is moved to
internal/apiclients/breakability/2025-11-05/, and the handler now callsCreateBreakabilityAssessmentswithallow_partial=true. The response shape changed from a single assessment object to an array of assessments (each keyed bypackage_upgrade), so a newSelectAssessmenthelper picks the entry matching the requested upgrade before building the tool response.Graceful-degradation behavior is preserved: API/network failures and empty or non-matching responses still return
"no additional breakability context available". Unit and handler tests are updated for the new request/response shape, includingallow_partialquery-param validation and upgrade-mismatch cases. Spec pull scripts andscripts/README.mdare updated to reference the new API version.Checklist
make generate)make lint-fix)