alibabacloud-mcp-core-script-generate

Featured

Generate Alibaba Cloud MCP Core RunScript-compatible Python scripts from natural-language cloud operation requests. Use when the user explicitly asks for RunScript scripts, MCP Core scripts, or sandbox-compatible cloud automation code. For standard SDK Python code with imports and credentials, use `alibabacloud-sdk-usage` instead.

AI & Automation 27 stars 13 forks Updated 5 days ago Apache-2.0

Install

View on GitHub

Quality Score: 89/100

Stars 20%
48
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Alibaba Cloud Script Generator Turn a natural-language Alibaba Cloud request into one RunScript-compatible Python script. The script must use `await call_cli(...)`, assign the final value to `result`, and pass `check_sandbox.py` validation before output. Do not execute the script unless the user asks. ## Scope Check Before You Start - **RunScript sandbox scripts** (this skill): generates `call_cli()`-based Python for the RunScript sandbox — no SDK imports, no credentials, no local execution. - **SDK project code** → `alibabacloud-sdk-usage`: generates typed/generic SDK code with imports, credential providers, and dependency management for user projects. - **Operational patterns** (batch ops, audits, rotations) → `alibabacloud-find-skills` first. ## Workflow 1. Split the request into atomic cloud operations. For each operation, you must call at least one of the following methods to discover API parameters before writing any code: **Method A — MCP tools** (preferred): call `AlibabaCloud___SearchApis` with a natural language description, then `AlibabaCloud___GetApiDefinition` with the confirmed product, action, and version. Batch search calls in one parallel round. **Method B — HTTP metadata** (when MCP tools return errors): The endpoint `https://next.api.aliyun.com/meta/v1/products/{product}/versions/{version}/api-docs.json` contains all API definitions for a product. If `WebFetch` cannot extract the target API (response too large), download...

Details

Author
aliyun
Repository
aliyun/alibabacloud-agent-toolkit
Created
3 months ago
Last Updated
5 days ago
Language
Python
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category