RC

rn1024/creatoria-miniapp-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

9 stars 5 forks 质量 65 趋势 11

WeChat迷你程序自动化的模型上下文协议(MCP)服务器使用官方的迷你程序自动程序SDK.

概览

WeChat迷你程序自动化的模型上下文协议(MCP)服务器使用官方的迷你程序自动程序SDK. - 65 AI - 优化自然语言自动化工具 - :自动化器、MiniProgram、Page、Elements、Assert、Snapshot、Record、Network工具 - :为所有Aync操作构建超时保护和重试机制 - :从工程.config.json或app.json中自动检测项目路径 - :不需要安装,只是npx - y@creatoria/minapp-mcp - : 构建中坚持和记录能力 - :包含全面测试覆盖的完整类型定义 添加到您的 Claude 桌面配置( ~/ 图书馆/ 应用程序支持/ Claude/ desktop config.json) : 服务器会自动检测您的迷你程序项目 。 服务器将WeChat的官方小型程序自动程序SDK包起来,通过"模型背景协议"将其曝光. 这使得克劳德等AI助手可以: 1.到 WeChat DevTools 自动化接口 2. 迷你程序 UI通过自然语言 3.

概述(AI 翻译)

WeChat迷你程序自动化的模型上下文协议(MCP)服务器,使用官方[[T0] SDK.

– – . . .

□ 特性

  • ** LLM-友好**:65个人工智能优化工具,用于自然语言自动化
  • ** 完成覆盖**:自动化器、微型程序、页面、元素、自动、快照、记录、网络工具
  • ** Robust Runtime**:为所有合成操作建立超时保护和重试机制
  • 零配置:从[[T1]或app.json自动探测项目路径
  • npx准备:不需要安装,只是npx -y @creatoria/miniapp-mcp
  • ** 测试自动化**:内置的断言和记录能力
  • ** TypeScript**:包含全面测试范围的完整类型定义

□ 快开始

  • 安装

使用 npx( 建议):

或在全球安装:

QQ 配置

添加到您的 Claude 桌面配置 ([ [T4] ):

就是这样! 服务器会自动检测您的迷你程序项目 。

高级配置

QQ 自定义工程路径

使用配置文件

在您的工程根中创建 [[T5] :

然后使用:

环境变量

如何运作

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

WeChat Mini Program MCP Server

Model Context Protocol (MCP) server for WeChat Mini Program automation using the official miniprogram-automator SDK.


Features

  • LLM-Friendly: 65 AI-optimized tools for natural language automation
  • Complete Coverage: Automator, MiniProgram, Page, Element, Assert, Snapshot, Record, Network tools
  • Robust Runtime: Built-in timeout protection and retry mechanism for all async operations
  • Zero Config: Auto-detects project path from project.config.json or app.json
  • npx Ready: No installation needed, just npx -y @creatoria/miniapp-mcp
  • Test Automation: Built-in assertion and recording capabilities
  • TypeScript: Full type definitions with comprehensive test coverage

Quick Start

Installation

Use with npx (recommended):

npx -y @creatoria/miniapp-mcp

Or install globally:

npm install -g @creatoria/miniapp-mcp

Configuration

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "miniprogram": {
      "command": "npx",
      "args": ["-y", "@creatoria/miniapp-mcp"]
    }
  }
}

That’s it! The server will automatically detect your mini program project.

How It Works

The server wraps WeChat’s official miniprogram-automator SDK, exposing it through the Model Context Protocol. This allows AI assistants like Claude to:

  1. Connect to WeChat DevTools automation interface
  2. Control mini program UI through natural language
  3. Verify behavior with built-in assertions
  4. Debug with snapshots and recordings

Auto-Detection

The server automatically searches for mini program projects:

  • Current directory (checks for project.config.json or app.json)
在 GitHub 查看完整 README

安装

npx -y @creatoria/miniapp-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "miniprogram": { "command": "npx", "args": ["-y", "@creatoria/miniapp-mcp"] } } }