aura-courier-mcp 2.3.0 → 2.3.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aura Ajentic AI
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.
@@ -12,7 +12,7 @@ export class PaperflyAdapter {
12
12
  this.username = username;
13
13
  this.password = password;
14
14
  this.storeName = storeName;
15
- this.enabled = Boolean(apiKey && storeName);
15
+ this.enabled = Boolean(apiKey && username && password);
16
16
  this.client = axios.create({
17
17
  baseURL: baseUrl,
18
18
  timeout: 15000,
@@ -24,7 +24,10 @@ export class PaperflyAdapter {
24
24
  }
25
25
  async createParcel(req) {
26
26
  if (!this.enabled) {
27
- throw new Error("Paperfly credentials (paperflykey + store name) are not configured.");
27
+ throw new Error("Paperfly credentials (paperflykey + merchant username & password) are not configured.");
28
+ }
29
+ if (!this.storeName) {
30
+ throw new Error("Paperfly store name is required to create a parcel.");
28
31
  }
29
32
  const payload = {
30
33
  merchantOrderReference: req.invoice,
@@ -38,6 +41,7 @@ export class PaperflyAdapter {
38
41
  };
39
42
  const response = await this.client.post("/merchant/api/service/new_order_v2.php", payload, {
40
43
  headers: { paperflykey: this.apiKey },
44
+ auth: { username: this.username, password: this.password },
41
45
  });
42
46
  const data = response.data;
43
47
  const ok = data?.success;
@@ -64,7 +68,7 @@ export class PaperflyAdapter {
64
68
  throw new Error("Paperfly tracking needs your merchant-panel username & password (Basic Auth). Add them to use track_parcel.");
65
69
  }
66
70
  // Paperfly tracks by your merchant order reference (merchantOrderReference), not its tracking number.
67
- const response = await this.client.post("/API-Order-Tracking", { ReferenceNumber: trackingCode }, { auth: { username: this.username, password: this.password } });
71
+ const response = await this.client.post("/API-Order-Tracking", { ReferenceNumber: trackingCode }, { headers: { paperflykey: this.apiKey }, auth: { username: this.username, password: this.password } });
68
72
  const data = response.data;
69
73
  const st = data?.success?.trackingStatus?.[0] || {};
70
74
  const stages = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aura-courier-mcp",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "Universal Bangladesh courier MCP server — Steadfast, Pathao, RedX & Paperfly with a built-in fraud-risk engine — for Claude, Antigravity, Cursor & n8n AI agents. Runs as a local npx (STDIO) server or a remote HTTP endpoint.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -9,7 +9,8 @@
9
9
  },
10
10
  "files": [
11
11
  "dist",
12
- "README.md"
12
+ "README.md",
13
+ "LICENSE"
13
14
  ],
14
15
  "publishConfig": {
15
16
  "access": "public"