fast-agent
by evalstate·★ 3,779·综合分 56
一个功能全面的 MCP 框架,用于构建和评估具有工具调用支持的 AI 智能体。
概述
Fast-agent 是一个灵活的 Python 框架,专为与 LLM 交互和构建复杂智能体而设计。它提供全面的 MCP(模型上下文协议)支持,包括工具、资源和提示提取功能。该框架允许开发者创建、链接和评估智能体,支持多种模型提供商、交互式 shell 以及诸如 MAKER 等高级功能,可在多步骤任务中减少错误。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要一个全面的 MCP 首选框架来构建具有工作流编排的复杂智能体时,特别是当您需要多个模型提供商和高级诊断功能时,请选择 fast-agent。
什么时候不要选它
如果您需要纯 GUI 开发环境,或者您正在使用需要超出 OAuth 范围的广泛身份验证定制的系统,请避免使用 fast-agent。
此 server 暴露的工具
从 README 抽取出 6 个工具url_fetcherGiven a URL, provide a complete and comprehensive summary
social_mediaWrite a 280 character social media post for any given text
NY-Project-ManagerReturn NY time + timezone, plus a one-line project status
London-Project-ManagerReturn London time + timezone, plus a one-line news update
classifierReply with only: A, B, or C
reliable_classifierReliably classify input using sampling with k-voting error reduction
说明:Tools are inferred from example code snippets showing agent definitions with MCP server integration. No explicit MCP tools section is documented in the README.
可对比工具
安装
# 使用 uv 包管理器
uv tool install fast-agent-mcp
# 启动交互式会话
fast-agent go -x
# 作为 MCP 服务器运行
fast-agent go --transport http --port 8001Claude Desktop 集成,添加到 claude_desktop_config.json:
{
"mcpServers": {
"fast-agent": {
"command": "uv",
"args": ["run", "fast-agent", "go", "--transport", "stdio"],
"env": {}
}
}
}FAQ
- fast-agent 中的 MCP 和 ACP 有什么区别?
- MCP(模型上下文协议)是用于连接服务器的协议,而 ACP(智能体上下文协议)是 fast-agent 内部用于协调智能体的框架。Fast-agent 可以作为 MCP 服务器或 ACP 客户端运行。
- 如何连接到外部 MCP 服务器?
- 在交互式 shell 中使用 `/connect` 命令,例如 `/connect @modelcontextprotocol/server-everything` 或 `/connect https://huggingface.co/mcp`。支持 stdio 和 HTTP 传输方式。
Hacker News 讨论
开发者社区最近的相关讨论。
- 帖子 by evalstate · 2025-03-06
fast-agent 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。