UCloud MCP Server

by wangrzneu

187 downloads
Not rated
GitHub

Description

```ascii _ _ _____ _ _ | | | / __ \ | | | | | | | / \/ | ___ _ _ __| | | | | | | | |/ _ \| | | |/ _` | | |__| | \__/\ | (_) | |_| | (_| | \____/ \____/_|\___/ \__,_|\__,_| __ __ _____ _____ _____ | \/ |/ __ \ __ \ / ___| | . . || / \/| |_/ / \ `--. ___ _ ____ _____ _ __ | |\/|…

About

```ascii _ _ _____ _ _ | | | / __ \ | | | | | | | / \/ | ___ _ _ __| | | | | | | | |/ _ \| | | |/ _` | | |__| | \__/\ | (_) | |_| | (_| | \____/ \____/_|\___/ \__,_|\__,_| __ __ _____ _____ _____ | \/ |/ __ \ __ \ / ___| | . . || / \/| |_/ / \ `--. ___ _ ____ _____ _ __ | |\/| || | | __/ `--. \/ _ \ '__\ \ / / _ \…

Details

Author
wangrzneu
Downloads
187
Categories
Other

- Query instance information and status
- List all instances in your account
- Monitor CPU utilization and disk I/O metrics
- Support for configuration file and environment variables
- MCP protocol support with standard I/O
- Go-based, lightweight and easy to build

Clone the repository, install dependencies with go mod download, build with go build -o ucloud-mcp-server, then run the binary. Use the --config flag to specify a configuration file path and --port to set a listening port (default 8080). The service communicates via standard input/output over the MCP protocol.

UCloud MCP Server

A cloud instance management server based on MCP-Go and UCloud SDK, supporting UCloud instance management through the MCP protocol.

Features

- Query instance information
- List all instances
- Get instance status
- Monitor instance performance metrics
- MCP protocol support
- Configuration file support

Requirements

- Go 1.23 or higher
- UCloud account and API credentials

Configuration

The service supports two configuration methods:

1. Configuration File (Recommended)

Create a config.json file:

{
    "region": "cn-bj2",
    "project_id": "your-project-id",
    "public_key": "your-public-key",
    "private_key": "your-private-key"
}

2. Environment Variables

If not specified in the configuration file, the service will try to read from environment variables:

export UCLOUD_REGION="cn-bj2"        # UCloud region
export UCLOUD_PROJECT_ID="your-project-id"  # Project ID
export UCLOUD_PUBLIC_KEY="your-public-key"  # API public key
export UCLOUD_PRIVATE_KEY="your-private-key"  # API private key

Configuration priority: Configuration file > Environment variables

Installation and Running

1. Clone the repository:

git clone https://github.com/renzheng.wang/ucloud-mcp-server.git
cd ucloud-mcp-server

2. Install dependencies:

go mod download

3. Build the service:

go build -o ucloud-mcp-server

4. Run the service:

Basic usage:

./ucloud-mcp-server

With custom configuration:

./ucloud-mcp-server --config /path/to/config.json --port 8080

Available startup options:
- --config: Specify the path to your configuration file (default: ./config.json)
- --port: Specify the port to listen on (default: 8080)

Examples:
```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.