Checkout with MCP
Let your agent create a checkout, follow progress, and answer questions.
Add the server
{ "mcpServers": { "shopstack": { "command": "npx", "args": [ "-y", "shopstack-mcp" ] } } }The server uses private local Shopstack profiles. Do not put an API key in this configuration.
Select a user profile
Call
list_profiles, thenuse_profilewithprofile. With no account, usestart_signupandpoll_signup. A developer usescreate_userto create an end-user profile.For Link, check
list_connectionsbefore you includepayment_provider.Create and follow
Pass the request fields directly to
create_checkout. Use its returned ID for later calls.{ "checkout_id": "<returned checkout.id>" }Poll every two seconds for
queued,started, andsubmitting; every five seconds forhelp_requiredandapproval_required. Stop at a final state.Answer or hand off
Use
send_messagefor ordinary missing information. If card entry or approval is required, hand the existing checkout ID to a trusted payment interface using the SDK or API.MCP has no card-entry or payment-approval tool. Do not start another
checkout runto handle an existing MCP checkout: that creates a new checkout.
Checkout tools
create_checkoutThe checkout request fieldsCreates one checkout and returns its ID and current state.
poll_checkoutcheckout_idReads status, activity, intent, required input, approval, and available result.
send_messagecheckout_id, contentAnswers an ordinary question. Does not approve payment.
cancel_checkoutcheckout_idRequests cancellation before submission.
MCP results include available order and amount facts. Merchant account credentials are removed from the tool result.