1. Get your API key
Use an OrderCore API key with write scope and decide which API base URL Claude should hit.
export ORDERCORE_BASE_URL="https://api.ordercore.ai"
export ORDERCORE_API_KEY="oc_live_..."
Use Claude with OrderCore in two ways: direct Anthropic tool calls against the canonical tooling export, or Claude Desktop connected to a local MCP server that wraps the same checkout flow.
Use an OrderCore API key with write scope and decide which API base URL Claude should hit.
export ORDERCORE_BASE_URL="https://api.ordercore.ai"
export ORDERCORE_API_KEY="oc_live_..."
Compile the standalone OrderCore MCP wrapper once. Claude Desktop will start this binary over stdio.
go build -o ./bin/ordercore-mcp ./cmd/ordercore-mcp
After Claude Desktop reloads, ask for a checkout session with a specific SKU and quantity.
Create a checkout session for sku 3f4f8d41...
quantity 1, currency USD.
{
"mcpServers": {
"ordercore": {
"command": "/ABSOLUTE/PATH/TO/ordercore-project/bin/ordercore-mcp",
"env": {
"ORDERCORE_BASE_URL": "https://api.ordercore.ai",
"ORDERCORE_API_KEY": "oc_live_..."
}
}
}
}
Create a checkout session for sku 3f4f8d41-6d9e-42cd...
quantity 1, currency USD.
Then tell me the next step.
{
"id": "gid://ordercore.ai/Checkout/sess_123",
"currency": "USD",
"status": "incomplete",
"line_items": [
{
"quantity": 1
}
]
}
I created the checkout session.
Next step: attach buyer details, create the
payment intent, and complete checkout after
Stripe confirmation.
BASE_URL=https://api.ordercore.ai \
make smoke-direct-ai-tooling
API_KEY=oc_live_xxx \
ANTHROPIC_API_KEY=sk-ant-... \
BASE_URL=https://api.ordercore.ai \
make e2e-anthropic
go build -o ./bin/ordercore-mcp ./cmd/ordercore-mcp