mp_account_login
Open the WeChat Official Account console and capture a QR code for a human to scan, returning a session token after redirect. Use it to authenticate MCP sessions without handling credentials.
Instructions
Start the QR-code login: opens the console, writes a screenshot of the QR code into the out/ directory and waits for a human to scan it with WeChat. Returns as soon as the console redirects with a session token. The login is manual by design — no credential is ever handled by the server. Limits: timeout_s is 15-600 seconds (default 180); when it runs out the call raises LoginRequired and the reply carries the QR path, so call it again rather than retrying blindly. If the profile already holds a session the call returns immediately with already_logged_in=true.
【中文】启动扫码登录:打开后台、把二维码截图存到 out/ 目录,然后等人用微信扫。控制台一旦带着 session token 跳转就立即返回。登录按设计只能人工完成,服务端从不接触任何凭据。限制:timeout_s 取值 15–600 秒(默认 180);超时会抛 LoginRequired,回包里带二维码路径,所以再调一次即可,不要盲目重试。如果 profile 里已有会话,会立刻返回 already_logged_in=true。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mp_account_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_s | No | how long to wait for the human scan, 15-600 seconds; the call answers early when the redirect happens / 等待人工扫码的秒数,取值 15–600;一旦跳转就提前返回 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||