Back to Discover

alibabacloud-agent-toolkit

connector

aliyun

Official Alibaba Cloud MCP servers, skills, and plugins to help AI agents build on Alibaba Cloud

View on GitHub
12 starsApache-2.0Synced Aug 2, 2026

Install to Claude Code

/plugin marketplace add aliyun/alibabacloud-agent-toolkit

README

Alibaba Cloud Agent Toolkit

License Build Status

Help AI coding agents build, deploy, and operate applications on Alibaba Cloud.

This repository provides Alibaba Cloud agent plugins, skills, MCP configuration, and validation tooling.

Current Status

The repository currently provides:

  • A top-level project scaffold for marketplace manifests, validation, CI, rules, and shared skills.
  • Two active plugins: alibabacloud-core and alibabacloud-spec-ops.
  • Placeholder plugin directories for future agent and data analytics plugins.

alibabacloud-core includes an SDK usage skill that generates Alibaba Cloud OpenAPI interaction code through a constrained MCP server. alibabacloud-spec-ops delivers a planning-to-execution workflow for Alibaba Cloud infrastructure operations driven by Terraform and IaC Service.

Repository Layout

.
├── plugins/
│   ├── alibabacloud-core/
│   ├── alibabacloud-spec-ops/
│   ├── alibabacloud-agent/
│   └── alibabacloud-data-analytics/
├── rules/
├── skills/
└── tools/

Hook Implementation Convention

alibabacloud-core is the canonical source of truth for the hook implementation. Hooks live at plugins/alibabacloud-core/hooks/ as a real directory (no symlinks). When a new plugin (e.g. alibabacloud-agent) needs telemetry/tracing, copy the entire plugins/alibabacloud-core/hooks/ verbatim into the new plugin. Do not maintain parallel implementations. CI (tools/dev-hooks/verify-hooks.sh) fails on any divergence or on the re-introduction of a hooks/ symlink.

Plugins

PluginStatusDescription
alibabacloud-coreActiveAlibaba Cloud OpenAPI SDK code generation using the local alibabacloud-core MCP server.
alibabacloud-spec-opsActiveSpec-driven Alibaba Cloud infrastructure ops workflow: planning → Terraform codegen → validation → execution via IaC Service.
alibabacloud-agentPlaceholderReserved for future agent-focused capabilities.
alibabacloud-data-analyticsPlaceholderReserved for future analytics and data workflow capabilities.

Prerequisites

Python 3.10+ — hook handlers (pre-installed on most systems).

uv (provides uvx) — telemetry tracing view & mcp server:

# macOS
brew install uv
# Linux / WSL
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env

Alibaba Cloud CLI (aliyun) — cloud operations:

# Linux amd64
curl -fsSL https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz | tar xz

# macOS
brew install aliyun-cli

Install Plugins

One-command install (recommended)

npx openplugin aliyun/alibabacloud-agent-toolkit

Automatically detects installed clients (Claude Code, Codex, QoderWork), lets you pick which plugins to install, and configures everything.

Manual install

Codex

codex plugin marketplace add aliyun/alibabacloud-agent-toolkit

Then open Codex /plugins and install alibabacloud-core and/or alibabacloud-spec-ops.

Claude Code

/plugin marketplace add aliyun/alibabacloud-agent-toolkit
/plugin install alibabacloud-core@alibabacloud-agent-toolkit
/plugin install alibabacloud-spec-ops@alibabacloud-agent-toolkit
/reload-plugins

QoderWork

Use the one-command install above (npx openplugin), which handles QoderWork hook registration automatically.

The installer patches ~/.qoderwork/settings.json with the same 4-event hook set Codex uses (PreToolUse, PostToolUse, UserPromptSubmit, Stop) and is idempotent — re-runs only refresh this plugin's entries.

Use Spec-Ops: Spec-Driven Workflow

Want an expert-guided, spec-driven flow that takes "I need a web app on aliyun" all the way to live infrastructure? One command:

/alibabacloud-spec-ops:alibabacloud-planning  I need a web app on aliyun

4 stages, auto-chained, one user gate (right before deploy):

  1. planning — expert dialog across Security / Cost / Efficiency / Stability; turns vague needs into a precise design.md + architecture diagram
  2. code — Terraform HCL generated against live alicloud_* schemas (IaCService-verified)
  3. validate — spec + code-quality reviewers run in parallel → "deploy?"
  4. executeterraform plan + apply run remotely via IaC Service; remote state persisted

Day-2 ready. 再说一句"升配 RDS / 加 Redis / 缩容",原 design.md 自动加载,在已有 state_id 上做增量 plan/apply,不重建已有资源。所有产物保存在 .aliyun-ai-ops-spec/{name}/,跨会话可审、可迭代。

Data Collection

English | 中文

English

Data Collection

During operation, this toolkit may collect necessary information related to your usage and send it to Alibaba Cloud. Alibaba Cloud will use this information only to provide, maintain, and continuously improve related services.

By default, we only collect basic operational information related to Alibaba Cloud plugin activity, as described in What is collected by default. You may turn off this data collection at any time by following the instructions below. In addition to the default collection, the toolkit may collect necessary supplementary information for troubleshooting or similar needs only after obtaining your authorization, as described in Additional opt-in fields.

In addition, some features in this toolkit may enable you and Alibaba Cloud to collect data from users of your applications. If you use these features, you must comply with applicable laws, including providing appropriate notice to users of your applications and obtaining any required consent. Your use of this toolkit constitutes your consent to these practices.

What is collected by default

All fields below describe Alibaba Cloud plugin behavior only.

FieldDescription
startTimestamp / endTimestampAlibaba Cloud tool call start and end time (ISO 8601 UTC)
clientNameAgent client type (claude-code, codex, copilot-cli, qoderwork, vscode)
eventTypeAlibaba Cloud event category (skill_invocation, mcp_tool_use, cli_command_use, subagent_dispatch, reference_file_read, user_prompt_turn_start, llm_call)
sessionId / mcpSessionIdSession identifiers used for correlation; not linked to an Alibaba Cloud account by this toolkit
skillName / pluginName / skillTagAlibaba Cloud skill and plugin identity
mcpTool / toolNameAlibaba Cloud MCP tool name and raw tool entry point
eventTagFixed Alibaba Cloud event marker
statusAlibaba Cloud tool call outcome (success / failure)
toolRequestIdAlibaba Cloud OpenAPI RequestId for server-side log correlation
Additional opt-in fields

These fields contain sanitized Alibaba Cloud operational context and are collected only after explicit user authorization.

FieldDescription
cliCommandSanitized aliyun CLI command or Alibaba Cloud MCP tool input JSON; credentials stripped; capped at 2000-4000 chars
errorMessageAlibaba Cloud API error class/code only, such as NoPermission or Throttling; not free-text
inputUncachedTokensLLM uncached input tokens for turns involving Alibaba Cloud tools
inputCachedTokensLLM cached input tokens for turns involving Alibaba Cloud tools
inputCreationTokensLLM cache creation tokens for turns involving Alibaba Cloud tools
outputTokensLLM output tokens for turns involving Alibaba Cloud tools
reasoningTokensLLM reasoning tokens for turns involving Alibaba Cloud tools

Telemetry Configuration

Remote telemetry is enabled by default. To disable remote telemetry:

export ALIBABACLOUD_TELEMETRY=false

Local Audit Trace

The plugin provides a transparent local trace in JSONL format. Local traces are stored on your machine and are not uploaded by default. They are intended for self-audit, troubleshooting, and local visualization.

Local traces may include:

  • User prompts for turns that invoke Alibaba Cloud tools
  • Full tool inputs and responses, truncated at 64 KB
  • Skill invocations, timing, and span hierarchy
  • Turn lifecycle events

Trace files are stored per session:

~/.cache/alibabacloud-agent-toolkit/telemetry/<client>/traces/<session-id>.jsonl

Light sanitization is applied even locally. Trace files older than 90 days are automatically cleaned up on each session stop to prevent unbounded disk growth.

To disable local trace recording:

export ALIBABACLOUD_TRACE=false

Local Telemetry Visualization

telemetry-view starts a local web server for browsing and analyzing trace data. It supports multi-client session browsing, span hierarchy tree, Gantt timeline, graph flow chart, and live updates.

Telemetry View

Start:

uvx alibabacloud.mcp-proxy@latest telemetry-view

It opens http://localhost:18321 in your browser automatically.

Options:

FlagDefaultDescription
--port18321Local server port
--no-open-Do not auto-open browser

Data sources scanned automatically:

  1. $ALIBABACLOUD_TELEMETRY_STATE_DIR, if set
  2. ~/.cache/alibabacloud-agent-toolkit/telemetry/
  3. /tmp/alibabacloud-agent-toolkit-telemetry-<uid>/

中文

数据采集

本工具包在运行过程中可能会收集与您使用情况相关的必要信息,并发送至阿里云。阿里云将仅用于提供、维护和持续改进相关服务。

默认情况下,我们仅采集与阿里云插件活动相关的基础运行信息(详见 默认采集内容),您可随时按照下方说明关闭此类数据采集。除默认采集信息外,如问题排查等需要,在获得您授权后,本工具包将额外采集必要的补充信息(详见 额外授权字段)。

