能力标签
cuga-agent MCP工具
🛠
AI工具

cuga-agent MCP工具

基于 Python · 开源 AI 工具,GitHub 社区精选
英文名:cuga-agent
⭐ 734 Stars 🍴 131 Forks 💻 Python 📄 NOASSERTION 🏷 AI 8.2分
8.2AI 综合评分
MCP协议企业智能体代码生成计算机操作安全护栏
✦ AI Skill Hub 推荐

cuga-agent MCP工具 是 AI Skill Hub 本期精选AI工具之一。综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析

cuga-agent MCP工具 是一款基于 Python 的开源工具,在 GitHub 上收获 1k+ Star,是MCP协议、企业智能体、代码生成、计算机操作领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
cuga-agent MCP工具 依赖 Python 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 Python 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 cuga-agent MCP工具 的版本更新,及时通知重要功能变化。

📋 工具概览

cuga-agent MCP工具 是一款基于 Python 开发的开源工具,专注于 MCP协议、企业智能体、代码生成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 734
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
正常维护,社区驱动
开源协议
NOASSERTION
AI 综合评分
8.2 分
工具类型
AI工具
Forks
131

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

cuga-agent MCP工具 是一款基于 Python 开发的开源工具,专注于 MCP协议、企业智能体、代码生成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:pip 安装(推荐)
pip install cuga-agent

# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install cuga-agent

# 方式三:从源码安装(获取最新功能)
git clone https://github.com/cuga-project/cuga-agent
cd cuga-agent
pip install -e .

# 验证安装
python -c "import cuga_agent; print('安装成功')"
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
cuga-agent --help

# 基本用法
cuga-agent input_file -o output_file

# Python 代码中调用
import cuga_agent

# 示例
result = cuga_agent.process("input")
print(result)
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# cuga-agent 配置文件示例(config.yml)
app:
  name: "cuga-agent"
  debug: false
  log_level: "INFO"

# 运行时指定配置文件
cuga-agent --config config.yml

# 或通过环境变量配置
export CUGA_AGENT_API_KEY="your-key"
export CUGA_AGENT_OUTPUT_DIR="./output"
📑 README 深度解析 真实文档 完整度 52/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

<p align="center"> <picture> <source media="(max-width: 640px)" srcset="docs/images/readme/hero-mobile.svg"> <img src="docs/images/readme/hero.svg" alt="CUGA — Enterprise automation. Under your control. Sovereign deployment, execution policies, and efficient inference." width="100%"> </picture> </p>

Quick install

Use Python 3.12 and uv.

git clone https://github.com/cuga-project/cuga-agent.git
cd cuga-agent
uv sync --python 3.12
test -f .env || cp .env.example .env

<a id="llm-configuration---advanced-options"></a>

Set your provider, model, and credentials in .env. See model configuration for supported providers.

uv run cuga start manager --crm

Open /manage at the local URL printed by the CLI. Try the CRM tools, configure policies, and test a draft before publishing. More source and demo options.

See what you can build

Configure tools and policies beside a draft chat, then publish a version for users.

Current CUGA manager UI showing connected CRM and Workspace tools, three policies, draft chat, and Publish

Current UI, captured from this repository with illustrative Revenue Operations configuration data. Internal endpoints and version labels are examples.

Set approval policiesManage specialized agents
![Tool Approval configuration requiring human approval for CRM account updates](docs/images/readme/policies.jpg)![Agent dashboard with Revenue Operations, Knowledge Assistant, and Operations Supervisor examples](docs/images/readme/agents.jpg)
Choose which tools need approval and show the proposed code before execution.Configure individual agents and supervisors for different business workflows.

Build agents around your team's expertise

