x402_quick_wallet_auth
Authenticates users for quick wallet payments via device-flow OAuth. Opens browser login (Gate or Google) when the session token is invalid, then returns ready status and wallet addresses.
Instructions
When the user selects sign_mode quick_wallet, run this tool first to perform the same device-flow login/authorization as the quick_wallet signing path. If the in-process MCP token is already valid, returns ready status and wallet addresses; otherwise opens the browser flow (Gate by default, or Google if wallet_login_provider is google). After a fresh login succeeds, the user may need to confirm before continuing to payment. To switch authorization provider (e.g. Gate vs Google), restart the MCP server; the in-process wallet client keeps the current session until restart.
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": "x402_quick_wallet_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_login_provider | No | Device-flow OAuth provider when MCP token is missing or expired. google = Google account, gate = Gate account. Defaults to gate. |