-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
pipecat version
0.0.96
Python version
3.12
Operating System
macOS 26.3
Issue description
While integrating Pipecat with an MCP server using the SSE transport, we observed that a new SSE session is created for every tool call within the same agent session.
This appears to happen even when the MCP client context is reused.
Reproduction steps
..
Expected behavior
The MCP client should ideally:
- reuse the same SSE session across tool calls within the same Pipecat session
or - maintain a persistent MCP connection lifecycle tied to the agent session.
Actual behavior
For a single agent session:
- Tool call is triggered
- MCP client opens a new SSE connection
initializeJSON-RPC is sent- Tool executes
- Connection closes
On the next tool call:
- a new SSE connection is opened again
initializeruns again- a new session ID is created
This results in:
- repeated session initialization
- increased latency
- difficulty maintaining session state on the MCP server
Logs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels