GitHub - TCMPP-Team/tcsas-devtools-mcp-server (original) (raw)

TCSAS-Devtools MCP Server

License: MIT

An MCP (Model Context Protocol) server designed to connect AI assistants with TCSAS-Devtools for a seamless miniprogram development experience.

This server wraps the basic functionalities of TCSAS-Devtools into a set of tools that can be called by AI assistants (like CodeBuddy, Cursor, Claude), allowing you to open, build, preview, and upload miniprograms using natural language.

✨ Features

🚀 Prerequisites

Before you begin, ensure you have the following software installed:

📦 Installation and Setup

  1. For first-time use, please download the installation package for TCSAS-Devtools from the console in advance, the version should >= 2.2.15.
  2. After installation, please open it to complete the login process and enable the service port.

login pannel Settings - Security - Enableenable Service port

Ensure the above steps are completed. Then you can configure the MCP server in your Code Agent and start using it.

🤖 How to Use in Cursor

You can integrate this server with any AI assistant that supports custom MCP servers. Here are the steps to configure it in Cursor:

  1. Open Cursor Settings: In Cursor, find the settings for AI integration. This is usually located in Settings > Tools & MCP or a similar configuration area for managing AI providers.
  2. Add Custom MCP Service: Look for an option like "Add Model Context Provider" or "MCP Server" and click "Add".
  3. Enter Command: For example:
    {
    "tcsas-devtools-mcp-server": {
    "command": "npx",
    "args": [
    "-y",
    "tcsas-devtools-mcp-server@latest"
    ]
    }
    }
    Illustration: (A screenshot of the Cursor settings panel could be like this, showing the user entering the command in the mcp.json)
    Cursor MCP Configuration
  4. Connect and Start Using: After adding, Cursor will connect to your local server. Now you can interact with it in the chat. For example, you can type:

    "Launch TCSAS-Devtools and open my project at /Users/me/projects/my-miniprogram."
    "Generate a preview QR code for the project I'm currently developing."

🛠️ Tool API Reference

Below is a detailed description of all the tools provided by this MCP server:

launchIde

Launches the TCSAS-Devtools IDE.

checkIdeInstalled

Checks if the TCSAS-Devtools IDE is installed.

previewMiniprogram

Generates a preview QR code for a miniprogram project.

uploadMiniprogram

Uploads a new version of the miniprogram.

Contributions are welcome! Please feel free to submit a Pull Request.

📜 License

This project is open-sourced under the MIT License.