Class McpHttpServerConfiguration
java.lang.Object
org.frankframework.mcp.runner.McpHttpServerConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties(McpHttpProperties.class)
public class McpHttpServerConfiguration
extends Object
Wires the optional streamable-HTTP transport as Spring-managed beans, so that Spring Boot owns the lifecycle of the
embedded servlet container instead of the runner starting and stopping Tomcat by hand. It is only registered when
mcp.transport=http (see McpServerApplication).
The tomcat bean is a TomcatServletWebServerFactory, so it can be retrieved through Spring, and the MCP
streamable-HTTP servlet is registered on it with a ServletRegistrationBean. Spring Boot starts the container
after the context is refreshed and stops it (and closes the MCP server) on shutdown. The mcp.http.* settings
are bound onto McpHttpProperties.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
McpHttpServerConfiguration
public McpHttpServerConfiguration()
-