Skip to content

Commit 8765f93

Browse files
authored
Merge pull request modelcontextprotocol#313 from tzolov/java-mcp-cliet-quickstart-update
Update MCP java sdk client quickstart
2 parents 7a6203b + ad0493c commit 8765f93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/quickstart/client.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,11 +881,15 @@ spring:
881881
stdio:
882882
root-change-notification: true
883883
servers-configuration: classpath:/mcp-servers-config.json
884+
toolcallback:
885+
enabled: true
884886
anthropic:
885887
api-key: ${ANTHROPIC_API_KEY}
886888
```
887889
888890
This activates the `spring-ai-starter-mcp-client` to create one or more `McpClient`s based on the provided server configuration.
891+
The `spring.ai.mcp.client.toolcallback.enabled=true` property enables the tool callback mechanism, that automatically registers all MCP tool as spring ai tools.
892+
It is disabled by default.
889893

890894
3. MCP Server Configuration (`mcp-servers-config.json`):
891895
```json

0 commit comments

Comments
 (0)