Order MCP
Click on "Deploy 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., "@Order MCPWhat's the status of my order 12345?"
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.
Controlled Agentic Operations Assistant
A minimal end-to-end operations agent using Groq, MCP, live business APIs, and deterministic refund guardrails.
Architecture
Browser
↓
Chat/session layer
↓
Groq agent
↓
MCP client/server
↓
Deterministic integration guardrail
↓
Order / CRM / Policy systemsMCP lets the agent dynamically discover standardized tools instead of directly knowing each external system's API. The MCP server exposes live order details, customer profiles, and the guarded refund operation.
Related MCP server: commerce-ops-mcp
Services
Order API:
src/backend.tson port3000CRM API:
src/crm-backend.tson port3001Authoritative Policy API:
src/policy-service.tson port3002Chat server and browser UI:
src/chat-server.tson port8080
Safety model
The current refund policy is supplied to the LLM context so the model can plan sensible actions.
The deterministic integration and policy layer prevents
MANUAL_REVIEWandBLOCKdecisions from issuing refund writes.The external Order API independently validates every refund as the final business-system safeguard.
The Policy API is authoritative. The application caches its refund policy for 60 seconds and refreshes it when stale.
Session memory
The LLM is stateless. The chat server stores only user messages and final assistant replies in an in-process session array, then resends that history for each model call. System prompts, MCP calls, and tool results are not persisted.
Live order and customer state is never trusted from conversation memory; MCP tools fetch it from the external systems each time.
Run
Requires Node.js 20 or later and a Groq API key.
npm installStart each process in a separate terminal:
npm run order
npm run crm
npm run policyThen set the key and start the chat server.
PowerShell:
$env:GROQ_API_KEY = "your-key"
npm run chatmacOS/Linux:
export GROQ_API_KEY="your-key"
npm run chatOpen http://localhost:8080.
Demo prompts
Handle the refund for order 101.→ALLOW, refund executedHandle the refund for order 102.→MANUAL_REVIEW, no refund writeRefund order 103.→BLOCK, no refund write
Multi-turn example:
Check order 102.Can you refund it?
Sessions and seeded business data are in memory and reset when their respective processes restart.
This server cannot be deployed
Maintenance
Related MCP Connectors
Turn any task into the right API calls: discover, evaluate, and integrate public APIs.
Ask questions in plain language, get answers from your business database. No SQL required.
LLM Orchestration Agent (Openai)
Ask data questions in natural language. Get SQL, insights, and charts from your databases.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to verify orders in an ERP system through Supabase API, checking order existence and retrieving details.-
- AlicenseAqualityBmaintenanceEnables investigating delayed e-commerce orders by searching orders, retrieving order context, diagnosing delay causes, and recommending resolutions through natural language.4MIT
- FlicenseAqualityBmaintenanceProvides e-commerce customer support tools for order status, delivery, account, and policy questions, with RAG-grounded retrieval and strict authorization checks over mock data.6-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to find stale unshipped orders, retrieve order details, and mark orders as shipped by wrapping the orders REST API as MCP tools.5MIT