@anton.andrusenko/shopify-mcp-admin 2.0.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +59 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -100,6 +100,8 @@ SHOPIFY_CLIENT_SECRET=xxxxx
100
100
 
101
101
  Tokens are automatically refreshed every 24 hours.
102
102
 
103
+ > **Remote mode note (multi-tenant):** Shops connected via OAuth now support **expiring offline tokens with automatic refresh** (Shopify Dec 2025 refresh tokens). See `docs/TOKEN-REFRESH-IMPLEMENTATION.md`.
104
+
103
105
  ### Which Should I Use?
104
106
 
105
107
  | Scenario | Method |
@@ -428,6 +430,52 @@ cd ~/LibreChat && git pull && docker compose pull && docker compose up -d
428
430
 
429
431
  > 📄 **Advanced Configuration:** See `librechat.yaml.example` for multi-store setups, role presets, and HTTP/SSE transport modes.
430
432
 
433
+ ### Production Deployment (Admin-Only Access)
434
+
435
+ LibreChat can be deployed alongside your production MCP server with admin-only access. The deployment is integrated into the main workflow:
436
+
437
+ 1. **Configure LibreChat** in your `.env.deploy` file:
438
+ ```bash
439
+ LIBRECHAT_ADMIN_EMAILS=admin@example.com,admin2@example.com
440
+ LIBRECHAT_DOMAIN=chat.shopify-mcp.com
441
+ ```
442
+
443
+ 2. **Deploy with the main script** — LibreChat is automatically configured:
444
+ ```bash
445
+ ./DEPLOY-NOW.sh
446
+ ```
447
+
448
+ The integrated deployment will:
449
+ - ✅ Configure admin-only access (email whitelist)
450
+ - ✅ Set up MCP server connection with your production API key
451
+ - ✅ Configure AI model endpoints (OpenAI, Anthropic, Google, Groq)
452
+ - ✅ Users provide their own LLM API keys in the UI
453
+
454
+ 📖 **Full Guide**: See [LibreChat Production Deployment](./docs/LIBRECHAT-PRODUCTION-DEPLOYMENT.md)
455
+ 📖 **Model Setup**: See [LibreChat Models Setup](./docs/LIBRECHAT-MODELS-SETUP.md)
456
+
457
+ ### Testing with Remote Production Server
458
+
459
+ To connect LibreChat to your **remote production MCP server** (instead of running locally):
460
+
461
+ 1. **Get API Key**: Visit your production dashboard (e.g., `https://shopify-mcp.com/app`) → Settings → API Keys
462
+ 2. **Configure LibreChat**: Update `librechat.yaml` with production server URL:
463
+
464
+ ```yaml
465
+ mcpServers:
466
+ shopify-mcp-production:
467
+ type: streamable-http
468
+ url: https://shopify-mcp.com/mcp
469
+ headers:
470
+ Authorization: "Bearer sk_live_YOUR_API_KEY_HERE"
471
+ timeout: 60000
472
+ serverInstructions: true
473
+ ```
474
+
475
+ 3. **Restart LibreChat**: `docker compose restart api`
476
+
477
+ 📖 **Full Guide**: See [LibreChat Production Testing Guide](docs/LIBRECHAT-PRODUCTION-TESTING.md) for detailed instructions, troubleshooting, and security best practices.
478
+
431
479
  ---
432
480
 
433
481
  ## 🌐 OpenAI/ChatGPT Integration
@@ -1270,6 +1318,14 @@ SERVER_MODE=remote npm start
1270
1318
  - **Forms:** React Hook Form + Zod validation
1271
1319
  - **Auth:** Session cookies with automatic expiry handling
1272
1320
 
1321
+ ### Shopify Token Refresh (Remote Mode)
1322
+
1323
+ When shops are connected via OAuth in remote mode, the server stores **expiring offline tokens** (access + refresh token) and refreshes access tokens automatically before they expire.
1324
+
1325
+ - **Legacy compatibility:** Existing non-expiring tokens continue to work; shops upgrade to refreshable tokens on reconnect.
1326
+ - **DB migration required:** Ensure Prisma migrations are deployed in production before rolling out the server.
1327
+ - **Details:** See `docs/TOKEN-REFRESH-IMPLEMENTATION.md`.
1328
+
1273
1329
  ---
1274
1330
 
1275
1331
  ## 🤝 Contributing
@@ -1354,6 +1410,9 @@ The guide includes:
1354
1410
  - **Database Setup**: Prisma migrations and backup strategy
1355
1411
  - **Staging Environment**: Separate staging deployment configuration
1356
1412
  - **Monitoring**: Sentry error tracking and uptime monitoring setup
1413
+ - **LibreChat Integration**: Automatically deployed with admin-only access (optional)
1414
+
1415
+ **Quick Deploy**: Run `./DEPLOY-NOW.sh` - LibreChat is included automatically if configured in `.env.deploy`
1357
1416
 
1358
1417
  ### Production URLs
1359
1418
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anton.andrusenko/shopify-mcp-admin",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "description": "MCP server for Shopify Admin API - enables AI agents to manage Shopify stores with 79 tools for products, inventory, collections, content, SEO, metafields, markets & translations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",