-
Notifications
You must be signed in to change notification settings - Fork 201
Open
Description
In the commented out code, we make a request for the MCP and it finishes we are calling:
await this.mcp.closeConnection(mcpConnection.id);
So the connection is closed and the second request for an MCP tool fails with this:
error: ToolExecutionError [AI_ToolExecutionError]: Error executing tool XIWj-FhT_browser_navigate: Not connected
What about calling it in the destroy() function on the agent? The agent will live in the durable object so I don't think we need to close the connection until the agent is destroyes. I will make a PR about it and we can discuss this in that, @threepointone !
Metadata
Metadata
Assignees
Labels
No labels