https://mcp.opencommerce.sh/mcp with your Commerce SDK credentials as Authorization: Bearer <YOUR_CLIENT_ID>:<YOUR_CLIENT_SECRET>. See Connect your agent.
Behavior: Read-only for your data. The server moves your read place forward.
What it does
Reads what happened since the lastget_updates: orders placed, confirmed, or on their way, approvals expiring or declined, payments declined, cards saved, and stores signed in to. The server keeps your place, so you send no cursor.
Inputs
Returns
Example call
Notes
- The first call only starts following and returns nothing. Call it once early, then again whenever you check in, and after a
buythat answeredturn_continues. - A message’s
kindis one oforder_placed,order_updated,approval_expiring,payment_declined,card_added,store_connected,approval_declined, and similar. - When
advancesistrueand you passedthread_id, the next step runs on its own. Ifnext_step.outcomeisran, tell the shopper whatnext_step.resultsays, with its links, instead oftext, and don’t ask them to say done. - A message about an order carries
order, the order as it stands now with every earlier message about it folded in, andends_step, the step link the message ends. Onorder_placedwiththread_id,placed_cartsholds the chat’s carts. - Send each message’s
textto its shopper as is, with its links verbatim. Skip a message whosevalid_untilhas passed.