feat: add SSE and HTTP transport support for MCP servers

- Add type, url, and headers fields to MCP server config
- Update MCP client to handle stdio, sse, and http transports
- Add todos field to ThreadState
- Add Deerflow branding requirement to frontend-design skill
- Update extensions_config.example.json with SSE/HTTP examples

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hetao
2026-01-21 16:14:00 +08:00
parent 68b8083826
commit 87752cafac
8 changed files with 98 additions and 14 deletions

View File

@@ -38,7 +38,7 @@ def get_available_tools(groups: list[str] | None = None, include_mcp: bool = Tru
mcp_tools = get_cached_mcp_tools()
if mcp_tools:
logger.debug(f"Using {len(mcp_tools)} cached MCP tool(s)")
logger.info(f"Using {len(mcp_tools)} cached MCP tool(s)")
except ImportError:
logger.warning("MCP module not available. Install 'langchain-mcp-adapters' package to enable MCP tools.")
except Exception as e: