-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Description
What happened?
Issue: MCP Server Not Working with Autogen
Description:
I have been trying to use the MCP server with autogen. I have setup this project and also tried using the latest autogen release for using the tools in the Github server with autogen
But it seems that the server is not working correctly when attempting to use it with autogen only for write operations. It seems to work perfectly fine for the tools performing read operations like (list_issues, get_file_content), but throws an error for tools like (push_tool, create_repository, fork_repository).
Error
[FunctionExecutionResult(content='Error: unhandled errors in a TaskGroup (1 sub-exception)', call_id='call_m9AeqiLyBeaCtLdRH4X0OExg')]
---------- mcp_tools_agent ----------
Error: unhandled errors in a TaskGroup (1 sub-exception)
The error message I receive is frequent and repeats the same error each time. I have verified that the configuration is set correctly and my Github token has all the required permissions.
Configuration:
github_mcp_server = StdioServerParams(
command=npx_command,
args=[
"-y",
"@modelcontextprotocol/server-github",
"--token=***********",
"--debug"
],
)
I have also given the github token in the .env file as well
Which packages was the bug in?
Python AgentChat (autogen-agentchat>=0.4.0)
AutoGen library version.
Python dev (main branch)
Other library version.
No response
Model used
gpt-4o-mini
Model provider
OpenAI
Other model provider
No response
Python version
3.11
.NET version
None
Operating system
Ubuntu