From d5455169b29a48a8f62c99cac2ed2aa443aa266c Mon Sep 17 00:00:00 2001 From: Amirul Islam Redwan71 Date: Sat, 5 Dec 2026 07:30:01 +0600 Subject: [PATCH] feat(seo): add robots.txt, 7-URL sitemap.xml, llms.txt, IndexNow, canonical, OG & SoftwareApplication+FAQPage JSON-LD --- index.html | 78 ++++++++++++++++++++++++++++++++++++++++-- src/http.ts | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 174 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 1d95f22..c86ed63 100644 --- a/index.html +++ b/index.html @@ -3,8 +3,82 @@ - Aura Courier MCP v2.7.5 — Multi-Courier Integration for Developers - + Aura Courier MCP v2.7.5 — Unified Bangladesh Courier API & MCP (Steadfast, Pathao, RedX, Paperfly) + + + + + + + + + + + + + + + + + diff --git a/src/http.ts b/src/http.ts index 72082b5..8628f63 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1077,6 +1077,104 @@ app.get("/health", (req, res) => { return res.json(detailed); }); +const COURIER_INDEXNOW_KEY = "b4e9d1c27a5f3081c6e4a2b9f0d81357"; + +app.get("/robots.txt", (_req, res) => { + res + .type("text/plain; charset=utf-8") + .set("Cache-Control", "public, max-age=3600") + .send( + [ + "User-agent: *", + "Allow: /", + "Disallow: /admin/", + "", + "User-agent: Googlebot", + "Allow: /", + "", + "User-agent: Bingbot", + "Allow: /", + "", + "User-agent: GPTBot", + "Allow: /", + "", + "User-agent: PerplexityBot", + "Allow: /", + "", + "Sitemap: https://courier.auraajenticai.cloud/sitemap.xml", + "# AI Discovery Guide: https://courier.auraajenticai.cloud/llms.txt", + "", + ].join("\n") + ); +}); + +app.get("/sitemap.xml", (_req, res) => { + const lastmod = "2026-12-05"; + const urls = [ + { loc: "https://courier.auraajenticai.cloud/", freq: "daily", prio: "1.0" }, + { loc: "https://courier.auraajenticai.cloud/guide", freq: "weekly", prio: "0.9" }, + { loc: "https://courier.auraajenticai.cloud/simulator", freq: "weekly", prio: "0.8" }, + { loc: "https://courier.auraajenticai.cloud/health.html", freq: "daily", prio: "0.6" }, + { loc: "https://courier.auraajenticai.cloud/llms.txt", freq: "weekly", prio: "0.7" }, + { loc: "https://courier.auraajenticai.cloud/privacy", freq: "monthly", prio: "0.4" }, + { loc: "https://courier.auraajenticai.cloud/terms", freq: "monthly", prio: "0.4" }, + ]; + const xml = + `\n\n` + + urls + .map( + (u) => + ` \n ${u.loc}\n ${lastmod}\n ${u.freq}\n ${u.prio}\n ` + ) + .join("\n") + + `\n\n`; + res.type("application/xml; charset=utf-8").set("Cache-Control", "public, max-age=3600").send(xml); +}); + +app.get("/llms.txt", (_req, res) => { + res + .type("text/plain; charset=utf-8") + .set("Cache-Control", "public, max-age=3600") + .send( + [ + `# Aura Courier MCP v${APP_VERSION}`, + "", + "> Bangladesh's unified multi-courier Model Context Protocol (MCP) server and logistics hub by Aura Ajentic Technologies Ltd. (Official Google Cloud Partner).", + "", + "- Website: https://courier.auraajenticai.cloud/", + "- MCP Streamable-HTTP Endpoint: https://courier.auraajenticai.cloud/mcp", + "- Setup Guide: https://courier.auraajenticai.cloud/guide", + "- Fraud & Dispatch Simulator: https://courier.auraajenticai.cloud/simulator", + "- npm Package: https://www.npmjs.com/package/aura-courier-mcp", + "- GitHub: https://github.com/auraajenticai/aura-courier-mcp", + "- Parent Platform: https://auraajenticai.cloud/", + "", + "## Supported Couriers", + "- Steadfast Courier (portal.packzy.com)", + "- Pathao Express (api-hermes.pathao.com)", + "- RedX Delivery (openapi.redx.com.bd)", + "- Paperfly Go (api.paperfly.com.bd)", + "- Google Maps Platform (Geocoding + Routes API)", + "", + "## 9 Production MCP Tools", + "1. list_couriers — Active carriers & config status", + "2. create_parcel — Cascading or targeted parcel booking", + "3. track_parcel — Unified consignment tracking", + "4. get_balance — Merchant COD balance & payouts", + "5. check_fraud_risk — Authentic multi-carrier delivery/cancel risk score (zero mock data)", + "6. validate_and_geocode_address — Rooftop geocoding & sublocality parsing", + "7. calculate_delivery_zone_and_fee — Dhaka/Sub-Dhaka/Outside Dhaka tariff quote", + "8. compare_courier_rates — Cost & SLA comparison across carriers", + "9. resolve_ndr_issue — Automated WhatsApp recovery & carrier dispute text", + "", + ].join("\n") + ); +}); + +app.get(`/${COURIER_INDEXNOW_KEY}.txt`, (_req, res) => { + res.type("text/plain; charset=utf-8").set("Cache-Control", "public, max-age=86400").send(COURIER_INDEXNOW_KEY); +}); + app.get("/health.html", (_req, res) => { res.sendFile(HEALTH_HTML, (err) => { if (err && !res.headersSent) res.json({ ok: true, version: APP_VERSION });