@tencentcloud/sdk-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 +2 -2
- package/knowledge/search/search-knowledge.js +1 -1
- package/package.json +1 -1
- package/resource/index/component-slugs.json +1 -1
- package/resource/index/manifest.json +1 -1
- package/resource/integration/chat/preset/uni-app/integration.md +1 -1
- package/resource/integration/chat/preset/vue/integration.md +4 -9
- 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 +2 -1
- package/tools/definitions/submit_feedback_def.js +28 -0
- package/tools/index.js +4 -4
- package/utils/report-cls-client.js +5 -5
- package/utils/report-es-client.js +1 -1
- package/tools/definitions/record_answer_def.js +0 -40
- package/tools/definitions/record_feedback_def.js +0 -37
package/README.md
CHANGED
|
@@ -52,11 +52,11 @@ npx -y @tencentcloud/sdk-mcp
|
|
|
52
52
|
```
|
|
53
53
|
When you save the file, a notification is displayed. In the prompt, click **Enable**.
|
|
54
54
|
|
|
55
|
-

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

|
|
59
|
+

|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
Step4: Ask the AI agent to build your Tencentcloud sdk app for you by describing the functionality yourself or by using a sample prompt.
|
|
@@ -141,7 +141,7 @@ function buildAgentMessage(status, fragments, confidence, references) {
|
|
|
141
141
|
const citeTail = references?.length
|
|
142
142
|
? '作答时 MUST 在答案末尾附「**参考文档**」小节,逐条列出 `meta.references`(或各 fragment 的 `doc_urls`)中的 URL,便于用户核对;禁止编造未出现的链接。'
|
|
143
143
|
: '若 fragments 含 `doc_urls`,作答时须在末尾附「**参考文档**」列出对应 URL;禁止编造链接。';
|
|
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 '【硬规则】问题依赖具体平台实现,但未指定 framework,全平台混检信息密度低且被禁止。MUST 先调用 `present_framework_choice`(传入 product),等用户选定 android/ios/flutter/react/vue/uni-app 等后再调用本工具,并 MUST 带上 **product + framework**。禁止传空 framework 硬搜。';
|
|
147
147
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{}
|
|
1
|
+
{"chat-setting":["chat-setting","chatsetting","chat_setting"],"contact-list":["contact-list","contactlist","contact_list"],"conversation-actions":["conversation-actions","conversationactions","conversation_actions"],"conversation-list":["conversation-list","conversationlist","conversation_list"],"conversation-preview":["conversation-preview","conversationpreview","conversation_preview"],"conversation-search":["conversation-search","conversationsearch","conversation_search"],"message-input":["message-input","messageinput","message_input"],"message-list":["message-list","messagelist","message_list"],"search":["search","search","search"],"theme":["theme","theme","theme"],"chat-header":["chat-header","chatheader","chat_header"]}
|