Agent Builder Remote MCP Session ID

I am running into an issue with my MCP server, specifically when attaching it as a Tool to an Agent node within Agent Builder.

I can see that the Agent initializes a session with the server, makes a call to list the tools with it’s assigned mcp-session-id, and then calls the DELETE /mcp endpoint. This would remove the mcp-session-id from the transports list.

However, when it goes to try and call the tool that it has selected to use, it sends the same mcp-session-id that is just deleted, therefore receiving an error from the server.

This does not happen when accessing the MCP via ChatGPT with Developer Mode activated.

I’m just wondering if there is something that needs to be changed on my end, or if this is an issue with Agent Builder.

Thank you

I have the same problem. The agent builder can read and enumerate the MCP tools, and rarely it succeeds in calling tools. Mostly just errors out in the same way you describe.