@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.
Files changed (30) hide show
  1. package/README.md +38 -37
  2. package/package.json +1 -1
  3. package/resource/doc/chatuikit/android/client_api_Android.md +1373 -0
  4. package/resource/doc/chatuikit/android/generate_UserSig.md +306 -0
  5. package/resource/doc/chatuikit/android/integrarte_only_tuichat_Android.md +290 -0
  6. package/resource/doc/chatuikit/android/integrate_tuikit_Android.md +287 -0
  7. package/resource/doc/chatuikit/android/quick_start_Android.md +138 -0
  8. package/resource/doc/chatuikit/android/show_typing_Android.md +43 -0
  9. package/resource/doc/chatuikit/faq/faq_sdk.md +120 -0
  10. package/resource/doc/chatuikit/faq/generate_UserSig.md +306 -0
  11. package/resource/doc/chatuikit/flutter/client_api_Flutter.md +932 -0
  12. package/resource/doc/chatuikit/flutter/generate_UserSig.md +306 -0
  13. package/resource/doc/chatuikit/flutter/integrate_only_tuichat_Flutter.md +333 -0
  14. package/resource/doc/chatuikit/flutter/integrate_tuikit_Flutter.md +769 -0
  15. package/resource/doc/chatuikit/flutter/quick_start_Flutter.md +217 -0
  16. package/resource/doc/chatuikit/iOS/client_api_iOS.md +1121 -0
  17. package/resource/doc/chatuikit/iOS/generate_UserSig.md +306 -0
  18. package/resource/doc/chatuikit/iOS/integrate_only_tuichat_iOS.md +748 -0
  19. package/resource/doc/chatuikit/iOS/integrate_tuikit_iOS.md +852 -0
  20. package/resource/doc/chatuikit/iOS/quick_start_iOS.md +163 -0
  21. package/resource/doc/chatuikit/iOS/show_typing_iOS.md +52 -0
  22. package/resource/doc/chatuikit/react/generate_UserSig.md +306 -0
  23. package/resource/doc/chatuikit/react/integrate_tuichat_only_react.md +202 -0
  24. package/resource/doc/chatuikit/react/integrate_tuichat_react.md +279 -0
  25. package/resource/doc/chatuikit/vue/generate_UserSig.md +306 -0
  26. package/resource/doc/chatuikit/vue/integrate_only_tuichat_Vue_web.md +124 -0
  27. package/resource/doc/chatuikit/vue/integrate_tuikit_Vue_web.md +552 -0
  28. package/resource/doc/tuicallkit/react/how_to_integrated_react_callkit.md +84 -55
  29. package/server.js +51 -27
  30. package/server.js.map +1 -1
package/README.md CHANGED
@@ -1,63 +1,64 @@
1
- # Tencent RTC MCP Server User Guide
1
+ ## Tencent SDK Model Context Protocol (MCP) Server for Cursor IDE
2
2
 
3
- 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.
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
- - **MCP Server**: Provides tools for interacting with Tencent Cloud via the JSON-RPC protocol over STDIN/STDOUT.
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
- ## Example Prompts
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
- To run the Tencent Cloud MCP server locally or add it to Cursor IDE via npx:
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 @tencent-rtc/mcp
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
- ### Global Configuration
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
- Edit or create the file ~/.cursor/mcp.json:
38
-
39
- ```
42
+ ```javascript
40
43
  {
41
44
  "mcpServers": {
42
- "tencent-rtc": {
45
+ "tencentcloud-sdk-mcp": {
43
46
  "command": "npx",
44
- "args": ["-y", "@tencent-rtc/mcp"],
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
- ### Project Configuration
54
+ ![mcp-server-prompt](./mcp-server-prompt.png)
51
55
 
52
- In the project directory, create .cursor/mcp.json:
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
- "mcpServers": {
57
- "tencent-rtc": {
58
- "command": "npx",
59
- "args": ["-y", "@tencent-rtc/mcp"],
60
- }
61
- }
62
- }
63
- ```
58
+ ![cursor-setting](cursor-setting.png)
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencent-rtc/mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Tencent Cloud MCP Server for SDK",
5
5
  "main": "index.js",
6
6
  "bin": "index.js",