首页
学习
活动
专区
圈层
工具
发布
MCP广场 >详情页
实时音视频 MCP2026-09-171.2K分享添加福利群:解决AI开发者的「MCP实战痛点」
Tencent RTC MCP专为增强大语言模型(LLM) 对腾讯云实时音视频(TRTC) 产品的理解和交互而设计,助力AI代理将腾讯云实时音视频服务无缝集成到应用中,支持音视频通话和即时通信等功能。
By 腾讯云TRTC团队
2026-09-171.2K
详情内容

实时音视频 MCP Server使用说明

本仓库提供了一个基于命令行界面(CLI)的模型上下文协议(MCP)服务器,它能够将腾讯云软件开发工具包(SDK)文档和腾讯云 API 资源提供给基于大语言模型(LLM)的工具。这增强了 LLM 人工智能代理理解和与腾讯云 SDK 及 API 交互的能力,有助于将腾讯云服务无缝集成到应用程序中。

功能特性

  • MCP 服务器:通过标准输入 / 输出(STDIN/STDOUT)上的 JSON-RPC 协议,提供与腾讯云交互的工具。
  • 语言:JavaScript、Java、Swift、Objective-C、Kotlin。
  • API 参考部分:配置、调用函数。可借此获取代码示例、使用模式以及腾讯云 SDK 特性的详细说明。
  • 腾讯云 TUICallKit SDK 文档获取:可检索官方腾讯云 TUICallKit SDK 文档(从 HTML 转换为 Markdown 格式),涵盖以下内容:

示例提示词

  • “使用 TUICallKit 编写一个支持音视频通话的 Android 应用程序。”
  • “在我们的工程中,通过接入 TUICallKit 实现音视频通话功能”
  • “获取 React TUICallKit 的 API 使用文档。”

先决条件

  • Node.js(版本 >= 18)和 npm

  • 支持 MCP 的 Cursor IDE

安装

在本地运行腾讯云 MCP 服务器或通过 npx 将其添加到 Cursor IDE 的推荐方式:

  • 如果您的应用在腾讯云中国站,可以使用如下方案:

    npx -y @tencentcloud/sdk-mcp
    
    
  • 如果您的应用在腾讯云国际站,可以使用如下方案:

    npx -y @tencent-rtc/mcp
    

Cursor 配置

要使用 MCP 服务器,Cursor 必须处于代理模式(AGENT MODE),Cursor IDE 通过 JSON 配置文件发现 MCP 服务器。可全局或按项目配置腾讯云 MCP 服务器。

全局配置

编辑或创建~/.cursor/mcp.json文件:

  • 如果您的应用在腾讯云中国站,可以使用如下方案:
{
  "mcpServers": {
​    "tencent-rtc": {
​      "command": "npx",
​      "args": ["-y", "@tencentcloud/sdk-mcp"],
​    }
  }
}
  • 如果您的应用在腾讯云国际站,可以使用如下方案:
{
  "mcpServers": {
​    "tencent-rtc": {
​      "command": "npx",
​      "args": ["-y", "@tencent-rtc/mcp"],
​    }
  }
}

项目配置

在项目目录中,创建.cursor/mcp.json文件:

  • 如果您的应用在腾讯云中国站,可以使用如下方案:
{
  "mcpServers": {
​    "tencent-rtc": {
​      "command": "npx",
​      "args": ["-y", "@tencentcloud/sdk-mcp"],
​    }
  }
}
  • 如果您的应用在腾讯云国际站,可以使用如下方案:
{
  "mcpServers": {
​    "tencent-rtc": {
​      "command": "npx",
​      "args": ["-y", "@tencent-rtc/mcp"],
​    }
  }
}

Tencent RTC MCP Server User Guide

This repository provides a Model Context Protocol (MCP) server based on the Command Line Interface (CLI). It delivers Tencent Cloud SDK documentation and API resources to Large Language Model (LLM) based tools. This enhances the ability of LLM AI agents to understand and interact with Tencent Cloud SDKs and APIs, facilitating seamless integration of Tencent Cloud services into applications.

Features

  • MCP Server: Provides tools for interacting with Tencent Cloud via the JSON-RPC protocol over STDIN/STDOUT.
  • Languages: JavaScript, Java, Swift, Objective-C, Kotlin.
  • API Reference Section: Configuration, function invocation. Access code examples, usage patterns, and detailed explanations of Tencent Cloud SDK features.
  • Tencent Cloud TUICallKit SDK Documentation Retrieval: Retrieve official Tencent Cloud TUICallKit SDK documentation (converted from HTML to Markdown format), covering the following:

Example Prompts

  • "Develop an Android application that supports audio and video calls using TUICallKit."
  • "Implement audio and video call functionality in our project by integrating TUICallKit."
  • "Retrieve the API usage documentation for React TUICallKit."

Prerequisites

  • Node.js (version >= 18) and npm
  • Cursor IDE with MCP support

Installation

To run the Tencent Cloud MCP server locally or add it to Cursor IDE via npx:

npx -y @tencent-rtc/mcp

Cursor Configuration

To use the MCP server, Cursor must be in AGENT MODE. The Cursor IDE discovers MCP servers through a JSON configuration file. You can configure the Tencent Cloud MCP server globally or per project.

Global Configuration

Edit or create the file ~/.cursor/mcp.json:

{
  "mcpServers": {
    "tencent-rtc": {
      "command": "npx",
      "args": ["-y", "@tencent-rtc/mcp"],
    }
  }
}

Project Configuration

In the project directory, create .cursor/mcp.json:

{
  "mcpServers": {
    "tencent-rtc": {
      "command": "npx",
      "args": ["-y", "@tencent-rtc/mcp"],
    }
  }
}
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档