Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(tools): add Accept header for MCP SSE connections (#2651)
04cb8682b017e25a
diff --git a/nanobot/agent/tools/mcp.py b/nanobot/agent/tools/mcp.pyindex c1c3e79a2..51533333e 100644--- a/nanobot/agent/tools/mcp.py+++ b/nanobot/agent/tools/mcp.py@@ -170,7 +170,11 @@ async def connect_mcp_servers(timeout: httpx.Timeout | None = None,auth: httpx.Auth | None = None,) -> httpx.AsyncClient:- merged_headers = {**(cfg.headers or {}), **(headers or {})}+ merged_headers = {+ "Accept": "application/json, text/event-stream",+ **(cfg.headers or {}),+ **(headers or {}),+ }return httpx.AsyncClient(headers=merged_headers or None,follow_redirects=True,