Skip to content

Commit 5bc46dd

Browse files
authored
Fix the documentation and comments for the MCP Client section (#4011)
Fixed the comments regarding `name` and `version` in `McpServerProperties` and `McpServerProperties`, as well as the corresponding documentation. Fixes #4010 Auto-cherry-pick to 1.0.x Signed-off-by: Sun Yuhan <[email protected]> Co-authored-by: Sun Yuhan <[email protected]>
1 parent 1b5cd09 commit 5bc46dd

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-common/src/main/java/org/springframework/ai/mcp/client/common/autoconfigure/properties/McpClientCommonProperties.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,11 @@ public class McpClientCommonProperties {
4242

4343
/**
4444
* The name of the MCP client instance.
45-
* <p>
46-
* This name is reported to clients and used for compatibility checks.
4745
*/
4846
private String name = "spring-ai-mcp-client";
4947

5048
/**
5149
* The version of the MCP client instance.
52-
* <p>
53-
* This version is reported to clients and used for compatibility checks.
5450
*/
5551
private String version = "1.0.0";
5652

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public class McpServerProperties {
6868

6969
/**
7070
* The version of the MCP server instance.
71-
* <p>
72-
* This version is reported to clients and used for compatibility checks.
7371
*/
7472
private String version = "1.0.0";
7573

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-client-boot-starter-docs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The common properties are prefixed with `spring.ai.mcp.client`:
5757
|`true`
5858

5959
|`name`
60-
|Name of the MCP client instance (used for compatibility checks)
60+
|Name of the MCP client instance
6161
|`spring-ai-mcp-client`
6262

6363
|`version`

0 commit comments

Comments
 (0)