Interface McpServerCustomizer<B>
- Type Parameters:
B- the type of the builder to customize, e.g.McpServer.Builder
- All Known Subinterfaces:
McpAsyncServerCustomizer,McpStatelessAsyncServerCustomizer,McpStatelessSyncServerCustomizer,McpSyncServerCustomizer
- 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 an
auto-configured MCP server component, such as the server or its transport, before it is
built.
The type parameter selects which builder the customizer applies to. Use for example
McpServerCustomizer<io.modelcontextprotocol.modern.server.McpServer.Builder>
for the 2026-07-28 ("modern") server, or
McpServerCustomizer<WebMvcStreamableServerTransportProvider.Builder> for the
WebMVC Streamable HTTP transport. Customizers are applied in
order.
- Since:
- 2.1.0
- Author:
- Daniel Garnier-Moiroux
- See Also:
-
Method Summary
-
Method Details
-
customize
Customize the given builder.- Parameters:
builder- the builder to customize
-