issues when using an agent with a MCP server with create_supervisor #5193
jonathanbouchet
started this conversation in
Discussions
Replies: 1 comment
-
another_agent() function has to be called first to get the agent and then pass it in create_supervisor. Did you do that? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to create a supervisor agent (using
create_supervisor
library) where there are 2 agents (usingcreate_react_agent
) with some basic tools, and another agent having a MCP serveragents with tools
agent with mcp server
src/mcp_agent.py
main file
Then I make the supervisor with the following:
However I'm having the following issue:
I've been trying several ways to include the
another_agent
(using@asynccontextmanager
) but still got an issue when adding this specific agent to the supervisor.Any help would be appreciated.
Thanks in advance.
langchain 0.3.25
langchain-core 0.3.64
langchain-mcp-adapters 0.1.7
langchain-openai 0.3.21
langchain-text-splitters 0.3.8
langgraph 0.4.8
langgraph-api 0.2.63
langgraph-checkpoint 2.0.26
langgraph-cli 0.3.3
langgraph-prebuilt 0.2.2
langgraph-runtime-inmem 0.3.2
langgraph-sdk 0.1.70
langgraph-supervisor 0.0.27
langsmith 0.3.45
mcp 1.9.4
Python 3.12.10
Beta Was this translation helpful? Give feedback.
All reactions