Class McpServerProperties

java.lang.Object
org.springframework.ai.autoconfigure.mcp.server.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

    • 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)
    • 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

      public String getSseMessageEndpoint()
    • setSseMessageEndpoint

      public void setSseMessageEndpoint(String sseMessageEndpoint)
    • getType

    • setType

      public void setType(McpServerProperties.ServerType serverType)