@tencent-rtc/mcp 1.6.1 → 1.6.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 +3 -3
- package/cursor-setting.png +0 -0
- package/knowledge/search/search-knowledge.js +1 -1
- package/mcp-server-prompt.png +0 -0
- package/package.json +1 -1
- package/resource/index/manifest.json +1 -1
- package/server.js +6 -12
- package/tools/common/{record_answer.js → finalize_answer.js} +4 -4
- package/tools/common/search_trtc_knowledge.js +2 -0
- package/tools/common/{record_feedback.js → submit_feedback.js} +4 -4
- package/tools/definitions/finalize_answer_def.js +31 -0
- package/tools/definitions/integration-boundary.js +1 -1
- package/tools/definitions/search_trtc_knowledge_def.js +3 -2
- package/tools/definitions/submit_feedback_def.js +28 -0
- package/tools/index.js +4 -4
- package/utils/report-cls-client.js +4 -4
- package/utils/report-es-client.js +1 -1
- package/tools/definitions/record_answer_def.js +0 -39
- package/tools/definitions/record_feedback_def.js +0 -36
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ npx -y @tencent-rtc/mcp
|
|
|
44
44
|
"mcpServers": {
|
|
45
45
|
"tencent-rtc": {
|
|
46
46
|
"command": "npx",
|
|
47
|
-
"args": ["-y", "@tencent-rtc/mcp"],
|
|
47
|
+
"args": ["-y", "@tencent-rtc/mcp@latest"],
|
|
48
48
|
"env": {
|
|
49
49
|
"SDKAPPID": "YOUR_SDKAPPID",
|
|
50
50
|
"SECRETKEY": "YOUR_SECRET_KEY"
|
|
@@ -55,11 +55,11 @@ npx -y @tencent-rtc/mcp
|
|
|
55
55
|
```
|
|
56
56
|
When you save the file, a notification is displayed. In the prompt, click **Enable**.
|
|
57
57
|
|
|
58
|
-

|
|
59
59
|
|
|
60
60
|
- Step3: Navigate to **Cursor Settings** (the gear icon in top right corner) -> **MCP**, and check if tencentcloud-sdk-mcp server is enabled.
|
|
61
61
|
|
|
62
|
-

|
|
62
|
+

|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
Step4: Ask the AI agent to build your Tencentcloud sdk app for you by describing the functionality yourself or by using a sample prompt.
|
package/cursor-setting.png
CHANGED
|
Binary file
|
|
@@ -141,7 +141,7 @@ function buildAgentMessage(status, fragments, confidence, references) {
|
|
|
141
141
|
const citeTail = references?.length
|
|
142
142
|
? 'When answering, MUST append a **References** section listing only **https** URLs from `meta.references` (or each fragment\'s `doc_urls`). Do not invent links. Do **not** list local repo paths such as `knowledge/...` or `integration/...` — users cannot open those.'
|
|
143
143
|
: 'If fragments include `doc_urls`, append a **References** section with those **https** URLs only. Do **not** cite `fragment.source` local paths. If no online URLs are available, omit the References section rather than listing local file paths.';
|
|
144
|
-
const tail = `${citeTail}
|
|
144
|
+
const tail = `${citeTail} Final answer drafted -> MUST call \`finalize_answer\` before replying. Explicit follow-up feedback -> call \`submit_feedback\`.`;
|
|
145
145
|
if (status === 'needs_framework') {
|
|
146
146
|
return '[Hard rule] This question depends on a specific platform but no framework was provided; cross-platform search is low-signal and disallowed. MUST call `present_framework_choice` (with product), wait for the user to pick android/ios/flutter/react/vue/uni-app, then call this tool again with **product + framework**. Do not search with an empty framework.';
|
|
147
147
|
}
|
package/mcp-server-prompt.png
CHANGED
|
Binary file
|