@tencent-rtc/mcp 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -37
- package/package.json +1 -1
- package/resource/doc/chatuikit/android/client_api_Android.md +1373 -0
- package/resource/doc/chatuikit/android/generate_UserSig.md +306 -0
- package/resource/doc/chatuikit/android/integrarte_only_tuichat_Android.md +290 -0
- package/resource/doc/chatuikit/android/integrate_tuikit_Android.md +287 -0
- package/resource/doc/chatuikit/android/quick_start_Android.md +138 -0
- package/resource/doc/chatuikit/android/show_typing_Android.md +43 -0
- package/resource/doc/chatuikit/faq/faq_sdk.md +120 -0
- package/resource/doc/chatuikit/faq/generate_UserSig.md +306 -0
- package/resource/doc/chatuikit/flutter/client_api_Flutter.md +932 -0
- package/resource/doc/chatuikit/flutter/generate_UserSig.md +306 -0
- package/resource/doc/chatuikit/flutter/integrate_only_tuichat_Flutter.md +333 -0
- package/resource/doc/chatuikit/flutter/integrate_tuikit_Flutter.md +769 -0
- package/resource/doc/chatuikit/flutter/quick_start_Flutter.md +217 -0
- package/resource/doc/chatuikit/iOS/client_api_iOS.md +1121 -0
- package/resource/doc/chatuikit/iOS/generate_UserSig.md +306 -0
- package/resource/doc/chatuikit/iOS/integrate_only_tuichat_iOS.md +748 -0
- package/resource/doc/chatuikit/iOS/integrate_tuikit_iOS.md +852 -0
- package/resource/doc/chatuikit/iOS/quick_start_iOS.md +163 -0
- package/resource/doc/chatuikit/iOS/show_typing_iOS.md +52 -0
- package/resource/doc/chatuikit/react/generate_UserSig.md +306 -0
- package/resource/doc/chatuikit/react/integrate_tuichat_only_react.md +202 -0
- package/resource/doc/chatuikit/react/integrate_tuichat_react.md +279 -0
- package/resource/doc/chatuikit/vue/generate_UserSig.md +306 -0
- package/resource/doc/chatuikit/vue/integrate_only_tuichat_Vue_web.md +124 -0
- package/resource/doc/chatuikit/vue/integrate_tuikit_Vue_web.md +552 -0
- package/resource/doc/tuicallkit/react/how_to_integrated_react_callkit.md +84 -55
- package/server.js +51 -27
- package/server.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
|
|
1
|
+
## Tencent SDK Model Context Protocol (MCP) Server for Cursor IDE
|
|
2
2
|
|
|
3
|
-
This repository provides a Model Context Protocol (MCP) server
|
|
3
|
+
This repository provides a CLI-based Model Context Protocol (MCP) server that exposes Tencent SDK documentation and Tencent API resources to LLM-powered tools.
|
|
4
|
+
This improves the LLM AI Agent's ability to understand and interact with Tencent's SDKs and APIs.
|
|
4
5
|
|
|
5
|
-
## Features
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **Languages**: JavaScript, Java, Swift, Objective-C, Kotlin.
|
|
9
|
-
- **API Reference Section**: Configuration, function invocation. Access code examples, usage patterns, and detailed explanations of Tencent Cloud SDK features.
|
|
10
|
-
- **Tencent Cloud TUICallKit SDK Documentation Retrieval**: Retrieve official Tencent Cloud TUICallKit SDK documentation (converted from HTML to Markdown format), covering the following:
|
|
7
|
+
## Features
|
|
11
8
|
|
|
12
|
-
|
|
9
|
+
- MCP server exposing tools for interacting with Tencent via JSON-RPC over STDIN/STDOUT.
|
|
10
|
+
- MCP server supports SSE Mode by supplying `HTTP_PORT` environment variable.
|
|
11
|
+
- Retrieve official Tencent SDK documentation (HTML → Markdown) for:
|
|
12
|
+
- Languages: JavaScript, Java, Swift, Objective-C, Kotlin.
|
|
13
|
+
- API reference sections: configuration, calls function.
|
|
14
|
+
- Retrieve official Tencent TUICallKit SDK documentation (HTML → Markdown) for:
|
|
15
|
+
- TUICallKit SDK languages: JavaScript, Kotlin, Swift.
|
|
16
|
+
- TUICallKit SDK topics: configuration, calls function.
|
|
17
|
+
- Retrieve official Tencent ChatUIKit documentation (HTML → Markdown) for:
|
|
18
|
+
- ChatUIKit SDK languages: JavaScript, Kotlin, Swift.
|
|
19
|
+
- ChatUIKit SDK topics: configuration, chat function.
|
|
20
|
+
- Converts remote HTML articles to Markdown using `jsdom` and `turndown` for consistent documentation formatting.
|
|
21
|
+
- Input validation via Zod schemas for all tool parameters, ensuring robust error handling.
|
|
22
|
+
- Extensible tool definitions leveraging the Model Context Protocol SDK (`@modelcontextprotocol/sdk`) with `McpServer` and `StdioServerTransport`.
|
|
13
23
|
|
|
14
|
-
- "Develop an Android application that supports audio and video calls using TUICallKit."
|
|
15
|
-
- "Implement audio and video call functionality in our project by integrating TUICallKit."
|
|
16
|
-
- "Retrieve the API usage documentation for React TUICallKit."
|
|
17
24
|
|
|
18
25
|
## Prerequisites
|
|
19
|
-
|
|
20
|
-
- Node.js (version >= 18) and npm (https://nodejs.org/)
|
|
26
|
+
- Node.js (>= 18) and npm
|
|
21
27
|
- Cursor IDE with MCP support
|
|
22
28
|
|
|
23
|
-
## Installation
|
|
24
29
|
|
|
25
|
-
|
|
30
|
+
## How To Use
|
|
31
|
+
To set up the @tencentcloud/sdk-mcp MCP Server, follow these steps:
|
|
32
|
+
|
|
33
|
+
- Step1: Installation.
|
|
26
34
|
|
|
27
35
|
```
|
|
28
|
-
npx -y @
|
|
36
|
+
npx -y @tencentcloud/sdk-mcp
|
|
29
37
|
```
|
|
30
38
|
|
|
31
|
-
## Cursor Configuration
|
|
32
|
-
|
|
33
|
-
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.
|
|
34
39
|
|
|
35
|
-
|
|
40
|
+
- Step2: In your Cursor project, create or open the `.cursor/mcp.json` or `~/.cursor/mcp.json` files and add your config.
|
|
36
41
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
```
|
|
42
|
+
```javascript
|
|
40
43
|
{
|
|
41
44
|
"mcpServers": {
|
|
42
|
-
"
|
|
45
|
+
"tencentcloud-sdk-mcp": {
|
|
43
46
|
"command": "npx",
|
|
44
|
-
"args": ["-y", "@
|
|
47
|
+
"args": ["-y", "@tencentcloud/sdk-mcp"]
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
```
|
|
52
|
+
When you save the file, a notification is displayed. In the prompt, click **Enable**.
|
|
49
53
|
|
|
50
|
-
|
|
54
|
+

|
|
51
55
|
|
|
52
|
-
|
|
56
|
+
- Step3: Navigate to **Cursor Settings** (the gear icon in top right corner) -> **MCP**, and check if tencentcloud-sdk-mcp server is enabled.
|
|
53
57
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
```
|
|
58
|
+

|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
Step4: Ask the AI agent to build your Tencentcloud sdk app for you by describing the functionality yourself or by using a sample prompt.
|
|
62
|
+
|
|
63
|
+
> [!WARNING]
|
|
64
|
+
Make sure to use the Agent mode. Depending on your Cursor rules, you may also need to explicitly ask the AI agent to use the Tencentcloud sdk-mcp server.
|