@lofder/dsers-mcp-product 1.0.0 → 1.0.1
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 +54 -2
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +33 -0
- package/dist/cli.js.map +1 -0
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# DSers MCP Product — Automate Dropshipping AI tools/AliExpress to Shopify & Wix Import
|
|
2
2
|
|
|
3
3
|
[](https://smithery.ai/server/@dsersx/product-mcp)
|
|
4
|
+
[](https://www.npmjs.com/package/@lofder/dsers-mcp-product)
|
|
5
|
+
[](https://registry.modelcontextprotocol.io/servers/io.github.lofder/dsers-mcp-product)
|
|
4
6
|
|
|
5
7
|
> An open-source MCP server to automate DSers product import, bulk edit variants, and push to Shopify or Wix using AI.
|
|
6
8
|
|
|
@@ -14,7 +16,7 @@
|
|
|
14
16
|
|
|
15
17
|
**DSers MCP Product** is an open-source [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) server that lets AI Agents automate the entire DSers import workflow — from AliExpress / Alibaba / 1688 product URL to Shopify or Wix store listing. Bulk import, batch edit variants, clean AliExpress titles, apply pricing rules, and push to multiple stores — all with a single sentence to your AI agent.
|
|
16
18
|
|
|
17
|
-
The server is hosted on [Vercel](https://dsers-mcp-product.vercel.app/api/mcp)
|
|
19
|
+
The server is hosted on [Vercel](https://dsers-mcp-product.vercel.app/api/mcp), published on [Smithery](https://smithery.ai/server/@dsersx/product-mcp), [npm](https://www.npmjs.com/package/@lofder/dsers-mcp-product), and the official [MCP Registry](https://registry.modelcontextprotocol.io/servers/io.github.lofder/dsers-mcp-product).
|
|
18
20
|
|
|
19
21
|
### Documentation
|
|
20
22
|
|
|
@@ -25,6 +27,31 @@ The server is hosted on [Vercel](https://dsers-mcp-product.vercel.app/api/mcp) a
|
|
|
25
27
|
| [SKILL.md](SKILL.md) | AI agent instruction file — workflow, rules, push options, error handling |
|
|
26
28
|
| [SKILL-CN.md](SKILL-CN.md) | Chinese human-readable guide for SKILL.md |
|
|
27
29
|
|
|
30
|
+
### Install via npm
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx @lofder/dsers-mcp-product
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Set environment variables `DSERS_EMAIL` and `DSERS_PASSWORD` before running, or add to your MCP client config:
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"mcpServers": {
|
|
41
|
+
"dsers-mcp-product": {
|
|
42
|
+
"command": "npx",
|
|
43
|
+
"args": ["-y", "@lofder/dsers-mcp-product"],
|
|
44
|
+
"env": {
|
|
45
|
+
"DSERS_EMAIL": "your-email",
|
|
46
|
+
"DSERS_PASSWORD": "your-password"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Also listed on the official [MCP Registry](https://registry.modelcontextprotocol.io/servers/io.github.lofder/dsers-mcp-product).
|
|
54
|
+
|
|
28
55
|
### Install via Smithery
|
|
29
56
|
|
|
30
57
|
```bash
|
|
@@ -138,7 +165,7 @@ MIT
|
|
|
138
165
|
|
|
139
166
|
**DSers MCP Product** 是一个开源的 [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) 服务器,让 AI Agent 自动完成 DSers 的整个商品导入流程 —— 从速卖通 / Alibaba / 1688 商品链接到 Shopify 或 Wix 店铺上架。批量导入、批量编辑变体、清理速卖通标题、应用定价规则、推送到多个店铺 —— 只需一句话给你的 AI agent。
|
|
140
167
|
|
|
141
|
-
服务已托管在 [Vercel](https://dsers-mcp-product.vercel.app/api/mcp)
|
|
168
|
+
服务已托管在 [Vercel](https://dsers-mcp-product.vercel.app/api/mcp),并发布到 [Smithery](https://smithery.ai/server/@dsersx/product-mcp)、[npm](https://www.npmjs.com/package/@lofder/dsers-mcp-product) 和官方 [MCP Registry](https://registry.modelcontextprotocol.io/servers/io.github.lofder/dsers-mcp-product)。
|
|
142
169
|
|
|
143
170
|
### 文档
|
|
144
171
|
|
|
@@ -149,6 +176,31 @@ MIT
|
|
|
149
176
|
| [SKILL.md](SKILL.md) | AI agent 指令文件 — 工作流、规则、推送选项、错误处理 |
|
|
150
177
|
| [SKILL-CN.md](SKILL-CN.md) | SKILL.md 的中文说明 |
|
|
151
178
|
|
|
179
|
+
### 通过 npm 安装
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
npx @lofder/dsers-mcp-product
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
运行前设置环境变量 `DSERS_EMAIL` 和 `DSERS_PASSWORD`,或在 MCP 客户端配置中添加:
|
|
186
|
+
|
|
187
|
+
```json
|
|
188
|
+
{
|
|
189
|
+
"mcpServers": {
|
|
190
|
+
"dsers-mcp-product": {
|
|
191
|
+
"command": "npx",
|
|
192
|
+
"args": ["-y", "@lofder/dsers-mcp-product"],
|
|
193
|
+
"env": {
|
|
194
|
+
"DSERS_EMAIL": "your-email",
|
|
195
|
+
"DSERS_PASSWORD": "your-password"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
同时已收录到官方 [MCP Registry](https://registry.modelcontextprotocol.io/servers/io.github.lofder/dsers-mcp-product)。
|
|
203
|
+
|
|
152
204
|
### 通过 Smithery 安装
|
|
153
205
|
|
|
154
206
|
```bash
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
4
|
+
import { configFromEnv } from "./dsers/config.js";
|
|
5
|
+
import { buildProvider } from "./provider.js";
|
|
6
|
+
import { ImportFlowService } from "./service.js";
|
|
7
|
+
import { FileJobStore } from "./job-store.js";
|
|
8
|
+
import { registerTools } from "./tools.js";
|
|
9
|
+
import { resolve } from "node:path";
|
|
10
|
+
const missing = [];
|
|
11
|
+
if (!process.env.DSERS_EMAIL)
|
|
12
|
+
missing.push("DSERS_EMAIL");
|
|
13
|
+
if (!process.env.DSERS_PASSWORD)
|
|
14
|
+
missing.push("DSERS_PASSWORD");
|
|
15
|
+
if (missing.length > 0) {
|
|
16
|
+
process.stderr.write(`Error: missing required environment variable(s): ${missing.join(", ")}\n` +
|
|
17
|
+
`Set them before running, e.g.:\n` +
|
|
18
|
+
` DSERS_EMAIL=you@example.com DSERS_PASSWORD=secret npx @lofder/dsers-mcp-product\n`);
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
const STATE_DIR = process.env.IMPORT_MCP_STATE_DIR ?? resolve(process.cwd(), ".state");
|
|
22
|
+
const dsersConfig = configFromEnv();
|
|
23
|
+
const provider = buildProvider(dsersConfig);
|
|
24
|
+
const store = new FileJobStore(STATE_DIR);
|
|
25
|
+
const service = new ImportFlowService(provider, store);
|
|
26
|
+
const server = new McpServer({
|
|
27
|
+
name: "dsers-mcp-product",
|
|
28
|
+
version: "1.0.1",
|
|
29
|
+
});
|
|
30
|
+
registerTools(server, service);
|
|
31
|
+
const transport = new StdioServerTransport();
|
|
32
|
+
await server.connect(transport);
|
|
33
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,O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B,CAAC,CAAC;AAEH,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE/B,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lofder/dsers-mcp-product",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"mcpName": "io.github.lofder/dsers-mcp-product",
|
|
6
6
|
"description": "MCP server to automate DSers product import from AliExpress/Alibaba to Shopify",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
|
+
"bin": {
|
|
9
|
+
"dsers-mcp-product": "dist/cli.js"
|
|
10
|
+
},
|
|
8
11
|
"files": [
|
|
9
12
|
"dist"
|
|
10
13
|
],
|