@codespar/mcp-andreani 0.2.0-alpha.1 → 0.2.0-alpha.3

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 (3) hide show
  1. package/README.md +35 -6
  2. package/dist/index.js +5 -2
  3. package/package.json +12 -3
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # MCP Andreani
2
2
 
3
+
4
+ > **Alpha release** — published under the `alpha` npm dist-tag. Endpoint paths follow public docs and BACEN/provider conventions but have not been fully live-validated. Pin exact versions during `0.x.x-alpha`. Install with `npm install <pkg>@alpha`.
5
+
3
6
  MCP server for **Andreani** — the largest Argentine courier and logistics company, providing domestic and international shipping services.
4
7
 
5
8
  ## Quick Start
@@ -27,18 +30,28 @@ npx tsx packages/argentina/andreani/src/index.ts --http
27
30
  | `MCP_HTTP` | No | Set to `"true"` to enable HTTP transport |
28
31
  | `MCP_PORT` | No | HTTP port (default: 3000) |
29
32
 
30
- ## Tools
33
+ ## Tools (18)
31
34
 
32
- | Tool | Description |
33
- |------|-------------|
35
+ | Tool | Purpose |
36
+ |---|---|
34
37
  | `create_shipment` | Create a new shipment |
35
38
  | `get_shipment` | Get shipment details by ID |
36
39
  | `track_shipment` | Track a shipment by tracking number |
37
40
  | `get_rates` | Get shipping rates/quotes |
38
41
  | `list_branches` | List Andreani branches/sucursales |
39
- | `create_label` | Generate a shipping label |
40
- | `get_tracking_history` | Get full tracking history |
42
+ | `create_label` | Generate a shipping label for a shipment |
43
+ | `get_tracking_history` | Get full tracking history for a shipment |
41
44
  | `cancel_shipment` | Cancel a shipment |
45
+ | `get_label_pdf` | Download a shipping label as PDF (base64-encoded) |
46
+ | `list_tracking_by_date` | List tracking events for a contract within a date range |
47
+ | `validate_postal_code` | Validate CP coverage and list available services for a postal code |
48
+ | `create_pickup` | Create a pickup/collection request (retiro) |
49
+ | `list_pickups` | List pickup/collection requests |
50
+ | `cancel_pickup` | Cancel a pickup/collection request |
51
+ | `create_return` | Create a reverse logistics shipment (logística inversa / devolución) |
52
+ | `list_returns` | List reverse logistics shipments (returns) |
53
+ | `list_products` | List contracted products/services available on the account |
54
+ | `get_invoice` | Get billing/invoice details |
42
55
 
43
56
  ## Auth
44
57
 
@@ -50,4 +63,20 @@ Uses **Bearer token** authentication. The server logs in with username/password
50
63
 
51
64
  ---
52
65
 
53
- **Enterprise?** Contact us at [codespar.com](https://codespar.com) for dedicated support, custom integrations, and SLAs.
66
+ ## Enterprise
67
+
68
+ 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.
69
+
70
+ ## Authentication
71
+
72
+ Set these environment variables before launching the server:
73
+
74
+ - `ANDREANI_API_KEY` *(required, secret)* — API key for Andreani
75
+ - `ANDREANI_USER` *(required)* — Username for Andreani
76
+ - `ANDREANI_PASSWORD` *(required, secret)* — Password for Andreani
77
+
78
+ Issue credentials at the provider's developer portal: <https://developers.andreani.com>.
79
+
80
+ ## License
81
+
82
+ MIT
package/dist/index.js CHANGED
@@ -72,7 +72,10 @@ async function andreaniRequest(method, path, body) {
72
72
  }
73
73
  return res.json();
74
74
  }
75
- const server = new Server({ name: "mcp-andreani", version: "0.2.0-alpha.1" }, { capabilities: { tools: {} } });
75
+ // Managed-tier pointer surfaced to the agent via MCP `instructions`.
76
+ // Informational only — nothing CodeSpar-hosted is called (MIT-safe).
77
+ 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).";
78
+ const server = new Server({ name: "mcp-andreani", version: "0.2.0-alpha.2" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
76
79
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
77
80
  tools: [
78
81
  {
@@ -503,7 +506,7 @@ async function main() {
503
506
  const t = new StreamableHTTPServerTransport({ sessionIdGenerator: () => randomUUID(), onsessioninitialized: (id) => { transports.set(id, t); } });
504
507
  t.onclose = () => { if (t.sessionId)
505
508
  transports.delete(t.sessionId); };
506
- const s = new Server({ name: "mcp-andreani", version: "0.2.0-alpha.1" }, { capabilities: { tools: {} } });
509
+ const s = new Server({ name: "mcp-andreani", version: "0.2.0-alpha.2" }, { capabilities: { tools: {} } });
507
510
  server._requestHandlers.forEach((v, k) => s._requestHandlers.set(k, v));
508
511
  server._notificationHandlers?.forEach((v, k) => s._notificationHandlers.set(k, v));
509
512
  await s.connect(t);
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@codespar/mcp-andreani",
3
- "version": "0.2.0-alpha.1",
3
+ "version": "0.2.0-alpha.3",
4
4
  "description": "MCP server for Andreani — Argentine courier and logistics",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "bin": {
8
8
  "mcp-andreani": "dist/index.js"
9
9
  },
10
- "files": ["dist"],
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": ["andreani", "courier", "logistics", "argentina", "shipping", "mcp"],
25
+ "keywords": [
26
+ "andreani",
27
+ "courier",
28
+ "logistics",
29
+ "argentina",
30
+ "shipping",
31
+ "mcp"
32
+ ],
24
33
  "mcpName": "io.github.codespar/mcp-andreani"
25
34
  }