MCP Integration
Model Context Protocol server for AI agents working with Order Change.
What is MCP?
The Model Context Protocol (MCP) is an open standard that lets AI agents connect to external systems through a unified interface. Order Change provides an MCP server so agents can help merchants manage orders (check eligibility, preview changes, and commit edits) while respecting the merchant's plan limits and settings.
Agents use the same capabilities as the Order Change API. All edits honor the merchant's configured edit window, enabled capabilities, and plan tier.
Tool Catalog
The Order Change MCP server exposes the following tools. Each tool respects the merchant's plan and settings.
get_order
Retrieve order details by store ID and order ID. Returns line items, customer info, shipping address, and fulfillment status.
Plan: Free
get_change_window
Get the edit window status for an order. Returns whether the window is still open and when it closes.
Plan: Free
get_edit_history
Returns the edit history recorded for the order. Coverage is limited.
Plan: Free
preview_address_change
Preview a shipping address change. Returns a preview_id for the commit call. Does not modify the order.
Plan: Free
commit_address_change
Commit a previewed address change. Must follow a successful preview. Updates the order's shipping address.
Plan: Free
preview_contact_change
Preview contact info changes (email, phone). Returns the updated contact details for verification.
Plan: Free
commit_contact_change
Commit previewed contact changes. Updates the customer's email and/or phone number on the order.
Plan: Free
preview_items_change
Preview line item changes: remove items, change variants, or update quantities. Returns the updated order total.
Plan: Pro
commit_items_change
Commit previewed item changes. Updates the order's line items and totals.
Plan: Pro
preview_cancel
Preview order cancellation. Returns refund details for a refund to the original payment method.
Plan: Free
commit_cancel
Cancel the order and issue a full refund to the original payment method. The merchant's store-credit setting does not apply on cancel. The order must be inside the store's cancellation window and still editable.
Plan: Free
preview_discount
Preview applying a discount code. Returns updated order totals with the discount applied.
Plan: Pro
commit_discount
Commit a previewed discount code. Applies the discount to the order.
Plan: Pro
Plan Eligibility
Tool availability depends on the merchant's plan. Agents should always call get_change_window first to determine whether the order is still within the edit window, and check plan restrictions before attempting Pro-tier operations.
Free Plan ($0/mo)
Up to 1,000 orders a month
- ✓
get_order - ✓
get_change_window - ✓
get_edit_history - ✓
preview_address_change - ✓
commit_address_change - ✓
preview_contact_change - ✓
commit_contact_change - ✓
preview_cancel - ✓
commit_cancel
Pro Plan ($49/mo)
Up to 5,000 orders a month
- ✓ All Free plan tools
- ✓
preview_items_change - ✓
commit_items_change - ✓
preview_discount - ✓
commit_discount
Enterprise
Custom · above 5,000 orders a month
- ✓ All Pro plan tools
- ✓ Higher API and MCP limits
- ✓ Custom edit rules
- ✓ Hands-on onboarding
Talk to us for higher quotas.
Free and Pro both include MCP access. Enterprise changes quotas and custom rules. It does not take the Free or Pro tools away. API keys are per store. One-click upsells are included on Pro and Enterprise.
Plan upgrades are UI-only
Merchants change their plan through the Order Change dashboard. There is no MCP tool or API endpoint to upgrade or downgrade plans (per architectural decision). Agents should direct merchants to the dashboard if they need Pro capabilities.
Preview & Commit Flow
Edits follow a two-step pattern: preview first, then commit.
- Call
get_change_window: Verify the order is still within the merchant's configured edit window and check which capabilities are enabled. - Call the preview tool: See the proposed change before it is applied. The preview includes the updated total where the edit changes the price.
- Show preview to merchant or customer: Let them confirm the change before applying it.
- Call the commit tool: Apply the change to the order. This step modifies the order in Shopify.
The preview step can be called multiple times. The commit step is permanent and can only succeed within the merchant's edit window.
When an edit increases the order total, the customer is sent a Shopify payment link. The tool returns requires_payment and payment_url. The edit does not charge a saved card.
When an edit decreases the order total, the refund follows the merchant's setting: the original payment method or store credit, with optional auto-refund. The customer does not choose the refund method. Cancellation is separate: commit_cancel refunds to the original payment method, and the merchant's store-credit setting does not apply.
Connection & Authentication
Order Change supports the Model Context Protocol over Streamable HTTP. Any MCP-compatible client (Cursor, Claude Desktop, custom agents) can connect with a Bearer API key.
Connection Details
Endpoint
https://mcp.orderchange.com/mcpTransport
MCP Streamable HTTP (stateless)
Required Headers
Content-Type: application/jsonAccept: application/json, text/event-streamAuthorization: Bearer ock_test_* | ock_live_*Methods
initialize: Start session (stateless, always succeeds with valid auth)tools/list: Enumerate available toolstools/call: Execute a tool with parametersGet Your API Key
Create and manage API keys in the Order Change app in your Shopify admin: open Order Change → API Keys. Each key is shown once when you create it, is scoped to your store, and can be revoked at any time. Revoking a key stops it from working.
You can name each key and see its scopes on that page. Scopes are read, address, items, discount, cancel, and history. Keys are Bearer tokens (ock_live_ or ock_test_), and the prefix sets the environment. The page also shows how to connect an MCP client.
ock_test_*: Sandbox (ock_test_)ock_live_*: Live (ock_live_)
Using order editing through another Get Plus app? Contact us for a key.
Client-Specific Configuration
The exact setup depends on your MCP client. Below are examples for common clients. All clients connect to the same Streamable HTTP endpoint.
Cursor / Claude Desktop / Generic MCP Client
Add to your MCP client configuration (for example mcp.json or claude_desktop_config.json):
{
"mcpServers": {
"orderchange": {
"url": "https://mcp.orderchange.com/mcp",
"transport": {
"type": "http",
"headers": {
"Authorization": "Bearer ock_test_YOUR_KEY_HERE"
}
}
}
}
}Some clients support environment variable substitution. Check your client's documentation for details.
Custom Integration
For custom MCP clients, send JSON-RPC 2.0 requests over HTTP POST:
POST https://mcp.orderchange.com/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
Authorization: Bearer ock_test_YOUR_KEY_HERE
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": {
"name": "your-client",
"version": "1.0.0"
}
}
}Authentication is required
Unauthenticated requests to /mcp return 401 Unauthorized. All MCP methods (initialize, tools/list, tools/call) require a valid Bearer API key on every request. The transport is stateless.
Once connected, your agent will see all available Order Change tools and can call them as needed. Tool availability depends on the merchant's plan (see Plan Eligibility).
Questions?
MCP support and integration help: support@orderchange.com