Skip to content

refactor: consolidate MCP server configuration properties into unifie…#4218

Open
Fottas wants to merge 4 commits intospring-projects:mainfrom
Fottas:mcp-server-properties-redesign
Open

refactor: consolidate MCP server configuration properties into unifie…#4218
Fottas wants to merge 4 commits intospring-projects:mainfrom
Fottas:mcp-server-properties-redesign

Conversation

@Fottas
Copy link
Contributor

@Fottas Fottas commented Aug 22, 2025

Replace 4 separate configuration classes with unified McpServerProperties:

  • Consolidate all MCP server config under spring.ai.mcp.server prefix
  • Add nested classes for protocol-specific settings (SSE, Streamable, Stateless)
  • Update configuration paths and test cases accordingly
  • Follow Spring Boot ServerProperties pattern

This eliminates configuration fragmentation and provides single entry point for users.

@Fottas
Copy link
Contributor Author

Fottas commented Aug 25, 2025

@tzolov Hi, I left some comments on #4211 about API issues in the recent fix.

PR #4218 addresses both the NPE with correct API usage and the "Duplicated prefix" warnings we discussed. Would you like me to rebase it?🤗

@Fottas Fottas force-pushed the mcp-server-properties-redesign branch 2 times, most recently from 9dcb35e to 624db56 Compare September 2, 2025 12:45
@markpollack markpollack modified the milestones: 1.1.0.M4, 1.1.0.RC1 Oct 22, 2025
@ilayaperumalg ilayaperumalg modified the milestones: 1.1.0.RC1, 2.0.0, 2.0.0.M1 Nov 5, 2025
@ilayaperumalg ilayaperumalg modified the milestones: 2.0.0.M1, 2.0.0.M2 Dec 11, 2025
@patpatpat123
Copy link

Thank you so much for doing this @Fottas ! Would it be possible to help resolve the conflicts?

Fottas and others added 3 commits January 22, 2026 21:39
…d structure

Replace 4 separate configuration classes with unified McpServerProperties:

- Consolidate all MCP server config under spring.ai.mcp.server prefix
- Add nested classes for protocol-specific settings (SSE, Streamable, Stateless)
- Update configuration paths and test cases accordingly
- Follow Spring Boot ServerProperties pattern

This eliminates configuration fragmentation and provides single entry point for users.

Signed-off-by: yinh <fottas@163.com>
…method

- Replace deprecated call() method with callHandler() in ToolUtilsTests and McpToolUtils
- Fix NullPointerException in sync/async tool specification tests
- Update MCP API usage to match current implementation

Resolves test failures in spring-ai-mcp module.

Signed-off-by: yinh <fottas@163.com>
Signed-off-by: yinh <fottas@163.com>
@Fottas
Copy link
Contributor Author

Fottas commented Jan 22, 2026

非常感谢你做这件事@Fottas能否协助解决这些冲突?

Sure.

@ilayaperumalg ilayaperumalg modified the milestones: 2.0.0.M2, 2.0.0.RC1 Jan 22, 2026
@Fottas Fottas force-pushed the mcp-server-properties-redesign branch from 624db56 to f172544 Compare January 23, 2026 06:40
@ilayaperumalg ilayaperumalg modified the milestones: 2.0.0-RC1, 2.0.0-M3 Feb 3, 2026
@tzolov tzolov removed this from the 2.0.0-M3 milestone Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants