You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/mcp/server/McpServerProperties.java
+7-14Lines changed: 7 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,7 @@
22
22
/**
23
23
* Configuration properties for the Model Context Protocol (MCP) server.
24
24
* <p>
25
-
* These properties control the behavior and configuration of the MCP server,
26
-
* including:
25
+
* These properties control the behavior and configuration of the MCP server, including:
27
26
* <ul>
28
27
* <li>Server identification (name and version)</li>
29
28
* <li>Transport type (STDIO, WEBMVC, or WEBFLUX)</li>
@@ -45,8 +44,7 @@ public class McpServerProperties {
45
44
/**
46
45
* Enable/disable the MCP server.
47
46
* <p>
48
-
* When set to false, the MCP server and all its components will not be
49
-
* initialized.
47
+
* When set to false, the MCP server and all its components will not be initialized.
50
48
*/
51
49
privatebooleanenabled = false;
52
50
@@ -65,19 +63,16 @@ public class McpServerProperties {
65
63
privateStringversion = "1.0.0";
66
64
67
65
/**
68
-
* Enable/disable notifications for resource changes. Only relevant for MCP
69
-
* servers
66
+
* Enable/disable notifications for resource changes. Only relevant for MCP servers
70
67
* with resource capabilities.
71
68
* <p>
72
-
* When enabled, the server will notify clients when resources are added,
73
-
* updated, or
69
+
* When enabled, the server will notify clients when resources are added, updated, or
74
70
* removed.
75
71
*/
76
72
privatebooleanresourceChangeNotification = true;
77
73
78
74
/**
79
-
* Enable/disable notifications for tool changes. Only relevant for MCP servers
80
-
* with
75
+
* Enable/disable notifications for tool changes. Only relevant for MCP servers with
81
76
* tool capabilities.
82
77
* <p>
83
78
* When enabled, the server will notify clients when tools are registered or
@@ -86,12 +81,10 @@ public class McpServerProperties {
86
81
privatebooleantoolChangeNotification = true;
87
82
88
83
/**
89
-
* Enable/disable notifications for prompt changes. Only relevant for MCP
90
-
* servers with
84
+
* Enable/disable notifications for prompt changes. Only relevant for MCP servers with
91
85
* prompt capabilities.
92
86
* <p>
93
-
* When enabled, the server will notify clients when prompt templates are
94
-
* modified.
87
+
* When enabled, the server will notify clients when prompt templates are modified.
0 commit comments