AutoGen — python v0.5.5
AutoGen releases Python v0.5.5, introducing the Workbench API including McpWorkbench, which enables tool collections to share state and sessions across MCP servers.
What's New Introduce `Workbench` A workbench is a collection of tools that share state and resource. For example, you can now use MCP server through `McpWorkbench` rather than using tool adapters. This makes it possible to use MCP servers that requires a shared session among the tools (e.g., login session). Here is an example of using `AssistantAgent` with GitHub MCP Server. ```python import asyncio import os from autogen_agentchat.agents import AssistantAgent from autogen_agentchat.ui import Console from autogen_ext.models.openai import OpenAIChatCompletionClient from autogen_ext.tools.mcp import McpWorkbench, StdioServerParams async def main() -> None: model_client = OpenAIChatCompletionClient(model="gpt-4.1-nano") server_params = StdioServerParams( command="docker", args=[ "run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server", ], env={ "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", } ) async with McpWorkbench(server_params) as mcp: agent = AssistantAgent( "github_assistant", model_client=model_client, workbench=mcp, reflect_on_tool_use=True, model_client_stream=True, ) await Console(agent.run_stream(task="Is there…
- github.comautogen python-v0.5.5primary