README: use McpClientCustomizer in the client customizer snippets - #91
Open
shin1488 wants to merge 1 commit into
Open
README: use McpClientCustomizer in the client customizer snippets#91shin1488 wants to merge 1 commit into
shin1488 wants to merge 1 commit into
Conversation
Spring AI removed McpSyncClientCustomizer and McpAsyncClientCustomizer in 2.0.0-M3, replacing them with the parameterized McpClientCustomizer<B>. This project moved to M3 in d477aa3, which migrated the Java sources but not the documentation, and now targets 2.0.0 — so the @bean snippets in the README and in AuthenticationMcpTransportContextProvider's javadoc no longer compile against the version it ships with. The lambda is unchanged, so this is the type only. In the javadoc the angle brackets are written as HTML entities, as the surrounding pre block already does for the annotation. Signed-off-by: Yeongchan Shin <syc1488@naver.com>
shin1488
marked this pull request as ready for review
July 26, 2026 14:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
@Beansnippets in the README and inAuthenticationMcpTransportContextProvider's javadoc declare the bean asMcpSyncClientCustomizer. Spring AI removed that type in 2.0.0-M3, replacing the sync and async client customizers with the parameterizedMcpClientCustomizer<B>. This project moved to M3 in d477aa3, which migrated the Java sources but not the documentation, and now targets 2.0.0 — so the snippets no longer compile against the version it ships with.Configurations of this bean in the repository already use the current type — for example
samples/sample-mcp-client-webclient/.../McpConfiguration.java,samples/integration-tests/src/main/.../McpClientConfiguration.javaandmcp-client-security-spring-boot/.../McpOAuth2ClientConfigurations.java:The lambda is unchanged —
McpClientCustomizertakes the same(name, spec)arguments — so this is the type only. Four snippets in the README and the one in the javadoc are updated, along with the sentence namingMcpSyncClientCustomizerandMcpAsyncClientCustomizer, which now namesMcpClientCustomizerfor both. In the javadoc the angle brackets are written as HTML entities, as the surrounding<pre>block already does for the annotation.