Skip to main content

trtc migration assistant

Project description

TRTC Migration Assistant

mcpServer

TRTC Migration Assistant 是 TRTC云助手 团队为 腾讯云TRTC 打造的快速迁移MCP工具,可以在AI的帮助下快速将集成其他RTC厂商的业务代码迁移到腾讯云TRTC。

1. 功能

在支持MCP的AI工具中,选择或复制集成其他RTC厂商的业务代码,然后使用如下提示词提问

"xxxxxx" 这是xx友商的代码,帮我迁移到TRTC

该工具会解析源代码中对其他RTC厂商的接口调用,并提供迁移到TRTC对应的接口,文档和迁移指引,AI会根据这些信息进行准确的迁移,写出迁移后的代码。

2. 准备事项

2.1 AI工具

准备一个支持MCP的AI工具,例如CodeBuddy, Cursor, VSCode

2.2 访问密钥

该工具通过腾讯云的云API提供服务,云API通过签名机制保证数据传输的安全性,该方式需要您在腾讯云申请安全凭证,即SecretIDSecretKey

同时为了最小化该安全凭证的权限,推荐您在腾讯云控制台新建一个子用户,并只对该用户授予QcloudTrtccopilotFullAccess权限(该权限是用于访问TRTC云助手),并在密钥管理处获取上述子用户的SecretIDSecretKey用于访问该服务。

3. 安装使用

安装该MCP有2种方式,分别是本地配置和使用托管的在线服务

3.1 本地配置

该方式需要您本地电脑有安装Python的包管理工具uv

然后在AI工具的MCP页面做如下配置,在TENCENTCLOUD_SECRET_IDTENCENTCLOUD_SECRET_KEY处填入第2步获取的安全凭证(对应SecretIDSecretKey)。

{
  "mcpServers": {
    "trtc-migration-assistant": {
      "command": "uvx",
      "args": [
        "trtc-migration-assistant"
      ],
      "env": {
        "TENCENTCLOUD_SECRET_ID": "",
        "TENCENTCLOUD_SECRET_KEY": ""
      }
    }
  }
} 

3.2 使用托管服务

如果您不方便在自己的电脑上安装uv,本服务已在腾讯云开发者平台托管,您可以配置在线的连接

该方式需要您在腾讯云开发者平台找到trtc-migration-assistant,在页面右侧连接服务的部分输入前面获取到的SecretIDSecretKey,点击连接Server获取对应的MCP Server配置,例如:

{
  "mcpServers": {
    "trtc-migration-assistant": {
      "type": "sse",
      "url": "xxx"
    }
  }
}

注意上面的JSON仅为示例,需要您在腾讯云开发者平台获取自己的配置,然后将该配置设置到AI工具中即可

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

trtc_migration_assistant-0.6.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

trtc_migration_assistant-0.6.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file trtc_migration_assistant-0.6.1.tar.gz.

File metadata

  • Download URL: trtc_migration_assistant-0.6.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for trtc_migration_assistant-0.6.1.tar.gz
Algorithm Hash digest
SHA256 38135fda6c15a8bc66a84dc8c2aaad124fcebf0705a81d289c12e8c3de44a571
MD5 102fc2f13521ccd25a2d47eb5a380c02
BLAKE2b-256 430357fd77e5bf4352dfaccc0354e1178dc58f98ef340be9c1062e195e24446b

See more details on using hashes here.

File details

Details for the file trtc_migration_assistant-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for trtc_migration_assistant-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc93dea54157fb0154d87ddb6b265ec00fdf2f73904fc7618bae56ac94603f38
MD5 757344e0b4579139af2c7e2519f48678
BLAKE2b-256 0ba779e3d0a9c74f1a504240fa45c5936a8e7e567f898e0239997e68c3e68ae4

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