weapp agent mcp for VS Code
io.github.chaixueyuan/weapp-agent-mcp
Agent-first MCP server for WeChat Mini Program debugging & automation via WeChat DevTools.
client:VS Code
transport:stdio
runtime:npm
Install weapp agent mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "weapp-ws-endpoint",
"description": "WEAPP_WS_ENDPOINT",
"password": true
},
{
"type": "promptString",
"id": "weapp-automator-mode",
"description": "WEAPP_AUTOMATOR_MODE",
"password": true
},
{
"type": "promptString",
"id": "weapp-project-path",
"description": "WEAPP_PROJECT_PATH",
"password": true
},
{
"type": "promptString",
"id": "wechat-devtools-cli-path",
"description": "WECHAT_DEVTOOLS_CLI_PATH",
"password": true
},
{
"type": "promptString",
"id": "weapp-devtools-port",
"description": "WEAPP_DEVTOOLS_PORT",
"password": true
},
{
"type": "promptString",
"id": "weapp-devtools-timeout",
"description": "WEAPP_DEVTOOLS_TIMEOUT",
"password": true
},
{
"type": "promptString",
"id": "weapp-auto-account",
"description": "WEAPP_AUTO_ACCOUNT",
"password": true
},
{
"type": "promptString",
"id": "weapp-devtools-ticket",
"description": "WEAPP_DEVTOOLS_TICKET",
"password": true
},
{
"type": "promptString",
"id": "weapp-trust-project",
"description": "WEAPP_TRUST_PROJECT",
"password": true
},
{
"type": "promptString",
"id": "weapp-devtools-args",
"description": "WEAPP_DEVTOOLS_ARGS",
"password": true
},
{
"type": "promptString",
"id": "weapp-devtools-cwd",
"description": "WEAPP_DEVTOOLS_CWD",
"password": true
},
{
"type": "promptString",
"id": "weapp-autoclose",
"description": "WEAPP_AUTOCLOSE",
"password": true
},
{
"type": "promptString",
"id": "weapp-autolaunch",
"description": "WEAPP_AUTOLAUNCH",
"password": true
},
{
"type": "promptString",
"id": "weapp-launch-timeout",
"description": "WEAPP_LAUNCH_TIMEOUT",
"password": true
},
{
"type": "promptString",
"id": "weapp-connect-timeout",
"description": "WEAPP_CONNECT_TIMEOUT",
"password": true
}
],
"servers": {
"weapp-agent-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp"
],
"env": {
"WEAPP_WS_ENDPOINT": "${input:weapp-ws-endpoint}",
"WEAPP_AUTOMATOR_MODE": "${input:weapp-automator-mode}",
"WEAPP_PROJECT_PATH": "${input:weapp-project-path}",
"WECHAT_DEVTOOLS_CLI_PATH": "${input:wechat-devtools-cli-path}",
"WEAPP_DEVTOOLS_PORT": "${input:weapp-devtools-port}",
"WEAPP_DEVTOOLS_TIMEOUT": "${input:weapp-devtools-timeout}",
"WEAPP_AUTO_ACCOUNT": "${input:weapp-auto-account}",
"WEAPP_DEVTOOLS_TICKET": "${input:weapp-devtools-ticket}",
"WEAPP_TRUST_PROJECT": "${input:weapp-trust-project}",
"WEAPP_DEVTOOLS_ARGS": "${input:weapp-devtools-args}",
"WEAPP_DEVTOOLS_CWD": "${input:weapp-devtools-cwd}",
"WEAPP_AUTOCLOSE": "${input:weapp-autoclose}",
"WEAPP_AUTOLAUNCH": "${input:weapp-autolaunch}",
"WEAPP_LAUNCH_TIMEOUT": "${input:weapp-launch-timeout}",
"WEAPP_CONNECT_TIMEOUT": "${input:weapp-connect-timeout}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs