commerce-ops-recovery-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@commerce-ops-recovery-mcpInvestigate order ORD-DEMO-1042 and prepare a recovery plan"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Commerce Operations Recovery MCP
A remotely hosted MCP server that helps commerce operations investigate and safely recover an order left inconsistent after a captured-payment webhook failure.
Planned workflow
Investigate an order using an order ID.
Review payment, webhook, inventory, and fulfillment evidence.
Prepare an exact recovery plan.
Require explicit operator approval.
Apply the approved recovery atomically.
Verify the final state and durable audit history.
Related MCP server: ecommerce-mcp
Recovery eligibility
Recovery is allowed only when:
Synthetic payment evidence shows the payment was captured.
The local order still shows payment pending.
The payment webhook failed.
Sufficient inventory exists and no reservation has already been created.
The order is not cancelled, refunded, disputed, packed, or dispatched.
Allowed recovery actions
Mark the local order payment as paid.
Reserve the exact ordered inventory.
Move the order to ready for fulfillment.
Move blocked pre-dispatch fulfillment to ready.
Record reconciliation, audit, and idempotency results.
Safety boundary
The MCP never:
Captures, retries, voids, or refunds payments.
Changes physical on-hand inventory.
Changes order-item quantities.
Modifies packed or dispatched fulfillment.
Executes arbitrary SQL or arbitrary status updates.
Local development
Start the Worker:
pnpm devThe Worker exposes two separate routes on the same origin:
GET /healthfor deployment and monitoring checks.GET /health/databasefor the fixed PostgreSQL connectivity check./mcpfor Streamable HTTP MCP clients.
For local database development, copy the environment template:
cp .env.example .envSet CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE in the new
file to a direct (non-pooled) Neon connection string with
sslmode=require, then start the Worker:
pnpm devThe .env file is ignored by Git. pnpm dev loads it into the Wrangler
process, which uses the connection string to emulate the HYPERDRIVE
binding. Local mode connects directly to PostgreSQL, so Hyperdrive pooling
and query caching do not run locally.
Verify the database path:
curl http://localhost:8787/health/databaseThe endpoint runs only SELECT 1 AS connected; it does not accept SQL from
the request. Deployed traffic uses the cache-disabled HYPERDRIVE binding.
To test the actual Cloudflare Hyperdrive configuration without deploying, use remote development:
pnpm dev:remoteRemote development runs the Worker on Cloudflare and uses the hosted Neon database, so treat it like a production-data connection.
Database schema
The Drizzle schema in src/db/schema.ts is the source of truth. Generated
PostgreSQL migrations and Drizzle metadata are committed under migrations/.
With the direct Neon connection string configured in .env:
pnpm db:generate
pnpm db:migrate
pnpm db:verifydb:verify checks the complete public table and constraint catalog. Database
migrations use the direct Neon connection instead of the Worker-facing
Hyperdrive connection.
Seed the three deterministic investigation scenarios with:
pnpm db:seedThe seed is repeatable and replaces only ORD-DEMO-1042, ORD-DEMO-2042,
ORD-DEMO-3042, and their dedicated inventory SKUs. All seeded order-item
prices use INR minor units, and the captured payment currency is INR.
Inspect the MCP tools from another terminal:
pnpm dlx @modelcontextprotocol/inspector@latest \
--cli http://localhost:8787/mcp \
--transport http \
--method tools/listThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityBmaintenanceMCP server enabling AI agents to trace and resolve order synchronization incidents between an ERP (Odoo) and multiple marketplaces.Last updated8MIT
- Alicense-qualityBmaintenanceMCP server for commerce-operations self-service. Lets an AI agent look up order details and search orders without needing developer or SQL access.Last updated13MIT
- Flicense-qualityBmaintenanceCommerceOps MCP Server is an AI-native Model Context Protocol server for e-commerce operations, enabling AI agents to autonomously diagnose and resolve operational exceptions such as stuck orders, missed payment webhooks, warehouse delays, and oversold inventory, with built-in safety guardrails and audit logging.Last updated
- Flicense-qualityCmaintenanceMCP server for investigating payment/webhook drift, classifying order status mismatches, detecting duplicate charges, and escalating findings for human review. It is read-only for payment state and does not automatically retry or correct transactions.Last updated
Related MCP Connectors
A paid remote MCP for hosted MCP server, built to return verdicts, receipts, usage logs, and audit-r
Remote MCP for A2A failure replay MCP, structured receipts, audit logs, and reviewer-ready evidence.
Remote MCP for Universal Cart merchant readiness MCP, structured receipts, audit logs, and reviewer-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/althaf-ka/commerce-ops-recovery-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server