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
Merge branch 'main' into pr-807
Re-binbbd76e8f5b82
diff --cc nanobot/agent/tools/mcp.pyindex 4d5c05388,7d9033d6c..a02f42bcf--- a/nanobot/agent/tools/mcp.py+++ b/nanobot/agent/tools/mcp.py@@@ -59,23 -59,11 +59,23 @@@ async def connect_mcp_serversread, write = await stack.enter_async_context(stdio_client(params))elif cfg.url:from mcp.client.streamable_http import streamable_http_client- read, write, _ = await stack.enter_async_context(- streamable_http_client(cfg.url)- )+ import httpx+ if cfg.headers:+ http_client = await stack.enter_async_context(+ httpx.AsyncClient(+ headers=cfg.headers,+ follow_redirects=True+ )+ )+ read, write, _ = await stack.enter_async_context(+ streamable_http_client(cfg.url, http_client=http_client)+ )+ else:+ read, write, _ = await stack.enter_async_context(+ streamable_http_client(cfg.url)+ )else:- logger.warning(f"MCP server '{name}': no command or url configured, skipping")+ logger.warning("MCP server '{}': no command or url configured, skipping", name)continuesession = await stack.enter_async_context(ClientSession(read, write))