Skip to content
Closed
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
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ dependencies {
}

tasks {
withType<JavaCompile> {
options.compilerArgs.add("-Xlint:deprecation")
}

test {
useJUnitPlatform()
systemProperty("TELEMETRY_DISABLED", "true")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public BackendService(McpServerLaunchConfiguration mcpConfiguration) {

public CompletableFuture<AnalyzeFilesResponse> analyzeFilesAndTrack(UUID analysisId, List<URI> filesToAnalyze, Long startTime) {
return backendFuture.thenComposeAsync(server -> server.getAnalysisService().analyzeFilesAndTrack(
new AnalyzeFilesAndTrackParams(PROJECT_ID, analysisId, filesToAnalyze, Map.of(), false, startTime)));
new AnalyzeFilesAndTrackParams(PROJECT_ID, analysisId, filesToAnalyze, Map.of(), false)));
}

public void addFile(ClientFileDto clientFileDto) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ public void setSessionFactory(McpServerSession.Factory sessionFactory) {
@Override
public Mono<Void> notifyClients(String method, Object params) {
if (this.session == null) {
return Mono.error(new McpError("No session to close"));
return Mono.error(McpError.builder(McpSchema.ErrorCodes.INTERNAL_ERROR)
.message("No active session to notify clients")
.build());
}
return this.session.sendNotification(method, params)
.doOnError(e -> logger.error("Failed to send notification: {}", e.getMessage()));
Expand Down