docs(mcp): update workflow usage examples (#5525)

Update mcp.md

 "END" is missing
This commit is contained in:
renchao
2025-07-16 13:21:26 +00:00
committed by GitHub
parent a5eb6a75bf
commit b290e1ffdc
+1 -1
View File
@@ -58,7 +58,7 @@ The `langchain-mcp-adapters` package enables agents to use tools defined across
```python title="Workflow using MCP tools with ToolNode"
from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain.chat_models import init_chat_model
from langgraph.graph import StateGraph, MessagesState, START
from langgraph.graph import StateGraph, MessagesState, START, END
from langgraph.prebuilt import ToolNode
# Initialize the model