- Home
- MCP servers
- TencentCloud Live
TencentCloud Live
- python
0
GitHub Stars
python
Language
2 months ago
First Indexed
3 weeks ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"willsygao-tencentcloud-live-mcp-server": {
"command": "uvx",
"args": [
"tencentcloud-live-mcp-server"
],
"env": {
"TENCENTCLOUD_SECRET_ID": "YOUR_TENCENTCLOUD_SECRET_ID",
"TENCENTCLOUD_SECRET_KEY": "YOUR_TENCENTCLOUD_SECRET_KEY"
}
}
}
}You can manage Tencent Cloud Live services through an MCP server that exposes a consistent, language-agnostic interface. This MCP server lets you perform domain management, pull-stream tasks, live stream operations, and transcoding-related configuration using natural-language driven tools without handling low-level API details.
How to use
You use an MCP client to call the defined tools exposed by the server. Each tool corresponds to a concrete Tencent Cloud Live action, such as adding or removing a domain, creating a pull-stream task, querying active streams, or adjusting a live delay. Invoke tools with clear, intent-focused commands (for example, asking to add a domain or create a pull-stream task). The MCP infrastructure handles authentication, API version compatibility, and error formatting, so you can focus on your business logic. If the command relates to a specific domain, stream, or template, provide the relevant identifiers and parameters so the server can translate your instruction into the exact Tencent Cloud API calls.
How to install
Prerequisites you need before starting are Python 1.12, the Tencent Cloud API key pair (SecretId and SecretKey), and the Tencent Cloud Python SDK.
{
"mcpServers": {
"tencentcloud-live-mcp-server": {
"command": "uvx",
"args": [
"tencentcloud-live-mcp-server"
],
"env": {
"TENCENTCLOUD_SECRET_ID": "------> 替换成你自己的 ID <------",
"TENCENTCLOUD_SECRET_KEY": "------> 替换成你自己的 KEY <------"
}
}
}
}
本地运行服务需要先设置环境变量,然后启动服务器。你将本地运行的命令改为以下两步:
# 安装/确认依赖
# 使用你选择的包管理器安装腾讯云 Python SDK
pip install tencentcloud-sdk-python
# 配置环境变量
export TENCENTCLOUD_SECRET_ID="your-secret-id"
export TENCENTCLOUD_SECRET_KEY="your-secret-key"
# 启动服务
uv run src/server.py
Additional configuration and notes
如果你在 Cursor 中使用 MCP,确保你已安装了 uvx,并按照以下配置将服务器注册到 Cursor 中以便通过 MCP 调用。填写你自己的密钥信息后重启 Cursor。
{
"mcpServers": {
"tencentcloud-live-mcp-server": {
"command": "uvx",
"args": [
"tencentcloud-live-mcp-server"
],
"env": {
"TENCENTCLOUD_SECRET_ID": "YOUR_TENCENTCLOUD_SECRET_ID",
"TENCENTCLOUD_SECRET_KEY": "YOUR_TENCENTCLOUD_SECRET_KEY"
}
}
}
}
Available tools
add_domain
Add a new Tencent Cloud Live domain for streaming. Includes configuration for domain name and associated settings.
delete_domain
Remove a domain from Tencent Cloud Live domain management.
enable_domain
Enable a previously disabled domain so it can be used for streaming.
disable_domain
Disable a domain to temporarily prevent it from being used for streaming.
query_domain
Retrieve information for a specific domain, including status and settings.
list_domains
List all domains currently configured for Tencent Cloud Live.
create_pull_push_task
Create a new pull-stream to push a live stream to another destination or platform.
delete_pull_push_task
Remove an existing pull-stream task.
query_pull_push_task
Query details of a specific pull-stream task.
update_pull_push_task
Update parameters of an existing pull-stream task.
query_stream_status
Check the current status of a live stream.
query_live_streams
List streams currently in live status.
disconnect_live_stream
Forcefully disconnect a live stream.
resume_live_stream
Resume a previously interrupted or paused live stream.
ban_live_stream
Ban a live stream from broadcasting due to violations or policy breaches.
query_inferred_events
Query events inferred from live streams for monitoring or analytics.
set_delay
Set a delay for a live stream to meet latency requirements.
cancel_delay
Cancel a previously set delay for a live stream.
create_transcode_template
Create a transcoding template for on-the-fly encoding settings.
delete_transcode_template
Delete a transcoding template.
create_transcode_rule
Create a transcoding rule that applies to specific streams or conditions.
delete_transcode_rule
Delete a transcoding rule.