commerce-ops-mcp

commerce-ops-mcp

Enables AI agents to investigate why paid orders have not reached shipment creation and create persistent human-review escalations.

Category
Visit Server

README

AI-First Commerce Operations Investigator

This repository implements a bounded operations workflow that explains why a paid order has not reached shipment creation and can create a persistent human-review escalation.

Current state

Phases 0 through 10 are complete. Phase 10 provides a standard remote MCP server on /mcp with five approved tools, strict Zod contracts, Streamable HTTP transport, Host-header protection, safe error mapping, and a passing direct MCP-client evaluation across all nine approved scenarios.

The deterministic workflow remains authoritative for evidence readiness, diagnosis, escalation policy, persistence, and audit behavior. The MCP layer only validates and adapts approved workflow capabilities. Actual LLM/AI-host integration and model-backed evaluations remain Phase 11 work.

Local prerequisites are Bun 1.3.2 and Node.js 20.9.0 or newer.

Plan and working instructions

Implementation status

Phase Status Main output Evaluation
0 Complete Workflow contract and repository rules Report
1 Complete Approved PostgreSQL schema Report
2 Complete Bun and Turborepo foundation Report
3 Complete Approved scenarios, validation, PostgreSQL seed/reset Report
4 Complete Roles, grants, immutable records, cross-table invariants Report
5 Complete Repositories and read-only commerce boundary Report
6 Complete Evidence collection and normalization Report
7 Complete Evidence readiness and conflict gate Report
8 Complete Deterministic diagnosis and suggested action Report
9 Complete Persistent investigation and escalation workflow Report
10 Complete Remote MCP server and direct tool evaluations Report
11 Not started Actual AI-host integration and model evaluations Not created
12 Not started Trace APIs and minimal Tailwind viewer Not created
13 Not started Hardening, deployment, and submission evidence Not created

Phase 10 commands

Run the non-destructive checks first:

bun install --frozen-lockfile
bun run --filter @repo/mcp test
bun run --filter @repo/api test
bun run --filter @repo/evaluations test
bun run build
bun run typecheck

The direct evaluation is intentionally explicit and serial because it uses the configured PostgreSQL roles and owner-only workflow cleanup:

bun run eval:mcp:direct
bun run db:verify-demo

The evaluator builds and starts the real Express API, connects with the official MCP client over Streamable HTTP, executes all nine scenarios, verifies escalation and idempotency behavior, checks forbidden tools and invalid inputs, proves commerce remains unchanged, and clears operations demo rows in finally.

No model provider, model name, or LLM API key is required until Phase 11.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured