aura-courier-mcp 2.3.2 → 2.7.1
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 +192 -21
- package/README.md +359 -26
- package/README.md.metadata.json +4 -0
- package/dist/adapters/base.d.ts +1 -0
- package/dist/adapters/base.js.map +1 -0
- package/dist/adapters/fraud_engine.d.ts +8 -1
- package/dist/adapters/fraud_engine.js +137 -21
- package/dist/adapters/google_maps.d.ts +25 -0
- package/dist/adapters/google_maps.js +334 -0
- package/dist/adapters/paperfly.d.ts +14 -0
- package/dist/adapters/paperfly.js +102 -22
- package/dist/adapters/pathao.d.ts +37 -1
- package/dist/adapters/pathao.js +247 -31
- package/dist/adapters/pathao.js.map +1 -0
- package/dist/adapters/redx.d.ts +14 -0
- package/dist/adapters/redx.js +81 -12
- package/dist/adapters/registry.d.ts +20 -0
- package/dist/adapters/registry.js +34 -0
- package/dist/adapters/registry.js.map +1 -0
- package/dist/adapters/steadfast.d.ts +17 -0
- package/dist/adapters/steadfast.js +121 -12
- package/dist/adapters/steadfast.js.map +1 -0
- package/dist/config.d.ts +4 -0
- package/dist/config.js +16 -2
- package/dist/config.js.map +1 -0
- package/dist/envelope.d.ts +55 -0
- package/dist/envelope.js +159 -0
- package/dist/http.d.ts +8 -1
- package/dist/http.js +699 -58
- package/dist/http.js.map +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -0
- package/dist/middleware/auth.d.ts +100 -0
- package/dist/middleware/auth.js +585 -0
- package/dist/middleware/oauth.d.ts +19 -0
- package/dist/middleware/oauth.js +1376 -0
- package/dist/middleware/rate_limit.d.ts +9 -0
- package/dist/middleware/rate_limit.js +71 -0
- package/dist/pages.d.ts +8 -0
- package/dist/pages.js +317 -0
- package/dist/pages.js.map +1 -0
- package/dist/registry.d.ts +51 -6
- package/dist/registry.js +625 -28
- package/dist/server.d.ts +11 -1
- package/dist/server.js +407 -51
- package/dist/server.js.map +1 -0
- package/dist/tariffs.d.ts +46 -0
- package/dist/tariffs.js +153 -0
- package/dist/test_zero_risk.js +49 -25
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.js +162 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/types.d.ts +188 -4
- package/dist/types.js.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +16 -0
- package/package.json +12 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Request, Response, NextFunction } from "express";
|
|
2
|
+
interface RateLimiterOptions {
|
|
3
|
+
windowMs: number;
|
|
4
|
+
max: number;
|
|
5
|
+
message?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function createRateLimiter(options: RateLimiterOptions): (req: Request, res: Response, next: NextFunction) => void;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export function createRateLimiter(options) {
|
|
2
|
+
const { windowMs, max, message = "Too Many Requests. Rate limit exceeded, please retry later.", name = "Default" } = options;
|
|
3
|
+
const store = new Map();
|
|
4
|
+
// Prune expired rate limit entries every 5 minutes to avoid memory bloat
|
|
5
|
+
setInterval(() => {
|
|
6
|
+
const now = Date.now();
|
|
7
|
+
for (const [key, record] of store.entries()) {
|
|
8
|
+
if (now > record.resetAt) {
|
|
9
|
+
store.delete(key);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}, 5 * 60 * 1000).unref();
|
|
13
|
+
return (req, res, next) => {
|
|
14
|
+
// Extract Client IP (supporting Cloudflare cf-connecting-ip and reverse proxies like Traefik / Nginx)
|
|
15
|
+
const cfIp = req.headers["cf-connecting-ip"];
|
|
16
|
+
const xForwardedFor = req.headers["x-forwarded-for"];
|
|
17
|
+
let clientIp = "";
|
|
18
|
+
if (typeof cfIp === "string") {
|
|
19
|
+
clientIp = cfIp.trim();
|
|
20
|
+
}
|
|
21
|
+
else if (typeof xForwardedFor === "string") {
|
|
22
|
+
clientIp = xForwardedFor.split(",")[0].trim();
|
|
23
|
+
}
|
|
24
|
+
else if (Array.isArray(xForwardedFor) && xForwardedFor.length > 0) {
|
|
25
|
+
clientIp = xForwardedFor[0].trim();
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
clientIp = req.socket?.remoteAddress || "unknown";
|
|
29
|
+
}
|
|
30
|
+
// Bypass loopback and internal orchestration networks
|
|
31
|
+
if (clientIp === "127.0.0.1" ||
|
|
32
|
+
clientIp === "::1" ||
|
|
33
|
+
clientIp === "::ffff:127.0.0.1" ||
|
|
34
|
+
clientIp.startsWith("10.") ||
|
|
35
|
+
clientIp.startsWith("172.16.") ||
|
|
36
|
+
clientIp.startsWith("172.17.") ||
|
|
37
|
+
clientIp.startsWith("172.18.")) {
|
|
38
|
+
return next();
|
|
39
|
+
}
|
|
40
|
+
const now = Date.now();
|
|
41
|
+
let record = store.get(clientIp);
|
|
42
|
+
if (!record || now > record.resetAt) {
|
|
43
|
+
record = {
|
|
44
|
+
count: 1,
|
|
45
|
+
resetAt: now + windowMs,
|
|
46
|
+
};
|
|
47
|
+
store.set(clientIp, record);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
record.count++;
|
|
51
|
+
}
|
|
52
|
+
const remaining = Math.max(0, max - record.count);
|
|
53
|
+
const resetTimeSec = Math.ceil(record.resetAt / 1000);
|
|
54
|
+
const retryAfterSec = Math.ceil((record.resetAt - now) / 1000);
|
|
55
|
+
res.setHeader("X-RateLimit-Limit", max);
|
|
56
|
+
res.setHeader("X-RateLimit-Remaining", remaining);
|
|
57
|
+
res.setHeader("X-RateLimit-Reset", resetTimeSec);
|
|
58
|
+
if (record.count > max) {
|
|
59
|
+
res.setHeader("Retry-After", retryAfterSec);
|
|
60
|
+
res.status(429).json({
|
|
61
|
+
error: "Too Many Requests",
|
|
62
|
+
limiter: name,
|
|
63
|
+
message,
|
|
64
|
+
retryAfterSeconds: retryAfterSec,
|
|
65
|
+
timestamp: new Date().toISOString(),
|
|
66
|
+
});
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
next();
|
|
70
|
+
};
|
|
71
|
+
}
|
package/dist/pages.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static public pages served by the HTTP server: landing, privacy policy, and
|
|
3
|
+
* docs. These give the connector stable public HTTPS URLs required for the
|
|
4
|
+
* Anthropic Connectors Directory submission (privacy policy + setup docs).
|
|
5
|
+
*/
|
|
6
|
+
export declare const LANDING_HTML = "<!doctype html>\n<html lang=\"bn\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta name=\"description\" content=\"Aura Courier MCP \u2014 one MCP connector for every Bangladesh courier.\">\n<title>Aura Courier MCP</title>\n<style>\n /* Dark, blue/violet, code-aesthetic \u2014 matched to auraajenticai.cloud */\n :root{\n --bg:#09090f; --bg2:#0c0d15; --surface:#13141d; --surface2:#191b27;\n --ink:#edeff5; --muted:#969db4; --faint:#5c6482; --line:#23283a;\n --blue:#4d7cff; --violet:#8b5cf6; --cyan:#38bdf8;\n --green:#46d17f; --green-bg:#0f2a1d; --amber:#e0a341; --amber-bg:#2a2110;\n --code-ink:#c8d0e6; --shadow:0 1px 2px rgba(0,0,0,.5),0 20px 50px rgba(0,0,0,.45);\n --grad:linear-gradient(100deg,var(--blue),var(--violet));\n }\n *{box-sizing:border-box}\n body{margin:0}\n .wrap{font-family:-apple-system,\"Segoe UI\",Roboto,system-ui,sans-serif; background:var(--bg); color:var(--ink); line-height:1.6; -webkit-font-smoothing:antialiased}\n .page{max-width:960px; margin:0 auto; padding:0 22px}\n .mono{font-family:\"SF Mono\",ui-monospace,\"Cascadia Code\",\"JetBrains Mono\",Menlo,Consolas,monospace}\n a{color:var(--blue)}\n h1,h2,h3{line-height:1.15; margin:0; text-wrap:balance}\n .eyebrow{font-family:\"SF Mono\",ui-monospace,monospace; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--blue); font-weight:600}\n\n /* hero */\n .hero{text-align:center; padding:74px 22px 52px; position:relative; overflow:hidden; border-bottom:1px solid var(--line)}\n .hero::before{content:\"\"; position:absolute; inset:0;\n background:\n radial-gradient(55% 45% at 50% -5%, color-mix(in srgb,var(--blue) 22%, transparent), transparent 68%),\n radial-gradient(40% 40% at 82% 20%, color-mix(in srgb,var(--violet) 16%, transparent), transparent 70%);\n pointer-events:none}\n .hero::after{content:\"\"; position:absolute; inset:0; opacity:.5; pointer-events:none;\n background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);\n background-size:52px 52px; mask-image:radial-gradient(70% 60% at 50% 0%,#000,transparent 75%); -webkit-mask-image:radial-gradient(70% 60% at 50% 0%,#000,transparent 75%)}\n .hero > *{position:relative}\n .mark{display:inline-flex; align-items:center; gap:11px; margin-bottom:26px}\n .mark svg{width:32px;height:32px}\n .mark span{font-weight:800; font-size:13.5px; letter-spacing:.04em}\n .mark span small{display:block; font-family:\"SF Mono\",monospace; font-size:9.5px; letter-spacing:.22em; color:var(--blue); font-weight:600; text-transform:uppercase; margin-top:2px}\n .badge-live{display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:600; color:var(--green); background:var(--green-bg); border:1px solid color-mix(in srgb,var(--green) 30%,transparent); padding:5px 13px; border-radius:999px; margin-bottom:22px}\n .badge-live .d{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 8px var(--green)}\n .hero h1{font-size:clamp(36px,7.5vw,66px); font-weight:800; letter-spacing:-.03em}\n .hero h1 em{font-family:Georgia,\"Times New Roman\",serif; font-style:italic; font-weight:500; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent}\n .hero .tagline{font-size:clamp(16px,2.4vw,20px); color:var(--muted); max-width:36ch; margin:20px auto 0}\n .cta-row{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:34px}\n .btn{display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:15px; padding:13px 24px; border-radius:11px; text-decoration:none; border:1px solid transparent; transition:transform .12s ease}\n .btn:hover{transform:translateY(-1px)}\n .btn-primary{background:var(--grad); color:#fff; box-shadow:0 8px 24px color-mix(in srgb,var(--blue) 34%, transparent)}\n .btn-ghost{background:color-mix(in srgb,var(--surface) 80%,transparent); color:var(--ink); border-color:var(--line)}\n .hero-meta{display:flex; gap:10px 20px; justify-content:center; flex-wrap:wrap; margin-top:32px; font-family:\"SF Mono\",monospace; font-size:12.5px; color:var(--faint); font-weight:600}\n .hero-meta b{color:var(--ink)}\n\n section.blk{padding:48px 0; border-top:1px solid var(--line)}\n .blk-head{margin-bottom:26px}\n .blk-head h2{font-size:27px; font-weight:800; letter-spacing:-.015em; margin-top:9px}\n .blk-head p{color:var(--muted); margin:9px 0 0; max-width:62ch}\n\n .tools{display:grid; grid-template-columns:repeat(auto-fit,minmax(215px,1fr)); gap:14px}\n .tool{background:var(--surface); border:1px solid var(--line); border-radius:13px; padding:18px 20px; box-shadow:var(--shadow); transition:border-color .15s}\n .tool:hover{border-color:color-mix(in srgb,var(--blue) 45%,var(--line))}\n .tool .name{font-family:\"SF Mono\",monospace; font-size:14px; font-weight:600; color:var(--blue)}\n .tool p{margin:8px 0 0; font-size:14px; color:var(--muted)}\n\n .couriers{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px}\n .courier{background:var(--surface); border:1px solid var(--line); border-radius:13px; padding:18px 20px; display:flex; flex-direction:column; gap:9px; box-shadow:var(--shadow)}\n .courier .cn{font-weight:800; font-size:16px}\n .pill{align-self:flex-start; font-size:11.5px; font-weight:600; padding:3px 10px; border-radius:999px; letter-spacing:.02em; font-family:\"SF Mono\",monospace}\n .pill.live{background:var(--green-bg); color:var(--green)}\n .pill.soon{background:var(--amber-bg); color:var(--amber)}\n\n .connect{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:8px; box-shadow:var(--shadow); overflow:hidden}\n .connect .bar{display:flex; align-items:center; gap:7px; padding:11px 14px}\n .dot{width:11px;height:11px;border-radius:50%}\n .connect .fn{margin-left:8px; font-size:12.5px; color:var(--faint); font-weight:600}\n pre.code{margin:0; background:var(--bg2); color:var(--code-ink); border-radius:11px; padding:18px 20px; overflow-x:auto; font-size:13px; line-height:1.7; border:1px solid var(--line)}\n pre.code .k{color:var(--cyan)} pre.code .s{color:var(--green)} pre.code .c{color:var(--faint)}\n .steps3{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:18px}\n @media(max-width:640px){.steps3{grid-template-columns:1fr}}\n .st{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:15px 17px}\n .st .n{font-family:\"SF Mono\",monospace; font-weight:700; color:var(--blue); font-variant-numeric:tabular-nums}\n .st p{margin:6px 0 0; font-size:14px; color:var(--ink)}\n\n .why{display:grid; grid-template-columns:1.25fr 1fr; gap:20px; align-items:center}\n @media(max-width:720px){.why{grid-template-columns:1fr}}\n .why ul{margin:0; padding-left:18px; color:var(--muted); font-size:15px}\n .why li{margin:9px 0} .why li b{color:var(--ink)}\n .vision{background:linear-gradient(150deg,var(--surface2),var(--surface)); border:1px solid var(--line); border-radius:16px; padding:26px 28px; box-shadow:var(--shadow); position:relative; overflow:hidden}\n .vision::before{content:\"\"; position:absolute; inset:0; background:radial-gradient(60% 60% at 100% 0%,color-mix(in srgb,var(--violet) 18%,transparent),transparent 70%); pointer-events:none}\n .vision .tag{font-family:\"SF Mono\",monospace; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--blue); position:relative}\n .vision h3{font-size:21px; font-weight:800; margin-top:12px; position:relative}\n .vision p{color:var(--muted); margin:12px 0 0; font-size:14.5px; position:relative}\n\n footer{border-top:1px solid var(--line); padding:32px 0 60px; color:var(--faint); font-size:13px; text-align:center}\n footer a{color:var(--blue); text-decoration:none}\n footer b{color:var(--ink)}\n @media (prefers-reduced-motion:reduce){.btn{transition:none}}\n</style>\n</head>\n<body>\n\n\n<div class=\"wrap\">\n <div class=\"hero\">\n <div class=\"mark\">\n <svg viewBox=\"0 0 40 40\" fill=\"none\" aria-hidden=\"true\">\n <circle cx=\"20\" cy=\"14\" r=\"9\" stroke=\"url(#g)\" stroke-width=\"2.5\"/>\n <circle cx=\"13.5\" cy=\"25\" r=\"9\" stroke=\"url(#g)\" stroke-width=\"2.5\" opacity=\".6\"/>\n <circle cx=\"26.5\" cy=\"25\" r=\"9\" stroke=\"url(#g)\" stroke-width=\"2.5\" opacity=\".38\"/>\n <defs><linearGradient id=\"g\" x1=\"0\" y1=\"0\" x2=\"40\" y2=\"40\"><stop stop-color=\"#4d7cff\"/><stop offset=\"1\" stop-color=\"#8b5cf6\"/></linearGradient></defs>\n </svg>\n <span>AURA AGENTIC AI<small>Neural Verified Commerce</small></span>\n </div>\n <div class=\"badge-live\"><span class=\"d\"></span> Model Context Protocol \u00B7 Bangladesh</div>\n <h1>Aura <em>Courier</em> MCP</h1>\n <p class=\"tagline\">\u098F\u0995 connector \u2014 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6\u09C7\u09B0 \u09B8\u09AC courier\u0964 Claude \u09A5\u09C7\u0995\u09C7\u0987 parcel \u09AC\u09C1\u0995 \u0995\u09B0\u09C1\u09A8 \u0993 \u099F\u09CD\u09B0\u09CD\u09AF\u09BE\u0995 \u0995\u09B0\u09C1\u09A8\u0964</p>\n <div class=\"cta-row\">\n <a class=\"btn btn-primary\" href=\"/docs\">\u26A1 Add to Claude</a>\n <a class=\"btn btn-ghost\" href=\"https://github.com/auraajenticai/aura-courier-mcp\">\u2605 View on GitHub</a>\n </div>\n <div class=\"hero-meta mono\">\n <span><b>5</b> tools</span>\n <span><b>2</b> couriers live</span>\n <span>book \u00B7 track \u00B7 balance</span>\n <span>open source \u00B7 MIT</span>\n </div>\n </div>\n\n <div class=\"page\">\n\n <section class=\"blk\">\n <div class=\"blk-head\">\n <div class=\"eyebrow\">// what it does</div>\n <h2>One interface, every courier</h2>\n <p>\u09AA\u09CD\u09B0\u09A4\u09BF\u099F\u09BE courier \u0986\u09B2\u09BE\u09A6\u09BE API \u2014 Aura Courier MCP \u09B8\u09AC\u0997\u09C1\u09B2\u09CB\u0995\u09C7 \u098F\u0995\u0987 \u09B8\u09B9\u099C toolset-\u098F \u098F\u09A8\u09C7 \u09A6\u09C7\u09AF\u09BC\u0964 Claude-\u0995\u09C7 \u09AC\u09B2\u09C1\u09A8, \u0993 \u09AC\u09BE\u0995\u09BF\u099F\u09BE \u0995\u09B0\u09AC\u09C7\u0964</p>\n </div>\n <div class=\"tools\">\n <div class=\"tool\"><div class=\"name\">create_parcel</div><p>\u09AF\u09C7\u0995\u09CB\u09A8\u09CB courier-\u098F \u09A1\u09C7\u09B2\u09BF\u09AD\u09BE\u09B0\u09BF \u09AC\u09C1\u0995 \u0995\u09B0\u09C1\u09A8 \u2014 consignment ID + tracking code \u09AB\u09C7\u09B0\u09A4\u0964</p></div>\n <div class=\"tool\"><div class=\"name\">track_parcel</div><p>consignment / invoice / tracking code \u09A6\u09BF\u09AF\u09BC\u09C7 \u09A1\u09C7\u09B2\u09BF\u09AD\u09BE\u09B0\u09BF \u09B8\u09CD\u099F\u09CD\u09AF\u09BE\u099F\u09BE\u09B8\u0964</p></div>\n <div class=\"tool\"><div class=\"name\">get_balance</div><p>courier \u0985\u09CD\u09AF\u09BE\u0995\u09BE\u0989\u09A8\u09CD\u099F\u09C7\u09B0 \u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8 (BDT)\u0964</p></div>\n <div class=\"tool\"><div class=\"name\">get_courier_locations</div><p>city / zone / area ID resolve (Pathao-\u09B0 \u099C\u09A8\u09CD\u09AF)\u0964</p></div>\n <div class=\"tool\"><div class=\"name\">list_couriers</div><p>\u0995\u09CB\u09A8 courier \u09AF\u09C1\u0995\u09CD\u09A4 \u0993 \u0995\u09A8\u09AB\u09BF\u0997\u09BE\u09B0 \u0995\u09B0\u09BE \u0986\u099B\u09C7\u0964</p></div>\n </div>\n </section>\n\n <section class=\"blk\">\n <div class=\"blk-head\">\n <div class=\"eyebrow\">// couriers</div>\n <h2>\u098F\u0995\u0987 tools, \u09AF\u09A4 \u0996\u09C1\u09B6\u09BF courier</h2>\n <p>\u09A8\u09A4\u09C1\u09A8 courier = \u098F\u0995\u099F\u09BE adapter \u09AF\u09CB\u0997\u0964 \u0986\u09AA\u09A8\u09BE\u09B0 \u09B8\u09AC courier \u098F\u0995 \u099C\u09BE\u09AF\u09BC\u0997\u09BE\u09AF\u09BC\u0964</p>\n </div>\n <div class=\"couriers\">\n <div class=\"courier\"><span class=\"cn\">Steadfast</span><span class=\"pill live\">\u25CF live</span></div>\n <div class=\"courier\"><span class=\"cn\">Pathao</span><span class=\"pill live\">\u25CF live</span></div>\n <div class=\"courier\"><span class=\"cn\">RedX</span><span class=\"pill soon\">\u25D0 coming</span></div>\n <div class=\"courier\"><span class=\"cn\">Paperfly</span><span class=\"pill soon\">\u25D0 coming</span></div>\n </div>\n </section>\n\n <section class=\"blk\">\n <div class=\"blk-head\">\n <div class=\"eyebrow\">// connect</div>\n <h2>\u09A6\u09C1\u0987\u09AD\u09BE\u09AC\u09C7 \u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C1\u09A8</h2>\n <p>Hosted \u2014 \u0995\u09BF\u099B\u09C1 install \u09B2\u09BE\u0997\u09AC\u09C7 \u09A8\u09BE; \u0985\u09A5\u09AC\u09BE \u09B2\u09CB\u0995\u09BE\u09B2 (Claude Desktop/Code)\u0964</p>\n </div>\n <div class=\"connect\" style=\"margin-bottom:16px\">\n <div class=\"bar\">\n <span class=\"dot\" style=\"background:#46d17f\"></span>\n <span class=\"fn mono\">Hosted \u00B7 Claude \u2192 Settings \u2192 Connectors \u2192 Add custom connector</span>\n </div>\n<pre class=\"code mono\"><span class=\"c\"># \u098F\u0987 URL \u09AC\u09B8\u09BE\u09A8 \u2014 \u09A8\u09BF\u099C\u09C7\u09B0 courier key \u09A6\u09BF\u09A8 (\u0995\u09BF\u099B\u09C1 install \u09A8\u09BE)</span>\nhttps://courier.auraajenticai.cloud/mcp?steadfast_key=<span class=\"s\">YOUR_KEY</span>&steadfast_secret=<span class=\"s\">YOUR_SECRET</span></pre>\n </div>\n <p style=\"color:var(--faint); font-size:13px; margin:0 0 14px\" class=\"mono\">\u2014 or local (stdio) \u2014</p>\n <div class=\"connect\">\n <div class=\"bar\">\n <span class=\"dot\" style=\"background:#e5766f\"></span><span class=\"dot\" style=\"background:#e0a341\"></span><span class=\"dot\" style=\"background:#46d17f\"></span>\n <span class=\"fn mono\">claude_desktop_config.json</span>\n </div>\n<pre class=\"code mono\"><span class=\"c\">// Claude config-\u098F \u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8</span>\n{\n <span class=\"k\">\"mcpServers\"</span>: {\n <span class=\"k\">\"aura-courier\"</span>: {\n <span class=\"k\">\"command\"</span>: <span class=\"s\">\"npx\"</span>,\n <span class=\"k\">\"args\"</span>: [<span class=\"s\">\"-y\"</span>, <span class=\"s\">\"github:auraajenticai/aura-courier-mcp\"</span>],\n <span class=\"k\">\"env\"</span>: {\n <span class=\"k\">\"STEADFAST_API_KEY\"</span>: <span class=\"s\">\"your-key\"</span>,\n <span class=\"k\">\"STEADFAST_SECRET_KEY\"</span>: <span class=\"s\">\"your-secret\"</span>\n }\n }\n }\n}</pre>\n </div>\n <div class=\"steps3\">\n <div class=\"st\"><div class=\"n\">01</div><p>\u09A8\u09BF\u099C\u09C7\u09B0 courier merchant API key \u09A8\u09BF\u09A8</p></div>\n <div class=\"st\"><div class=\"n\">02</div><p>\u0989\u09AA\u09B0\u09C7\u09B0 config Claude-\u098F \u09AC\u09B8\u09BE\u09A8</p></div>\n <div class=\"st\"><div class=\"n\">03</div><p>\u09AC\u09B2\u09C1\u09A8 \u2014 \"invoice A-1001-\u098F\u09B0 parcel \u09AC\u09C1\u0995 \u0995\u09B0\u09CB\" \u2705</p></div>\n </div>\n </section>\n\n <section class=\"blk\">\n <div class=\"blk-head\">\n <div class=\"eyebrow\">// why aura</div>\n <h2>\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6\u09C7\u09B0 commerce, agentic-ready</h2>\n </div>\n <div class=\"why\">\n <ul>\n <li><b>BD-first:</b> Steadfast, Pathao \u2014 \u09AF\u09BE global connector-\u09B0\u09BE \u099A\u09C7\u09A8\u09C7\u0987 \u09A8\u09BE\u0964</li>\n <li><b>Adapter architecture:</b> \u098F\u0995 interface, \u09AD\u09C7\u09A4\u09B0\u09C7 \u09AF\u09A4 \u0996\u09C1\u09B6\u09BF courier\u0964</li>\n <li><b>Bring-your-own keys:</b> \u0986\u09AA\u09A8\u09BE\u09B0 courier account \u0986\u09AA\u09A8\u09BE\u09B0\u0987 \u09A5\u09BE\u0995\u09C7\u0964</li>\n <li><b>Aura BD Commerce Suite-\u098F\u09B0 \u0985\u0982\u09B6</b> \u2014 courier + payments, \u09B6\u09C0\u0998\u09CD\u09B0\u0987 \u098F\u0995\u09B8\u09BE\u09A5\u09C7\u0964</li>\n </ul>\n <div class=\"vision\">\n <span class=\"tag\">the vision</span>\n <h3>\u098F\u0995 \u099B\u09BE\u09A6\u09C7\u09B0 \u09A8\u09BF\u099A\u09C7 \u09A6\u09C7\u09B6\u09C7\u09B0 \u09B8\u09AC commerce API</h3>\n <p>Aura \u09AC\u09BE\u09A8\u09BE\u099A\u09CD\u099B\u09C7 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6\u09C7\u09B0 agentic commerce \u09B8\u09CD\u09A4\u09B0 \u2014 courier, payments, \u0986\u09B0\u0993 \u0985\u09A8\u09C7\u0995 connector \u2014 \u09AF\u09BE\u09A4\u09C7 \u09AF\u09C7\u0995\u09CB\u09A8\u09CB AI \u09B8\u09B9\u099C\u09C7\u0987 \u09A6\u09C7\u09B6\u09C7\u09B0 \u09AC\u09CD\u09AF\u09AC\u09B8\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u0995\u09BE\u099C \u0995\u09B0\u09A4\u09C7 \u09AA\u09BE\u09B0\u09C7\u0964</p>\n </div>\n </div>\n </section>\n\n </div>\n\n <footer>\n <p><b>Aura Courier MCP</b> \u00B7 built by <a href=\"https://auraajenticai.cloud\">Aura Agentic AI</a> \u00B7 MIT License</p>\n <p style=\"margin-top:6px\"><a href=\"/docs\">Setup & usage docs</a> \u00B7 <a href=\"/privacy\">Privacy policy</a> \u00B7 Support: hello@auraajenticai.cloud</p>\n <p style=\"margin-top:6px\" class=\"mono\"><a href=\"https://github.com/auraajenticai/aura-courier-mcp\">github.com/auraajenticai/aura-courier-mcp</a></p>\n </footer>\n</div>\n\n</body>\n</html>\n";
|
|
7
|
+
export declare const PRIVACY_HTML: string;
|
|
8
|
+
export declare const DOCS_HTML: string;
|
package/dist/pages.js
ADDED
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static public pages served by the HTTP server: landing, privacy policy, and
|
|
3
|
+
* docs. These give the connector stable public HTTPS URLs required for the
|
|
4
|
+
* Anthropic Connectors Directory submission (privacy policy + setup docs).
|
|
5
|
+
*/
|
|
6
|
+
const SHELL = (title, body) => `<!DOCTYPE html>
|
|
7
|
+
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
+
<title>${title}</title>
|
|
9
|
+
<style>
|
|
10
|
+
:root{--bg:#07080a;--card:#0f1115;--line:#1c1f27;--ink:#f4f5f7;--dim:#a4a8b3;--violet:#7c5cff;--cyan:#00d4ff}
|
|
11
|
+
*{box-sizing:border-box;margin:0;padding:0}
|
|
12
|
+
body{background:var(--bg);color:var(--ink);font-family:'Segoe UI',system-ui,sans-serif;line-height:1.7}
|
|
13
|
+
.wrap{max-width:860px;margin:0 auto;padding:48px 22px}
|
|
14
|
+
a{color:var(--cyan)}
|
|
15
|
+
h1{font-size:30px;letter-spacing:-.02em;margin-bottom:6px}
|
|
16
|
+
h1 .g{background:linear-gradient(120deg,#7c5cff,#00d4ff);-webkit-background-clip:text;background-clip:text;color:transparent}
|
|
17
|
+
h2{font-size:19px;margin:28px 0 8px;color:#c4b5fd}
|
|
18
|
+
p,li{color:var(--dim);font-size:15px}ul{margin:8px 0 8px 20px}
|
|
19
|
+
.tag{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--violet);margin-bottom:14px}
|
|
20
|
+
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px;margin:14px 0}
|
|
21
|
+
code{background:#12141d;border:1px solid var(--line);border-radius:6px;padding:2px 7px;font-size:13px;color:#7fe3ff}
|
|
22
|
+
pre{background:#0c0e13;border:1px solid var(--line);border-radius:10px;padding:14px;overflow-x:auto;font-size:13px;color:#cfe;margin:10px 0}
|
|
23
|
+
.muted{color:#6b7080;font-size:13px;margin-top:32px;border-top:1px solid var(--line);padding-top:16px}
|
|
24
|
+
</style></head><body><div class="wrap">${body}
|
|
25
|
+
<div class="muted">Aura Agentic AI Cloud · <a href="https://auraajenticai.cloud">auraajenticai.cloud</a> · <a href="/docs">Docs</a> · <a href="/privacy">Privacy</a> · Support: hello@auraajenticai.cloud</div>
|
|
26
|
+
</div></body></html>`;
|
|
27
|
+
export const LANDING_HTML = `<!doctype html>
|
|
28
|
+
<html lang="bn">
|
|
29
|
+
<head>
|
|
30
|
+
<meta charset="utf-8">
|
|
31
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
32
|
+
<meta name="description" content="Aura Courier MCP — one MCP connector for every Bangladesh courier.">
|
|
33
|
+
<title>Aura Courier MCP</title>
|
|
34
|
+
<style>
|
|
35
|
+
/* Dark, blue/violet, code-aesthetic — matched to auraajenticai.cloud */
|
|
36
|
+
:root{
|
|
37
|
+
--bg:#09090f; --bg2:#0c0d15; --surface:#13141d; --surface2:#191b27;
|
|
38
|
+
--ink:#edeff5; --muted:#969db4; --faint:#5c6482; --line:#23283a;
|
|
39
|
+
--blue:#4d7cff; --violet:#8b5cf6; --cyan:#38bdf8;
|
|
40
|
+
--green:#46d17f; --green-bg:#0f2a1d; --amber:#e0a341; --amber-bg:#2a2110;
|
|
41
|
+
--code-ink:#c8d0e6; --shadow:0 1px 2px rgba(0,0,0,.5),0 20px 50px rgba(0,0,0,.45);
|
|
42
|
+
--grad:linear-gradient(100deg,var(--blue),var(--violet));
|
|
43
|
+
}
|
|
44
|
+
*{box-sizing:border-box}
|
|
45
|
+
body{margin:0}
|
|
46
|
+
.wrap{font-family:-apple-system,"Segoe UI",Roboto,system-ui,sans-serif; background:var(--bg); color:var(--ink); line-height:1.6; -webkit-font-smoothing:antialiased}
|
|
47
|
+
.page{max-width:960px; margin:0 auto; padding:0 22px}
|
|
48
|
+
.mono{font-family:"SF Mono",ui-monospace,"Cascadia Code","JetBrains Mono",Menlo,Consolas,monospace}
|
|
49
|
+
a{color:var(--blue)}
|
|
50
|
+
h1,h2,h3{line-height:1.15; margin:0; text-wrap:balance}
|
|
51
|
+
.eyebrow{font-family:"SF Mono",ui-monospace,monospace; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--blue); font-weight:600}
|
|
52
|
+
|
|
53
|
+
/* hero */
|
|
54
|
+
.hero{text-align:center; padding:74px 22px 52px; position:relative; overflow:hidden; border-bottom:1px solid var(--line)}
|
|
55
|
+
.hero::before{content:""; position:absolute; inset:0;
|
|
56
|
+
background:
|
|
57
|
+
radial-gradient(55% 45% at 50% -5%, color-mix(in srgb,var(--blue) 22%, transparent), transparent 68%),
|
|
58
|
+
radial-gradient(40% 40% at 82% 20%, color-mix(in srgb,var(--violet) 16%, transparent), transparent 70%);
|
|
59
|
+
pointer-events:none}
|
|
60
|
+
.hero::after{content:""; position:absolute; inset:0; opacity:.5; pointer-events:none;
|
|
61
|
+
background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
|
|
62
|
+
background-size:52px 52px; mask-image:radial-gradient(70% 60% at 50% 0%,#000,transparent 75%); -webkit-mask-image:radial-gradient(70% 60% at 50% 0%,#000,transparent 75%)}
|
|
63
|
+
.hero > *{position:relative}
|
|
64
|
+
.mark{display:inline-flex; align-items:center; gap:11px; margin-bottom:26px}
|
|
65
|
+
.mark svg{width:32px;height:32px}
|
|
66
|
+
.mark span{font-weight:800; font-size:13.5px; letter-spacing:.04em}
|
|
67
|
+
.mark span small{display:block; font-family:"SF Mono",monospace; font-size:9.5px; letter-spacing:.22em; color:var(--blue); font-weight:600; text-transform:uppercase; margin-top:2px}
|
|
68
|
+
.badge-live{display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:600; color:var(--green); background:var(--green-bg); border:1px solid color-mix(in srgb,var(--green) 30%,transparent); padding:5px 13px; border-radius:999px; margin-bottom:22px}
|
|
69
|
+
.badge-live .d{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 8px var(--green)}
|
|
70
|
+
.hero h1{font-size:clamp(36px,7.5vw,66px); font-weight:800; letter-spacing:-.03em}
|
|
71
|
+
.hero h1 em{font-family:Georgia,"Times New Roman",serif; font-style:italic; font-weight:500; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent}
|
|
72
|
+
.hero .tagline{font-size:clamp(16px,2.4vw,20px); color:var(--muted); max-width:36ch; margin:20px auto 0}
|
|
73
|
+
.cta-row{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:34px}
|
|
74
|
+
.btn{display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:15px; padding:13px 24px; border-radius:11px; text-decoration:none; border:1px solid transparent; transition:transform .12s ease}
|
|
75
|
+
.btn:hover{transform:translateY(-1px)}
|
|
76
|
+
.btn-primary{background:var(--grad); color:#fff; box-shadow:0 8px 24px color-mix(in srgb,var(--blue) 34%, transparent)}
|
|
77
|
+
.btn-ghost{background:color-mix(in srgb,var(--surface) 80%,transparent); color:var(--ink); border-color:var(--line)}
|
|
78
|
+
.hero-meta{display:flex; gap:10px 20px; justify-content:center; flex-wrap:wrap; margin-top:32px; font-family:"SF Mono",monospace; font-size:12.5px; color:var(--faint); font-weight:600}
|
|
79
|
+
.hero-meta b{color:var(--ink)}
|
|
80
|
+
|
|
81
|
+
section.blk{padding:48px 0; border-top:1px solid var(--line)}
|
|
82
|
+
.blk-head{margin-bottom:26px}
|
|
83
|
+
.blk-head h2{font-size:27px; font-weight:800; letter-spacing:-.015em; margin-top:9px}
|
|
84
|
+
.blk-head p{color:var(--muted); margin:9px 0 0; max-width:62ch}
|
|
85
|
+
|
|
86
|
+
.tools{display:grid; grid-template-columns:repeat(auto-fit,minmax(215px,1fr)); gap:14px}
|
|
87
|
+
.tool{background:var(--surface); border:1px solid var(--line); border-radius:13px; padding:18px 20px; box-shadow:var(--shadow); transition:border-color .15s}
|
|
88
|
+
.tool:hover{border-color:color-mix(in srgb,var(--blue) 45%,var(--line))}
|
|
89
|
+
.tool .name{font-family:"SF Mono",monospace; font-size:14px; font-weight:600; color:var(--blue)}
|
|
90
|
+
.tool p{margin:8px 0 0; font-size:14px; color:var(--muted)}
|
|
91
|
+
|
|
92
|
+
.couriers{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px}
|
|
93
|
+
.courier{background:var(--surface); border:1px solid var(--line); border-radius:13px; padding:18px 20px; display:flex; flex-direction:column; gap:9px; box-shadow:var(--shadow)}
|
|
94
|
+
.courier .cn{font-weight:800; font-size:16px}
|
|
95
|
+
.pill{align-self:flex-start; font-size:11.5px; font-weight:600; padding:3px 10px; border-radius:999px; letter-spacing:.02em; font-family:"SF Mono",monospace}
|
|
96
|
+
.pill.live{background:var(--green-bg); color:var(--green)}
|
|
97
|
+
.pill.soon{background:var(--amber-bg); color:var(--amber)}
|
|
98
|
+
|
|
99
|
+
.connect{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:8px; box-shadow:var(--shadow); overflow:hidden}
|
|
100
|
+
.connect .bar{display:flex; align-items:center; gap:7px; padding:11px 14px}
|
|
101
|
+
.dot{width:11px;height:11px;border-radius:50%}
|
|
102
|
+
.connect .fn{margin-left:8px; font-size:12.5px; color:var(--faint); font-weight:600}
|
|
103
|
+
pre.code{margin:0; background:var(--bg2); color:var(--code-ink); border-radius:11px; padding:18px 20px; overflow-x:auto; font-size:13px; line-height:1.7; border:1px solid var(--line)}
|
|
104
|
+
pre.code .k{color:var(--cyan)} pre.code .s{color:var(--green)} pre.code .c{color:var(--faint)}
|
|
105
|
+
.steps3{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:18px}
|
|
106
|
+
@media(max-width:640px){.steps3{grid-template-columns:1fr}}
|
|
107
|
+
.st{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:15px 17px}
|
|
108
|
+
.st .n{font-family:"SF Mono",monospace; font-weight:700; color:var(--blue); font-variant-numeric:tabular-nums}
|
|
109
|
+
.st p{margin:6px 0 0; font-size:14px; color:var(--ink)}
|
|
110
|
+
|
|
111
|
+
.why{display:grid; grid-template-columns:1.25fr 1fr; gap:20px; align-items:center}
|
|
112
|
+
@media(max-width:720px){.why{grid-template-columns:1fr}}
|
|
113
|
+
.why ul{margin:0; padding-left:18px; color:var(--muted); font-size:15px}
|
|
114
|
+
.why li{margin:9px 0} .why li b{color:var(--ink)}
|
|
115
|
+
.vision{background:linear-gradient(150deg,var(--surface2),var(--surface)); border:1px solid var(--line); border-radius:16px; padding:26px 28px; box-shadow:var(--shadow); position:relative; overflow:hidden}
|
|
116
|
+
.vision::before{content:""; position:absolute; inset:0; background:radial-gradient(60% 60% at 100% 0%,color-mix(in srgb,var(--violet) 18%,transparent),transparent 70%); pointer-events:none}
|
|
117
|
+
.vision .tag{font-family:"SF Mono",monospace; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--blue); position:relative}
|
|
118
|
+
.vision h3{font-size:21px; font-weight:800; margin-top:12px; position:relative}
|
|
119
|
+
.vision p{color:var(--muted); margin:12px 0 0; font-size:14.5px; position:relative}
|
|
120
|
+
|
|
121
|
+
footer{border-top:1px solid var(--line); padding:32px 0 60px; color:var(--faint); font-size:13px; text-align:center}
|
|
122
|
+
footer a{color:var(--blue); text-decoration:none}
|
|
123
|
+
footer b{color:var(--ink)}
|
|
124
|
+
@media (prefers-reduced-motion:reduce){.btn{transition:none}}
|
|
125
|
+
</style>
|
|
126
|
+
</head>
|
|
127
|
+
<body>
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
<div class="wrap">
|
|
131
|
+
<div class="hero">
|
|
132
|
+
<div class="mark">
|
|
133
|
+
<svg viewBox="0 0 40 40" fill="none" aria-hidden="true">
|
|
134
|
+
<circle cx="20" cy="14" r="9" stroke="url(#g)" stroke-width="2.5"/>
|
|
135
|
+
<circle cx="13.5" cy="25" r="9" stroke="url(#g)" stroke-width="2.5" opacity=".6"/>
|
|
136
|
+
<circle cx="26.5" cy="25" r="9" stroke="url(#g)" stroke-width="2.5" opacity=".38"/>
|
|
137
|
+
<defs><linearGradient id="g" x1="0" y1="0" x2="40" y2="40"><stop stop-color="#4d7cff"/><stop offset="1" stop-color="#8b5cf6"/></linearGradient></defs>
|
|
138
|
+
</svg>
|
|
139
|
+
<span>AURA AGENTIC AI<small>Neural Verified Commerce</small></span>
|
|
140
|
+
</div>
|
|
141
|
+
<div class="badge-live"><span class="d"></span> Model Context Protocol · Bangladesh</div>
|
|
142
|
+
<h1>Aura <em>Courier</em> MCP</h1>
|
|
143
|
+
<p class="tagline">এক connector — বাংলাদেশের সব courier। Claude থেকেই parcel বুক করুন ও ট্র্যাক করুন।</p>
|
|
144
|
+
<div class="cta-row">
|
|
145
|
+
<a class="btn btn-primary" href="/docs">⚡ Add to Claude</a>
|
|
146
|
+
<a class="btn btn-ghost" href="https://github.com/auraajenticai/aura-courier-mcp">★ View on GitHub</a>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="hero-meta mono">
|
|
149
|
+
<span><b>5</b> tools</span>
|
|
150
|
+
<span><b>2</b> couriers live</span>
|
|
151
|
+
<span>book · track · balance</span>
|
|
152
|
+
<span>open source · MIT</span>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
|
|
156
|
+
<div class="page">
|
|
157
|
+
|
|
158
|
+
<section class="blk">
|
|
159
|
+
<div class="blk-head">
|
|
160
|
+
<div class="eyebrow">// what it does</div>
|
|
161
|
+
<h2>One interface, every courier</h2>
|
|
162
|
+
<p>প্রতিটা courier আলাদা API — Aura Courier MCP সবগুলোকে একই সহজ toolset-এ এনে দেয়। Claude-কে বলুন, ও বাকিটা করবে।</p>
|
|
163
|
+
</div>
|
|
164
|
+
<div class="tools">
|
|
165
|
+
<div class="tool"><div class="name">create_parcel</div><p>যেকোনো courier-এ ডেলিভারি বুক করুন — consignment ID + tracking code ফেরত।</p></div>
|
|
166
|
+
<div class="tool"><div class="name">track_parcel</div><p>consignment / invoice / tracking code দিয়ে ডেলিভারি স্ট্যাটাস।</p></div>
|
|
167
|
+
<div class="tool"><div class="name">get_balance</div><p>courier অ্যাকাউন্টের ব্যালেন্স (BDT)।</p></div>
|
|
168
|
+
<div class="tool"><div class="name">get_courier_locations</div><p>city / zone / area ID resolve (Pathao-র জন্য)।</p></div>
|
|
169
|
+
<div class="tool"><div class="name">list_couriers</div><p>কোন courier যুক্ত ও কনফিগার করা আছে।</p></div>
|
|
170
|
+
</div>
|
|
171
|
+
</section>
|
|
172
|
+
|
|
173
|
+
<section class="blk">
|
|
174
|
+
<div class="blk-head">
|
|
175
|
+
<div class="eyebrow">// couriers</div>
|
|
176
|
+
<h2>একই tools, যত খুশি courier</h2>
|
|
177
|
+
<p>নতুন courier = একটা adapter যোগ। আপনার সব courier এক জায়গায়।</p>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="couriers">
|
|
180
|
+
<div class="courier"><span class="cn">Steadfast</span><span class="pill live">● live</span></div>
|
|
181
|
+
<div class="courier"><span class="cn">Pathao</span><span class="pill live">● live</span></div>
|
|
182
|
+
<div class="courier"><span class="cn">RedX</span><span class="pill soon">◐ coming</span></div>
|
|
183
|
+
<div class="courier"><span class="cn">Paperfly</span><span class="pill soon">◐ coming</span></div>
|
|
184
|
+
</div>
|
|
185
|
+
</section>
|
|
186
|
+
|
|
187
|
+
<section class="blk">
|
|
188
|
+
<div class="blk-head">
|
|
189
|
+
<div class="eyebrow">// connect</div>
|
|
190
|
+
<h2>দুইভাবে যুক্ত করুন</h2>
|
|
191
|
+
<p>Hosted — কিছু install লাগবে না; অথবা লোকাল (Claude Desktop/Code)।</p>
|
|
192
|
+
</div>
|
|
193
|
+
<div class="connect" style="margin-bottom:16px">
|
|
194
|
+
<div class="bar">
|
|
195
|
+
<span class="dot" style="background:#46d17f"></span>
|
|
196
|
+
<span class="fn mono">Hosted · Claude → Settings → Connectors → Add custom connector</span>
|
|
197
|
+
</div>
|
|
198
|
+
<pre class="code mono"><span class="c"># এই URL বসান — নিজের courier key দিন (কিছু install না)</span>
|
|
199
|
+
https://courier.auraajenticai.cloud/mcp?steadfast_key=<span class="s">YOUR_KEY</span>&steadfast_secret=<span class="s">YOUR_SECRET</span></pre>
|
|
200
|
+
</div>
|
|
201
|
+
<p style="color:var(--faint); font-size:13px; margin:0 0 14px" class="mono">— or local (stdio) —</p>
|
|
202
|
+
<div class="connect">
|
|
203
|
+
<div class="bar">
|
|
204
|
+
<span class="dot" style="background:#e5766f"></span><span class="dot" style="background:#e0a341"></span><span class="dot" style="background:#46d17f"></span>
|
|
205
|
+
<span class="fn mono">claude_desktop_config.json</span>
|
|
206
|
+
</div>
|
|
207
|
+
<pre class="code mono"><span class="c">// Claude config-এ যোগ করুন</span>
|
|
208
|
+
{
|
|
209
|
+
<span class="k">"mcpServers"</span>: {
|
|
210
|
+
<span class="k">"aura-courier"</span>: {
|
|
211
|
+
<span class="k">"command"</span>: <span class="s">"npx"</span>,
|
|
212
|
+
<span class="k">"args"</span>: [<span class="s">"-y"</span>, <span class="s">"github:auraajenticai/aura-courier-mcp"</span>],
|
|
213
|
+
<span class="k">"env"</span>: {
|
|
214
|
+
<span class="k">"STEADFAST_API_KEY"</span>: <span class="s">"your-key"</span>,
|
|
215
|
+
<span class="k">"STEADFAST_SECRET_KEY"</span>: <span class="s">"your-secret"</span>
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}</pre>
|
|
220
|
+
</div>
|
|
221
|
+
<div class="steps3">
|
|
222
|
+
<div class="st"><div class="n">01</div><p>নিজের courier merchant API key নিন</p></div>
|
|
223
|
+
<div class="st"><div class="n">02</div><p>উপরের config Claude-এ বসান</p></div>
|
|
224
|
+
<div class="st"><div class="n">03</div><p>বলুন — "invoice A-1001-এর parcel বুক করো" ✅</p></div>
|
|
225
|
+
</div>
|
|
226
|
+
</section>
|
|
227
|
+
|
|
228
|
+
<section class="blk">
|
|
229
|
+
<div class="blk-head">
|
|
230
|
+
<div class="eyebrow">// why aura</div>
|
|
231
|
+
<h2>বাংলাদেশের commerce, agentic-ready</h2>
|
|
232
|
+
</div>
|
|
233
|
+
<div class="why">
|
|
234
|
+
<ul>
|
|
235
|
+
<li><b>BD-first:</b> Steadfast, Pathao — যা global connector-রা চেনেই না।</li>
|
|
236
|
+
<li><b>Adapter architecture:</b> এক interface, ভেতরে যত খুশি courier।</li>
|
|
237
|
+
<li><b>Bring-your-own keys:</b> আপনার courier account আপনারই থাকে।</li>
|
|
238
|
+
<li><b>Aura BD Commerce Suite-এর অংশ</b> — courier + payments, শীঘ্রই একসাথে।</li>
|
|
239
|
+
</ul>
|
|
240
|
+
<div class="vision">
|
|
241
|
+
<span class="tag">the vision</span>
|
|
242
|
+
<h3>এক ছাদের নিচে দেশের সব commerce API</h3>
|
|
243
|
+
<p>Aura বানাচ্ছে বাংলাদেশের agentic commerce স্তর — courier, payments, আরও অনেক connector — যাতে যেকোনো AI সহজেই দেশের ব্যবসার সাথে কাজ করতে পারে।</p>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
</section>
|
|
247
|
+
|
|
248
|
+
</div>
|
|
249
|
+
|
|
250
|
+
<footer>
|
|
251
|
+
<p><b>Aura Courier MCP</b> · built by <a href="https://auraajenticai.cloud">Aura Agentic AI</a> · MIT License</p>
|
|
252
|
+
<p style="margin-top:6px"><a href="/docs">Setup & usage docs</a> · <a href="/privacy">Privacy policy</a> · Support: hello@auraajenticai.cloud</p>
|
|
253
|
+
<p style="margin-top:6px" class="mono"><a href="https://github.com/auraajenticai/aura-courier-mcp">github.com/auraajenticai/aura-courier-mcp</a></p>
|
|
254
|
+
</footer>
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
</body>
|
|
258
|
+
</html>
|
|
259
|
+
`;
|
|
260
|
+
export const PRIVACY_HTML = SHELL("Privacy Policy — Aura Courier MCP", `<div class="tag">Legal</div>
|
|
261
|
+
<h1>Privacy Policy</h1>
|
|
262
|
+
<p><b>Aura Courier MCP</b> — operated by Aura Agentic AI Cloud. Last updated: 27 July 2026.</p>
|
|
263
|
+
|
|
264
|
+
<h2>1. What data we process</h2>
|
|
265
|
+
<ul>
|
|
266
|
+
<li><b>Courier credentials</b> you supply when connecting (Steadfast API key & secret, and/or Pathao client id, secret, username, password). These are your own courier-account credentials.</li>
|
|
267
|
+
<li><b>Parcel details</b> you pass to a tool: recipient name, phone, address, COD amount, invoice/order id, and optional notes.</li>
|
|
268
|
+
<li><b>Tracking identifiers</b> (consignment id, invoice, tracking code) for status lookups.</li>
|
|
269
|
+
</ul>
|
|
270
|
+
|
|
271
|
+
<h2>2. How we use it</h2>
|
|
272
|
+
<p>Solely to call the courier's own API on your behalf — to create a parcel, track it, check balance, or resolve locations. We do not use your data for any other purpose, and we do not use it to train models.</p>
|
|
273
|
+
|
|
274
|
+
<h2>3. Storage & retention</h2>
|
|
275
|
+
<p>The service is <b>stateless</b>. Credentials and parcel data are read from your request, used for that single request, and <b>not persisted</b> — we keep no database of your credentials, orders, or customers. Nothing is retained after the request completes.</p>
|
|
276
|
+
|
|
277
|
+
<h2>4. Third-party sharing</h2>
|
|
278
|
+
<p>Data is transmitted only to the courier you select (Steadfast / Packzy or Pathao) over HTTPS, to fulfil your request. We do not sell, rent, or share your data with anyone else. Each courier's own privacy terms apply to the data they receive.</p>
|
|
279
|
+
|
|
280
|
+
<h2>5. Security</h2>
|
|
281
|
+
<p>All traffic is over HTTPS/TLS. Credentials travel only within your own connector configuration and the request to the courier; they are never written to persistent storage by this service.</p>
|
|
282
|
+
|
|
283
|
+
<h2>6. Your control</h2>
|
|
284
|
+
<p>You control the connection. Remove the connector at any time to stop all processing. Because we store nothing, there is no retained data to delete.</p>
|
|
285
|
+
|
|
286
|
+
<h2>7. Contact</h2>
|
|
287
|
+
<p>Questions or requests: <b>hello@auraajenticai.cloud</b> · Aura Agentic AI Cloud, Bangladesh.</p>`);
|
|
288
|
+
export const DOCS_HTML = SHELL("Docs — Aura Courier MCP", `<div class="tag">Documentation</div>
|
|
289
|
+
<h1>Aura Courier MCP — Setup & Usage</h1>
|
|
290
|
+
|
|
291
|
+
<h2>Requirements</h2>
|
|
292
|
+
<ul>
|
|
293
|
+
<li>A <b>Steadfast (Packzy)</b> merchant account with an API key + secret key, and/or</li>
|
|
294
|
+
<li>A <b>Pathao Merchant</b> account with client id, client secret, username, password, and a store id.</li>
|
|
295
|
+
</ul>
|
|
296
|
+
|
|
297
|
+
<h2>Add the connector to Claude</h2>
|
|
298
|
+
<p>Add a custom connector with the server URL and your courier credentials. Credentials can be passed as URL query parameters or as request headers. Example (Steadfast):</p>
|
|
299
|
+
<pre>https://courier.auraajenticai.cloud/mcp?steadfast_key=YOUR_KEY&steadfast_secret=YOUR_SECRET</pre>
|
|
300
|
+
<p>For Pathao, add: <code>pathao_client_id</code>, <code>pathao_client_secret</code>, <code>pathao_username</code>, <code>pathao_password</code>, <code>pathao_store_id</code> (and <code>pathao_sandbox=true</code> to use Pathao's sandbox). Header equivalents use the <code>x-</code> prefix, e.g. <code>x-steadfast-key</code>.</p>
|
|
301
|
+
<p>Nothing is stored server-side — your keys live only in your own connector configuration and travel over HTTPS.</p>
|
|
302
|
+
|
|
303
|
+
<h2>Tools</h2>
|
|
304
|
+
<div class="card">
|
|
305
|
+
<p><b>list_couriers</b> — list supported couriers and whether each is configured. <i>(read-only)</i></p>
|
|
306
|
+
<p><b>create_parcel</b> — book a delivery. Needs <code>courier</code>, <code>invoice</code> (unique), <code>recipientName</code>, <code>recipientPhone</code> (01XXXXXXXXX), <code>recipientAddress</code>, <code>codAmount</code> (BDT, 0 = prepaid). Pathao also needs <code>meta:{ storeId, cityId, zoneId, areaId }</code>. <i>(write)</i></p>
|
|
307
|
+
<p><b>track_parcel</b> — status by consignment id, invoice, or tracking code. <i>(read-only)</i></p>
|
|
308
|
+
<p><b>get_balance</b> — merchant courier balance in BDT. <i>(read-only)</i></p>
|
|
309
|
+
<p><b>get_courier_locations</b> — resolve Pathao city / zone / area IDs. <i>(read-only)</i></p>
|
|
310
|
+
</div>
|
|
311
|
+
|
|
312
|
+
<h2>Example</h2>
|
|
313
|
+
<p>"Book a Steadfast delivery for order INV-1001 to Rahim, 01700000000, Mirpur Dhaka, COD 1250 taka." → Claude calls <code>create_parcel</code> and returns the consignment id + tracking code.</p>
|
|
314
|
+
|
|
315
|
+
<h2>Support</h2>
|
|
316
|
+
<p><b>hello@auraajenticai.cloud</b></p>`);
|
|
317
|
+
//# sourceMappingURL=pages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pages.js","sourceRoot":"","sources":["../src/pages.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,IAAY,EAAE,EAAE,CAAC;;SAEtC,KAAK;;;;;;;;;;;;;;;;yCAgB2B,IAAI;;qBAExB,CAAC;AAEtB,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwO3B,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAC/B,mCAAmC,EACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;sGA2BoG,CACrG,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAC5B,yBAAyB,EACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CA4BwC,CACzC,CAAC"}
|
package/dist/registry.d.ts
CHANGED
|
@@ -1,16 +1,61 @@
|
|
|
1
1
|
import { CourierAdapter } from "./adapters/base.js";
|
|
2
|
+
import { GoogleMapsAdapter } from "./adapters/google_maps.js";
|
|
2
3
|
import { CourierConfig } from "./config.js";
|
|
3
|
-
import {
|
|
4
|
+
import { AddressValidationRequest, AddressValidationResponse, BulkParcelCreateResponse, CourierRateComparisonRequest, CourierRateComparisonResponse, FraudRiskScoreResponse, NdrResolutionRequest, NdrResolutionResponse, ParcelCreateRequest, ParcelResponse, SupportedCourier, TrackingResponse, WebhookEventRecord, ZoneRateRequest, ZoneRateResponse } from "./types.js";
|
|
5
|
+
export declare function setRegistryDbPool(pool: any): void;
|
|
6
|
+
export declare function clearIdempotencyStore(): void;
|
|
7
|
+
export declare function recordWebhookEvent(event: WebhookEventRecord, tenantId?: string): void;
|
|
8
|
+
export declare function clearWebhookEvents(tenantId?: string): void;
|
|
4
9
|
export declare class CourierRegistry {
|
|
5
10
|
private adapters;
|
|
11
|
+
private googleMaps;
|
|
6
12
|
constructor(config?: CourierConfig);
|
|
7
13
|
listCouriers(): {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
couriers: {
|
|
15
|
+
courier: SupportedCourier;
|
|
16
|
+
is_configured: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
configured_count: number;
|
|
19
|
+
};
|
|
11
20
|
getAdapter(name: SupportedCourier): CourierAdapter;
|
|
21
|
+
getGoogleMaps(): GoogleMapsAdapter;
|
|
22
|
+
resolveSmartAutoCourierOrder(address: string, priority?: string): SupportedCourier[];
|
|
12
23
|
createParcel(req: ParcelCreateRequest): Promise<ParcelResponse>;
|
|
13
24
|
trackParcel(trackingCode: string, courierName?: SupportedCourier): Promise<TrackingResponse>;
|
|
14
|
-
getBalance(courierName
|
|
15
|
-
checkFraudRisk(phone: string): FraudRiskScoreResponse
|
|
25
|
+
getBalance(courierName?: SupportedCourier | "all"): Promise<any>;
|
|
26
|
+
checkFraudRisk(phone: string): Promise<FraudRiskScoreResponse>;
|
|
27
|
+
validateAddress(req: AddressValidationRequest): Promise<AddressValidationResponse>;
|
|
28
|
+
calculateZoneAndRate(req: ZoneRateRequest): Promise<ZoneRateResponse>;
|
|
29
|
+
compareRates(req: CourierRateComparisonRequest): Promise<CourierRateComparisonResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Task T2 — Honest Draft-Only NDR Resolution
|
|
32
|
+
* 1. Verifies consignment_id exists via trackParcel (throws CONSIGNMENT_NOT_FOUND if bogus).
|
|
33
|
+
* 2. Generates Bengali WhatsApp copy + carrier ticket drafts with status: "DRAFT_GENERATED" and actions_executed: [].
|
|
34
|
+
*/
|
|
35
|
+
resolveNdr(req: NdrResolutionRequest): Promise<NdrResolutionResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Task T8 — cancel_parcel(courier, consignment_id, reason?)
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Update delivery instructions, recipient phone, address or COD for consignment
|
|
41
|
+
*/
|
|
42
|
+
updateParcel(courier: SupportedCourier, consignmentId: string, updates: {
|
|
43
|
+
recipient_phone?: string;
|
|
44
|
+
recipient_address?: string;
|
|
45
|
+
cod_amount?: number;
|
|
46
|
+
note?: string;
|
|
47
|
+
}): Promise<any>;
|
|
48
|
+
cancelParcel(courier: SupportedCourier, consignmentId: string, reason?: string): Promise<any>;
|
|
49
|
+
/**
|
|
50
|
+
* Task T8 — bulk_create_parcels(items[], dry_run?)
|
|
51
|
+
*/
|
|
52
|
+
bulkCreateParcels(items: ParcelCreateRequest[], dryRun?: boolean, tenantId?: string): Promise<BulkParcelCreateResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Task T8 — get_webhook_events(consignment_id?, since?)
|
|
55
|
+
*/
|
|
56
|
+
getWebhookEvents(consignmentId?: string, since?: string, tenantId?: string): {
|
|
57
|
+
success: boolean;
|
|
58
|
+
count: number;
|
|
59
|
+
events: WebhookEventRecord[];
|
|
60
|
+
};
|
|
16
61
|
}
|