← Public packages
@kody/doordash
Order food on DoorDash as a customer through the consumer MCP used by dd-cli.
src/store-details.ts
16 lines · 457 B · TypeScriptimport { callMcpTool, TOOLS, type DoorDashMcpAuthInput } from './mcp.ts'
export type StoreDetailsInput = DoorDashMcpAuthInput & {
storeId: string | number
dryRun?: boolean
}
export default async function storeDetails(input: StoreDetailsInput) {
const storeId = String(input.storeId ?? '').trim()
if (!storeId) throw new Error('storeId is required.')
return callMcpTool({
...input,
name: TOOLS.storeInfo,
arguments: { store_id: storeId },
})
}