MCP代理
一个灵活的多代理框架,用于构建具有MCP服务器连接的强大AI代理。
特性
- 连接到MCP服务器以访问工具和检索资源
- 通过强大的编排构建多代理工作流
- 用于创建自定义代理的简单直观的API
- 灵活的配置系统
- 支持不同的传输机制(stdio、SSE)
- 持久和临时连接管理
- 聚合多个工具服务器
安装
pip install agentis-mcp快速开始
import asyncio
from agentis_mcp import Agent, AgentContext
from agentis_mcp.config import load_config
async def main():
# Load the configuration from a YAML file
config = load_config("config.yaml")
# Create an agent context
context = AgentContext(config)
# Create an agent with the context
async with Agent(context) as agent:
# Run a task with the agent
result = await agent.run("What's the weather in San Francisco?")
print(result)
asyncio.run(main())文档
有关详细文档,请参阅 文档 目录。
许可证
APACHE 2.0

