Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/mcp/profiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ func TestIsToolInProfile(t *testing.T) {
{"snyk_sbom_scan", false, true, true},
{"snyk_aibom", false, true, true},
{"snyk_package_health_check", false, true, true},
{"snyk_breakability_check", false, true, true},

// Tools in experimental only
{"snyk_secret_scan", false, false, true},
{"snyk_breakability_check", false, false, true},
}

// Load actual tools from JSON
Expand Down
2 changes: 1 addition & 1 deletion internal/mcp/snyk_tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@
"description": "Runs a breaking change assessment for a package version upgrade.",
"command": [],
"standardParams": [],
"profiles": ["experimental"],
"profiles": ["full","experimental"],
"ignoreTrust": true,
"annotations": {
"readOnlyHint": true,
Expand Down
8 changes: 4 additions & 4 deletions internal/mcp/tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2093,10 +2093,10 @@ func TestAddSnykToolsWithProfile(t *testing.T) {
"snyk_sbom_scan",
"snyk_aibom",
"snyk_package_health_check",
"snyk_breakability_check",
},
unexpectedTools: []string{
"snyk_secret_scan",
"snyk_breakability_check",
},
},
{
Expand Down Expand Up @@ -2203,7 +2203,7 @@ func TestToolProfileAssignmentsInJson(t *testing.T) {
require.True(t, IsToolInProfile(tool, ProfileExperimental),
"Tool %s should be in experimental profile", tool.Name)

case "snyk_container_scan", "snyk_iac_scan", "snyk_sbom_scan", "snyk_aibom", "snyk_package_health_check":
case "snyk_container_scan", "snyk_iac_scan", "snyk_sbom_scan", "snyk_aibom", "snyk_package_health_check", "snyk_breakability_check":
// These should be in full but not lite
require.False(t, IsToolInProfile(tool, ProfileLite),
"Tool %s should NOT be in lite profile", tool.Name)
Expand All @@ -2212,7 +2212,7 @@ func TestToolProfileAssignmentsInJson(t *testing.T) {
require.True(t, IsToolInProfile(tool, ProfileExperimental),
"Tool %s should be in experimental profile", tool.Name)

case "snyk_secret_scan", "snyk_breakability_check":
case "snyk_secret_scan":
// These should be experimental only
require.False(t, IsToolInProfile(tool, ProfileLite),
"Tool %s should NOT be in lite profile", tool.Name)
Expand Down Expand Up @@ -2505,7 +2505,7 @@ func TestSnykBreakabilityHandler_GracefulFailure(t *testing.T) {

respBody := map[string]interface{}{
"jsonapi": map[string]interface{}{"version": "1.0"},
"errors": []interface{}{map[string]interface{}{"status": "500", "detail": "boom"}},
"errors": []interface{}{map[string]interface{}{"status": "500", "detail": "boom"}},
}
apiURL := startBreakabilityMockServer(t, orgID, http.StatusInternalServerError, respBody, nil)
configureBreakabilityFixture(t, fixture, apiURL, orgID)
Expand Down
Loading