java.lang.Object
org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerProperties

@ConfigurationProperties("spring.ai.mcp.server") public class McpServerProperties extends Object
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:
  • Field Details

  • Constructor Details

    • McpServerProperties

      public McpServerProperties()
  • Method Details

    • getRequestTimeout

      public Duration getRequestTimeout()
    • isExposeMcpClientTools

      public boolean isExposeMcpClientTools()
    • setExposeMcpClientTools

      public void setExposeMcpClientTools(boolean exposeMcpClientTools)
    • setRequestTimeout

      public void setRequestTimeout(Duration requestTimeout)
    • getCapabilities

      public McpServerProperties.Capabilities getCapabilities()
    • isStdio

      public boolean isStdio()
    • setStdio

      public void setStdio(boolean stdio)
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getInstructions

      public @Nullable String getInstructions()
    • setInstructions

      public void setInstructions(@Nullable String instructions)
    • getType

      public McpServerProperties.ApiType getType()
    • setType

      public void setType(McpServerProperties.ApiType serverType)
    • getToolResponseMimeType

      public Map<String,String> getToolResponseMimeType()
    • getProtocol

      public McpServerProperties.ServerProtocol getProtocol()
    • setProtocol

      public void setProtocol(McpServerProperties.ServerProtocol serverMode)