Skip to main content

mcp server for Tencent Cloud Automation Tools

Project description

Tencent Cloud TAT MCP Server

An MCP server implementation for executing commands on Tencent Cloud instances using the TencentCloud Automation Tools (TAT) API.

Features

  • RunCommand: Asynchronously execute Shell/PowerShell commands on Tencent Cloud instances
  • QueryTask: Retrieve command execution results and outputs
  • Supports both Linux and Windows: Automatically handles command encoding based on OS type

Tools

RunCommand

Execute commands on Tencent Cloud instances.

Inputs:

  • Region (string): Tencent Cloud region (e.g. ap-beijing, ap-guangzhou)
  • InstanceId (string): Target cloud server instance ID (format: ins-xxxxxxxx or lhins-xxxxxxxx)
  • Command (string): Command to execute (will be automatically Base64 encoded)
  • SystemType (string, optional): OS type (Linux/Windows, default: Linux)

QueryTask

Retrieve asynchronous command execution results.

Inputs:

  • Region (string): Tencent Cloud region
  • TaskId (string): Task ID returned by RunCommand (format: invt-xxxxxx)

Configuration

Setting up Tencent Cloud Credentials

  1. Obtain SecretId and SecretKey from Tencent Cloud Console
  2. Set your default region (optional)

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "tencent-tat": {
     "command": "uv",
    "args": [
      "--directory",
      "mcp-server-tat repo directory",
      "run",
      "mcp-server-tat"]
      "env": {
        "TENCENTCLOUD_SECRET_ID": "YOUR_SECRET_ID_HERE",
        "TENCENTCLOUD_SECRET_KEY": "YOUR_SECRET_KEY_HERE",
        "TENCENTCLOUD_REGION": "YOUR_REGION_HERE"
      }
    }
  }
}

Installation

pip install mcp-server-tat

Running the Server

export TENCENTCLOUD_SECRET_ID=your_id
export TENCENTCLOUD_SECRET_KEY=your_key
export TENCENTCLOUD_REGION=your_region
python -m mcp_server_tat

License

MIT License. See LICENSE for details.

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

mcp_server_tat-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

mcp_server_tat-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_tat-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_server_tat-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for mcp_server_tat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59df3edeeb60a7c79624adb493bbdcfc1e13639f9db4a1fb7d2f10d6ba4d3fc0
MD5 ffa977dd1f98c5ecb61dce5d137a9f39
BLAKE2b-256 bbba80c065229bd52af89219bda7cb3327bbb12ad36b4f4145c8874fae068fc1

See more details on using hashes here.

File details

Details for the file mcp_server_tat-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_server_tat-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for mcp_server_tat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50d72ea6bd1142b1742cc04829ccccbb2a62c4d796822f2c19a89a89149b3d26
MD5 25f84d05777ef99239e40f7dc1a31eee
BLAKE2b-256 05167e2e8be3151e19159015c17bfca441285be9634afa94a812ecadabb78fe9

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