Skip to content

Commit 3257d00

Browse files
ThomasVitalenamsoo2
authored andcommitted
Update docs about MCP tools enabled by default
Fixes spring-projectsgh-3086 Signed-off-by: Thomas Vitale <[email protected]> Signed-off-by: minsoo.nam <[email protected]>
1 parent 0f6bca4 commit 3257d00

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-client-boot-starter-docs.adoc

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ The auto-configuration supports multiple transport types:
319319

320320
=== Integration with Spring AI
321321

322-
The starter can configure tool callbacks that integrate with Spring AI's tool execution framework, allowing MCP tools to be used as part of AI interactions. This integration is opt-in and must be explicitly enabled with the `spring.ai.mcp.client.toolcallback.enabled=true` property.
322+
The starter can configure tool callbacks that integrate with Spring AI's tool execution framework, allowing MCP tools to be used as part of AI interactions. This integration is enabled by default and can be disabled by setting the `spring.ai.mcp.client.toolcallback.enabled=false` property.
323323

324324
== Usage Example
325325

@@ -368,7 +368,7 @@ private List<McpSyncClient> mcpSyncClients; // For sync client
368368
private List<McpAsyncClient> mcpAsyncClients; // For async client
369369
----
370370

371-
When tool callbacks are enabled, the registered MCP Tools with all MCP clients are provided as a ToolCallbackProvider instance:
371+
When tool callbacks are enabled (the default behavior), the registered MCP Tools with all MCP clients are provided as a `ToolCallbackProvider` instance:
372372

373373
[source,java]
374374
----
@@ -377,18 +377,6 @@ private SyncMcpToolCallbackProvider toolCallbackProvider;
377377
ToolCallback[] toolCallbacks = toolCallbackProvider.getToolCallbacks();
378378
----
379379

380-
Note that the tool callback functionality is disabled by default and must be explicitly enabled with:
381-
382-
[source,yaml]
383-
----
384-
spring:
385-
ai:
386-
mcp:
387-
client:
388-
toolcallback:
389-
enabled: true
390-
----
391-
392380
== Example Applications
393381

394382
- link:https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/web-search/brave-chatbot[Brave Web Search Chatbot] - A chatbot that uses the Model Context Protocol to interact with a web search server.

0 commit comments

Comments
 (0)