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
Original file line number Diff line number Diff line change
Expand Up @@ -173,23 +173,23 @@ public McpSyncServer mcpSyncServer(ServerMcpTransport transport,
if (!CollectionUtils.isEmpty(toolRegistrations)) {
serverBuilder.tools(toolRegistrations);
capabilitiesBuilder.tools(serverProperties.isToolChangeNotification());
logger.info("Registered tools" + toolRegistrations.size() + " notification: "
logger.info("Registered tools: " + toolRegistrations.size() + ", notification: "
+ serverProperties.isToolChangeNotification());
}

List<SyncResourceRegistration> resourceRegistrations = resources.stream().flatMap(List::stream).toList();
if (!CollectionUtils.isEmpty(resourceRegistrations)) {
serverBuilder.resources(resourceRegistrations);
capabilitiesBuilder.resources(false, serverProperties.isResourceChangeNotification());
logger.info("Registered resources" + resourceRegistrations.size() + " notification: "
logger.info("Registered resources: " + resourceRegistrations.size() + ", notification: "
+ serverProperties.isResourceChangeNotification());
}

List<SyncPromptRegistration> promptRegistrations = prompts.stream().flatMap(List::stream).toList();
if (!CollectionUtils.isEmpty(promptRegistrations)) {
serverBuilder.prompts(promptRegistrations);
capabilitiesBuilder.prompts(serverProperties.isPromptChangeNotification());
logger.info("Registered prompts" + promptRegistrations.size() + " notification: "
logger.info("Registered prompts: " + promptRegistrations.size() + ", notification: "
+ serverProperties.isPromptChangeNotification());
}

Expand Down Expand Up @@ -251,23 +251,23 @@ public McpAsyncServer mcpAsyncServer(ServerMcpTransport transport,
if (!CollectionUtils.isEmpty(toolRegistrations)) {
serverBuilder.tools(toolRegistrations);
capabilitiesBuilder.tools(serverProperties.isToolChangeNotification());
logger.info("Registered tools" + toolRegistrations.size() + " notification: "
logger.info("Registered tools: " + toolRegistrations.size() + ", notification: "
+ serverProperties.isToolChangeNotification());
}

List<AsyncResourceRegistration> resourceRegistrations = resources.stream().flatMap(List::stream).toList();
if (!CollectionUtils.isEmpty(resourceRegistrations)) {
serverBuilder.resources(resourceRegistrations);
capabilitiesBuilder.resources(false, serverProperties.isResourceChangeNotification());
logger.info("Registered resources" + resourceRegistrations.size() + " notification: "
logger.info("Registered resources: " + resourceRegistrations.size() + ", notification: "
+ serverProperties.isResourceChangeNotification());
}

List<AsyncPromptRegistration> promptRegistrations = prompts.stream().flatMap(List::stream).toList();
if (!CollectionUtils.isEmpty(promptRegistrations)) {
serverBuilder.prompts(promptRegistrations);
capabilitiesBuilder.prompts(serverProperties.isPromptChangeNotification());
logger.info("Registered prompts" + promptRegistrations.size() + " notification: "
logger.info("Registered prompts: " + promptRegistrations.size() + ", notification: "
+ serverProperties.isPromptChangeNotification());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public enum ServerType {
}

/**
* (Optinal) response MIME type per tool name.
* (Optional) response MIME type per tool name.
*/
private Map<String, String> toolResponseMimeType = new HashMap<>();

Expand Down