https://mcp.opencommerce.sh/mcp with your Commerce SDK credentials as Authorization: Bearer <YOUR_CLIENT_ID>:<YOUR_CLIENT_SECRET>. See Connect your agent.
Behavior: Changes state. After a timeout, read get_cart before you try again. Can take up to 90 seconds.
What it does
Brings a saved cart back: re-prices every store and returns the cart with what changed at each. Show the changes to the shopper before they approve.Inputs
Returns
Example call
Notes
- A change’s
outcomeisready,changed,checking,needs_input,unavailable, orfailed.beforeis the total the shopper last saw, andnowis the total the store reads now. - A change with
reason: replace_account_cartwaits on the shopper. Once they agree, call again withreplacenaming thatline_keyand itsholds.token. reasonsays more about a change:fees_pending(the store has not added its fees, sonowis the items alone),sold_out,offer_expired(a fare, a room or a time is gone, andask.optionslists close choices still open),offer_gone(the store no longer lists the product),currency_changed, andreplace_account_cart.- Show a change with
fees_pendingas an estimate, and get the total with fees before the shopper pays.