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 enumServer types supported by the MCP server. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getType()booleanbooleanbooleanbooleanisStdio()booleanvoidsetEnabled(boolean enabled) voidvoidsetPromptChangeNotification(boolean promptChangeNotification) voidsetResourceChangeNotification(boolean resourceChangeNotification) voidsetSseMessageEndpoint(String sseMessageEndpoint) voidsetStdio(boolean stdio) voidsetToolChangeNotification(boolean toolChangeNotification) voidsetType(McpServerProperties.ServerType serverType) voidsetVersion(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
-
getToolResponseMimeType
-