Bug description I am using the Playwright MCP tool, and this unexpected error occurs occasionally. I'm not sure if it's a bug in the underlying Spring AI or if the tool has timed out in response If the tool response times out, how should we correctly set the timeout period

Environment spring ai 1.0,0 org.springframework.ai spring-ai-starter-model-deepseek Prompt prompt = new Prompt(getMessageList(), this.chatOptions); ToolExecutionResult toolExecutionResult = toolCallingManager.executeToolCalls(prompt, toolCallChatResponse);

Steps to reproduce This abnormal error occurs sporadically and cannot be reproduced

Minimal Complete Reproducible example java.util.concurrent.TimeoutException: Did not observe any item or terminal signal within 20000ms in 'Mono.deferContextual ⇢ at io.modelcontextprotocol.spec.McpClientSession.sendRequest(McpClientSession.java:233)' (and no fallback has been configured)

Comment From: lishaohui1106

mcp server Integration method: spring: ai: mcp: client: stdio: servers-configuration: classpath:mcp-servers-config.json toolcallback: enabled: true

{ "mcpServers": { "playwright": { "command": "cmd.exe", "args": [ "/c", "mcp-server-playwright --ignore-https-errors" ] } } }

Comment From: LeoXu1996

same here