isaacpires
08/27/2025, 11:39 AMAI Evy
08/27/2025, 11:39 AMAI Evy
08/27/2025, 11:40 AM{{token_name}} .
However, there's a documented issue where MCP tool calls become unstable after the first successful call [(1) ]() . The first tool call in a live conversation succeeds, but all subsequent tool calls within the same conversation fail with a "Server not initialized" error because the Retell agent fails to persist and resend the mcp-session-id header on subsequent requests .
This appears to be a bug in Retell's MCP client implementation where the agent drops the mcp-session-id header after the first successful tool call . The engineering team has been notified of this issue .
For now, the only workaround is to force a re-handshake (initialize → initialized) before retrying the tool call when you hit the "Server not initialized" error .
To properly set up response variable mapping for your token:
1. In your MCP tool configuration, set up response variables to extract the token value [(2) ]() [(3) ]()
2. Reference the token in subsequent tool calls using the dynamic variable syntax {{your_token_variable}}
If you're still experiencing token inconsistAI Evy
08/27/2025, 11:40 AMAI Evy
08/27/2025, 11:40 AMAI Evy
08/27/2025, 11:40 AM