@tencentcloud/sdk-mcp 0.1.0
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 +20 -0
- package/index.js +16 -0
- package/index.js.map +1 -0
- package/package.json +37 -0
- package/resource/doc/tuicallkit/android/.gitkeep +0 -0
- package/resource/doc/tuicallkit/android/api_TUICallKit.md +663 -0
- package/resource/doc/tuicallkit/android/api_TUICallObserver.md +786 -0
- package/resource/doc/tuicallkit/android/how_to_integrated_android_callkit.md +302 -0
- package/resource/doc/tuicallkit/faq/faq.md +1068 -0
- package/resource/doc/tuicallkit/flutter/api_TUICallDefine.md +932 -0
- package/resource/doc/tuicallkit/flutter/api_TUICallKit.md +452 -0
- package/resource/doc/tuicallkit/flutter/api_TUICallObserver.md +926 -0
- package/resource/doc/tuicallkit/flutter/how_to_integrated_flutter_callkit.md +226 -0
- package/resource/doc/tuicallkit/flutter/how_to_run_flutter_callkit_demo.md +101 -0
- package/resource/doc/tuicallkit/iOS/api_TUICallKit.md +635 -0
- package/resource/doc/tuicallkit/iOS/api_TUICallObserver.md +779 -0
- package/resource/doc/tuicallkit/iOS/how_to_integrated_iOS_callkit.md +269 -0
- package/resource/doc/tuicallkit/iOS/how_to_run_iOS_callkit_demo.md +98 -0
- package/resource/doc/tuicallkit/react/.gitkeep +0 -0
- package/resource/doc/tuicallkit/react/api_TUICallKit.md +1909 -0
- package/resource/doc/tuicallkit/react/how_to_integrated_react_callkit.md +195 -0
- package/resource/doc/tuicallkit/react/how_to_run_react_callkit_demo.md +93 -0
- package/resource/doc/tuicallkit/vue/.gitkeep +0 -0
- package/resource/doc/tuicallkit/vue/api_TUICallKit.md +1909 -0
- package/resource/doc/tuicallkit/vue/api_TUICallObserver.md +926 -0
- package/resource/doc/tuicallkit/vue/how_to_integrated_vue_callkit.md +415 -0
- package/resource/doc/tuicallkit/vue/how_to_run_vue_callkit_demo.md +93 -0
- package/server.js +124 -0
- package/server.js.map +1 -0
- package/streamableHttp.js +74 -0
- package/streamableHttp.js.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
## Tencent SDK Model Context Protocol (MCP) Server for Cursor IDE
|
|
2
|
+
|
|
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.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
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
|
+
- Converts remote HTML articles to Markdown using `jsdom` and `turndown` for consistent documentation formatting.
|
|
18
|
+
- Input validation via Zod schemas for all tool parameters, ensuring robust error handling.
|
|
19
|
+
- Extensible tool definitions leveraging the Model Context Protocol SDK (`@modelcontextprotocol/sdk`) with `McpServer` and `StdioServerTransport`.
|
|
20
|
+
|
package/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
5
|
+
const server_js_1 = require("./server.js");
|
|
6
|
+
async function main() {
|
|
7
|
+
const server = (0, server_js_1.createServer)();
|
|
8
|
+
const transport = new stdio_js_1.StdioServerTransport();
|
|
9
|
+
await server.connect(transport);
|
|
10
|
+
console.debug("Tencent RTC MCP Server running on stdio");
|
|
11
|
+
}
|
|
12
|
+
main().catch((error) => {
|
|
13
|
+
console.error("Fatal error in main():", error);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,wEAAiF;AACjF,2CAA2C;AAE3C,KAAK,UAAU,IAAI;IACjB,MAAM,MAAM,GAAc,IAAA,wBAAY,GAAE,CAAC;IACzC,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;AAC3D,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;IAC/C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tencentcloud/sdk-mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Tencent Cloud MCP Server for SDK",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "xx"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@modelcontextprotocol/sdk": "^1.10.1",
|
|
12
|
+
"@types/express": "^5.0.1",
|
|
13
|
+
"@types/node": "^22.15.32",
|
|
14
|
+
"express": "^5.1.0",
|
|
15
|
+
"shx": "^0.3.4",
|
|
16
|
+
"typescript": "^5.8.2",
|
|
17
|
+
"zod": "^3.24.2"
|
|
18
|
+
},
|
|
19
|
+
"author": "Tencent Cloud Terminal R&D Center",
|
|
20
|
+
"keywords": [
|
|
21
|
+
"mcp",
|
|
22
|
+
"mcp Server",
|
|
23
|
+
"call",
|
|
24
|
+
"video call",
|
|
25
|
+
"audio call",
|
|
26
|
+
"video",
|
|
27
|
+
"audio",
|
|
28
|
+
"TRTC",
|
|
29
|
+
"camera",
|
|
30
|
+
"microphone",
|
|
31
|
+
"webrtc",
|
|
32
|
+
"real-time communication",
|
|
33
|
+
"javascript",
|
|
34
|
+
"rtc"
|
|
35
|
+
],
|
|
36
|
+
"license": "ISC"
|
|
37
|
+
}
|
|
File without changes
|