From 2d6cbe171a3417be62900b644eae12f0a3a0f666 Mon Sep 17 00:00:00 2001 From: Sun Yuhan Date: Wed, 6 Aug 2025 11:03:04 +0800 Subject: [PATCH] fix: Fixed the comments regarding `name` and `version` in the `McpServerProperties` and `McpServerProperties`, as well as the corresponding documentation. Signed-off-by: Sun Yuhan --- .../autoconfigure/properties/McpClientCommonProperties.java | 4 ---- .../ai/mcp/server/autoconfigure/McpServerProperties.java | 2 -- .../ROOT/pages/api/mcp/mcp-client-boot-starter-docs.adoc | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-common/src/main/java/org/springframework/ai/mcp/client/common/autoconfigure/properties/McpClientCommonProperties.java b/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-common/src/main/java/org/springframework/ai/mcp/client/common/autoconfigure/properties/McpClientCommonProperties.java index fcc534080aa..a7715dbaa95 100644 --- a/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-common/src/main/java/org/springframework/ai/mcp/client/common/autoconfigure/properties/McpClientCommonProperties.java +++ b/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-common/src/main/java/org/springframework/ai/mcp/client/common/autoconfigure/properties/McpClientCommonProperties.java @@ -42,15 +42,11 @@ public class McpClientCommonProperties { /** * The name of the MCP client instance. - *

- * This name is reported to clients and used for compatibility checks. */ private String name = "spring-ai-mcp-client"; /** * The version of the MCP client instance. - *

- * This version is reported to clients and used for compatibility checks. */ private String version = "1.0.0"; diff --git a/auto-configurations/mcp/spring-ai-autoconfigure-mcp-server/src/main/java/org/springframework/ai/mcp/server/autoconfigure/McpServerProperties.java b/auto-configurations/mcp/spring-ai-autoconfigure-mcp-server/src/main/java/org/springframework/ai/mcp/server/autoconfigure/McpServerProperties.java index 12f82c7297b..ebde2ecfff3 100644 --- a/auto-configurations/mcp/spring-ai-autoconfigure-mcp-server/src/main/java/org/springframework/ai/mcp/server/autoconfigure/McpServerProperties.java +++ b/auto-configurations/mcp/spring-ai-autoconfigure-mcp-server/src/main/java/org/springframework/ai/mcp/server/autoconfigure/McpServerProperties.java @@ -68,8 +68,6 @@ public class McpServerProperties { /** * The version of the MCP server instance. - *

- * This version is reported to clients and used for compatibility checks. */ private String version = "1.0.0"; diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-client-boot-starter-docs.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-client-boot-starter-docs.adoc index fd6974ad77c..4b731cbaa79 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-client-boot-starter-docs.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-client-boot-starter-docs.adoc @@ -57,7 +57,7 @@ The common properties are prefixed with `spring.ai.mcp.client`: |`true` |`name` -|Name of the MCP client instance (used for compatibility checks) +|Name of the MCP client instance |`spring-ai-mcp-client` |`version`