@anton.andrusenko/shopify-mcp-admin 1.1.1 → 1.1.2

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 +192 -0
  2. package/package.json +3 -5
package/README.md CHANGED
@@ -191,6 +191,198 @@ Quit and reopen Claude Desktop. You should see "shopify" in the MCP servers list
191
191
 
192
192
  ---
193
193
 
194
+ ## 💬 LibreChat Integration
195
+
196
+ [LibreChat](https://www.librechat.ai/) is an open-source AI chat interface that supports MCP servers natively. This section provides a complete guide to set up LibreChat with the Shopify MCP server.
197
+
198
+ ### Prerequisites
199
+
200
+ - **Docker Desktop** — [Download](https://www.docker.com/products/docker-desktop) and ensure it's running
201
+ - **Git** — For cloning repositories
202
+ - **LLM API Key** — OpenAI or Anthropic API key for the chat functionality
203
+
204
+ ### Quick Setup (Recommended)
205
+
206
+ Use the included setup script for automated installation:
207
+
208
+ ```bash
209
+ # Clone this repo (if you haven't already)
210
+ git clone https://github.com/AntonAndrusenko/shopify-mcp-admin.git
211
+ cd shopify-mcp-admin
212
+
213
+ # Run the setup script
214
+ ./scripts/setup-librechat.sh
215
+ ```
216
+
217
+ The script will:
218
+ 1. Check Docker is installed and running
219
+ 2. Clone LibreChat to `~/LibreChat`
220
+ 3. Prompt for your Shopify credentials (store URL, access token or OAuth)
221
+ 4. Create `librechat.yaml` with MCP server configuration
222
+ 5. Create `docker-compose.override.yml` to mount the config
223
+ 6. Pull Docker images and start all containers
224
+ 7. Verify the Shopify MCP server loads successfully
225
+
226
+ **Script Options:**
227
+ ```bash
228
+ # Install to a custom directory
229
+ ./scripts/setup-librechat.sh --install-dir /path/to/librechat
230
+
231
+ # Use local development build instead of npm package
232
+ ./scripts/setup-librechat.sh --use-local
233
+
234
+ # Show help
235
+ ./scripts/setup-librechat.sh --help
236
+ ```
237
+
238
+ ### Manual Setup
239
+
240
+ <details>
241
+ <summary>Click to expand manual installation steps</summary>
242
+
243
+ #### Step 1: Clone and Configure LibreChat
244
+
245
+ ```bash
246
+ # Clone LibreChat
247
+ git clone https://github.com/danny-avila/LibreChat.git
248
+ cd LibreChat
249
+
250
+ # Create environment file
251
+ cp .env.example .env
252
+ ```
253
+
254
+ #### Step 2: Create MCP Server Configuration
255
+
256
+ Create `librechat.yaml` in the LibreChat directory:
257
+
258
+ ```yaml
259
+ version: 1.2.1
260
+
261
+ mcpServers:
262
+ shopify:
263
+ type: stdio
264
+ command: npx
265
+ args:
266
+ - -y
267
+ - "@anton.andrusenko/shopify-mcp-admin"
268
+ env:
269
+ SHOPIFY_STORE_URL: "your-store.myshopify.com"
270
+ # Option 1: Access Token
271
+ SHOPIFY_ACCESS_TOKEN: "shpat_xxxxx"
272
+ # Option 2: OAuth (comment out ACCESS_TOKEN, uncomment these)
273
+ # SHOPIFY_CLIENT_ID: "your_client_id"
274
+ # SHOPIFY_CLIENT_SECRET: "your_client_secret"
275
+ LOG_LEVEL: "info"
276
+ serverInstructions: true
277
+ timeout: 30000
278
+ initTimeout: 15000
279
+ ```
280
+
281
+ #### Step 3: Mount Configuration in Docker
282
+
283
+ Create `docker-compose.override.yml`:
284
+
285
+ ```yaml
286
+ services:
287
+ api:
288
+ volumes:
289
+ - type: bind
290
+ source: ./librechat.yaml
291
+ target: /app/librechat.yaml
292
+ ```
293
+
294
+ #### Step 4: Start LibreChat
295
+
296
+ ```bash
297
+ # Pull the latest images
298
+ docker compose pull
299
+
300
+ # Start all services
301
+ docker compose up -d
302
+
303
+ # Verify containers are running
304
+ docker compose ps
305
+ ```
306
+
307
+ #### Step 5: Verify MCP Server Loaded
308
+
309
+ ```bash
310
+ # Check logs for MCP initialization
311
+ docker compose logs api | grep -i "mcp"
312
+
313
+ # You should see:
314
+ # [MCP][shopify] Initialized in: XXXXms
315
+ # MCP servers initialized successfully. Added 79 MCP tools.
316
+ ```
317
+
318
+ </details>
319
+
320
+ ### After Installation: Enable MCP in LibreChat
321
+
322
+ Once LibreChat is running, follow these steps to use the Shopify MCP server:
323
+
324
+ #### 1. Create an Account
325
+ - Open http://localhost:3080 in your browser
326
+ - Click "Sign up" and create an account
327
+ - Log in with your new credentials
328
+
329
+ #### 2. Add an LLM API Key
330
+ - Click your **profile avatar** (bottom-left)
331
+ - Select **Settings**
332
+ - Go to **User Provider Keys**
333
+ - Add your API key:
334
+ - **OpenAI**: Paste your `sk-...` key
335
+ - **Anthropic**: Paste your `sk-ant-...` key
336
+ - Click **Save**
337
+
338
+ #### 3. Select the Shopify MCP Server
339
+ - Start a **New Chat**
340
+ - Look for the **MCP Servers** dropdown in the chat input area (shows a plug icon)
341
+ - Click it and select **"shopify"**
342
+ - You should see a "shopify" badge appear, indicating the MCP server is active
343
+
344
+ #### 4. Test the Integration
345
+ Try these prompts to verify everything works:
346
+
347
+ ```
348
+ "What's my store name and what plan am I on?"
349
+ "List my products"
350
+ "Show me products with low inventory"
351
+ ```
352
+
353
+ ### Troubleshooting
354
+
355
+ | Issue | Solution |
356
+ |-------|----------|
357
+ | MCP server not appearing | Check logs: `docker compose logs api \| grep -i mcp` |
358
+ | "shopify" badge not visible | Refresh the page, or restart: `docker compose restart` |
359
+ | Tools not working | Verify Shopify credentials in `librechat.yaml` |
360
+ | Docker won't start | Ensure Docker Desktop is running |
361
+ | Permission denied on script | Run: `chmod +x ./scripts/setup-librechat.sh` |
362
+
363
+ ### Useful Commands
364
+
365
+ ```bash
366
+ # View LibreChat logs
367
+ cd ~/LibreChat && docker compose logs api -f
368
+
369
+ # View only MCP-related logs
370
+ cd ~/LibreChat && docker compose logs api | grep -i "mcp\|shopify"
371
+
372
+ # Restart LibreChat (after config changes)
373
+ cd ~/LibreChat && docker compose restart
374
+
375
+ # Stop LibreChat
376
+ cd ~/LibreChat && docker compose down
377
+
378
+ # Update LibreChat
379
+ cd ~/LibreChat && git pull && docker compose pull && docker compose up -d
380
+ ```
381
+
382
+ > 📄 **Advanced Configuration:** See `librechat.yaml.example` for multi-store setups, role presets, and HTTP/SSE transport modes.
383
+
384
+ ---
385
+
194
386
  ## 🌐 OpenAI/ChatGPT Integration
195
387
 
196
388
  For OpenAI function calling or ChatGPT plugins, use HTTP transport mode.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anton.andrusenko/shopify-mcp-admin",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
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",
@@ -24,10 +24,8 @@
24
24
  "inspect": "npx @modelcontextprotocol/inspector node dist/index.js",
25
25
  "inspect:dev": "npx @modelcontextprotocol/inspector npx tsx src/index.ts",
26
26
  "inspect:config": "npx @modelcontextprotocol/inspector --config mcp-inspector.json",
27
- "fast-agent": "fast-agent",
28
- "fast-agent:check": "fast-agent check",
29
- "fast-agent:chat": "fast-agent go --servers shopify-mcp-admin",
30
- "fast-agent:dev": "fast-agent go --servers shopify-mcp-admin-dev",
27
+ "librechat:setup": "./scripts/setup-librechat.sh",
28
+ "librechat:setup:local": "./scripts/setup-librechat.sh --use-local",
31
29
  "ci": "npm run lint && npm run typecheck && npm run test && npm run build",
32
30
  "version:patch": "npm version patch --no-git-tag-version",
33
31
  "version:minor": "npm version minor --no-git-tag-version",