[PR #4918] add MCP tools tutorial (fixes #4856) #4147

Closed
opened 2026-02-20 17:49:44 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/4918

State: closed
Merged: No


Summary

Adds a runnable example examples/mcp_tools_graph.py and a tutorial
docs/tutorials/mcp_tools_graph.md that show how to fetch MCP-sourced
tools once—at graph build time—and inject them into a ToolNode.

Closes langchain-ai/docs#477


What’s inside

  • examples/mcp_tools_graph.py
    Minimal script that builds a graph with statically embedded MCP tools and
    demonstrates a simple invocation.
  • docs/tutorials/mcp_tools_graph.md
    Step-by-step guide + CLI
    deployment commands.

Testing

# lint & tests
ruff check examples/mcp_tools_graph.py docs/tutorials/mcp_tools_graph.md
pytest -q

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/4918 **State:** closed **Merged:** No --- ## Summary Adds a runnable example **`examples/mcp_tools_graph.py`** and a tutorial **`docs/tutorials/mcp_tools_graph.md`** that show how to fetch MCP-sourced tools once—at graph build time—and inject them into a `ToolNode`. Closes langchain-ai/docs#477 --- ## What’s inside - `examples/mcp_tools_graph.py` *Minimal script* that builds a graph with statically embedded MCP tools and demonstrates a simple invocation. - `docs/tutorials/mcp_tools_graph.md` Step-by-step guide + CLI deployment commands. --- ## Testing ```bash # lint & tests ruff check examples/mcp_tools_graph.py docs/tutorials/mcp_tools_graph.md pytest -q
yindo added the pull-request label 2026-02-20 17:49:44 -05:00
yindo closed this issue 2026-02-20 17:49:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4147