Skip to main content

An MCP Server for Alibaba Cloud ECS disk expansion precheck.

Project description

disk-expansion-precheck

An MCP Server for Alibaba Cloud ECS disk expansion precheck.

Features

  • Runs over stdio
  • Exposes one MCP tool: disk_expansion_precheck
  • Validates inputs before execution
  • Performs six precheck groups for Alibaba Cloud ECS disk expansion:
    • instance information
    • online expansion support
    • temporary storage risk
    • disk layout and filesystem usage
    • backup management
    • resource quota

Requirements

  • Python 3.12+
  • uv
  • Alibaba Cloud credentials available as environment variables:
    • ALIBABA_CLOUD_ACCESS_KEY_ID
    • ALIBABA_CLOUD_ACCESS_KEY_SECRET
    • ALIBABA_CLOUD_SECURITY_TOKEN when using STS credentials

Run From Source

uv sync
uv run disk-expansion-precheck

Run After Publishing

uvx disk-expansion-precheck

Tool

disk_expansion_precheck

This tool returns a structured JSON precheck report.

Required inputs:

  • cloud_provider
  • region
  • instance_id
  • disk_id
  • target_size_gb
  • os_type
  • disk_role

Common optional inputs:

  • dist_name
  • current_size_gb
  • filesystem_type
  • partition_scheme
  • lvm_in_use
  • service_criticality
  • change_window
  • provider_constraints
  • asset_information
  • topology_information
  • zone_id
  • instance_name
  • expected_backup_policy
  • quota_scope_hint
  • temporary_disk_hints

Output structure:

  • status
  • summary
  • checks
  • risk_summary
  • recommended_next_steps
  • error

Inspector

Local source run:

npx @modelcontextprotocol/inspector uv run disk-expansion-precheck

Cherry Studio Config

Published package:

{
  "mcpServers": {
    "disk-expansion-precheck": {
      "command": "uvx",
      "args": ["disk-expansion-precheck"]
    }
  }
}

Source run:

{
  "mcpServers": {
    "disk-expansion-precheck": {
      "command": "uv",
      "args": ["run", "disk-expansion-precheck"]
    }
  }
}

Package Layout

Source code lives in:

  • src/disk_expansion_precheck

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

disk_expansion_precheck-0.1.2.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

disk_expansion_precheck-0.1.2-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file disk_expansion_precheck-0.1.2.tar.gz.

File metadata

  • Download URL: disk_expansion_precheck-0.1.2.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for disk_expansion_precheck-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3b8b842afa2a99eb45ea86f097c0a4e18720559b9f50750d4ebea5e1bee343a3
MD5 c0d8efe1f0a817eaa9605381139c7994
BLAKE2b-256 eaf30026f2e55c1670b5095b93c5bc9182ba4325a147c288f9ca11ae4d5e8d61

See more details on using hashes here.

File details

Details for the file disk_expansion_precheck-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: disk_expansion_precheck-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for disk_expansion_precheck-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 accc6f698016bf0d2a0d708e2d89d4be709dcec3b41feef488cb82b4a9c06dbd
MD5 2648441d4e0c7eee41042fd0c91decc1
BLAKE2b-256 cb409a371b401af404997873421e584d2c3bc07ddd8bada6b2ac2417bb31d0d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page