Enable MCP tool callback by default

- Change the default value of `toolcallback.enabled` property to `true` in both configuration and documentation.
- Update `McpClientCommonProperties.Toolcallback` to default `enabled` to `true` and refactor from record to class.
- Adjust `@ConditionalOnProperty` in `McpToolCallbackAutoConfiguration` to `matchIfMissing = true` for tool callback.
- Update tests to reflect new default behavior: tool callback is now enabled by default when the property is missing.
- Update documentation to indicate the new default value for `toolcallback.enabled` is `true`.

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
This commit is contained in:
Christian Tzolov
2025-05-08 10:25:29 +02:00
committed by Mark Pollack
parent 9de13d1b2f
commit c0062dd3b5
5 changed files with 26 additions and 25 deletions

View File

@@ -87,7 +87,7 @@ The common properties are prefixed with `spring.ai.mcp.client`:
|`toolcallback.enabled`
|Enable/disable the MCP tool callback integration with Spring AI's tool execution framework
|`false`
|`true`
|===
=== Stdio Transport Properties