cuga-agent MCP工具 是 AI Skill Hub 本期精选AI工具之一。综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
cuga-agent MCP工具 是一款基于 Python 开发的开源工具,专注于 MCP协议、企业智能体、代码生成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
cuga-agent MCP工具 是一款基于 Python 开发的开源工具,专注于 MCP协议、企业智能体、代码生成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一: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('安装成功')"
# 命令行使用
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"
<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>
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.
Configure tools and policies beside a draft chat, then publish a version for users.

Current UI, captured from this repository with illustrative Revenue Operations configuration data. Internal endpoints and version labels are examples.
| Set approval policies | Manage specialized agents |
|---|---|
|  |  |
| Choose which tools need approval and show the proposed code before execution. | Configure individual agents and supervisors for different business workflows. |
| Capability | What 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). |
| Deployment | Setup |
|---|---|
| **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.
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.
Share an enterprise use case, report an issue, or contribute an integration.
[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.
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>
| Workflow | What 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.
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 具备安全的运行时环境。
项目推荐使用 `uv sync` 进行依赖安装。若需启用混合模式(hybrid mode)以支持浏览器功能,请修改 `./src/cuga/settings.toml` 中的配置。对于需要浏览器交互的任务,请务必运行 `playwright install chromium` 来安装必要的浏览器 API 支持。您可以从通用 Agent 开始,根据业务领域快速定制并部署企业级应用。
通过 Quick Start 示例,您可以利用 LangChain 的 `@tool` 装饰器轻松定义自定义工具,并将其注入到 `CugaAgent` 中。Agent 会自动解析工具逻辑并进行决策。对于高级用户,可以通过配置 `.env` 文件或 TOML 文件来灵活切换不同的 LLM 提供商,并根据需求覆盖特定的模型参数。
CUGA 提供了高度灵活的配置系统。您可以通过 `mcp_servers.yaml` 管理 MCP 服务器,或通过 `settings.toml` 配置高级功能。系统支持通过环境变量覆盖配置文件中的设置,方便在不同环境下快速切换 LLM 配置。对于需要外部通信的场景,请务必正确配置 `function_call_host` 参数。
您可以将 CUGA 作为 Python SDK 集成到现有应用中。SDK 提供了极简的 API 设计,方便开发者创建并调用带有自定义工具的 Agent。在 `mode = 'api'` 模式下,任务将在常规 Web 浏览器中打开,这非常适合以 API 或工具为核心的工作流测试与验证。
常见问题排查:若遇到 "function_call_host not configured" 错误,请检查 `settings.toml` 中的 ngrok URL 是否配置正确;若工具执行失败,请确认 ngrok 服务是否正在运行且 URL 与配置一致;若出现连接超时,请检查防火墙是否允许 ngrok 的通信请求。
活跃度高���企业级智能体框架,MCP集成完整,安全机制健全。开源社区维护良好,生产级可用性强。
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
经综合评估,cuga-agent MCP工具 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | 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 |
收录时间:2026-05-17 · 更新时间:2026-05-19 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。