Metadata-Version: 2.4
Name: mcp-server-hai
Version: 1.1.1
Summary: A MCP server implementation for HAI (Hyper Application Inventor) services
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: build>=1.2.2.post1
Requires-Dist: mcp[cli]>=1.6.0
Requires-Dist: tencentcloud-sdk-python-hai>=3.0.1357
Requires-Dist: twine>=6.1.0
Requires-Dist: uvicorn>=0.34.0

# mcp-server-hai

A MCP server implementation for Tencent HAI (Hyper Application Inventor) services

## Installation

### Cline
if you are using cline, no installation is needed, the installation is automatically executed by uvx.

### Local install
```bash
uv init example-project # init your project
uv add mcp-server-hai # download and install the package on PYPI
uv run mcp-server-hai # run the package
```


## Usage

### Using in Cline
open your cline setting file: `cline_mcp_setting.json`

add mcp-server-hai configuration to mcpServers as follows:
```json
{
    "mcpServers": {
      "mcp-server-hai": {
        "command": "uvx",
        "args": [
          "mcp-server-hai"
        ],
        "env": {
          "TENCENTCLOUD_SECRET_ID": "YOUR_SECRET_ID_HERE",
          "TENCENTCLOUD_SECRET_KEY": "YOUR_SECRET_KEY_HERE"
        },
        "transportType": "stdio"
      }
    }
  }
```


Then you can find the mcp server named mcp-server-hai in cline, enjoy ;)

### Directly run the server

```bash
uvx mcp-server-hai
```

Environment variables required:
- TENCENTCLOUD_SECRET_ID: Your Tencent Cloud secret ID
- TENCENTCLOUD_SECRET_KEY: Your Tencent Cloud secret key

## Features

- Create, start, stop and remove HAI instances
- Query instance information and network status
- Get available regions and instance types

## Development

Install development dependencies:
```bash
uv sync
```

## Publishing
Build and publish to PYPI:
```bash
uv add build twine
uv run python -m build
uv run twine upload dist/*
