You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add support for MCP list changed notifications with enhanced validation
* Add support for tool, resource, and prompt list changed notifications
- New AsyncToolListChangedSpecification, AsyncResourceListChangedSpecification, AsyncPromptListChangedSpecification
- New SyncToolListChangedSpecification, SyncResourceListChangedSpecification, SyncPromptListChangedSpecification
- Wire list changed specifications in MCP client auto-configuration
* Enhance annotation customizers with validation and logging
- Prevent duplicate elicitation and sampling specs per client with proper error handling
- Add comprehensive logging for all registered MCP client specifications
- Track registered specifications per client using ConcurrentHashMap
* Add comprehensive unit test suite
- Complete test coverage for McpSyncAnnotationCustomizer
- Test duplicate validation, case-insensitive matching, and error scenarios
* Update documentation with breaking changes
- MCP client annotations now require mandatory clientId parameter
- Update all examples to include clientId in annotation usage
- Add configuration examples showing clientId mapping to connection names
Signed-off-by: Christian Tzolov <[email protected]>
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-common/src/main/java/org/springframework/ai/mcp/client/common/autoconfigure/McpClientAutoConfiguration.java
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-common/src/main/java/org/springframework/ai/mcp/client/common/autoconfigure/annotations/McpAsyncAnnotationCustomizer.java
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-common/src/main/java/org/springframework/ai/mcp/client/common/autoconfigure/annotations/McpSyncAnnotationCustomizer.java
0 commit comments