Skip to content

Commit 5443d12

Browse files
authored
Merge branch 'spring-projects:main' into main
2 parents d0bad89 + dcdfd7a commit 5443d12

File tree

60 files changed

+560
-350
lines changed

Some content is hidden

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

60 files changed

+560
-350
lines changed

auto-configurations/spring-ai-mcp-client/src/main/java/org/springframework/ai/autoconfigure/mcp/client/SseHttpClientTransportAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
*/
6464
@AutoConfiguration(after = SseWebFluxTransportAutoConfiguration.class)
6565
@ConditionalOnClass({ McpSchema.class, McpSyncClient.class })
66-
@ConditionalOnMissingClass("io.modelcontextprotocol.client.transport.public class WebFluxSseClientTransport")
66+
@ConditionalOnMissingClass("io.modelcontextprotocol.client.transport.WebFluxSseClientTransport")
6767
@EnableConfigurationProperties({ McpSseClientProperties.class, McpClientCommonProperties.class })
6868
@ConditionalOnProperty(prefix = McpClientCommonProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true",
6969
matchIfMissing = true)
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,22 +95,22 @@
9595
* </ul>
9696
* <p>
9797
* WebMvc transport support is provided separately by
98-
* {@link MpcWebMvcServerAutoConfiguration}.
98+
* {@link McpWebMvcServerAutoConfiguration}.
9999
*
100100
* @author Christian Tzolov
101101
* @since 1.0.0
102102
* @see McpServerProperties
103-
* @see MpcWebMvcServerAutoConfiguration
103+
* @see McpWebMvcServerAutoConfiguration
104104
* @see org.springframework.ai.mcp.ToolCallback
105105
*/
106-
@AutoConfiguration(after = { MpcWebMvcServerAutoConfiguration.class, MpcWebFluxServerAutoConfiguration.class })
106+
@AutoConfiguration(after = { McpWebMvcServerAutoConfiguration.class, McpWebFluxServerAutoConfiguration.class })
107107
@ConditionalOnClass({ McpSchema.class, McpSyncServer.class })
108108
@EnableConfigurationProperties(McpServerProperties.class)
109109
@ConditionalOnProperty(prefix = McpServerProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true",
110110
matchIfMissing = true)
111-
public class MpcServerAutoConfiguration {
111+
public class McpServerAutoConfiguration {
112112

113-
private static final LogAccessor logger = new LogAccessor(MpcServerAutoConfiguration.class);
113+
private static final LogAccessor logger = new LogAccessor(McpServerAutoConfiguration.class);
114114

115115
@Bean
116116
@ConditionalOnMissingBean

auto-configurations/spring-ai-mcp-server/src/main/java/org/springframework/ai/autoconfigure/mcp/server/McpServerProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*
3434
* @author Christian Tzolov
3535
* @since 1.0.0
36-
* @see org.springframework.ai.autoconfigure.mcp.server.MpcServerAutoConfiguration
36+
* @see org.springframework.ai.autoconfigure.mcp.server.McpServerAutoConfiguration
3737
*/
3838
@ConfigurationProperties(McpServerProperties.CONFIG_PREFIX)
3939
public class McpServerProperties {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
@ConditionalOnMissingBean(ServerMcpTransport.class)
6969
@ConditionalOnProperty(prefix = McpServerProperties.CONFIG_PREFIX, name = "stdio", havingValue = "false",
7070
matchIfMissing = true)
71-
public class MpcWebFluxServerAutoConfiguration {
71+
public class McpWebFluxServerAutoConfiguration {
7272

7373
@Bean
7474
@ConditionalOnMissingBean
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
@ConditionalOnMissingBean(ServerMcpTransport.class)
6565
@ConditionalOnProperty(prefix = McpServerProperties.CONFIG_PREFIX, name = "stdio", havingValue = "false",
6666
matchIfMissing = true)
67-
public class MpcWebMvcServerAutoConfiguration {
67+
public class McpWebMvcServerAutoConfiguration {
6868

6969
@Bean
7070
@ConditionalOnMissingBean

auto-configurations/spring-ai-mcp-server/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
#
1616

17-
org.springframework.ai.autoconfigure.mcp.server.MpcServerAutoConfiguration
18-
org.springframework.ai.autoconfigure.mcp.server.MpcWebMvcServerAutoConfiguration
19-
org.springframework.ai.autoconfigure.mcp.server.MpcWebFluxServerAutoConfiguration
17+
org.springframework.ai.autoconfigure.mcp.server.McpServerAutoConfiguration
18+
org.springframework.ai.autoconfigure.mcp.server.McpWebMvcServerAutoConfiguration
19+
org.springframework.ai.autoconfigure.mcp.server.McpWebFluxServerAutoConfiguration
2020

auto-configurations/spring-ai-mcp-server/src/test/java/org/springframework/ai/autoconfigure/mcp/server/McpServerAutoConfigurationIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
public class McpServerAutoConfigurationIT {
4747

4848
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
49-
.withConfiguration(AutoConfigurations.of(MpcServerAutoConfiguration.class));
49+
.withConfiguration(AutoConfigurations.of(McpServerAutoConfiguration.class));
5050

5151
@Test
5252
void defaultConfiguration() {
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2023-2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
18+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xmlns="http://maven.apache.org/POM/4.0.0"
20+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
21+
<modelVersion>4.0.0</modelVersion>
22+
<parent>
23+
<groupId>org.springframework.ai</groupId>
24+
<artifactId>spring-ai</artifactId>
25+
<version>1.0.0-SNAPSHOT</version>
26+
<relativePath>../../../pom.xml</relativePath>
27+
</parent>
28+
<artifactId>spring-ai-weaviate-store-spring-boot-autoconfigure</artifactId>
29+
<packaging>jar</packaging>
30+
<name>Spring AI Auto Configuration for Weaviate vector store</name>
31+
<description>Spring AI Auto Configuration for Weaviate vector store</description>
32+
<url>https://github.com/spring-projects/spring-ai</url>
33+
34+
<scm>
35+
<url>https://github.com/spring-projects/spring-ai</url>
36+
<connection>git://github.com/spring-projects/spring-ai.git</connection>
37+
<developerConnection>[email protected]:spring-projects/spring-ai.git</developerConnection>
38+
</scm>
39+
40+
<dependencies>
41+
<!-- production dependencies -->
42+
<dependency>
43+
<groupId>org.springframework.ai</groupId>
44+
<artifactId>spring-ai-weaviate-store</artifactId>
45+
<version>${project.parent.version}</version>
46+
<optional>true</optional>
47+
</dependency>
48+
<dependency>
49+
<groupId>org.springframework.boot</groupId>
50+
<artifactId>spring-boot-starter</artifactId>
51+
</dependency>
52+
<dependency>
53+
<groupId>org.springframework.boot</groupId>
54+
<artifactId>spring-boot-configuration-processor</artifactId>
55+
<optional>true</optional>
56+
</dependency>
57+
<!-- test dependencies -->
58+
<dependency>
59+
<groupId>org.springframework.ai</groupId>
60+
<artifactId>spring-ai-test</artifactId>
61+
<version>${project.parent.version}</version>
62+
<scope>test</scope>
63+
</dependency>
64+
<dependency>
65+
<groupId>org.springframework.boot</groupId>
66+
<artifactId>spring-boot-starter-test</artifactId>
67+
<scope>test</scope>
68+
</dependency>
69+
<dependency>
70+
<groupId>org.springframework.boot</groupId>
71+
<artifactId>spring-boot-testcontainers</artifactId>
72+
<scope>test</scope>
73+
</dependency>
74+
<dependency>
75+
<groupId>org.testcontainers</groupId>
76+
<artifactId>testcontainers</artifactId>
77+
<scope>test</scope>
78+
</dependency>
79+
<dependency>
80+
<groupId>org.testcontainers</groupId>
81+
<artifactId>junit-jupiter</artifactId>
82+
<scope>test</scope>
83+
</dependency>
84+
<dependency>
85+
<groupId>org.awaitility</groupId>
86+
<artifactId>awaitility</artifactId>
87+
<scope>test</scope>
88+
</dependency>
89+
<dependency>
90+
<groupId>org.testcontainers</groupId>
91+
<artifactId>weaviate</artifactId>
92+
<scope>test</scope>
93+
</dependency>
94+
<dependency>
95+
<groupId>org.springframework.ai</groupId>
96+
<artifactId>spring-ai-transformers</artifactId>
97+
<version>${project.parent.version}</version>
98+
<scope>test</scope>
99+
</dependency>
100+
</dependencies>
101+
</project>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2024 the original author or authors.
2+
* Copyright 2023-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2024 the original author or authors.
2+
* Copyright 2023-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)