AutoGen MCP Server

Integrations

  • Supports environment variable configuration through .env files for managing API keys and server settings

  • Provides optional Docker-based code execution environment for the agents when executing code as part of conversations

  • Supports installation via git clone from a repository

Servidor MCP de AutoGen

Un servidor MCP que se integra con el framework AutoGen de Microsoft, lo que permite conversaciones multiagente mediante una interfaz estandarizada. Este servidor permite crear y gestionar agentes de IA que pueden colaborar y resolver problemas mediante interacciones de lenguaje natural.

Características

  • Cree y administre agentes de AutoGen con configuraciones personalizables
  • Ejecutar conversaciones individuales entre agentes
  • Orqueste chats grupales con múltiples agentes
  • Configuraciones LLM configurables y entornos de ejecución de código
  • Soporte para agentes proxy tanto de asistente como de usuario
  • Manejo de errores integrado y validación de respuestas

Instalación

  1. Clonar el repositorio:
git clone https://github.com/yourusername/autogen-mcp.git cd autogen-mcp
  1. Instalar dependencias:
pip install -e .

Configuración

Variables de entorno

  1. Copiar .env.example a .env :
cp .env.example .env
  1. Configurar las variables de entorno:
# Path to the configuration file AUTOGEN_MCP_CONFIG=config.json # OpenAI API Key (optional, can also be set in config.json) OPENAI_API_KEY=your-openai-api-key

Configuración del servidor

  1. Copiar config.json.example a config.json :
cp config.json.example config.json
  1. Configurar los ajustes del servidor:
{ "llm_config": { "config_list": [ { "model": "gpt-4", "api_key": "your-openai-api-key" } ], "temperature": 0 }, "code_execution_config": { "work_dir": "workspace", "use_docker": false } }

Operaciones disponibles

El servidor admite tres operaciones principales:

1. Creación de agentes

{ "name": "create_agent", "arguments": { "name": "tech_lead", "type": "assistant", "system_message": "You are a technical lead with expertise in software architecture and design patterns." } }

2. Chat individual

{ "name": "execute_chat", "arguments": { "initiator": "agent1", "responder": "agent2", "message": "Let's discuss the system architecture." } }

3. Chat grupal

{ "name": "execute_group_chat", "arguments": { "agents": ["agent1", "agent2", "agent3"], "message": "Let's review the proposed solution." } }

Manejo de errores

Los escenarios de error más comunes incluyen:

  1. Errores de creación de agentes
{ "error": "Agent already exists" }
  1. Errores de ejecución
{ "error": "Agent not found" }
  1. Errores de configuración
{ "error": "AUTOGEN_MCP_CONFIG environment variable not set" }

Arquitectura

El servidor sigue una arquitectura modular:

src/ ├── autogen_mcp/ │ ├── __init__.py │ ├── agents.py # Agent management and configuration │ ├── config.py # Configuration handling and validation │ ├── server.py # MCP server implementation │ └── workflows.py # Conversation workflow management

Licencia

Licencia MIT: consulte el archivo de LICENCIA para obtener más detalles

-
security - not tested
A
license - permissive license
-
quality - not tested

Un servidor MCP que proporciona integración con el marco AutoGen de Microsoft, lo que permite conversaciones entre múltiples agentes a través de una interfaz estandarizada.

  1. Features
    1. Installation
      1. Configuration
        1. Environment Variables
        2. Server Configuration
      2. Available Operations
        1. 1. Creating Agents
        2. 2. One-on-One Chat
        3. 3. Group Chat
      3. Error Handling
        1. Architecture
          1. License
            ID: nhxmbq5500