Building an Agentic AI Assistant with LangGraph and MCP
说明与用途
使用LangGraph和MCP构建的代理式助手,能够协调工具调用,支持多轮对话,并执行沙箱文件访问。
问题
Create an AI assistant that can perform multi-step tasks by selecting and executing tools, rather than just generating text responses.
结果
The assistant can perform multi-step tasks, maintain conversation context, and safely execute file operations within a sandbox, demonstrating the benefits of combining LangGraph, MCP, and tool orchestration.
工作流
- Interpret user request
- Select appropriate tool via MCP discovery
- Execute tool call (web-search or filesystem)
- Receive and process tool output
- Decide if further actions are needed
- Return final response to user
证据
The assistant supports multi-turn conversations and can use a sandboxed filesystem tool and a web-search tool.
The Model Context Protocol (MCP) defines a standard way for applications to communicate with tool-providing servers and discover available capabilities.
My filesystem tool restricts access to a designated sandbox directory and resolves requested paths against that directory.
- 记录日期: 2026-11-02T04:28:49.377Z