@codespar/mcp-coordinadora 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.
- package/README.md +36 -7
- package/dist/index.js +5 -2
- package/package.json +12 -3
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# MCP Coordinadora
|
|
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 **Coordinadora** — one of Colombia's largest courier and logistics companies, offering domestic and international shipping services.
|
|
4
7
|
|
|
5
8
|
## Quick Start
|
|
@@ -25,18 +28,29 @@ npx tsx packages/colombia/coordinadora/src/index.ts --http
|
|
|
25
28
|
| `MCP_HTTP` | No | Set to `"true"` to enable HTTP transport |
|
|
26
29
|
| `MCP_PORT` | No | HTTP port (default: 3000) |
|
|
27
30
|
|
|
28
|
-
## Tools
|
|
31
|
+
## Tools (19)
|
|
29
32
|
|
|
30
|
-
| Tool |
|
|
31
|
-
|
|
33
|
+
| Tool | Purpose |
|
|
34
|
+
|---|---|
|
|
32
35
|
| `create_shipment` | Create a new shipment |
|
|
33
36
|
| `get_shipment` | Get shipment details by guide number |
|
|
34
|
-
| `track_shipment` | Track a shipment |
|
|
37
|
+
| `track_shipment` | Track a shipment by guide number |
|
|
35
38
|
| `get_rates` | Get shipping rates/quotes |
|
|
36
39
|
| `list_cities` | List available cities for shipping |
|
|
37
|
-
| `create_pickup` | Schedule a pickup |
|
|
38
|
-
| `get_coverage` | Check
|
|
40
|
+
| `create_pickup` | Schedule a pickup at an address |
|
|
41
|
+
| `get_coverage` | Check if a location is within coverage area |
|
|
39
42
|
| `cancel_shipment` | Cancel a shipment |
|
|
43
|
+
| `get_guia_pdf` | Download a guía label as PDF (returns base64 or URL) |
|
|
44
|
+
| `get_pickup` | Get pickup (recolección) details by id |
|
|
45
|
+
| `cancel_pickup` | Cancel a scheduled pickup (recolección) |
|
|
46
|
+
| `get_tracking_history` | Get full tracking event history for a guía |
|
|
47
|
+
| `list_shipments_by_date` | List guías created within a date range |
|
|
48
|
+
| `validate_coverage` | Validate that a city + postal code combination is covered |
|
|
49
|
+
| `list_services` | List available service types for a given origin/destination |
|
|
50
|
+
| `list_offices` | List Coordinadora branch offices (oficinas) |
|
|
51
|
+
| `create_return` | Create a reverse-logistics return guía |
|
|
52
|
+
| `list_returns` | List existing return guías |
|
|
53
|
+
| `create_bulk_guias` | Create multiple guías in a single batch operation |
|
|
40
54
|
|
|
41
55
|
## Auth
|
|
42
56
|
|
|
@@ -48,4 +62,19 @@ Uses **API key + NIT header** authentication. Both the API key and company NIT a
|
|
|
48
62
|
|
|
49
63
|
---
|
|
50
64
|
|
|
51
|
-
|
|
65
|
+
## Enterprise
|
|
66
|
+
|
|
67
|
+
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.
|
|
68
|
+
|
|
69
|
+
## Authentication
|
|
70
|
+
|
|
71
|
+
Set these environment variables before launching the server:
|
|
72
|
+
|
|
73
|
+
- `COORDINADORA_API_KEY` *(required, secret)* — API key for Coordinadora
|
|
74
|
+
- `COORDINADORA_NIT` *(required)* — Company NIT number
|
|
75
|
+
|
|
76
|
+
Issue credentials at the provider's developer portal: <https://coordinadora.docs.apiary.io>.
|
|
77
|
+
|
|
78
|
+
## License
|
|
79
|
+
|
|
80
|
+
MIT
|
package/dist/index.js
CHANGED
|
@@ -53,7 +53,10 @@ async function coordinadoraRequest(method, path, body) {
|
|
|
53
53
|
}
|
|
54
54
|
return res.json();
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
57
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
58
|
+
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).";
|
|
59
|
+
const server = new Server({ name: "mcp-coordinadora", version: "0.2.0-alpha.2" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
|
|
57
60
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
58
61
|
tools: [
|
|
59
62
|
{
|
|
@@ -530,7 +533,7 @@ async function main() {
|
|
|
530
533
|
const t = new StreamableHTTPServerTransport({ sessionIdGenerator: () => randomUUID(), onsessioninitialized: (id) => { transports.set(id, t); } });
|
|
531
534
|
t.onclose = () => { if (t.sessionId)
|
|
532
535
|
transports.delete(t.sessionId); };
|
|
533
|
-
const s = new Server({ name: "mcp-coordinadora", version: "0.2.0-alpha.
|
|
536
|
+
const s = new Server({ name: "mcp-coordinadora", version: "0.2.0-alpha.2" }, { capabilities: { tools: {} } });
|
|
534
537
|
server._requestHandlers.forEach((v, k) => s._requestHandlers.set(k, v));
|
|
535
538
|
server._notificationHandlers?.forEach((v, k) => s._notificationHandlers.set(k, v));
|
|
536
539
|
await s.connect(t);
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codespar/mcp-coordinadora",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.3",
|
|
4
4
|
"description": "MCP server for Coordinadora — Colombian courier and logistics",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"mcp-coordinadora": "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
|
+
"coordinadora",
|
|
27
|
+
"courier",
|
|
28
|
+
"logistics",
|
|
29
|
+
"colombia",
|
|
30
|
+
"shipping",
|
|
31
|
+
"mcp"
|
|
32
|
+
],
|
|
24
33
|
"mcpName": "io.github.codespar/mcp-coordinadora"
|
|
25
34
|
}
|