Skip to main content
Glama

AutoGen MCP サーバー

MicrosoftのAutoGenフレームワークとの統合を提供するMCPサーバー。標準化されたインターフェースを通じてマルチエージェント対話を実現します。このサーバーを使用すると、自然言語による対話を通じて連携し、問題を解決できるAIエージェントを作成・管理できます。

特徴

  • カスタマイズ可能な構成で AutoGen エージェントを作成および管理します

  • エージェント間の1対1の会話を実行する

  • 複数のエージェントによるグループチャットのオーケストレーション

  • 構成可能なLLM設定とコード実行環境

  • アシスタントとユーザープロキシエージェントの両方をサポート

  • 組み込みのエラー処理と応答検証

Related MCP server: Stellastra MCP Server

インストール

  1. リポジトリをクローンします。

git clone https://github.com/yourusername/autogen-mcp.git
cd autogen-mcp
  1. 依存関係をインストールします:

pip install -e .

構成

環境変数

  1. .env.exampleを.envにコピーします。

cp .env.example .env
  1. 環境変数を設定します。

# 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

サーバー構成

  1. config.json.exampleをconfig.jsonにコピーします。

cp config.json.example config.json
  1. サーバー設定を構成します。

{
  "llm_config": {
    "config_list": [
      {
        "model": "gpt-4",
        "api_key": "your-openai-api-key"
      }
    ],
    "temperature": 0
  },
  "code_execution_config": {
    "work_dir": "workspace",
    "use_docker": false
  }
}

利用可能な操作

サーバーは主に 3 つの操作をサポートしています。

1. エージェントの作成

{
  "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. 1対1のチャット

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

3. グループチャット

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

エラー処理

一般的なエラーのシナリオは次のとおりです。

  1. エージェント作成エラー

{
  "error": "Agent already exists"
}
  1. 実行エラー

{
  "error": "Agent not found"
}
  1. 構成エラー

{
  "error": "AUTOGEN_MCP_CONFIG environment variable not set"
}

建築

サーバーはモジュラー アーキテクチャに従います。

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

ライセンス

MITライセンス - 詳細はLICENSEファイルを参照

Available Tools

4 tools
create_agentCInspect

Create a new AutoGen agent

Inputs: name (required), type (required), llm_config, system_message.

create_streaming_workflowCInspect

Create a workflow with real-time streaming

Inputs: agents (required), workflow_name (required), workflow_type (required), streaming.

execute_workflowCInspect

Execute a workflow with streaming support

Inputs: input_data (required), workflow_name (required), streaming.

start_streaming_chatCInspect

Start a streaming chat session

Inputs: agent_name (required), message (required), streaming.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 4 tools

    Disambiguation4/5

    The tools have mostly distinct purposes, but there is some potential for confusion between 'create_streaming_workflow' and 'execute_workflow' as they both involve workflows, though one is for creation and the other for execution. The other tools ('create_agent' and 'start_streaming_chat') are clearly separate in function.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (e.g., create_agent, create_streaming_workflow, execute_workflow, start_streaming_chat). The naming is predictable and readable throughout the set.

    Tool Count3/5

    With only 4 tools, the set feels thin for an AutoGen MCP server, which might be expected to handle more complex agent and workflow operations. However, it covers basic creation and execution tasks, so it's borderline but not severely lacking.

    Completeness3/5

    The tools cover creation and execution of agents and workflows, but there are notable gaps such as updating or deleting agents/workflows, managing existing sessions, or handling non-streaming operations. This could lead to agent failures in more complex scenarios.

    Related MCP Connectors

    Related MCP Servers