tencent-add-article
腾讯云开发者社区 MCP 服务器 - 基于 Spring Boot 的 MCP 服务实现,专门用于与腾讯云开发者社区进行交互,支持发布文章等功能
claude mcp add --transport stdio viper31-one-tencent-add-article-mcp-server docker run -i tencent-add-article-mcp-server:latest \ --env TENCENT_API_COOKIE="你的腾讯云开发者社区 Cookie"
How to use
This MCP server implements the Tencent Cloud Developer Community integration and exposes an addArticle capability. It accepts Markdown content, converts it to ProseMirror format compatible with Tencent's editor, and publishes articles to the Tencent Cloud Developer Community. The MCP flow lets you call addArticle with a title, markdownContent, and userSummary, and receive a structured response including status, articleId, and url. You can run the server locally via Maven (Spring Boot) or deploy it with Docker. When running via MCP, use the addArticle tool to publish content and rely on the built-in error handling and status feedback to monitor publishing results.
How to install
Prerequisites:
- Java 21 (JDK)
- Maven 3.8+ (for local build and run)
- Git
Install steps:
-
Clone the repository: git clone https://github.com/Viper31-one/tencent-add-article-mcp-server.git cd tencent-add-article-mcp-server
-
Build the project (local development): mvn clean package
-
Run the service (local): mvn spring-boot:run
If you prefer Docker:
-
Build the Docker image (if a Dockerfile is provided in the repo): docker build -t tencent-add-article-mcp-server:latest .
-
Run the container: docker run -i -e TENCENT_API_COOKIE="<your-cookie>" -p 8080:8080 tencent-add-article-mcp-server:latest
Note: The project expects a Tencent Cloud Developer Community cookie for authentication; configure it via an environment variable, a local configuration file, or system properties as described in the repository.
Additional notes
Configuration tips:
- Set the Tencent API cookie via environment variable TENCENT_API_COOKIE or in a local application-local.yml file. The project supports multiple configuration methods with precedence: application-local.yml, environment variables, system properties, then application.yml.
- If running via Docker, pass the cookie as an environment variable to the container.
- Logs are written to data/log/tencent-add-article-mcp-server.log; increase log verbosity for debugging if needed.
- Ensure you are using Java 21 and Maven 3.8+ to avoid compatibility issues.
- The addArticle API expects: title (string), markdownContent (string), userSummary (string). The Markdown is converted to ProseMirror format before publishing.
- For security, avoid hardcoding cookies in code; prefer environment variables or local config files that are gitignored.