Skip to content

Commit 1c7b1ee

Browse files
committed
README: add instructions for turning off initialization
Signed-off-by: Daniel Garnier-Moiroux <[email protected]>
1 parent 65018cd commit 1c7b1ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,10 @@ This means that any MCP client that is configured through configuration properti
413413
as `spring.ai.mcp.client.streamable-http.connections.<SERVER-NAME>.url=...` will be initialized.
414414
In practice, there will be multiple calls issued to the MCP Server (`initialize` followed by `tools/list`).
415415
The server will require a token for these calls, and, without a user present, this is an issue in the general case.
416-
There are a few ways around this:
416+
417+
To avoid this, you first need to ensure that the clients are not initialized on startup.
418+
You can do so by setting the property `spring.ai.mcp.client.initialized=false`.
419+
Then, you need to ensure tools are not listed. There are a few ways to avoid this:
417420

418421
**Disable the @Tool auto-configuration**
419422

0 commit comments

Comments
 (0)