Agent-first MCP server for WeChat Mini Program debugging & automation. 面向 agent 的微信小程序 MCP 服务,让 Claude Code / Cursor 直接操作微信开发者工具。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add weapp-agent --env WEAPP_AUTO_ACCOUNT='<WEAPP_AUTO_ACCOUNT>' --env WEAPP_DEVTOOLS_TICKET='<WEAPP_DEVTOOLS_TICKET>' -- npx -y @chaixueyuan/weapp-agent-mcp~/.codex/config.toml
[mcp_servers.weapp-agent]
command = "npx"
args = ["-y", "@chaixueyuan/weapp-agent-mcp"]
env = { WEAPP_AUTO_ACCOUNT = "<WEAPP_AUTO_ACCOUNT>", WEAPP_DEVTOOLS_TICKET = "<WEAPP_DEVTOOLS_TICKET>" }
# codex mcp add weapp-agent --env WEAPP_AUTO_ACCOUNT='<WEAPP_AUTO_ACCOUNT>' --env WEAPP_DEVTOOLS_TICKET='<WEAPP_DEVTOOLS_TICKET>' -- npx -y @chaixueyuan/weapp-agent-mcp~/.cursor/mcp.json
{
"mcpServers": {
"weapp-agent": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<WEAPP_DEVTOOLS_TICKET>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"weapp-agent": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<WEAPP_DEVTOOLS_TICKET>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"weapp-agent": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<WEAPP_DEVTOOLS_TICKET>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"weapp-agent": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<WEAPP_DEVTOOLS_TICKET>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"weapp-agent": {
"command": "npx",
"args": [
"-y",
"@chaixueyuan/weapp-agent-mcp"
],
"env": {
"WEAPP_AUTO_ACCOUNT": "<WEAPP_AUTO_ACCOUNT>",
"WEAPP_DEVTOOLS_TICKET": "<WEAPP_DEVTOOLS_TICKET>"
}
}
}
}Environment variables
WEAPP_AUTO_ACCOUNTWEAPP_DEVTOOLS_TICKET
Replace the placeholders with your own credentials and keep them out of version control.