Interface McpModernServerCustomizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface that can be implemented by beans wishing to customize the
auto-configured 2026-07-28 ("modern") MCP server before it is built. Use it to add
extension features, change the supported protocol versions, or replace the request
state codec.
- Since:
- 2.1.0
- Author:
- Christian Tzolov
-
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(io.modelcontextprotocol.modern.server.McpServer.Builder serverBuilder) Customize the modern server builder.
-
Method Details
-
customize
void customize(io.modelcontextprotocol.modern.server.McpServer.Builder serverBuilder) Customize the modern server builder.- Parameters:
serverBuilder- the builder of the modern server
-