CapabilityWhat it enables
**Multi-agent coordination**Give specialists focused tools and instructions, then route work through [CugaSupervisor](https://docs.cuga.dev/docs/build/cuga-supervisor/).
**Knowledge with citations**Combine shared company documents with conversation uploads and inspect cited sources. [Knowledge walkthrough](docs/examples/knowledge_demo/README.md).
**Reusable agent skills**Package procedures in SKILL.md files and load the relevant instructions when a task needs them. [Skills guide](docs/readme/configuration-guide.md#agent-skills).
**Execution visibility**Inspect trajectories with cuga viz and enable per-run receipts for token usage, model calls, tool calls, and elapsed time. [Run receipts](docs/readme/configuration-guide.md#run-receipt).
**Access control**Configure OIDC sign-in and enable separate chat and management role checks. [Authentication setup](docs/readme/configuration-guide.md#authentication-and-access-control).

Deploy within your boundaries

DeploymentSetup
**Local or private cloud**Run the CLI or SDK against your chosen model endpoint and internal tools.
**Kubernetes**Use the [Helm chart and deployment scripts](deployment/README.md), your image registry, and Kubernetes secrets.
**Air-gapped environment**Build and transfer dependencies, images, and supporting model artifacts ahead of time. Use local inference, embeddings, tools, and observability endpoints. The [UBI image](Dockerfile.ubi) includes a [model preloader](src/scripts/preload_models.py).

Sovereignty covers the entire deployment: configure each model provider, connector, and optional service to stay inside your boundary. The air-gapped image preloads supporting models; deploy the reasoning model and its inference server separately.

Build with the Python SDK

Add your tools and invoke an agent from your application:

import asyncio

from cuga import CugaAgent
from langchain_core.tools import tool


@tool
def get_account_revenue(account_id: str) -> dict:
    """Return account revenue from a sample data source."""
    return {"account_id": account_id, "revenue": 250000}


async def main():
    agent = CugaAgent(tools=[get_account_revenue])
    result = await agent.invoke("What is the revenue for account acc_01?")
    print(result.answer)


asyncio.run(main())

Configure a model before running the example. Replace the sample tool with your own service integration.

CugaAgent SDK · CugaSupervisor · Tool integration examples

Build with us

Share an enterprise use case, report an issue, or contribute an integration.

Open an issue · Contributing · Contributors

settings.toml

[advanced_features] run_receipt = true

python result = await agent.invoke("Prepare an account revenue report") print(result.receipt) ```

Receipts report usage and timing. Calculate cost using your own provider rates or hosting costs. See run receipts, reasoning profiles, and tool shortlisting.

Use your own inference endpoint

Point the OpenAI-compatible configuration at your private inference service:

AGENT_SETTING_CONFIG=settings.openai.toml
OPENAI_BASE_URL=http://your-inference-service:8000/v1
OPENAI_API_KEY=your-endpoint-key
MODEL_NAME=your-served-model-name

Use the model identifier exposed by your server. Hosted providers and private endpoints share the same harness; model capability, task complexity, and your configuration determine accuracy and inference spending.

</details>

From a business request to a completed workflow

WorkflowWhat an agent can do with the right tools and policies
**Revenue operations**Match a contact list against CRM, join account data, calculate revenue percentiles, and draft a report. Gate account updates with Tool Approval.
**Knowledge assistance**Search company documents, answer with citations, and combine shared reference material with documents uploaded to a conversation.
**Cross-application operations**Use CugaSupervisor to coordinate specialized agents, each with its own tools and instructions, and prepare results for review.
**Browser and API automation**Combine structured API calls with browser interactions for workflows spanning services and web interfaces.
**Recurring operations**Schedule a weekday report or react to a new document through the events service, then deliver the result to a configured channel.

Start with the CRM demo, the knowledge walkthrough, or the multi-agent examples.

🇨🇳 中文文档镜像 AI 翻译 2026-05-25
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

cuga-agent 是一个高性能的通用型 Agent 框架,旨在通过多种工具集成模式处理复杂的 Web 和 API 任务。它支持通过 OpenAPI 规范集成 REST APIs,利用 MCP 协议实现自定义协议或复杂集成,并允许通过 LangChain 直接导入 Python 函数。系统通过结构化规划和智能变量管理,有效防止幻觉并应对复杂逻辑。

⚡ 功能介绍

本项目具备强大的 Agent 能力,结合了 planner-executor 和 code-act 等先进模式,确保在复杂任务中的稳定性。开发者可以通过简洁的 API(如 `CugaAgent.invoke`)快速调用,并支持实时流式输出(Streaming)以监控执行过程。此外,系统提供完善的状态隔离(State Isolation)机制,支持基于 `thread_id` 的多用户会话,并允许通过 LangGraph 访问底层图结构进行深度定制。

📋 环境依赖

在开始之前,请确保您的开发环境已安装 Python 3.12+ 以及 uv 包管理器。此外,由于项目依赖 E2B 沙盒环境进行代码执行,您需要前往 e2b.dev 注册并获取 E2B API key,并通过 E2B CLI 完成登录与模板设置,以确保 Agent 具备安全的运行时环境。

🛠 安装步骤(Docker/pip/源码)

项目推荐使用 `uv sync` 进行依赖安装。若需启用混合模式(hybrid mode)以支持浏览器功能,请修改 `./src/cuga/settings.toml` 中的配置。对于需要浏览器交互的任务,请务必运行 `playwright install chromium` 来安装必要的浏览器 API 支持。您可以从通用 Agent 开始,根据业务领域快速定制并部署企业级应用。

🚀 使用教程

通过 Quick Start 示例,您可以利用 LangChain 的 `@tool` 装饰器轻松定义自定义工具,并将其注入到 `CugaAgent` 中。Agent 会自动解析工具逻辑并进行决策。对于高级用户,可以通过配置 `.env` 文件或 TOML 文件来灵活切换不同的 LLM 提供商,并根据需求覆盖特定的模型参数。

⚙️ 配置说明(含 MCP / env)

CUGA 提供了高度灵活的配置系统。您可以通过 `mcp_servers.yaml` 管理 MCP 服务器,或通过 `settings.toml` 配置高级功能。系统支持通过环境变量覆盖配置文件中的设置,方便在不同环境下快速切换 LLM 配置。对于需要外部通信的场景,请务必正确配置 `function_call_host` 参数。

🔌 API 说明

您可以将 CUGA 作为 Python SDK 集成到现有应用中。SDK 提供了极简的 API 设计,方便开发者创建并调用带有自定义工具的 Agent。在 `mode = 'api'` 模式下,任务将在常规 Web 浏览器中打开,这非常适合以 API 或工具为核心的工作流测试与验证。

❓ FAQ 摘要

常见问题排查:若遇到 "function_call_host not configured" 错误,请检查 `settings.toml` 中的 ngrok URL 是否配置正确;若工具执行失败,请确认 ngrok 服务是否正在运行且 URL 与配置一致;若出现连接超时,请检查防火墙是否允许 ngrok 的通信请求。

🎯 aiskill88 AI 点评 A 级 2026-05-20

活跃度高���企业级智能体框架,MCP集成完整,安全机制健全。开源社区维护良好,生产级可用性强。

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • embedding 模型与查询模型不一致导致检索失效
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • Docker:cuga-agent 提供官方镜像,docker compose up 一键启动
  • CLI:直接 npm install -g / pip install,命令行调用
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
cuga-agent 中文教程cuga-agent 安装报错怎么办cuga-agent MCP 配置cuga-agent Docker 部署cuga-agent Agent 工作流cuga-agent 与同类工具对比cuga-agent 最佳实践cuga-agent 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • embedding 模型与查询模型不一致导致检索失效

👥 适合人群

AI 技术爱好者研究人员和学生开发者和工程师技术创业者

🎯 使用场景

  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发

⚖️ 优点与不足

✅ 优点
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • −安装和初始配置可能需要一定技术基础
  • −功能完整性通常不如成熟商业产品
  • −技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

支持计算机使用、代码生成、任务执行等多种MCP工具集成。
💡 AI Skill Hub 点评

经综合评估,cuga-agent MCP工具 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

📚 深入学习 cuga-agent MCP工具
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 cuga-agent
原始描述 开源MCP工具:CUGA is an open-source generalist agent harness for the enterprise, supporting c。⭐734 · Python
Topics MCP协议企业智能体代码生成计算机操作安全护栏
GitHub https://github.com/cuga-project/cuga-agent
License NOASSERTION
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/cuga-project/cuga-agent 🌐 官方网站  https://cuga.dev

收录时间:2026-05-17 · 更新时间:2026-05-19 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →