Class McpServerProperties
java.lang.Object
org.springframework.ai.mcp.server.common.autoconfigure.properties.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 enumAPI types supported by the MCP server.static classstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getType()booleanbooleanisStdio()voidsetEnabled(boolean enabled) voidsetInstructions(String instructions) voidvoidsetProtocol(McpServerProperties.ServerProtocol serverMode) voidsetRequestTimeout(Duration requestTimeout) voidsetStdio(boolean stdio) voidsetType(McpServerProperties.ApiType serverType) voidsetVersion(String version)
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
-
Constructor Details
-
McpServerProperties
public McpServerProperties()
-
-
Method Details
-
getRequestTimeout
-
setRequestTimeout
-
getCapabilities
-
isStdio
public boolean isStdio() -
setStdio
public void setStdio(boolean stdio) -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getName
-
setName
-
getVersion
-
setVersion
-
getInstructions
-
setInstructions
-
getType
-
setType
-
getToolResponseMimeType
-
getProtocol
-
setProtocol
-