You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/contrast/labs/ai/mcp/contrast/AssessService.java
+27-26Lines changed: 27 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -70,8 +70,8 @@ public class AssessService {
70
70
privateStringorgID;
71
71
72
72
73
-
@Tool(name = "get_vulnerability", description = "takes a vulnerability ID ( vulnID ) and Application ID ( appID ) and returns details about the specific security vulnerability. If based on the stacktrace, the vulnerability looks like it is in code that is not in the codebase, the vulnerability may be in a 3rd party library, review the CVE data attached to that stackframe you believe the vulnerability exists in and if possible upgrade that library to the next non vulnerable version based on the remediation guidance.")
@Tool(name = "get_vulnerability_by_id", description = "takes a vulnerability ID ( vulnID ) and Application ID ( appID ) and returns details about the specific security vulnerability. If based on the stacktrace, the vulnerability looks like it is in code that is not in the codebase, the vulnerability may be in a 3rd party library, review the CVE data attached to that stackframe you believe the vulnerability exists in and if possible upgrade that library to the next non vulnerable version based on the remediation guidance.")
@Tool(name = "get_vulnerability_by_app_name", description = "Takes a vulnerability ID (vulnID) and application name (appName) and returns details about the specific security vulnerability. If based on the stacktrace, the vulnerability looks like it is in code that is not in the codebase, the vulnerability may be in a 3rd party library, review the CVE data attached to that stackframe you believe the vulnerability exists in and if possible upgrade that library to the next non vulnerable version based on the remediation guidance.")
logger.info("Retrieving vulnerability details for vulnID: {} in application: {}", vulnID, appName);
153
+
@Tool(name = "get_vulnerability", description = "Takes a vulnerability ID (vulnID) and application name (app_name) and returns details about the specific security vulnerability. If based on the stacktrace, the vulnerability looks like it is in code that is not in the codebase, the vulnerability may be in a 3rd party library, review the CVE data attached to that stackframe you believe the vulnerability exists in and if possible upgrade that library to the next non vulnerable version based on the remediation guidance.")
logger.error("Application with name {} not found", appName);
171
-
thrownewIllegalArgumentException("Application with name " + appName + " not found");
170
+
logger.error("Application with name {} not found", app_name);
171
+
thrownewIllegalArgumentException("Application with name " + app_name + " not found");
172
172
}
173
173
}
174
174
175
-
@Tool(name = "list_vulnerabilities", description = "Takes a Application ID ( appID ) and returns a list of vulnerabilities, please remember to include the vulnID in the response.")
@Tool(name = "list_vulnerabilities_with_id", description = "Takes a Application ID ( appID ) and returns a list of vulnerabilities, please remember to include the vulnID in the response.")
@Tool(name = "list_vulnerabilities_with_app_name", description = "Takes an application name ( appName ) and returns a list of vulnerabilities, please remember to include the vulnID in the response. ")
logger.info("Listing vulnerabilities for application: {}", appName);
197
+
198
+
@Tool(name = "list_vulnerabilities", description = "Takes an application name ( app_name ) and returns a list of vulnerabilities, please remember to include the vulnID in the response. ")
logger.error("Error listing vulnerabilities for application: {}", appName, e);
217
+
logger.error("Error listing vulnerabilities for application: {}", app_name, e);
217
218
thrownewIOException("Failed to list vulnerabilities: " + e.getMessage(), e);
218
219
}
219
220
} else {
220
-
logger.debug("Application with name {} not found, returning empty list", appName);
221
+
logger.debug("Application with name {} not found, returning empty list", app_name);
221
222
returnnewArrayList<>();
222
223
}
223
224
}
224
225
225
226
226
-
@Tool(name = "list_applications", description = "Takes an application name (appName) returns a list of active applications matching that name. Please remember to display the name, status and ID.")
logger.info("Listing active applications matching name: {}", appName);
227
+
@Tool(name = "list_applications", description = "Takes an application name (app_name) returns a list of active applications matching that name. Please remember to display the name, status and ID.")
Copy file name to clipboardExpand all lines: src/main/java/com/contrast/labs/ai/mcp/contrast/SCAService.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -67,17 +67,17 @@ public List<LibraryExtended> getApplicationLibrariesByID(String appID) throws IO
67
67
68
68
69
69
@Tool(name = "list_application_libraries", description = "takes a application name and returns the libraries used in the application, note if class usage count is 0 the library is unlikely to be used")
0 commit comments