This site exposes a Model Context Protocol server so your local agent (OpenCode, OpenHands, Claude Desktop, Cursor, Cline, etc.) can read traffic, orders, users, vendors, integration status, and run admin actions.
POST https://www.apex-tat-va.store/api/mcp Authorization: Bearer <MCP_SECRET> Content-Type: application/json
ping — health checklist_routes — all pages on the siteget_traffic_stats — pageviews by path (last N days)list_orders — recent ordersrevenue_summary — order revenue + MRRlist_users — recent user profilesgrant_admin — give admin role to a userlist_vendors — bazaar vendorsintegration_status — which API keys are configuredsql_select — read-only single-table query{
"mcp": {
"apex-tatva": {
"type": "remote",
"url": "https://www.apex-tat-va.store/api/mcp",
"headers": { "Authorization": "Bearer YOUR_MCP_SECRET" }
}
}
}{
"mcpServers": {
"apex-tatva": {
"url": "https://www.apex-tat-va.store/api/mcp",
"headers": { "Authorization": "Bearer YOUR_MCP_SECRET" }
}
}
}curl -X POST https://www.apex-tat-va.store/api/mcp \
-H "Authorization: Bearer $MCP_SECRET" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'The secret is stored server-side as MCP_SECRET. Open the backend panel → Secrets to reveal/rotate it. Treat it like a master key: anyone with this token can call every tool above.
Tools live in src/lib/mcp/tools/index.ts. Add a new defineTool and export it from allTools — the endpoint picks it up automatically. Future tools planned: GitHub PR creation, affiliate-key upload, customer-inquiry triage, Stripe refunds, content publishing.