Skip to content

Commit 3e4d5de

Browse files
committed
Update copyright headers to 2025 and clean up code
- Add copyright headers to files missing them - Add blank lines after copyright headers for consistency - Remove unused imports in test files - Remove unnecessary keep-alive warning logs in WebFlux and WebMvc transport providers Signed-off-by: Christian Tzolov <[email protected]>
1 parent bf2c8c9 commit 3e4d5de

File tree

75 files changed

+188
-33
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+188
-33
lines changed

mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebClientStreamableHttpTransport.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright 2025-2025 the original author or authors.
3+
*/
4+
15
package io.modelcontextprotocol.client.transport;
26

37
import java.io.IOException;

mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebFluxSseClientTransport.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* Copyright 2024 - 2024 the original author or authors.
33
*/
4+
45
package io.modelcontextprotocol.client.transport;
56

67
import java.io.IOException;

mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/server/transport/WebFluxSseServerTransportProvider.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright 2025-2025 the original author or authors.
3+
*/
4+
15
package io.modelcontextprotocol.server.transport;
26

37
import java.io.IOException;

mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/server/transport/WebFluxStatelessServerTransport.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright 2025-2025 the original author or authors.
3+
*/
4+
15
package io.modelcontextprotocol.server.transport;
26

37
import com.fasterxml.jackson.databind.ObjectMapper;

mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/server/transport/WebFluxStreamableServerTransportProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright 2025-2025 the original author or authors.
3+
*/
4+
15
package io.modelcontextprotocol.server.transport;
26

37
import com.fasterxml.jackson.core.type.TypeReference;
@@ -89,10 +93,6 @@ private WebFluxStreamableServerTransportProvider(ObjectMapper objectMapper, Stri
8993

9094
this.keepAliveScheduler.start();
9195
}
92-
else {
93-
logger.warn("Keep-alive interval is not set or invalid. No keep-alive will be scheduled.");
94-
}
95-
9696
}
9797

9898
@Override

mcp-spring/mcp-spring-webflux/src/test/java/io/modelcontextprotocol/WebFluxSseIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* Copyright 2024 - 2024 the original author or authors.
33
*/
4+
45
package io.modelcontextprotocol;
56

67
import static net.javacrumbs.jsonunit.assertj.JsonAssertions.assertThatJson;

mcp-spring/mcp-spring-webflux/src/test/java/io/modelcontextprotocol/WebFluxStatelessIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* Copyright 2024 - 2024 the original author or authors.
33
*/
4+
45
package io.modelcontextprotocol;
56

67
import com.fasterxml.jackson.databind.ObjectMapper;

mcp-spring/mcp-spring-webflux/src/test/java/io/modelcontextprotocol/WebFluxStreamableIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* Copyright 2024 - 2024 the original author or authors.
33
*/
4+
45
package io.modelcontextprotocol;
56

67
import com.fasterxml.jackson.databind.ObjectMapper;

mcp-spring/mcp-spring-webflux/src/test/java/io/modelcontextprotocol/client/WebClientStreamableHttpAsyncClientResiliencyTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright 2025-2025 the original author or authors.
3+
*/
4+
15
package io.modelcontextprotocol.client;
26

37
import io.modelcontextprotocol.client.transport.WebClientStreamableHttpTransport;

mcp-spring/mcp-spring-webflux/src/test/java/io/modelcontextprotocol/client/WebClientStreamableHttpAsyncClientTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright 2025-2025 the original author or authors.
3+
*/
4+
15
package io.modelcontextprotocol.client;
26

37
import org.junit.jupiter.api.Timeout;

0 commit comments

Comments
 (0)