doordash_login
Authenticate with DoorDash using stored credentials to enable restaurant searches, menu browsing, cart management, and order placement through the doordash-mcp server.
Instructions
Log into DoorDash. Reads credentials from ~/.doordash-mcp/config.json. Returns success or requests MFA code.
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": "doordash_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/index.ts:99-118 (registration)Registration of the doordash_login tool. It calls the login function from the injected login API and handles success or MFA requirements.
server.registerTool( "doordash_login", { description: "Log into DoorDash. Reads credentials from ~/.doordash-mcp/config.json. Returns success or requests MFA code.", }, () => wrap(async () => { const result = await api.login.login(); if (result.status === "mfa_required") { await api.login.requestMfaCode("email"); return ok( "Verification code sent to your email. Call doordash_verify with the code.", ); } return result.status === "success" ? ok(result.message) : err(result.message); }), );