mcp-huaweicloud-ecs-lifecycle

v0.1.0
mcp-huaweicloud-ecs-lifecycle Checked 2 days ago Published 15 days ago

MCP Server for Huawei Cloud ECS lifecycle operations (create/delete/update servers)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_images

Search available images to pick an image_ref for create_server. Scenario: the user says "open a Ubuntu test box" — call this with name="Ubuntu" (substring, case-insensitive), pick the best match's id, and pass it as image_ref. Filter by os_type ("Linux"/"Windows") when the user names an OS family without a specific image. Args: name: Case-insensitive substring matched against the image name. os_type: "Linux" or "Windows" (case-insensitive exact match). limit: Max images returned, clamped to 1-100 (default 20). Returns: {"total", "cou…

ParameterTypeDescription
limitinteger
name
os_type

list_flavors

Search available flavors (specs) to pick a flavor_ref for create_server. Scenario: the user says "the smallest flavor is fine" — call this with vcpus=1, ram_gb=1, pick the smallest id, and pass it as flavor_ref. Omit filters to browse everything, e.g. when the user asks "what specs are available?". Pass flavor_id to check whether one specific flavor (e.g. one seen on an existing server) is orderable in this project — the list can hide restricted flavors, so an empty browse result does not prove the flavor is gone. Args: vcpus: Exact vCPU count to m…

ParameterTypeDescription
flavor_id
limitinteger
ram_gb
vcpus

list_keypairs

List existing SSH key pairs to pick a key_name for create_server. Scenario: the user wants key-based login — call this first, confirm a key exists, and pass its name as key_name. If none exists, fall back to admin_pass and say so in the preview. Args: limit: Max keypairs returned, clamped to 1-100 (default 20). Returns: {"total", "count", "items": [{name, fingerprint, type}, ...]}.

ParameterTypeDescription
limitinteger

list_servers

List ECS servers in the region with optional filters. Scenario: get an overview of existing servers before running any lifecycle operation (create / update / delete), e.g. to pick target server ids. Args: name: Case-insensitive substring filter on server name. status: Exact server status filter (ACTIVE, SHUTOFF, ERROR, ...). limit: Max servers to return, clamped to 1-100 (default 20). Output is capped after filtering; use the returned "total" to know how many matched. Returns: {"total", "count", "items": [{id, name, sta…

ParameterTypeDescription
limitinteger
name
status

show_server

Show full details of one ECS server by id. Scenario: inspect a single server (image, security groups, key pair, AZ, timestamps) before updating or deleting it. Args: server_id: The ECS server id. Returns: Whitelisted server detail fields: id, name, status, description, flavor, image, addresses, security_groups, key_name, availability_zone, created, updated, tags.

ParameterTypeDescription
server_id *string

show_job

Show the status of an asynchronous ECS job (create/delete servers). Scenario: after create_server / create_on_demand_server / delete_servers return a job_id, poll this tool until status becomes SUCCESS or FAIL. Args: job_id: The async job id returned by a create or delete tool. Returns: {status: SUCCESS|RUNNING|FAIL|INIT, job_id, error_code, fail_reason, job_type, entities, begin_time, end_time}.

ParameterTypeDescription
job_id *string

create_server

Create prepaid (monthly/yearly billed) ECS servers. Scenario: order one or more bill-per-month/year servers from a flavor and image. The user only names what matters (e.g. "open a small Ubuntu box"); network and disk can be omitted — the server picks smart defaults and the preview shows exactly what was picked. With confirm=false the tool returns a preview of the order (no resources are created and nothing is charged). With confirm=true the servers are actually created and billing starts. Args: name: Server name (auto-suffixed when count > 1).…

ParameterTypeDescription
flavor_ref *string
image_ref *string
name *string
admin_pass
availability_zone
confirmboolean
countinteger
description
eip_bandwidth
is_auto_payboolean
is_auto_renameboolean
is_auto_renewboolean
key_name
period_numinteger
period_typestring
root_volume_size
root_volume_type
security_group_id
subnet_id
user_data
vpc_id

create_on_demand_server

Create on-demand (pay-per-use) ECS servers. Scenario: spin up servers billed per second while running, e.g. for short-lived workloads ("open a cheap test box for an hour"). Network and disk can be omitted — the server picks smart defaults and the preview shows exactly what was picked. With confirm=false the tool returns a preview of the request (no resources are created and nothing is charged). With confirm=true the servers are actually created and per-second billing starts immediately. Args: name: Server name (auto-suffixed when count > 1).…

ParameterTypeDescription
flavor_ref *string
image_ref *string
name *string
admin_pass
availability_zone
confirmboolean
countinteger
description
eip_bandwidth
is_auto_renameboolean
key_name
root_volume_size
root_volume_type
security_group_id
subnet_id
user_data
vpc_id

update_server

Update a server's name, description or hostname. Scenario: rename a server or change its description/hostname without touching anything else. At least one field to change must be provided. With confirm=false the tool returns a preview showing current vs new values (nothing is modified). With confirm=true the change is applied. Args: server_id: The ECS server id to update. name: New server name (1-64 chars). description: New description (0-85 chars). hostname: New hostname inside the OS. confirm: Must be true to actually modify; fal…

ParameterTypeDescription
server_id *string
confirmboolean
description
hostname
name

delete_servers

Delete one or more ECS servers permanently. Scenario: tear down servers that are no longer needed. This is irreversible — deleted servers cannot be recovered. With confirm=false the tool returns a preview listing the real servers (id/name/status/tags) about to be deleted, plus any ids that were not found (nothing is deleted). With confirm=true the servers are actually deleted. Args: server_ids: Ids of the servers to delete. delete_volume: Also DELETE attached data disks (default false = keep and detach them). delete_publicip: Also DELETE the…

ParameterTypeDescription
server_ids *array
confirmboolean
delete_publicipboolean
delete_volumeboolean