MCP streamable HTTP Transport Help #550
Pre-submission Checklist
Question Category
Your QuestionI’m trying to connect multiple servers with a local client, but I keep getting errors and can’t figure out why. Can someone help me out? |
Replies: 1 comment 1 reply
|
I reviewed your code. There is one critical bug and several secondary issues preventing multi-server connections from working. Here is the diagnosis with fixes. Critical bug:
|
I reviewed your code. There is one critical bug and several secondary issues preventing multi-server connections from working. Here is the diagnosis with fixes.
Critical bug:
self.sessionis overwritten on every server connectionIn
client.py,connect_to_serversiterates through server configs and callsconnect_to_streamable_http_serverfor each one. But every call overwritesself.session:Inside
connect_to_streamable_http_server:Only the last …