npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

tcsas-devtools-mcp-server

v0.1.4

Published

An MCP (Model Context Protocol) server to integrate TCSAS-Devtools with AI assistants, enabling natural language control for miniprogram development tasks like launching, previewing, and uploading.

Readme

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

  • Launch IDE: Directly open the TCSAS-Devtools application or a specific miniprogram project.
  • Check Installation: Verify if TCSAS-Devtools is installed on the local machine.
  • Preview Miniprogram: Generate a QR code for previewing the miniprogram on a mobile device.
  • Upload Miniprogram: Upload a new version of the miniprogram with specified version information.
  • Get Runtime Log: Retrieve the latest runtime log and screenshot from the MiniProgram IDE for debugging.

🚀 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 - Enable enable 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.

  • Input Parameters:
    • path (optional, string): The absolute path to the miniprogram project to open.
    • ideInstallPath (optional, string): The absolute path to the IDE installation. If omitted, the IDE will be launched with the default installation path.
  • Output:
    • openApp (boolean): Whether the IDE was launched successfully.
    • openProject (boolean): Whether the project was opened successfully.
    • msg (string): Status message or error details.

checkIdeInstalled

Checks if the TCSAS-Devtools IDE is installed.

  • Input Parameters: None
  • Output:
    • isInstall (boolean): Returns true if the IDE is installed, otherwise false.

previewMiniprogram

Generates a preview QR code for a miniprogram project. Note: This process can take 60-80 seconds to complete.

  • Input Parameters:
    • path (string): The absolute path to the miniprogram project.
  • Output:
    • Returns a QR code image (PNG) that can be scanned to preview the miniprogram.

uploadMiniprogram

Uploads a new version of the miniprogram.

  • Input Parameters:
    • path (string): The absolute path to the project.
    • version (string): The new version number (e.g., "1.0.1").
    • describeMessage (string): A short description of the changes.
  • Output:
    • updateDetail (string): Upload response details or error message.

getMiniProgramRuntimeLog

Get the latest runtime log and screenshot from MiniProgram IDE. Use this after writing or modifying code to verify execution results and UI rendering.

  • Input Parameters:
    • path (string): The absolute path of the miniprogram project.
  • Output:
    • result (string): The runtime log from MiniProgram (console.log, warnings, errors).
    • timestamp (string): When the log was generated.
    • screenshot (image/png): A screenshot of the current MiniProgram view.

🤝 Contributing

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

📜 License

This project is open-sourced under the MIT License.