wowstore-mcp 1.0.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.
- package/README.md +77 -0
- package/index.js +101 -0
- package/package.json +37 -0
package/README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# WowStore MCP Server
|
|
2
|
+
|
|
3
|
+
> Connect AI assistants to WowStore.live — European fashion with 2,200+ products from 40+ EU brands
|
|
4
|
+
|
|
5
|
+
Lucy's Commerce Brain enables AI assistants like Claude, ChatGPT, and Cursor to search products, get styling advice, browse collections, create shopping carts, and check discounts on [WowStore.live](https://wowstore.live).
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
### Option 1: Claude Desktop / Cursor
|
|
10
|
+
|
|
11
|
+
Add to your MCP config:
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"mcpServers": {
|
|
16
|
+
"wowstore": {
|
|
17
|
+
"command": "npx",
|
|
18
|
+
"args": ["@wowstore/mcp"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Option 2: Direct SSE Connection
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
https://ai-api.wowstore.live/mcp/sse
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Option 3: REST API
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# Search products
|
|
34
|
+
curl https://ai-api.wowstore.live/api/mcp/search?q=dress
|
|
35
|
+
|
|
36
|
+
# Get store info
|
|
37
|
+
curl https://ai-api.wowstore.live/api/mcp/store
|
|
38
|
+
|
|
39
|
+
# Check discounts
|
|
40
|
+
curl https://ai-api.wowstore.live/api/mcp/discounts
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Available Tools (10)
|
|
44
|
+
|
|
45
|
+
| Tool | Description |
|
|
46
|
+
|------|-------------|
|
|
47
|
+
| `search_products` | Search 2,200+ products by keyword |
|
|
48
|
+
| `get_product` | Full product details — sizes, colors, images |
|
|
49
|
+
| `browse_collection` | Browse curated collections |
|
|
50
|
+
| `list_collections` | List all product categories |
|
|
51
|
+
| `get_store_info` | Shipping, returns, payments, features |
|
|
52
|
+
| `create_cart` | Build a cart, get checkout URL |
|
|
53
|
+
| `ask_lucy` | Ask Lucy AI stylist for fashion advice |
|
|
54
|
+
| `get_recommendations` | Similar & complementary suggestions |
|
|
55
|
+
| `check_discount` | Active promo codes and offers |
|
|
56
|
+
| `create_capsule` | Build a capsule wardrobe |
|
|
57
|
+
|
|
58
|
+
## About WowStore
|
|
59
|
+
|
|
60
|
+
WowStore.live is a curated European fashion marketplace based in the Netherlands. Features include:
|
|
61
|
+
|
|
62
|
+
- **Lucy AI Stylist** — Personalized fashion guidance
|
|
63
|
+
- **Mix & Match Studio** — Build outfits with AI images
|
|
64
|
+
- **Creator Economy** — Earn from sharing your style
|
|
65
|
+
- **Free EU shipping** over EUR 69
|
|
66
|
+
- **14-day returns** (EU consumer rights)
|
|
67
|
+
- **Payments**: iDEAL, Klarna, PayPal, Apple Pay, Google Pay
|
|
68
|
+
|
|
69
|
+
## Links
|
|
70
|
+
|
|
71
|
+
- Store: [wowstore.live](https://wowstore.live)
|
|
72
|
+
- MCP Info: [ai-api.wowstore.live/mcp-info](https://ai-api.wowstore.live/mcp-info)
|
|
73
|
+
- MCP Manifest: [ai-api.wowstore.live/.well-known/mcp.json](https://ai-api.wowstore.live/.well-known/mcp.json)
|
|
74
|
+
|
|
75
|
+
## License
|
|
76
|
+
|
|
77
|
+
MIT
|
package/index.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* WowStore MCP Server — Lucy's Commerce Brain
|
|
4
|
+
*
|
|
5
|
+
* Connects AI assistants (Claude, ChatGPT, etc.) to WowStore.live
|
|
6
|
+
* European fashion store with 2,200+ products from 40+ EU brands.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* npx @wowstore/mcp # Start proxy to hosted server
|
|
10
|
+
* npx @wowstore/mcp --info # Show server info
|
|
11
|
+
*
|
|
12
|
+
* MCP Config (Claude Desktop / Cursor / etc.):
|
|
13
|
+
* {
|
|
14
|
+
* "mcpServers": {
|
|
15
|
+
* "wowstore": {
|
|
16
|
+
* "command": "npx",
|
|
17
|
+
* "args": ["@wowstore/mcp"]
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* Or connect directly via SSE:
|
|
23
|
+
* https://ai-api.wowstore.live/mcp/sse
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
const MCP_SSE_URL = "https://ai-api.wowstore.live/mcp/sse";
|
|
27
|
+
const MCP_MESSAGES_URL = "https://ai-api.wowstore.live/mcp/messages";
|
|
28
|
+
const MCP_INFO_URL = "https://ai-api.wowstore.live/mcp-info";
|
|
29
|
+
|
|
30
|
+
async function showInfo() {
|
|
31
|
+
try {
|
|
32
|
+
const res = await fetch(MCP_INFO_URL);
|
|
33
|
+
const info = await res.json();
|
|
34
|
+
console.log("\n🛍️ WowStore MCP Server — Lucy's Commerce Brain\n");
|
|
35
|
+
console.log(` ${info.description}\n`);
|
|
36
|
+
console.log(" Tools:");
|
|
37
|
+
for (const tool of info.tools) {
|
|
38
|
+
console.log(` • ${tool}`);
|
|
39
|
+
}
|
|
40
|
+
console.log(`\n SSE Endpoint: ${MCP_SSE_URL}`);
|
|
41
|
+
console.log(` REST API: ${info.rest_api}`);
|
|
42
|
+
console.log(` Store: ${info.store}`);
|
|
43
|
+
console.log(`\n Add to Claude Desktop / Cursor:`);
|
|
44
|
+
console.log(` {`);
|
|
45
|
+
console.log(` "mcpServers": {`);
|
|
46
|
+
console.log(` "wowstore": {`);
|
|
47
|
+
console.log(` "command": "npx",`);
|
|
48
|
+
console.log(` "args": ["@wowstore/mcp"]`);
|
|
49
|
+
console.log(` }`);
|
|
50
|
+
console.log(` }`);
|
|
51
|
+
console.log(` }\n`);
|
|
52
|
+
} catch (e) {
|
|
53
|
+
console.error("Failed to reach WowStore MCP server:", e.message);
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// STDIO-to-SSE bridge for MCP protocol
|
|
59
|
+
async function startStdioBridge() {
|
|
60
|
+
const readline = await import("readline");
|
|
61
|
+
|
|
62
|
+
const rl = readline.createInterface({ input: process.stdin });
|
|
63
|
+
|
|
64
|
+
// Read JSON-RPC messages from stdin, forward to hosted server
|
|
65
|
+
rl.on("line", async (line) => {
|
|
66
|
+
try {
|
|
67
|
+
const message = JSON.parse(line);
|
|
68
|
+
|
|
69
|
+
// Forward to hosted MCP server
|
|
70
|
+
const res = await fetch(MCP_MESSAGES_URL, {
|
|
71
|
+
method: "POST",
|
|
72
|
+
headers: { "Content-Type": "application/json" },
|
|
73
|
+
body: JSON.stringify(message),
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const response = await res.json();
|
|
77
|
+
|
|
78
|
+
// Write response to stdout
|
|
79
|
+
process.stdout.write(JSON.stringify(response) + "\n");
|
|
80
|
+
} catch (e) {
|
|
81
|
+
const errorResponse = {
|
|
82
|
+
jsonrpc: "2.0",
|
|
83
|
+
id: null,
|
|
84
|
+
error: { code: -32603, message: `Bridge error: ${e.message}` },
|
|
85
|
+
};
|
|
86
|
+
process.stdout.write(JSON.stringify(errorResponse) + "\n");
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
rl.on("close", () => process.exit(0));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Main
|
|
94
|
+
const args = process.argv.slice(2);
|
|
95
|
+
|
|
96
|
+
if (args.includes("--info") || args.includes("-i") || args.includes("--help")) {
|
|
97
|
+
showInfo();
|
|
98
|
+
} else {
|
|
99
|
+
// Default: run as STDIO bridge for MCP clients
|
|
100
|
+
startStdioBridge();
|
|
101
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wowstore-mcp",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "WowStore MCP Server — Connect AI assistants to WowStore.live European fashion store. Search 2,200+ products, get styling advice from Lucy AI, browse collections, create carts.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"mcp",
|
|
7
|
+
"model-context-protocol",
|
|
8
|
+
"ai",
|
|
9
|
+
"fashion",
|
|
10
|
+
"shopping",
|
|
11
|
+
"e-commerce",
|
|
12
|
+
"wowstore",
|
|
13
|
+
"lucy",
|
|
14
|
+
"ai-stylist",
|
|
15
|
+
"european-fashion",
|
|
16
|
+
"claude",
|
|
17
|
+
"chatgpt",
|
|
18
|
+
"ai-agent"
|
|
19
|
+
],
|
|
20
|
+
"main": "index.js",
|
|
21
|
+
"bin": {
|
|
22
|
+
"wowstore-mcp": "./index.js"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"start": "node index.js"
|
|
26
|
+
},
|
|
27
|
+
"author": "WowStore <info@wowstore.live>",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"homepage": "https://wowstore.live",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/wowstore-live/mcp-server"
|
|
33
|
+
},
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=18"
|
|
36
|
+
}
|
|
37
|
+
}
|