Class McpServerProperties
java.lang.Object
org.springframework.ai.autoconfigure.mcp.server.McpServerProperties
Configuration properties for the Model Context Protocol (MCP) server.
These properties control the behavior and configuration of the MCP server, including:
- Server identification (name and version)
- Change notification settings for tools, resources, and prompts
- Web transport endpoint configuration
All properties are prefixed with spring.ai.mcp.server
.
- Since:
- 1.0.0
- Author:
- Christian Tzolov
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Server types supported by the MCP server. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getType()
boolean
boolean
boolean
boolean
isStdio()
boolean
void
setEnabled
(boolean enabled) void
void
setPromptChangeNotification
(boolean promptChangeNotification) void
setResourceChangeNotification
(boolean resourceChangeNotification) void
setSseMessageEndpoint
(String sseMessageEndpoint) void
setStdio
(boolean stdio) void
setToolChangeNotification
(boolean toolChangeNotification) void
setType
(McpServerProperties.ServerType serverType) void
setVersion
(String version)
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
-
Constructor Details
-
McpServerProperties
public McpServerProperties()
-
-
Method Details
-
isStdio
public boolean isStdio() -
setStdio
public void setStdio(boolean stdio) -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getName
-
setName
-
getVersion
-
setVersion
-
isResourceChangeNotification
public boolean isResourceChangeNotification() -
setResourceChangeNotification
public void setResourceChangeNotification(boolean resourceChangeNotification) -
isToolChangeNotification
public boolean isToolChangeNotification() -
setToolChangeNotification
public void setToolChangeNotification(boolean toolChangeNotification) -
isPromptChangeNotification
public boolean isPromptChangeNotification() -
setPromptChangeNotification
public void setPromptChangeNotification(boolean promptChangeNotification) -
getSseMessageEndpoint
-
setSseMessageEndpoint
-
getType
-
setType
-