wechatmp mcp for VS Code
io.github.xiaobinger/wechatmp-mcp
Create 贴图/图文 in the WeChat Official Account console; save or publish. 公众号后台:建贴图/图文,存草稿或发表。
client:VS Code
transport:stdio
runtime:pypi
Install wechatmp mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "wxmp-profile-dir",
"description": "WXMP_PROFILE_DIR",
"password": true
},
{
"type": "promptString",
"id": "wxmp-out-dir",
"description": "WXMP_OUT_DIR",
"password": true
},
{
"type": "promptString",
"id": "wxmp-browser-channel",
"description": "WXMP_BROWSER_CHANNEL",
"password": true
},
{
"type": "promptString",
"id": "wxmp-headless",
"description": "WXMP_HEADLESS",
"password": true
},
{
"type": "promptString",
"id": "wxmp-cdp-url",
"description": "WXMP_CDP_URL",
"password": true
},
{
"type": "promptString",
"id": "wxmp-http-token",
"description": "WXMP_HTTP_TOKEN",
"password": true
}
],
"servers": {
"wechatmp-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"wechatmp-publish-mcp"
],
"env": {
"WXMP_PROFILE_DIR": "${input:wxmp-profile-dir}",
"WXMP_OUT_DIR": "${input:wxmp-out-dir}",
"WXMP_BROWSER_CHANNEL": "${input:wxmp-browser-channel}",
"WXMP_HEADLESS": "${input:wxmp-headless}",
"WXMP_CDP_URL": "${input:wxmp-cdp-url}",
"WXMP_HTTP_TOKEN": "${input:wxmp-http-token}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs