weapp-agent-mcp
An agent-first MCP server that enables AI agents like Claude Code, Cursor, and Codex to directly drive WeChat DevTools for debugging, UI automation, page inspection, and lightweight regression testing of WeChat Mini Programs.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Debugging WeChat Mini Programs via agent-driven tool calls
- Automating UI interactions and page inspections
- Running lightweight regression tests and generating reports
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@chaixueyuan/weapp-agent-mcp 0.4.8
{
"version": "0.4.8",
"transport": "stdio",
"identifier": "@chaixueyuan/weapp-agent-mcp",
"registryType": "npm",
"environmentVariables": [
{
"name": "WEAPP_WS_ENDPOINT",
"format": "string",
"description": "Automation WebSocket endpoint for the 'connect' flow (e.g. ws://localhost:9420). When a local endpoint is not listening and auto-launch is enabled, mp_ensureConnection may start DevTools if it can resolve a project."
},
{
"name": "WEAPP_AUTOMATOR_MODE",
"format": "string",
"description": "Force 'launch' or 'connect' mode. Defaults to 'launch' unless WEAPP_WS_ENDPOINT is set."
},
{
"name": "WEAPP_PROJECT_PATH",
"format": "string",
"description": "Optional Mini Program project directory used by launch and local auto-launch flows. The server can also resolve a persisted default, a recent project, or the current working directory."
},
{
"name": "WECHAT_DEVTOOLS_CLI_PATH",
"format": "string",
"description": "Optional override for the WeChat DevTools CLI binary path (e.g. /Applications/wechatwebdevtools.app/Contents/MacOS/cli on macOS)."
},
{
"name": "WEAPP_DEVTOOLS_PORT",
"format": "string",
"description": "Automation websocket port passed to 'cli auto --auto-port' in launch mode (default 9420)."
},
{
"name": "WEAPP_DEVTOOLS_TIMEOUT",
"format": "string",
"description": "Milliseconds passed to miniprogram-automator when launching WeChat DevTools."
},
{
"name": "WEAPP_AUTO_ACCOUNT",
"format": "string",
"description": "Optional account passed to miniprogram-automator launch."
},
{
"name": "WEAPP_DEVTOOLS_TICKET",
"format": "string",
"description": "Optional DevTools launch ticket."
},
{
"name": "WEAPP_TRUST_PROJECT",
"format": "string",
"description": "Whether launch mode should trust the project. Accepts true/false, 1/0, yes/no, or on/off."
},
{
"name": "WEAPP_DEVTOOLS_ARGS",
"format": "string",
"description": "Additional whitespace-separated CLI arguments passed during launch."
},
{
"name": "WEAPP_DEVTOOLS_CWD",
"format": "string",
"description": "Optional working directory passed to the DevTools launch process."
},
{
"name": "WEAPP_AUTOCLOSE",
"format": "string",
"description": "Whether to close or disconnect the automator session after each tool call. Accepts true/false, 1/0, yes/no, or on/off."
},
{
"name": "WEAPP_AUTOLAUNCH",
"format": "string",
"description": "Allow mp_ensureConnection to launch local WeChat DevTools with cli auto when the configured local automation port is not listening. Defaults to enabled; set false to disable."
},
{
"name": "WEAPP_LAUNCH_TIMEOUT",
"format": "string",
"description": "Milliseconds to wait for a locally auto-launched automation port (default 45000)."
},
{
"name": "WEAPP_CONNECT_TIMEOUT",
"format": "string",
"description": "Milliseconds to wait for an automator websocket connection (default 45000)."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"weapp-agent-mcp": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp@0.4.8"
],
"env": {
"WEAPP_WS_ENDPOINT": "<YOUR_WEAPP_WS_ENDPOINT>",
"WEAPP_AUTOMATOR_MODE": "<YOUR_WEAPP_AUTOMATOR_MODE>",
"WEAPP_PROJECT_PATH": "<YOUR_WEAPP_PROJECT_PATH>",
"WECHAT_DEVTOOLS_CLI_PATH": "<YOUR_WECHAT_DEVTOOLS_CLI_PATH>",
"WEAPP_DEVTOOLS_PORT": "<YOUR_WEAPP_DEVTOOLS_PORT>",
"WEAPP_DEVTOOLS_TIMEOUT": "<YOUR_WEAPP_DEVTOOLS_TIMEOUT>",
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>",
"WEAPP_TRUST_PROJECT": "<YOUR_WEAPP_TRUST_PROJECT>",
"WEAPP_DEVTOOLS_ARGS": "<YOUR_WEAPP_DEVTOOLS_ARGS>",
"WEAPP_DEVTOOLS_CWD": "<YOUR_WEAPP_DEVTOOLS_CWD>",
"WEAPP_AUTOCLOSE": "<YOUR_WEAPP_AUTOCLOSE>",
"WEAPP_AUTOLAUNCH": "<YOUR_WEAPP_AUTOLAUNCH>",
"WEAPP_LAUNCH_TIMEOUT": "<YOUR_WEAPP_LAUNCH_TIMEOUT>",
"WEAPP_CONNECT_TIMEOUT": "<YOUR_WEAPP_CONNECT_TIMEOUT>"
}
}
}
}Cline
{
"mcpServers": {
"weapp-agent-mcp": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp@0.4.8"
],
"env": {
"WEAPP_WS_ENDPOINT": "<YOUR_WEAPP_WS_ENDPOINT>",
"WEAPP_AUTOMATOR_MODE": "<YOUR_WEAPP_AUTOMATOR_MODE>",
"WEAPP_PROJECT_PATH": "<YOUR_WEAPP_PROJECT_PATH>",
"WECHAT_DEVTOOLS_CLI_PATH": "<YOUR_WECHAT_DEVTOOLS_CLI_PATH>",
"WEAPP_DEVTOOLS_PORT": "<YOUR_WEAPP_DEVTOOLS_PORT>",
"WEAPP_DEVTOOLS_TIMEOUT": "<YOUR_WEAPP_DEVTOOLS_TIMEOUT>",
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>",
"WEAPP_TRUST_PROJECT": "<YOUR_WEAPP_TRUST_PROJECT>",
"WEAPP_DEVTOOLS_ARGS": "<YOUR_WEAPP_DEVTOOLS_ARGS>",
"WEAPP_DEVTOOLS_CWD": "<YOUR_WEAPP_DEVTOOLS_CWD>",
"WEAPP_AUTOCLOSE": "<YOUR_WEAPP_AUTOCLOSE>",
"WEAPP_AUTOLAUNCH": "<YOUR_WEAPP_AUTOLAUNCH>",
"WEAPP_LAUNCH_TIMEOUT": "<YOUR_WEAPP_LAUNCH_TIMEOUT>",
"WEAPP_CONNECT_TIMEOUT": "<YOUR_WEAPP_CONNECT_TIMEOUT>"
}
}
}
}VS Code
{
"servers": {
"weapp-agent-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp@0.4.8"
],
"env": {
"WEAPP_WS_ENDPOINT": "<YOUR_WEAPP_WS_ENDPOINT>",
"WEAPP_AUTOMATOR_MODE": "<YOUR_WEAPP_AUTOMATOR_MODE>",
"WEAPP_PROJECT_PATH": "<YOUR_WEAPP_PROJECT_PATH>",
"WECHAT_DEVTOOLS_CLI_PATH": "<YOUR_WECHAT_DEVTOOLS_CLI_PATH>",
"WEAPP_DEVTOOLS_PORT": "<YOUR_WEAPP_DEVTOOLS_PORT>",
"WEAPP_DEVTOOLS_TIMEOUT": "<YOUR_WEAPP_DEVTOOLS_TIMEOUT>",
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>",
"WEAPP_TRUST_PROJECT": "<YOUR_WEAPP_TRUST_PROJECT>",
"WEAPP_DEVTOOLS_ARGS": "<YOUR_WEAPP_DEVTOOLS_ARGS>",
"WEAPP_DEVTOOLS_CWD": "<YOUR_WEAPP_DEVTOOLS_CWD>",
"WEAPP_AUTOCLOSE": "<YOUR_WEAPP_AUTOCLOSE>",
"WEAPP_AUTOLAUNCH": "<YOUR_WEAPP_AUTOLAUNCH>",
"WEAPP_LAUNCH_TIMEOUT": "<YOUR_WEAPP_LAUNCH_TIMEOUT>",
"WEAPP_CONNECT_TIMEOUT": "<YOUR_WEAPP_CONNECT_TIMEOUT>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"weapp-agent-mcp": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp@0.4.8"
],
"env": {
"WEAPP_WS_ENDPOINT": "<YOUR_WEAPP_WS_ENDPOINT>",
"WEAPP_AUTOMATOR_MODE": "<YOUR_WEAPP_AUTOMATOR_MODE>",
"WEAPP_PROJECT_PATH": "<YOUR_WEAPP_PROJECT_PATH>",
"WECHAT_DEVTOOLS_CLI_PATH": "<YOUR_WECHAT_DEVTOOLS_CLI_PATH>",
"WEAPP_DEVTOOLS_PORT": "<YOUR_WEAPP_DEVTOOLS_PORT>",
"WEAPP_DEVTOOLS_TIMEOUT": "<YOUR_WEAPP_DEVTOOLS_TIMEOUT>",
"WEAPP_AUTO_ACCOUNT": "<YOUR_WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<YOUR_WEAPP_DEVTOOLS_TICKET>",
"WEAPP_TRUST_PROJECT": "<YOUR_WEAPP_TRUST_PROJECT>",
"WEAPP_DEVTOOLS_ARGS": "<YOUR_WEAPP_DEVTOOLS_ARGS>",
"WEAPP_DEVTOOLS_CWD": "<YOUR_WEAPP_DEVTOOLS_CWD>",
"WEAPP_AUTOCLOSE": "<YOUR_WEAPP_AUTOCLOSE>",
"WEAPP_AUTOLAUNCH": "<YOUR_WEAPP_AUTOLAUNCH>",
"WEAPP_LAUNCH_TIMEOUT": "<YOUR_WEAPP_LAUNCH_TIMEOUT>",
"WEAPP_CONNECT_TIMEOUT": "<YOUR_WEAPP_CONNECT_TIMEOUT>"
}
}
}
}Let your agent find its tools
Find servers like weapp-agent-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.