@tencentcloud/chatsdk-intl-mcp
v1.0.8
Published
Tencent Cloud MCP Server for ChatSDK
Readme
Tencent ChatSDK Model Context Protocol (MCP) Server for Cursor IDE
This repository provides a CLI-based Model Context Protocol (MCP) server that exposes Tencent SDK documentation and Tencent API resources to LLM-powered tools. This improves the LLM AI Agent's ability to understand and interact with Tencent's SDKs and APIs.
Features
- MCP server exposing tools for interacting with Tencent via JSON-RPC over STDIN/STDOUT.
- MCP server supports SSE Mode by supplying
HTTP_PORTenvironment variable. - Retrieve official Tencent TUIKit documentation (HTML → Markdown) for:
- Languages: Java, Objective-C, Vue, React, Flutter.
- API reference sections: configuration, chat function.
- Retrieve official Tencent TUIKit FAQ documentation related with SDK (HTML → Markdown) for:
- TUIKit FAQ topics: configuration, chat function.
- Converts remote HTML articles to Markdown using
jsdomandturndownfor consistent documentation formatting. - Input validation via Zod schemas for all tool parameters, ensuring robust error handling.
- Extensible tool definitions leveraging the Model Context Protocol SDK (
@modelcontextprotocol/sdk) withMcpServerandStdioServerTransport.
Prerequisites
- Node.js (>= 18) and npm
- IDE with MCP support, such as Cursor, VS Code, Windsurf
How To Use
To set up the @tencentcloud/chatsdk-intl-mcp MCP Server, follow these steps:
In your Cursor project, create or open the .cursor/mcp.json or ~/.cursor/mcp.json files and add your config.
{
"mcpServers": {
"tencentcloud-chatsdk-mcp": {
"command": "npx",
"args": ["-y", "@tencentcloud/chatsdk-intl-mcp"]
}
}
}In your VS Code project, create or open the .vscode/mcp.json or ~/.vscode/mcp.json files and add your config.
{
"servers": {
"tencentcloud-chatsdk-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@tencentcloud/chatsdk-intl-mcp"]
}
}
}Go to Windsurf Settings -> Cascade: Manage MCPs -> View raw config. Once configured, click Refresh in Manage MCPs.
{
"mcpServers": {
"tencentcloud-chatsdk-mcp": {
"command": "npx",
"args": ["-y", "@tencentcloud/chatsdk-intl-mcp"]
}
}
}Available tools
Tencent Chat MCP provides the following tools that LLMs can use:
read_tuikit_integrate_docs: Fetch documents for integrating the TUIKit in different platforms, such as Android, iOS, and Web.platformName(required): The name of the platform used, e.g. Vue.SDKAppID(required): Your AppID used in Chat application.SDKSecretKey(required): Your secretKey used in Chat application.
read_tuikit_faq_docs: Fetch documents for frequently asked questions related to TUIKit SDK.SDKAppID(optional): Your AppID used in Chat application.
Example prompts
Based on tuikit FAQ documents, where can I find my SDKAppID and SDKSecretKey for applications?
Based on tuikit documents, create a basic chat application by Vue3+Vite. Only use the codes provided by the samples in the documents. Don't change them. My sdkAppId is xxx, and secretKey is xxx. Use placeholders for UserSig and UserID for the program and tell me how to get these things at the end.
Based on tuikit documents, create a basic chat application by React 18. Only use the codes provided by the samples in the documents. Don't change them. My sdkAppId is xxx, and secretKey is xxx. Use placeholders for UserSig and UserID for the program and tell me how to get these things at the end.
