deerflow2/backend
hetaoBackend 1171598b2f feat: add MCP (Model Context Protocol) support
Add comprehensive MCP integration using langchain-mcp-adapters to enable
pluggable external tools from MCP servers.

Features:
- MCP server configuration via mcp_config.json
- Automatic lazy initialization for seamless use in both FastAPI and LangGraph Studio
- Support for multiple MCP servers (filesystem, postgres, github, brave-search, etc.)
- Environment variable resolution in configuration
- Tool caching mechanism for optimal performance
- Complete documentation and setup guide

Implementation:
- Add src/mcp module with client, tools, and cache components
- Integrate MCP config loading in AppConfig
- Update tool system to include MCP tools automatically
- Add eager initialization in FastAPI lifespan handler
- Add lazy initialization fallback for LangGraph Studio

Dependencies:
- Add langchain-mcp-adapters>=0.1.0

Documentation:
- Add MCP_SETUP.md with comprehensive setup guide
- Update CLAUDE.md with MCP system architecture
- Update config.example.yaml with MCP configuration notes
- Update README.md with MCP setup instructions

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-19 18:58:13 +08:00
..
.vscode chore: specify project title 2026-01-14 09:57:52 +08:00
docs feat: implement summarization (#14) 2026-01-19 16:17:31 +08:00
src feat: add MCP (Model Context Protocol) support 2026-01-19 18:58:13 +08:00
tests feat: add AIO sandbox provider and auto title generation (#1) 2026-01-14 23:29:18 +08:00
.gitignore fix: stop tracking .claude/settings.local.json 2026-01-19 16:28:03 +08:00
.python-version chore: add Python and LangGraph stuff 2026-01-14 07:15:02 +08:00
AGENTS.md feat: add AIO sandbox provider and auto title generation (#1) 2026-01-14 23:29:18 +08:00
CLAUDE.md feat: add MCP (Model Context Protocol) support 2026-01-19 18:58:13 +08:00
Makefile fix: fix backend python execution (#10) 2026-01-18 12:41:48 +08:00
debug.py feat: add MCP (Model Context Protocol) support 2026-01-19 18:58:13 +08:00
langgraph.json feat: support function factory (#4) 2026-01-15 22:05:54 +08:00
pyproject.toml feat: add MCP (Model Context Protocol) support 2026-01-19 18:58:13 +08:00
ruff.toml chore: use ruff to lint and auto-format 2026-01-14 09:08:20 +08:00
uv.lock feat: add MCP (Model Context Protocol) support 2026-01-19 18:58:13 +08:00