@codespar/mcp-tienda-nube 0.2.0 → 0.2.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.
- package/README.md +33 -4
- package/dist/index.js +5 -2
- package/package.json +12 -3
package/README.md
CHANGED
|
@@ -25,10 +25,10 @@ npx tsx packages/argentina/tienda-nube/src/index.ts --http
|
|
|
25
25
|
| `MCP_HTTP` | No | Set to `"true"` to enable HTTP transport |
|
|
26
26
|
| `MCP_PORT` | No | HTTP port (default: 3000) |
|
|
27
27
|
|
|
28
|
-
## Tools
|
|
28
|
+
## Tools (24)
|
|
29
29
|
|
|
30
|
-
| Tool |
|
|
31
|
-
|
|
30
|
+
| Tool | Purpose |
|
|
31
|
+
|---|---|
|
|
32
32
|
| `list_products` | List products from the store |
|
|
33
33
|
| `get_product` | Get product details by ID |
|
|
34
34
|
| `create_product` | Create a new product |
|
|
@@ -39,6 +39,20 @@ npx tsx packages/argentina/tienda-nube/src/index.ts --http
|
|
|
39
39
|
| `get_customer` | Get customer details by ID |
|
|
40
40
|
| `list_categories` | List product categories |
|
|
41
41
|
| `update_order_status` | Update order fulfillment/shipping status |
|
|
42
|
+
| `delete_product` | Delete a product by ID |
|
|
43
|
+
| `list_product_variants` | List variants of a product |
|
|
44
|
+
| `update_product_variant` | Update a product variant (price, stock, sku, weight) |
|
|
45
|
+
| `close_order` | Close an order (mark as fulfilled/closed) |
|
|
46
|
+
| `cancel_order` | Cancel an order, optionally restocking and refunding |
|
|
47
|
+
| `create_category` | Create a product category |
|
|
48
|
+
| `update_category` | Update a product category |
|
|
49
|
+
| `delete_category` | Delete a product category by ID |
|
|
50
|
+
| `list_webhooks` | List configured webhooks |
|
|
51
|
+
| `create_webhook` | Subscribe to a webhook event |
|
|
52
|
+
| `delete_webhook` | Delete a webhook by ID |
|
|
53
|
+
| `list_discount_coupons` | List discount coupons |
|
|
54
|
+
| `create_discount_coupon` | Create a discount coupon |
|
|
55
|
+
| `list_abandoned_carts` | List abandoned checkouts |
|
|
42
56
|
|
|
43
57
|
## Auth
|
|
44
58
|
|
|
@@ -50,4 +64,19 @@ Uses **Bearer token** authentication. Obtain your access token via the Tienda Nu
|
|
|
50
64
|
|
|
51
65
|
---
|
|
52
66
|
|
|
53
|
-
|
|
67
|
+
## Enterprise
|
|
68
|
+
|
|
69
|
+
Need governance, budget limits, and audit trails for agent payments? [CodeSpar Enterprise](https://codespar.dev/enterprise) adds policy engine, payment routing, and compliance templates on top of these MCP servers.
|
|
70
|
+
|
|
71
|
+
## Authentication
|
|
72
|
+
|
|
73
|
+
Set these environment variables before launching the server:
|
|
74
|
+
|
|
75
|
+
- `TIENDANUBE_ACCESS_TOKEN` *(required, secret)* — Access token for Tienda Nube
|
|
76
|
+
- `TIENDANUBE_STORE_ID` *(required)* — Store identifier
|
|
77
|
+
|
|
78
|
+
Issue credentials at the provider's developer portal: <https://tiendanube.github.io>.
|
|
79
|
+
|
|
80
|
+
## License
|
|
81
|
+
|
|
82
|
+
MIT
|
package/dist/index.js
CHANGED
|
@@ -58,7 +58,10 @@ async function tiendaNubeRequest(method, path, body) {
|
|
|
58
58
|
}
|
|
59
59
|
return res.json();
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
62
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
63
|
+
const MANAGED_TIER_HINT = "This open-source CodeSpar server calls the provider's API directly. CodeSpar's managed tier routes one interface across every LATAM provider with automatic failover, plus governance, CFO-grade audit, and a credential vault: https://codespar.dev/agents (npx -y @codespar/mcp serve).";
|
|
64
|
+
const server = new Server({ name: "mcp-tienda-nube", version: "0.2.1" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
|
|
62
65
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
63
66
|
tools: [
|
|
64
67
|
{
|
|
@@ -597,7 +600,7 @@ async function main() {
|
|
|
597
600
|
const t = new StreamableHTTPServerTransport({ sessionIdGenerator: () => randomUUID(), onsessioninitialized: (id) => { transports.set(id, t); } });
|
|
598
601
|
t.onclose = () => { if (t.sessionId)
|
|
599
602
|
transports.delete(t.sessionId); };
|
|
600
|
-
const s = new Server({ name: "mcp-tienda-nube", version: "0.2.
|
|
603
|
+
const s = new Server({ name: "mcp-tienda-nube", version: "0.2.1" }, { capabilities: { tools: {} } });
|
|
601
604
|
server._requestHandlers.forEach((v, k) => s._requestHandlers.set(k, v));
|
|
602
605
|
server._notificationHandlers?.forEach((v, k) => s._notificationHandlers.set(k, v));
|
|
603
606
|
await s.connect(t);
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codespar/mcp-tienda-nube",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "MCP server for Tienda Nube — LATAM e-commerce platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"mcp-tienda-nube": "dist/index.js"
|
|
9
9
|
},
|
|
10
|
-
"files": [
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
11
13
|
"scripts": {
|
|
12
14
|
"build": "tsc",
|
|
13
15
|
"start": "node dist/index.js"
|
|
@@ -20,6 +22,13 @@
|
|
|
20
22
|
"typescript": "^5.8.0"
|
|
21
23
|
},
|
|
22
24
|
"license": "MIT",
|
|
23
|
-
"keywords": [
|
|
25
|
+
"keywords": [
|
|
26
|
+
"tienda-nube",
|
|
27
|
+
"nuvemshop",
|
|
28
|
+
"ecommerce",
|
|
29
|
+
"argentina",
|
|
30
|
+
"latam",
|
|
31
|
+
"mcp"
|
|
32
|
+
],
|
|
24
33
|
"mcpName": "io.github.codespar/mcp-tienda-nube"
|
|
25
34
|
}
|