Skip to content

Commit 1fd3c59

Browse files
Remove unused import
1 parent 1e1560d commit 1fd3c59

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

model-context-protocol/mcp-annotations/mcp-annotations-client/src/main/java/org/springframework/ai/mcp/samples/client/McpClientHandlerProviders.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.springframework.ai.mcp.samples.client;
22

3-
import java.util.Map;
4-
53
import org.slf4j.Logger;
64
import org.slf4j.LoggerFactory;
75
import org.springaicommunity.mcp.annotation.McpElicitation;
@@ -32,7 +30,7 @@ public class McpClientHandlerProviders {
3230
* <li>{@code spring.ai.mcp.client.sse.connections.server1.url=...}</li>
3331
* <li>{@code spring.ai.mcp.client.streamable-http.connections.server1.url=...}</li>
3432
* </ul>
35-
*
33+
*
3634
* The handler is assigned only to the client with ID "server1".
3735
*
3836
* @param progressNotification the progress notification received from the server

model-context-protocol/mcp-annotations/mcp-annotations-server/src/main/java/org/springframework/ai/mcp/sample/server/providers/ToolProvider2.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/*
1+
/*
22
* Copyright 2025 - 2025 the original author or authors.
3-
*
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -21,9 +21,6 @@
2121
import org.springaicommunity.mcp.annotation.McpProgressToken;
2222
import org.springaicommunity.mcp.annotation.McpTool;
2323
import org.springaicommunity.mcp.annotation.McpToolParam;
24-
import org.springaicommunity.mcp.context.DefaultMcpSyncRequestContext;
25-
26-
import org.springframework.stereotype.Service;
2724

2825
import io.modelcontextprotocol.server.McpSyncServerExchange;
2926
import io.modelcontextprotocol.spec.McpSchema;
@@ -50,7 +47,7 @@ public String toolLggingSamplingElicitationProgress(McpSyncServerExchange exchan
5047
new ProgressNotification(progressToken, 0.0, 1.0, "tool call start"));
5148

5249
exchange.ping(); // call client ping
53-
50+
5451
// call elicitation
5552
var elicitationRequest = McpSchema.ElicitRequest.builder()
5653
.message("Test message")

model-context-protocol/weather/starter-webmvc-server/src/test/java/org/springframework/ai/mcp/sample/client/StreamableHttpClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@
2121
import io.modelcontextprotocol.client.transport.HttpClientStreamableHttpTransport;
2222
import io.modelcontextprotocol.spec.McpSchema.CallToolRequest;
2323
import io.modelcontextprotocol.spec.McpSchema.CallToolResult;
24-
import io.modelcontextprotocol.spec.McpSchema.ListToolsResult;
2524

2625
/**
2726
* @author Christian Tzolov
2827
*/
2928
public class StreamableHttpClient {
3029

3130
public static void main(String[] args) {
32-
31+
3332
HttpClientStreamableHttpTransport transport = HttpClientStreamableHttpTransport.builder("http://localhost:8080")
3433
.build();
3534

0 commit comments

Comments
 (0)