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.
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); }), );