dropi-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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Trucos Ecomm & Drop
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,180 @@
1
+ # 🚀 Dropi MCP Server
2
+
3
+ [![npm version](https://badge.fury.io/js/dropi-mcp.svg)](https://www.npmjs.com/package/dropi-mcp)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ Conecta **Claude Desktop**, **ChatGPT**, **Cursor** y otros asistentes de IA con la plataforma de dropshipping **[Dropi.co](https://dropi.co)**.
7
+
8
+ > 🎯 Creado por [Trucos Ecomm & Drop](https://www.youtube.com/@trucosecommydrop) - La comunidad de dropshipping #1 de Colombia
9
+
10
+ ---
11
+
12
+ ## ✨ ¿Qué puedes hacer?
13
+
14
+ | Acción | Descripción |
15
+ |--------|-------------|
16
+ | 📦 **Crear pedidos** | Subir órdenes directamente a Dropi |
17
+ | 📋 **Listar órdenes** | Ver todas tus órdenes con filtros |
18
+ | 🔍 **Buscar pedidos** | Por ID, guía, estado, fecha, cliente |
19
+ | 🏷️ **Generar guías** | Individual o masivamente |
20
+ | ❌ **Cancelar órdenes** | Cambiar estado a cancelado |
21
+ | 💰 **Ver wallet** | Balance actual y movimientos |
22
+ | 🚚 **Cotizar envíos** | Precio de flete entre ciudades |
23
+ | 📍 **Ciudades/Departamentos** | Consultar ubicaciones disponibles |
24
+ | 🏢 **Transportadoras** | Ver transportadoras disponibles |
25
+ | 🛍️ **Productos** | Listar tus productos en Dropi |
26
+
27
+ ---
28
+
29
+ ## 📦 Instalación Rápida
30
+
31
+ ### Opción 1: NPX (Recomendado)
32
+
33
+ No necesitas instalar nada, solo configura Claude Desktop:
34
+
35
+ ```json
36
+ {
37
+ "mcpServers": {
38
+ "dropi": {
39
+ "command": "npx",
40
+ "args": ["-y", "dropi-mcp"],
41
+ "env": {
42
+ "DROPI_EMAIL": "tu_email@ejemplo.com",
43
+ "DROPI_PASSWORD": "tu_contraseña"
44
+ }
45
+ }
46
+ }
47
+ }
48
+ ```
49
+
50
+ ### Opción 2: Instalación Global
51
+
52
+ ```bash
53
+ npm install -g dropi-mcp
54
+ ```
55
+
56
+ ```json
57
+ {
58
+ "mcpServers": {
59
+ "dropi": {
60
+ "command": "dropi-mcp",
61
+ "env": {
62
+ "DROPI_EMAIL": "tu_email@ejemplo.com",
63
+ "DROPI_PASSWORD": "tu_contraseña"
64
+ }
65
+ }
66
+ }
67
+ }
68
+ ```
69
+
70
+ ### Opción 3: Desde el código fuente
71
+
72
+ ```bash
73
+ git clone https://github.com/AndresestradaR/dropi-mcp.git
74
+ cd dropi-mcp
75
+ npm install
76
+ npm run build
77
+ ```
78
+
79
+ ```json
80
+ {
81
+ "mcpServers": {
82
+ "dropi": {
83
+ "command": "node",
84
+ "args": ["/ruta/completa/a/dropi-mcp/dist/index.js"],
85
+ "env": {
86
+ "DROPI_EMAIL": "tu_email@ejemplo.com",
87
+ "DROPI_PASSWORD": "tu_contraseña"
88
+ }
89
+ }
90
+ }
91
+ }
92
+ ```
93
+
94
+ ---
95
+
96
+ ## ⚙️ Configuración Claude Desktop
97
+
98
+ 1. Abre Claude Desktop
99
+ 2. Ve a **Settings** → **Developer** → **Edit Config**
100
+ 3. Agrega la configuración del MCP
101
+ 4. Reinicia Claude Desktop
102
+
103
+ **Ubicación del archivo:**
104
+ - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
105
+ - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
106
+ - **Linux**: `~/.config/Claude/claude_desktop_config.json`
107
+
108
+ ---
109
+
110
+ ## 🎮 Ejemplos de Uso
111
+
112
+ ```
113
+ "Muéstrame mis pedidos de hoy"
114
+ "¿Cuántas órdenes tengo pendientes?"
115
+ "Busca el pedido con guía 123456789"
116
+ "Crea un pedido para Juan Pérez en Bogotá..."
117
+ "Genera guía para la orden 567890"
118
+ "¿Cuánto tengo en mi wallet de Dropi?"
119
+ "Lista mis productos en Dropi"
120
+ ```
121
+
122
+ ---
123
+
124
+ ## 🛠️ Tools Disponibles
125
+
126
+ | Tool | Descripción |
127
+ |------|-------------|
128
+ | `dropi_login` | Autenticarse y verificar conexión |
129
+ | `dropi_get_departments` | Listar departamentos |
130
+ | `dropi_get_cities` | Listar ciudades de un departamento |
131
+ | `dropi_create_order` | Crear nuevo pedido |
132
+ | `dropi_get_order` | Obtener pedido por ID |
133
+ | `dropi_get_order_by_guide` | Obtener pedido por número de guía |
134
+ | `dropi_get_orders` | Listar pedidos con filtros |
135
+ | `dropi_generate_guide` | Generar guía para un pedido |
136
+ | `dropi_generate_guides_massive` | Generar guías masivamente |
137
+ | `dropi_cancel_order` | Cancelar un pedido |
138
+ | `dropi_get_wallet_balance` | Ver balance del wallet |
139
+ | `dropi_get_wallet_history` | Ver movimientos del wallet |
140
+ | `dropi_get_transport_companies` | Listar transportadoras |
141
+ | `dropi_get_shipping_quote` | Cotizar costo de envío |
142
+ | `dropi_get_products` | Listar productos disponibles |
143
+
144
+ ---
145
+
146
+ ## 🔐 Seguridad
147
+
148
+ - Tus credenciales se almacenan **localmente** en tu computadora
149
+ - El MCP corre **localmente**, no en servidores externos
150
+ - La comunicación con Dropi usa **HTTPS**
151
+
152
+ ---
153
+
154
+ ## 🤝 Compatibilidad
155
+
156
+ - ✅ Claude Desktop
157
+ - ✅ ChatGPT Desktop (con plugins MCP)
158
+ - ✅ Cursor IDE
159
+ - ✅ Continue.dev
160
+ - ✅ Cualquier cliente MCP
161
+
162
+ ---
163
+
164
+ ## 📚 Recursos
165
+
166
+ - 🎥 [Tutorial en YouTube](https://www.youtube.com/@trucosecommydrop)
167
+ - 💬 [Comunidad Trucos Ecomm & Drop](https://trucosecomm.com)
168
+ - 🤖 [Lucid Analytics](https://lucid-analytics-frontend.vercel.app) - BI para Dropshipping
169
+
170
+ ---
171
+
172
+ ## 📄 Licencia
173
+
174
+ MIT License - Úsalo libremente en tus proyectos.
175
+
176
+ ---
177
+
178
+ Desarrollado con ❤️ por **[Trucos Ecomm & Drop](https://www.youtube.com/@trucosecommydrop)**
179
+
180
+ Si te sirvió, dale ⭐ al repo y suscríbete al canal!
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1,266 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const index_js_1 = require("@modelcontextprotocol/sdk/server/index.js");
8
+ const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
9
+ const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
10
+ const axios_1 = __importDefault(require("axios"));
11
+ const WHITE_BRAND_ID = "df3e6b0bb66ceaadca4f84cbc371fd66e04d20fe51fc414da8d1b84d31d178de";
12
+ class DropiClient {
13
+ config;
14
+ client;
15
+ constructor() {
16
+ this.config = { email: process.env.DROPI_EMAIL || "", password: process.env.DROPI_PASSWORD || "", baseUrl: process.env.DROPI_API_URL || "https://api.dropi.co" };
17
+ this.client = axios_1.default.create({ baseURL: this.config.baseUrl, headers: { "Content-Type": "application/json" } });
18
+ }
19
+ async ensureAuthenticated() { if (!this.config.token)
20
+ await this.login(); }
21
+ async login() {
22
+ try {
23
+ const response = await this.client.post("/api/login", { email: this.config.email, password: this.config.password, white_brand_id: WHITE_BRAND_ID });
24
+ if (response.data.isSuccess) {
25
+ this.config.token = response.data.token;
26
+ this.config.wallet = response.data.wallets?.[0] || response.data.wallet;
27
+ this.client.defaults.headers.common["Authorization"] = `Bearer ${this.config.token}`;
28
+ return { success: true, message: "Login exitoso", wallet_balance: this.config.wallet?.amount || 0, user: response.data.user?.name || response.data.objects?.name };
29
+ }
30
+ return { success: false, message: response.data.message || "Error en login" };
31
+ }
32
+ catch (error) {
33
+ return { success: false, message: error.response?.data?.message || error.message };
34
+ }
35
+ }
36
+ async getDepartments() {
37
+ await this.ensureAuthenticated();
38
+ try {
39
+ return (await this.client.get("/api/department")).data;
40
+ }
41
+ catch (error) {
42
+ return { success: false, message: error.response?.data?.message || error.message };
43
+ }
44
+ }
45
+ async getCities(departmentId, rateType = "") {
46
+ await this.ensureAuthenticated();
47
+ try {
48
+ return (await this.client.post("/api/trajectory/bycity", { department_id: departmentId, rate_type: rateType })).data;
49
+ }
50
+ catch (error) {
51
+ return { success: false, message: error.response?.data?.message || error.message };
52
+ }
53
+ }
54
+ async createOrder(orderData) {
55
+ await this.ensureAuthenticated();
56
+ try {
57
+ const payload = { calculate_costs_and_shiping: true, state: orderData.state, city: orderData.city, name: orderData.name, surname: orderData.surname, dir: orderData.address, phone: orderData.phone, client_email: orderData.email || "", notes: orderData.notes || "", payment_method_id: 1, rate_type: orderData.rate_type || "CON RECAUDO", type: "FINAL_ORDER", total_order: orderData.total_order, products: orderData.products, ...(orderData.dni && { dni: orderData.dni }), ...(orderData.distribution_company_id && { distributionCompany: { id: orderData.distribution_company_id } }) };
58
+ return (await this.client.post("/api/orders/myorders", payload)).data;
59
+ }
60
+ catch (error) {
61
+ return { success: false, message: error.response?.data?.message || error.message };
62
+ }
63
+ }
64
+ async getOrder(orderId) {
65
+ await this.ensureAuthenticated();
66
+ try {
67
+ return (await this.client.get(`/api/orders/myorders/${orderId}`)).data;
68
+ }
69
+ catch (error) {
70
+ return { success: false, message: error.response?.data?.message || error.message };
71
+ }
72
+ }
73
+ async getOrderByGuide(guideNumber) {
74
+ await this.ensureAuthenticated();
75
+ try {
76
+ return (await this.client.get(`/api/orders/myorderbyguide/${guideNumber}`)).data;
77
+ }
78
+ catch (error) {
79
+ return { success: false, message: error.response?.data?.message || error.message };
80
+ }
81
+ }
82
+ async getOrders(filters = {}) {
83
+ await this.ensureAuthenticated();
84
+ try {
85
+ const params = new URLSearchParams();
86
+ if (filters.from)
87
+ params.append("from", filters.from);
88
+ if (filters.until)
89
+ params.append("until", filters.until);
90
+ if (filters.status)
91
+ params.append("status", filters.status);
92
+ if (filters.result_number)
93
+ params.append("result_number", filters.result_number.toString());
94
+ if (filters.start)
95
+ params.append("start", filters.start.toString());
96
+ if (filters.textToSearch)
97
+ params.append("textToSearch", filters.textToSearch);
98
+ if (filters.filter_date_by)
99
+ params.append("filter_date_by", filters.filter_date_by);
100
+ params.append("orderBy", filters.orderBy || "id");
101
+ params.append("orderDirection", filters.orderDirection || "desc");
102
+ return (await this.client.get(`/api/orders/myorders?${params.toString()}`)).data;
103
+ }
104
+ catch (error) {
105
+ return { success: false, message: error.response?.data?.message || error.message };
106
+ }
107
+ }
108
+ async updateOrderStatus(orderId, status) {
109
+ await this.ensureAuthenticated();
110
+ try {
111
+ return (await this.client.put(`/api/orders/myorders/${orderId}`, { status })).data;
112
+ }
113
+ catch (error) {
114
+ return { success: false, message: error.response?.data?.message || error.message };
115
+ }
116
+ }
117
+ async generateGuide(orderId) { return this.updateOrderStatus(orderId, "GUIA_GENERADA"); }
118
+ async generateGuidesMassive(orderIds) {
119
+ await this.ensureAuthenticated();
120
+ try {
121
+ return (await this.client.post("/api/orders/myorder/masive", orderIds.map(id => ({ id, status: "GUIA_GENERADA" })))).data;
122
+ }
123
+ catch (error) {
124
+ return { success: false, message: error.response?.data?.message || error.message };
125
+ }
126
+ }
127
+ async getWalletHistory(filters = {}) {
128
+ await this.ensureAuthenticated();
129
+ try {
130
+ const params = new URLSearchParams();
131
+ if (filters.from)
132
+ params.append("from", filters.from);
133
+ if (filters.until)
134
+ params.append("until", filters.until);
135
+ if (filters.type)
136
+ params.append("type", filters.type);
137
+ if (filters.result_number)
138
+ params.append("result_number", filters.result_number.toString());
139
+ if (filters.start)
140
+ params.append("start", filters.start.toString());
141
+ params.append("orderBy", filters.orderBy || "id");
142
+ params.append("orderDirection", filters.orderDirection || "desc");
143
+ return (await this.client.get(`/api/historywallet?${params.toString()}`)).data;
144
+ }
145
+ catch (error) {
146
+ return { success: false, message: error.response?.data?.message || error.message };
147
+ }
148
+ }
149
+ async getWalletBalance() { await this.ensureAuthenticated(); return { success: true, balance: this.config.wallet?.amount || 0, currency: "COP" }; }
150
+ async getTransportCompanies() {
151
+ await this.ensureAuthenticated();
152
+ try {
153
+ return (await this.client.get("/api/distribution_companies")).data;
154
+ }
155
+ catch (error) {
156
+ return { success: false, message: error.response?.data?.message || error.message };
157
+ }
158
+ }
159
+ async getShippingQuote(params) {
160
+ await this.ensureAuthenticated();
161
+ try {
162
+ return (await this.client.post("/api/orders/cotizaEnvioTransportadoraV2", { EnvioConCobro: params.withCollection, amount: params.amount, ciudad_destino: { cod_dane: params.destinationDaneCode }, ciudad_remitente: { cod_dane: params.originDaneCode } })).data;
163
+ }
164
+ catch (error) {
165
+ return { success: false, message: error.response?.data?.message || error.message };
166
+ }
167
+ }
168
+ async getProducts(filters = {}) {
169
+ await this.ensureAuthenticated();
170
+ try {
171
+ const params = new URLSearchParams();
172
+ if (filters.result_number)
173
+ params.append("result_number", filters.result_number.toString());
174
+ if (filters.start)
175
+ params.append("start", filters.start.toString());
176
+ if (filters.textToSearch)
177
+ params.append("textToSearch", filters.textToSearch);
178
+ return (await this.client.get(`/api/products/myproducts?${params.toString()}`)).data;
179
+ }
180
+ catch (error) {
181
+ return { success: false, message: error.response?.data?.message || error.message };
182
+ }
183
+ }
184
+ async cancelOrder(orderId) { return this.updateOrderStatus(orderId, "CANCELADO"); }
185
+ }
186
+ const TOOLS = [
187
+ { name: "dropi_login", description: "Autenticarse en Dropi y obtener el balance del wallet", inputSchema: { type: "object", properties: {}, required: [] } },
188
+ { name: "dropi_get_departments", description: "Obtener lista de departamentos disponibles para envio", inputSchema: { type: "object", properties: {}, required: [] } },
189
+ { name: "dropi_get_cities", description: "Obtener lista de ciudades de un departamento", inputSchema: { type: "object", properties: { department_id: { type: "number", description: "ID del departamento" }, rate_type: { type: "string", description: "CON RECAUDO o SIN RECAUDO", enum: ["CON RECAUDO", "SIN RECAUDO", ""] } }, required: ["department_id"] } },
190
+ { name: "dropi_create_order", description: "Crear un nuevo pedido en Dropi", inputSchema: { type: "object", properties: { state: { type: "string", description: "Departamento destino" }, city: { type: "string", description: "Ciudad destino" }, name: { type: "string", description: "Nombre cliente" }, surname: { type: "string", description: "Apellido cliente" }, address: { type: "string", description: "Direccion entrega" }, phone: { type: "string", description: "Telefono cliente" }, email: { type: "string", description: "Email (opcional)" }, notes: { type: "string", description: "Notas (opcional)" }, total_order: { type: "number", description: "Total orden" }, rate_type: { type: "string", enum: ["CON RECAUDO", "SIN RECAUDO"], default: "CON RECAUDO" }, dni: { type: "string", description: "Cedula (opcional)" }, distribution_company_id: { type: "number", description: "ID transportadora (opcional)" }, products: { type: "array", items: { type: "object", properties: { id: { type: "number" }, price: { type: "number" }, quantity: { type: "number" }, variation_id: { type: "number" } }, required: ["id", "price", "quantity"] } } }, required: ["state", "city", "name", "surname", "address", "phone", "total_order", "products"] } },
191
+ { name: "dropi_get_order", description: "Obtener detalles de una orden por ID", inputSchema: { type: "object", properties: { order_id: { type: "number", description: "ID de la orden" } }, required: ["order_id"] } },
192
+ { name: "dropi_get_order_by_guide", description: "Obtener orden por numero de guia", inputSchema: { type: "object", properties: { guide_number: { type: "string", description: "Numero de guia" } }, required: ["guide_number"] } },
193
+ { name: "dropi_get_orders", description: "Listar ordenes con filtros", inputSchema: { type: "object", properties: { from: { type: "string", description: "Fecha desde YYYY-MM-DD" }, until: { type: "string", description: "Fecha hasta YYYY-MM-DD" }, status: { type: "string", enum: ["PENDIENTE", "GUIA_GENERADA", "EN_RUTA", "ENTREGADO", "DEVOLUCION", "CANCELADO", "NO_EFECTIVO"] }, result_number: { type: "number", default: 50 }, start: { type: "number", default: 0 }, textToSearch: { type: "string" }, filter_date_by: { type: "string", enum: ["FECHA DE CREADO", "FECHA DE PRIMERA IMPRESION", "FECHA DE CAMBIO DE ESTATUS"], default: "FECHA DE CREADO" } }, required: [] } },
194
+ { name: "dropi_generate_guide", description: "Generar guia de transporte para una orden", inputSchema: { type: "object", properties: { order_id: { type: "number", description: "ID de la orden" } }, required: ["order_id"] } },
195
+ { name: "dropi_generate_guides_massive", description: "Generar guias masivamente", inputSchema: { type: "object", properties: { order_ids: { type: "array", items: { type: "number" }, description: "Lista de IDs" } }, required: ["order_ids"] } },
196
+ { name: "dropi_cancel_order", description: "Cancelar una orden", inputSchema: { type: "object", properties: { order_id: { type: "number", description: "ID de la orden" } }, required: ["order_id"] } },
197
+ { name: "dropi_get_wallet_balance", description: "Obtener balance del wallet", inputSchema: { type: "object", properties: {}, required: [] } },
198
+ { name: "dropi_get_wallet_history", description: "Obtener historial del wallet", inputSchema: { type: "object", properties: { from: { type: "string" }, until: { type: "string" }, type: { type: "string", enum: ["ENTRADA", "SALIDA"] }, result_number: { type: "number", default: 50 } }, required: [] } },
199
+ { name: "dropi_get_transport_companies", description: "Obtener transportadoras disponibles", inputSchema: { type: "object", properties: {}, required: [] } },
200
+ { name: "dropi_get_shipping_quote", description: "Cotizar costo de envio", inputSchema: { type: "object", properties: { origin_dane_code: { type: "string", description: "Codigo DANE origen" }, destination_dane_code: { type: "string", description: "Codigo DANE destino" }, amount: { type: "number", description: "Valor total" }, with_collection: { type: "boolean", default: true } }, required: ["origin_dane_code", "destination_dane_code", "amount"] } },
201
+ { name: "dropi_get_products", description: "Obtener lista de productos", inputSchema: { type: "object", properties: { result_number: { type: "number", default: 50 }, start: { type: "number", default: 0 }, textToSearch: { type: "string" } }, required: [] } }
202
+ ];
203
+ const dropiClient = new DropiClient();
204
+ const server = new index_js_1.Server({ name: "dropi-mcp", version: "1.0.0" }, { capabilities: { tools: {} } });
205
+ server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => ({ tools: TOOLS }));
206
+ server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
207
+ const { name, arguments: args } = request.params;
208
+ try {
209
+ let result;
210
+ switch (name) {
211
+ case "dropi_login":
212
+ result = await dropiClient.login();
213
+ break;
214
+ case "dropi_get_departments":
215
+ result = await dropiClient.getDepartments();
216
+ break;
217
+ case "dropi_get_cities":
218
+ result = await dropiClient.getCities(args?.department_id, args?.rate_type);
219
+ break;
220
+ case "dropi_create_order":
221
+ result = await dropiClient.createOrder(args);
222
+ break;
223
+ case "dropi_get_order":
224
+ result = await dropiClient.getOrder(args?.order_id);
225
+ break;
226
+ case "dropi_get_order_by_guide":
227
+ result = await dropiClient.getOrderByGuide(args?.guide_number);
228
+ break;
229
+ case "dropi_get_orders":
230
+ result = await dropiClient.getOrders(args || {});
231
+ break;
232
+ case "dropi_generate_guide":
233
+ result = await dropiClient.generateGuide(args?.order_id);
234
+ break;
235
+ case "dropi_generate_guides_massive":
236
+ result = await dropiClient.generateGuidesMassive(args?.order_ids);
237
+ break;
238
+ case "dropi_cancel_order":
239
+ result = await dropiClient.cancelOrder(args?.order_id);
240
+ break;
241
+ case "dropi_get_wallet_balance":
242
+ result = await dropiClient.getWalletBalance();
243
+ break;
244
+ case "dropi_get_wallet_history":
245
+ result = await dropiClient.getWalletHistory(args || {});
246
+ break;
247
+ case "dropi_get_transport_companies":
248
+ result = await dropiClient.getTransportCompanies();
249
+ break;
250
+ case "dropi_get_shipping_quote":
251
+ result = await dropiClient.getShippingQuote({ originDaneCode: args?.origin_dane_code, destinationDaneCode: args?.destination_dane_code, amount: args?.amount, withCollection: args?.with_collection !== false });
252
+ break;
253
+ case "dropi_get_products":
254
+ result = await dropiClient.getProducts(args || {});
255
+ break;
256
+ default: return { content: [{ type: "text", text: `Tool desconocido: ${name}` }], isError: true };
257
+ }
258
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
259
+ }
260
+ catch (error) {
261
+ return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true };
262
+ }
263
+ });
264
+ async function main() { const transport = new stdio_js_1.StdioServerTransport(); await server.connect(transport); console.error("Dropi MCP Server running - By Trucos Ecomm & Drop"); }
265
+ main().catch(console.error);
266
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAEA,wEAAmE;AACnE,wEAAiF;AACjF,iEAAyG;AACzG,kDAA6C;AAE7C,MAAM,cAAc,GAAG,kEAAkE,CAAC;AAI1F,MAAM,WAAW;IACP,MAAM,CAAc;IACpB,MAAM,CAAgB;IAE9B;QACE,IAAI,CAAC,MAAM,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,EAAE,EAAE,OAAO,EAA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ED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "dropi-mcp",
3
+ "version": "1.0.0",
4
+ "description": "MCP Server for Dropi.co - Connect Claude, ChatGPT, and other AI assistants to Dropi dropshipping platform",
5
+ "main": "dist/index.js",
6
+ "bin": {
7
+ "dropi-mcp": "./dist/index.js"
8
+ },
9
+ "scripts": {
10
+ "build": "tsc",
11
+ "start": "node dist/index.js",
12
+ "dev": "tsc --watch"
13
+ },
14
+ "keywords": [
15
+ "mcp",
16
+ "dropi",
17
+ "dropshipping",
18
+ "claude",
19
+ "anthropic",
20
+ "chatgpt",
21
+ "openai",
22
+ "ai",
23
+ "ecommerce",
24
+ "cod",
25
+ "fulfillment",
26
+ "colombia",
27
+ "mexico",
28
+ "model-context-protocol"
29
+ ],
30
+ "author": "Trucos Ecomm & Drop <trucosecomydrop@gmail.com>",
31
+ "license": "MIT",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/AndresestradaR/dropi-mcp.git"
35
+ },
36
+ "bugs": {
37
+ "url": "https://github.com/AndresestradaR/dropi-mcp/issues"
38
+ },
39
+ "homepage": "https://github.com/AndresestradaR/dropi-mcp#readme",
40
+ "dependencies": {
41
+ "@modelcontextprotocol/sdk": "^0.6.0",
42
+ "axios": "^1.6.0"
43
+ },
44
+ "devDependencies": {
45
+ "@types/node": "^20.10.0",
46
+ "typescript": "^5.3.0"
47
+ },
48
+ "engines": {
49
+ "node": ">=18.0.0"
50
+ },
51
+ "files": [
52
+ "dist/**/*",
53
+ "README.md",
54
+ "LICENSE"
55
+ ]
56
+ }