Cover image
Try Now
2025-01-22

使用模型上下文协议(MCP)的Autogen Studio技能回购

3 years

Works with Finder

14

Github Watches

50

Github Forks

298

Github Stars

AutoGen Studio MCP Tools

What is MCP?

Model Context Protocol (MCP) is like a USB for AI tools - it provides a standardized way for AI agents to discover and use different capabilities. Think of it as plugging in new abilities for your AI agents! With our flexible dictionary-based implementation, agents can easily discover and use tools without needing to know their implementation details.

Available MCP Servers

The MCP ecosystem is growing rapidly with many powerful servers available:

  • Brave Search - Web and local search capabilities
  • Filesystem - Complete file and directory operations
  • Playwright - Browser automation and web scraping
  • MongoDB - Direct database interactions
  • Sequential Thinking - Structured reasoning and planning
  • FLUX - Image generation and manipulation
  • Selenium - Web automation and testing
  • SQLite - Local database operations
  • Vector Store - Embedding and similarity search
  • And many more!

Check out the MCP Servers Repository for the latest list of available servers. The ecosystem is rapidly growing with new capabilities being added regularly!

Quick Start

  1. Install Requirements:
# Create and activate virtual environment
python -m venv .env
source .env/bin/activate  # On Windows: .env\Scripts\activate

# Install required packages
pip install mcp
  1. Configure MCP:
# Copy the example config
cp mcp_config.example.json mcp_config.json

# Edit mcp_config.json with your settings
{
  "mcpServers": {
    "brave-search": {
      "enabled": true,
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-brave-search"],
      "env": {
        "BRAVE_API_KEY": "your-api-key-here"
      }
    },
    "filesystem": {
      "enabled": true,
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/your/working/directory"
      ]
    }
  }
}
  1. Start AutoGen Studio:
autogenstudio ui --port 8080

Dynamic Tool Usage

Our implementation uses a flexible dictionary-based approach, making it easy to discover and use tools:

# 1. List Available Servers
servers = await mcp(tool='list_available_servers')

# 2. Discover Server Tools
tools = await mcp(
    server='brave-search',
    tool='tool_details'
)

# 3. Use Tools with Dictionary Arguments
# Web Search Example
result = await mcp(
    server='brave-search',
    tool='brave_web_search',
    arguments={
        'query': 'Latest AI developments',
        'count': 5
    }
)

# File Operations Example
result = await mcp(
    server='filesystem',
    tool='read_file',
    arguments={
        'path': '/path/to/your/file'
    }
)

Example Templates

We provide ready-to-use templates to help you get started:

  1. Gallery Examples (/gallerys):

    • Pre-configured tool setups
    • Example implementations
    • Best practices demonstrations
  2. Team Templates (/teams):

    • Complete agent workflows
    • Tool integration examples
    • Task-specific configurations

To use a template:

  1. Copy the desired template from /gallerys or /teams
  2. Customize the JSON configuration for your needs
  3. Load it in AutoGen Studio

Available Tools

1. Brave Search

  • Web search capabilities
  • Local business search
  • Configurable result limits
  • Fresh content filtering

2. File Operations

  • Read/Write files
  • Directory operations
  • File searches
  • Metadata operations

3. More Coming Soon

The MCP ecosystem is constantly growing. Add new servers to your config to expand capabilities!

Configuration Locations

The MCP client checks these locations for config files:

  1. Current directory: ./mcp_config.json
  2. User config: ~/.config/autogen/mcp_config.json
  3. Environment: $MCP_CONFIG_PATH

Development

Testing

Run the test suite:

pytest tests/test_mcp_client.py -v
pytest tests/test_mcp_json.py -v

Workspace

The /mcp_workspace directory is provided for testing but ignored by git. Your tests will create this automatically.

Requirements

  • Python 3.12+
  • Node.js and npx
  • MCP Python SDK
  • AutoGen Studio

License

MIT License - See LICENSE file for details

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • awslabs
  • AWS MCP服务器 - 将AWS最佳实践直接带入您的开发工作流程的专门MCP服务器

  • 1Panel-dev
  • 💬MAXKB是一种现成的AI聊天机器人,它集成了检索功能增强的生成(RAG)管道,支持强大的工作流程并提供高级的MCP工具使用功能。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • appcypher
  • 很棒的MCP服务器 - 模型上下文协议服务器的策划列表

    Reviews

    1 (1)
    Avatar
    user_1z9MMNPg
    2025-04-17

    I've been using Autogenstudio-Skills by madtank and it's simply awesome! The functionality and ease of use have significantly boosted my productivity. The repository on GitHub is well-documented and the support is top-notch. Highly recommend it for anyone looking to automate workflows effectively!