mcp服务器海
腾讯HAI(Hyper Application Inventor)服务的MCP服务器实现
安装
克莱恩
如果您使用的是cline,则不需要安装,安装将由uvx自动执行。
本地安装
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用法
在Cline中使用
打开您的cline设置文件: cline_mcp_setting.json
将mcp服务器hai配置添加到mcpServers,如下所示:
{
"mcpServers": {
"mcp-server-hai": {
"command": "uvx",
"args": [
"mcp-server-hai@latest" // make sure you have installed the latest version, to use a specific version, use mcp-server-hai@version instead
],
"env": {
"TENCENTCLOUD_SECRET_ID": "YOUR_SECRET_ID_HERE",
"TENCENTCLOUD_SECRET_KEY": "YOUR_SECRET_KEY_HERE"
},
"transportType": "stdio"
}
}
}然后你可以在cline找到名为mcp server hai的mcp服务器,享受;)
直接运行服务器
uvx mcp-server-hai所需的环境变量:
- TENCENTCLOUD_SECRET_ID:您的腾讯云秘密ID
- TENCENTCLOUD_SECRET_KEY:您的腾讯云密钥
特性
- 创建、启动、停止和删除HAI实例
- 查询实例信息和网络状态
- 获取可用区域和实例类型
发展
安装开发依赖项:
uv sync出版
构建并发布到PYPI:
uv add build twine
uv run python -m build
uv run twine upload dist/*