spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Fix: Prevent exceptions when disabling MCP Server

Open YunKuiLu opened this issue 6 months ago • 1 comments
trafficstars

  • Prevent projects depending on mcp-server-webmvc or mcp-server-webflux from exceptions when spring.ai.mcp.server.enabled is set to false.
  • Add unit tests to verify.

When the project depends on the spring-ai-starter-mcp-server-webmvc package but attempts to temporarily disable the MCP server (via spring.ai.mcp.server.enabled=false), the following exception is thrown: image

YunKuiLu avatar Apr 26 '25 08:04 YunKuiLu