此外,本工具包中的某些功能可能会使您和阿里云能够收集您应用程序用户的数据。如果您使用这些功能,则必须遵守适用法律,包括向您的应用程序用户提供适当通知并取得必要同意。您使用本工具包即表示您同意这些做法。

默认采集内容

以下字段仅描述阿里云插件行为。

字段说明
startTimestamp / endTimestamp阿里云工具调用的开始和结束时间(ISO 8601 UTC)
clientNameAgent 客户端类型(claude-codecodexcopilot-cliqoderworkvscode
eventType阿里云事件类别(skill_invocationmcp_tool_usecli_command_usesubagent_dispatchreference_file_readuser_prompt_turn_startllm_call
sessionId / mcpSessionId用于关联的会话标识;本工具包不会将其关联到阿里云账号
skillName / pluginName / skillTag阿里云 skill 和插件标识
mcpTool / toolName阿里云 MCP 工具名称和原始工具入口
eventTag固定的阿里云事件标记
status阿里云工具调用结果(success / failure
toolRequestId用于服务端日志关联的阿里云 OpenAPI RequestId
额外授权字段

以下字段包含清洗后的阿里云操作上下文,仅在您明确授权后采集。

字段说明
cliCommand清洗后的 aliyun CLI 命令或阿里云 MCP 工具输入 JSON;凭证会被移除;长度限制为 2000-4000 字符
errorMessage仅包含阿里云 API 错误类别或错误码,例如 NoPermissionThrottling;不包含自由文本
inputUncachedTokens涉及阿里云工具的回合中的 LLM 未缓存输入 token 数
inputCachedTokens涉及阿里云工具的回合中的 LLM 已缓存输入 token 数
inputCreationTokens涉及阿里云工具的回合中的 LLM 缓存创建 token 数
outputTokens涉及阿里云工具的回合中的 LLM 输出 token 数
reasoningTokens涉及阿里云工具的回合中的 LLM reasoning token 数

遥测配置

远程遥测默认开启。禁用远程遥测:

export ALIBABACLOUD_TELEMETRY=false

本地审计追踪

插件会以 JSONL 格式记录透明的本地 trace。本地 trace 存储在您的机器上,默认不会上传,用于自审计、问题排查和本地可视化。

本地 trace 可能包括:

  • 调用阿里云工具的回合中的用户 prompt
  • 完整工具输入和响应,最大截断到 64 KB
  • Skill 调用、耗时和 span 层级
  • 回合生命周期事件

trace 文件按 session 存储:

~/.cache/alibabacloud-agent-toolkit/telemetry/<client>/traces/<session-id>.jsonl

即使是本地 trace,也会做轻量清洗。超过 90 天的 trace 文件会在每次 session stop 时自动清理,避免磁盘无限增长。

禁用本地 trace:

export ALIBABACLOUD_TRACE=false

本地遥测可视化

telemetry-view 会启动本地 Web Server,用于浏览和分析 trace 数据。它支持多客户端 session 浏览、span 层级树、Gantt 时间线、图形链路视图和实时更新。

Telemetry View

启动:

uvx alibabacloud.mcp-proxy@latest telemetry-view

它会自动在浏览器中打开 http://localhost:18321

参数:

参数默认值说明
--port18321本地服务端口
--no-open-不自动打开浏览器

自动扫描的数据来源:

  1. $ALIBABACLOUD_TELEMETRY_STATE_DIR,如果已设置
  2. ~/.cache/alibabacloud-agent-toolkit/telemetry/
  3. /tmp/alibabacloud-agent-toolkit-telemetry-<uid>/

Skills

The top-level skills/ directory is initialized for future shared Alibaba Cloud skills. Category directories are present as placeholders only.

Rules

Recommended agent guidance lives in rules/. The initial rules file is Alibaba Cloud oriented and intentionally generic until the first concrete workflows are added.

Validation

This repository keeps the validation and CI skeleton from the reference toolkit structure.

mise run lint
mise run validate

License

This project is licensed under the Apache-2.0 License. See LICENSE for details.

Rendered live from aliyun/alibabacloud-agent-toolkit's GitHub README — not stored, always reflects the source repo.

2 Plugins

NameDescriptionCategorySource
alibabacloud-coreCore Alibaba Cloud plugin for OpenAPI SDK code generation through a constrained MCP server.cloud./plugins/alibabacloud-core
alibabacloud-spec-opsAlibaba Cloud AI Ops Plugin - Infrastructure operations workflow with intelligent planning, validation, and execution powered by MCP tooling.cloud./plugins/alibabacloud-spec-ops

0 Comments

Login required
Log in to post a comment or update on this repo.

No comments yet — be the first to share an update.