rename files from Mpc to Mcp for consistency
Signed-off-by: jonghoon park <dev@jonghoonpark.com>
This commit is contained in:
@@ -95,22 +95,22 @@ import org.springframework.util.CollectionUtils;
|
||||
* </ul>
|
||||
* <p>
|
||||
* WebMvc transport support is provided separately by
|
||||
* {@link MpcWebMvcServerAutoConfiguration}.
|
||||
* {@link McpWebMvcServerAutoConfiguration}.
|
||||
*
|
||||
* @author Christian Tzolov
|
||||
* @since 1.0.0
|
||||
* @see McpServerProperties
|
||||
* @see MpcWebMvcServerAutoConfiguration
|
||||
* @see McpWebMvcServerAutoConfiguration
|
||||
* @see org.springframework.ai.mcp.ToolCallback
|
||||
*/
|
||||
@AutoConfiguration(after = { MpcWebMvcServerAutoConfiguration.class, MpcWebFluxServerAutoConfiguration.class })
|
||||
@AutoConfiguration(after = { McpWebMvcServerAutoConfiguration.class, McpWebFluxServerAutoConfiguration.class })
|
||||
@ConditionalOnClass({ McpSchema.class, McpSyncServer.class })
|
||||
@EnableConfigurationProperties(McpServerProperties.class)
|
||||
@ConditionalOnProperty(prefix = McpServerProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true",
|
||||
matchIfMissing = true)
|
||||
public class MpcServerAutoConfiguration {
|
||||
public class McpServerAutoConfiguration {
|
||||
|
||||
private static final LogAccessor logger = new LogAccessor(MpcServerAutoConfiguration.class);
|
||||
private static final LogAccessor logger = new LogAccessor(McpServerAutoConfiguration.class);
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
@@ -33,7 +33,7 @@ import org.springframework.util.Assert;
|
||||
*
|
||||
* @author Christian Tzolov
|
||||
* @since 1.0.0
|
||||
* @see org.springframework.ai.autoconfigure.mcp.server.MpcServerAutoConfiguration
|
||||
* @see org.springframework.ai.autoconfigure.mcp.server.McpServerAutoConfiguration
|
||||
*/
|
||||
@ConfigurationProperties(McpServerProperties.CONFIG_PREFIX)
|
||||
public class McpServerProperties {
|
||||
|
||||
@@ -68,7 +68,7 @@ import org.springframework.web.reactive.function.server.RouterFunction;
|
||||
@ConditionalOnMissingBean(ServerMcpTransport.class)
|
||||
@ConditionalOnProperty(prefix = McpServerProperties.CONFIG_PREFIX, name = "stdio", havingValue = "false",
|
||||
matchIfMissing = true)
|
||||
public class MpcWebFluxServerAutoConfiguration {
|
||||
public class McpWebFluxServerAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
@@ -64,7 +64,7 @@ import org.springframework.web.servlet.function.ServerResponse;
|
||||
@ConditionalOnMissingBean(ServerMcpTransport.class)
|
||||
@ConditionalOnProperty(prefix = McpServerProperties.CONFIG_PREFIX, name = "stdio", havingValue = "false",
|
||||
matchIfMissing = true)
|
||||
public class MpcWebMvcServerAutoConfiguration {
|
||||
public class McpWebMvcServerAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
@@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
org.springframework.ai.autoconfigure.mcp.server.MpcServerAutoConfiguration
|
||||
org.springframework.ai.autoconfigure.mcp.server.MpcWebMvcServerAutoConfiguration
|
||||
org.springframework.ai.autoconfigure.mcp.server.MpcWebFluxServerAutoConfiguration
|
||||
org.springframework.ai.autoconfigure.mcp.server.McpServerAutoConfiguration
|
||||
org.springframework.ai.autoconfigure.mcp.server.McpWebMvcServerAutoConfiguration
|
||||
org.springframework.ai.autoconfigure.mcp.server.McpWebFluxServerAutoConfiguration
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
public class McpServerAutoConfigurationIT {
|
||||
|
||||
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
|
||||
.withConfiguration(AutoConfigurations.of(MpcServerAutoConfiguration.class));
|
||||
.withConfiguration(AutoConfigurations.of(McpServerAutoConfiguration.class));
|
||||
|
||||
@Test
|
||||
void defaultConfiguration() {
|
||||
|
||||
@@ -170,9 +170,9 @@ spring:
|
||||
|
||||
The MCP server auto-configuration is provided through:
|
||||
|
||||
1. `MpcServerAutoConfiguration`: Core server configuration supporting both sync and async modes
|
||||
2. `MpcWebMvcServerAutoConfiguration`: WebMvc transport configuration (activated when WebMvc dependencies are present)
|
||||
3. `MpcWebFluxServerAutoConfiguration`: WebFlux transport configuration (activated when WebFlux dependencies are present)
|
||||
1. `McpServerAutoConfiguration`: Core server configuration supporting both sync and async modes
|
||||
2. `McpWebMvcServerAutoConfiguration`: WebMvc transport configuration (activated when WebMvc dependencies are present)
|
||||
3. `McpWebFluxServerAutoConfiguration`: WebFlux transport configuration (activated when WebFlux dependencies are present)
|
||||
|
||||
The auto-configuration will automatically set up the appropriate server type and transport based on your configuration and available dependencies.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user