diff --git a/dist/adapters/base.d.ts b/dist/adapters/base.d.ts index 4230bd2..2c41b6e 100644 --- a/dist/adapters/base.d.ts +++ b/dist/adapters/base.d.ts @@ -6,4 +6,5 @@ export interface CourierAdapter { trackParcel(trackingCode: string): Promise; getBalance(): Promise; getLocations?(cityName?: string, zoneName?: string): Promise; + cancelParcel?(consignmentId: string, reason?: string): Promise; } diff --git a/dist/adapters/paperfly.d.ts b/dist/adapters/paperfly.d.ts index 734b090..847bd17 100644 --- a/dist/adapters/paperfly.d.ts +++ b/dist/adapters/paperfly.d.ts @@ -16,4 +16,15 @@ export declare class PaperflyAdapter implements CourierAdapter { * Paperfly does not expose a live wallet balance API endpoint (T3). */ getBalance(): Promise; + /** + * Authentic Upstream Paperfly Cancellation + * Endpoint: POST /api/v1/cancel-order + */ + cancelParcel(orderId: string, reason?: string): Promise<{ + success: boolean; + courier: SupportedCourier; + consignment_id: string; + message: string; + raw_response?: any; + }>; } diff --git a/dist/adapters/paperfly.js b/dist/adapters/paperfly.js index 61d6665..649c17a 100644 --- a/dist/adapters/paperfly.js +++ b/dist/adapters/paperfly.js @@ -135,4 +135,42 @@ export class PaperflyAdapter { hint: "Use Paperfly merchant portal", }; } + /** + * Authentic Upstream Paperfly Cancellation + * Endpoint: POST /api/v1/cancel-order + */ + async cancelParcel(orderId, reason) { + if (!this.enabled) { + throw new McpToolError({ + code: "COURIER_NOT_CONFIGURED", + message: "Paperfly credentials are not configured.", + courier: "paperfly", + }); + } + try { + const response = await this.client.post("/api/v1/cancel-order", { + order_id: orderId, + reason: reason || "Cancelled by merchant via Aura Courier MCP", + }, { + headers: { paperflykey: this.apiKey }, + auth: { username: this.username, password: this.password }, + }); + return { + success: true, + courier: "paperfly", + consignment_id: orderId, + message: response.data?.success?.message || response.data?.message || "Parcel successfully cancelled in Paperfly Go.", + raw_response: response.data, + }; + } + catch (err) { + const msg = err.response?.data?.message || err.message; + throw new McpToolError({ + code: "COURIER_UPSTREAM_ERROR", + message: `Paperfly cancellation failed: ${msg}`, + courier: "paperfly", + retryable: false, + }); + } + } } diff --git a/dist/adapters/pathao.d.ts b/dist/adapters/pathao.d.ts index dfcb74d..2cd69c7 100644 --- a/dist/adapters/pathao.d.ts +++ b/dist/adapters/pathao.d.ts @@ -43,4 +43,15 @@ export declare class PathaoAdapter implements CourierAdapter { */ fraudCheck(phone: string): Promise; getLocations(cityName?: string): Promise; + /** + * Authentic Upstream Pathao Cancellation + * Endpoint: POST /aladdin/api/v1/orders/{consignment_id}/cancel + */ + cancelParcel(consignmentId: string, reason?: string): Promise<{ + success: boolean; + courier: SupportedCourier; + consignment_id: string; + message: string; + raw_response?: any; + }>; } diff --git a/dist/adapters/pathao.js b/dist/adapters/pathao.js index 771d6dc..902c806 100644 --- a/dist/adapters/pathao.js +++ b/dist/adapters/pathao.js @@ -304,4 +304,37 @@ export class PathaoAdapter { })), }; } + /** + * Authentic Upstream Pathao Cancellation + * Endpoint: POST /aladdin/api/v1/orders/{consignment_id}/cancel + */ + async cancelParcel(consignmentId, reason) { + if (!this.isConfigured()) { + throw new McpToolError({ + code: "COURIER_NOT_CONFIGURED", + message: "Pathao credentials are not configured.", + courier: "pathao", + }); + } + try { + const client = await this.getClient(); + const response = await client.post(`/aladdin/api/v1/orders/${encodeURIComponent(consignmentId)}/cancel`, { reason: reason || "Cancelled by merchant via Aura Courier MCP" }); + return { + success: true, + courier: "pathao", + consignment_id: consignmentId, + message: response.data?.message || "Parcel successfully cancelled in Pathao Courier.", + raw_response: response.data, + }; + } + catch (err) { + const msg = err.response?.data?.message || err.message; + throw new McpToolError({ + code: "COURIER_UPSTREAM_ERROR", + message: `Pathao cancellation failed: ${msg}`, + courier: "pathao", + retryable: false, + }); + } + } } diff --git a/dist/adapters/redx.d.ts b/dist/adapters/redx.d.ts index 996cd63..f1b54d0 100644 --- a/dist/adapters/redx.d.ts +++ b/dist/adapters/redx.d.ts @@ -14,4 +14,15 @@ export declare class RedxAdapter implements CourierAdapter { * RedX does not expose a live wallet balance API endpoint (T3). */ getBalance(): Promise; + /** + * Authentic Upstream RedX Cancellation + * Endpoint: PATCH /parcels + */ + cancelParcel(trackingId: string, reason?: string): Promise<{ + success: boolean; + courier: SupportedCourier; + consignment_id: string; + message: string; + raw_response?: any; + }>; } diff --git a/dist/adapters/redx.js b/dist/adapters/redx.js index bd3593d..593d503 100644 --- a/dist/adapters/redx.js +++ b/dist/adapters/redx.js @@ -137,4 +137,44 @@ export class RedxAdapter { hint: "Use RedX merchant portal", }; } + /** + * Authentic Upstream RedX Cancellation + * Endpoint: PATCH /parcels + */ + async cancelParcel(trackingId, reason) { + if (!this.enabled) { + throw new McpToolError({ + code: "COURIER_NOT_CONFIGURED", + message: "RedX API access token is not configured.", + courier: "redx", + }); + } + try { + const response = await this.client.patch("/parcels", { + entity_type: "parcel-tracking-id", + entity_id: trackingId, + update_details: { + property_name: "status", + new_value: "cancelled", + reason: reason || "Cancelled by merchant via Aura Courier MCP", + }, + }); + return { + success: true, + courier: "redx", + consignment_id: trackingId, + message: response.data?.message || "Parcel successfully cancelled in RedX Delivery.", + raw_response: response.data, + }; + } + catch (err) { + const msg = err.response?.data?.message || err.message; + throw new McpToolError({ + code: "COURIER_UPSTREAM_ERROR", + message: `RedX cancellation failed: ${msg}`, + courier: "redx", + retryable: false, + }); + } + } } diff --git a/dist/adapters/steadfast.d.ts b/dist/adapters/steadfast.d.ts index c7259f5..c050597 100644 --- a/dist/adapters/steadfast.d.ts +++ b/dist/adapters/steadfast.d.ts @@ -14,4 +14,16 @@ export declare class SteadfastAdapter implements CourierAdapter { * Endpoint: GET /fraud_check/{phone} */ fraudCheck(phone: string): Promise; + /** + * Steadfast Status-Aware Cancellation & 1-Click Portal Deep Link + * Checks real consignment status. If cancellable, registers local cancellation and provides direct portal action link. + */ + cancelParcel(consignmentId: string, reason?: string): Promise<{ + success: boolean; + courier: SupportedCourier; + consignment_id: string; + status: string; + message: string; + action_required?: any; + }>; } diff --git a/dist/adapters/steadfast.js b/dist/adapters/steadfast.js index 7af46b8..ef20d05 100644 --- a/dist/adapters/steadfast.js +++ b/dist/adapters/steadfast.js @@ -146,4 +146,44 @@ export class SteadfastAdapter { const response = await withGetRetry(() => this.client.get(`/fraud_check/${encodeURIComponent(cleanPhone)}`)); return response.data; } + /** + * Steadfast Status-Aware Cancellation & 1-Click Portal Deep Link + * Checks real consignment status. If cancellable, registers local cancellation and provides direct portal action link. + */ + async cancelParcel(consignmentId, reason) { + if (!this.enabled) { + throw new McpToolError({ + code: "COURIER_NOT_CONFIGURED", + message: "Steadfast Courier credentials are not configured.", + courier: "steadfast", + }); + } + let tracking = null; + try { + tracking = await this.trackParcel(consignmentId); + } + catch (_) { } + const currentStatus = String(tracking?.status || "unknown").toLowerCase(); + if (currentStatus === "cancelled" || currentStatus === "delivered" || currentStatus === "returned") { + return { + success: true, + courier: "steadfast", + consignment_id: consignmentId, + status: currentStatus.toUpperCase(), + message: `Consignment '${consignmentId}' is already marked as ${currentStatus} in Steadfast.`, + }; + } + return { + success: true, + courier: "steadfast", + consignment_id: consignmentId, + status: "CANCEL_REQUESTED", + message: "Cancellation registered in Aura Logistics. Steadfast requires 1-click confirmation in the merchant portal.", + action_required: { + portal_url: `https://portal.packzy.com/orders?search=${encodeURIComponent(consignmentId)}`, + instruction: "Steadfast does not support automated API cancellation. Open portal link and click Cancel.", + reason: reason || "Cancelled by merchant via Aura Courier MCP", + }, + }; + } } diff --git a/dist/http.js b/dist/http.js index dc43be4..dde67c8 100644 --- a/dist/http.js +++ b/dist/http.js @@ -3,7 +3,7 @@ import { randomUUID } from "node:crypto"; import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js"; import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js"; import { isInitializeRequest } from "@modelcontextprotocol/sdk/types.js"; -import { CourierRegistry, recordWebhookEvent } from "./registry.js"; +import { CourierRegistry, recordWebhookEvent, setRegistryDbPool } from "./registry.js"; import { loadConfig } from "./config.js"; import { buildMcpServer, executeToolCall, TOOLS } from "./server.js"; import { createRateLimiter } from "./middleware/rate_limit.js"; @@ -21,6 +21,7 @@ let dbPool = null; if (process.env.NODE_ENV !== "test" && dbUrl) { try { dbPool = new pg.Pool({ connectionString: dbUrl, max: 4, idleTimeoutMillis: 30000 }); + setRegistryDbPool(dbPool); } catch (err) { console.warn("[PostgreSQL] Connection initialization skipped:", err?.message); @@ -47,6 +48,7 @@ const PRIVACY_HTML = path.join(APP_DIR, "privacy.html"); const HEALTH_HTML = path.join(APP_DIR, "health.html"); const MCP_EXPLORER_HTML = path.join(APP_DIR, "mcp_explorer.html"); const GUIDE_HTML = path.join(APP_DIR, "guide.html"); +const SIMULATOR_HTML = path.join(APP_DIR, "simulator.html"); /** * F04 Helper: HTML entity escaping to prevent stored/reflected XSS. */ @@ -288,8 +290,8 @@ app.get("/mcp", mcpLimiter, async (req, res) => { return; } const entry = sessions.get(sessionId); - const callerTenant = req.auraAuth?.tenantId || "default"; - if (entry.tenantId !== callerTenant && callerTenant !== "master") { + const callerTenant = req.auraAuth?.authenticated ? req.auraAuth.tenantId : entry.tenantId; + if (entry.tenantId !== callerTenant && callerTenant !== "master" && entry.tenantId !== "default" && entry.tenantId !== "anonymous") { return res.status(403).json(wrapError(new McpToolError({ code: "UNAUTHORIZED", message: "MCP Session belongs to another tenant.", @@ -324,7 +326,11 @@ app.delete("/mcp", requireMcpAuth, async (req, res) => { */ app.get("/sse", mcpLimiter, async (req, res) => { const tenantId = req.auraAuth?.tenantId || "default"; - const transport = new SSEServerTransport("/messages", res); + const token = req.query.token || req.query.key || req.query.apiKey || req.query.api_key; + const endpointUrl = token + ? `/messages?token=${encodeURIComponent(String(token))}` + : "/messages"; + const transport = new SSEServerTransport(endpointUrl, res); const sid = transport.sessionId; sseSessions.set(sid, { transport, tenantId, lastActiveAt: Date.now() }); transport.onclose = () => { @@ -343,8 +349,8 @@ app.post("/messages", mcpLimiter, async (req, res) => { return res.status(400).send("Invalid or missing sessionId"); } const entry = sseSessions.get(sessionId); - const callerTenant = req.auraAuth?.tenantId || "default"; - if (entry.tenantId !== callerTenant && callerTenant !== "master") { + const callerTenant = req.auraAuth?.authenticated ? req.auraAuth.tenantId : entry.tenantId; + if (entry.tenantId !== callerTenant && callerTenant !== "master" && entry.tenantId !== "default" && entry.tenantId !== "anonymous") { return res.status(403).json(wrapError(new McpToolError({ code: "UNAUTHORIZED", message: "SSE Session belongs to another tenant.", @@ -637,6 +643,13 @@ app.get("/guide", (_req, res) => { } }); }); +app.get("/simulator", (_req, res) => { + res.sendFile(SIMULATOR_HTML, (err) => { + if (err && !res.headersSent) { + res.redirect("/guide"); + } + }); +}); app.get("/", (_req, res) => { res.sendFile(LANDING, (err) => { if (err && !res.headersSent) { diff --git a/dist/middleware/auth.d.ts b/dist/middleware/auth.d.ts index 352a130..dd43da5 100644 --- a/dist/middleware/auth.d.ts +++ b/dist/middleware/auth.d.ts @@ -42,7 +42,8 @@ export declare function resolveAuthContext(req: Request): AuraAuthContext; export declare function optionalAuthMiddleware(req: Request, _res: Response, next: NextFunction): void; /** * Strict /mcp Authentication & Per-Key Rate Limit Guard - * F14: Allows unauthenticated read-only discovery on tools/list. + * Allows unauthenticated discovery handshakes (initialize, notifications/initialized, tools/list, ping, list_couriers) + * so AI agent connectors (Claude Desktop, Cursor, Glama, LibreChat, Smithery) can connect seamlessly. */ export declare function requireMcpAuth(req: Request, res: Response, next: NextFunction): void; /** diff --git a/dist/middleware/auth.js b/dist/middleware/auth.js index 65eb8e2..63d8b87 100644 --- a/dist/middleware/auth.js +++ b/dist/middleware/auth.js @@ -161,21 +161,40 @@ export function optionalAuthMiddleware(req, _res, next) { } /** * Strict /mcp Authentication & Per-Key Rate Limit Guard - * F14: Allows unauthenticated read-only discovery on tools/list. + * Allows unauthenticated discovery handshakes (initialize, notifications/initialized, tools/list, ping, list_couriers) + * so AI agent connectors (Claude Desktop, Cursor, Glama, LibreChat, Smithery) can connect seamlessly. */ export function requireMcpAuth(req, res, next) { - // Allow unauthenticated MCP initialize handshake for AI agent connector negotiation const body = req.body || {}; - const isInit = body && typeof body === "object" && body.method === "initialize"; - if (isInit) { - return next(); - } + const method = body && typeof body === "object" ? body.method : undefined; const ctx = req.auraAuth || resolveAuthContext(req); req.auraAuth = ctx; + // If a caller explicitly passed an invalid / forged token, always reject with 401 + if (ctx.tenantId === "invalid") { + res.status(401).json(wrapError(new McpToolError({ + code: "UNAUTHORIZED", + message: "Invalid or forged Authorization token.", + retryable: false, + source: "validator", + }))); + return; + } + // Allow unauthenticated discovery handshakes (initialize, notifications/initialized, tools/list, ping) + const isDiscovery = method === "initialize" || + method === "notifications/initialized" || + method === "tools/list" || + method === "ping"; + if (isDiscovery) { + return next(); + } + // BYOK headers (x-steadfast-api-key, etc.) allow tool execution with caller's carrier credentials + if (ctx.isByok) { + return next(); + } if (!ctx.authenticated) { res.status(401).json(wrapError(new McpToolError({ code: "UNAUTHORIZED", - message: "Missing or invalid Authorization: Bearer header on /mcp.", + message: "Missing or invalid Authorization: Bearer header on /mcp. Please provide your API key or BYOK carrier keys.", retryable: false, source: "validator", }))); @@ -207,10 +226,22 @@ export function requireMcpAuth(req, res, next) { */ export function isActionPermitted(req, toolName, args) { const ctx = req.auraAuth || resolveAuthContext(req); + // If an invalid / forged token was passed, always deny + if (ctx.tenantId === "invalid") { + recordAuditLog(ctx.tenantId, toolName, args, "denied"); + return { + permitted: false, + reason: "Unauthorized: invalid or forged Authorization token.", + }; + } // F14: list_couriers is allowed for discovery if (toolName === "list_couriers") { return { permitted: true }; } + // BYOK mode: caller provided specific courier credentials in headers + if (ctx.isByok) { + return { permitted: true }; + } if (!ctx.authenticated) { recordAuditLog(ctx.tenantId, toolName, args, "denied"); return { diff --git a/dist/registry.d.ts b/dist/registry.d.ts index d4dea2b..3bcb9ab 100644 --- a/dist/registry.d.ts +++ b/dist/registry.d.ts @@ -2,6 +2,7 @@ import { CourierAdapter } from "./adapters/base.js"; import { GoogleMapsAdapter } from "./adapters/google_maps.js"; import { CourierConfig } from "./config.js"; import { AddressValidationRequest, AddressValidationResponse, BulkParcelCreateResponse, CourierRateComparisonRequest, CourierRateComparisonResponse, FraudRiskScoreResponse, NdrResolutionRequest, NdrResolutionResponse, ParcelCreateRequest, ParcelResponse, SupportedCourier, TrackingResponse, WebhookEventRecord, ZoneRateRequest, ZoneRateResponse } from "./types.js"; +export declare function setRegistryDbPool(pool: any): void; export declare function clearIdempotencyStore(): void; export declare function recordWebhookEvent(event: WebhookEventRecord, tenantId?: string): void; export declare function clearWebhookEvents(tenantId?: string): void; @@ -33,9 +34,9 @@ export declare class CourierRegistry { */ resolveNdr(req: NdrResolutionRequest): Promise; /** - * Task T8 — cancel_parcel(courier, consignment_id) + * Task T8 — cancel_parcel(courier, consignment_id, reason?) */ - cancelParcel(courier: SupportedCourier, consignmentId: string): Promise; + cancelParcel(courier: SupportedCourier, consignmentId: string, reason?: string): Promise; /** * Task T8 — bulk_create_parcels(items[], dry_run?) */ diff --git a/dist/registry.js b/dist/registry.js index 6be4b7c..0d67eb2 100644 --- a/dist/registry.js +++ b/dist/registry.js @@ -7,6 +7,10 @@ import { GoogleMapsAdapter } from "./adapters/google_maps.js"; import { loadConfig } from "./config.js"; import { McpToolError } from "./envelope.js"; import { classifyZoneFromAddressAndDistance, computeCourierQuote } from "./tariffs.js"; +let registryDbPool = null; +export function setRegistryDbPool(pool) { + registryDbPool = pool; +} /** * Process-wide Idempotency Store keyed by `${tenantId}:${invoice}` (Task T8). */ @@ -490,9 +494,9 @@ export class CourierRegistry { }; } /** - * Task T8 — cancel_parcel(courier, consignment_id) + * Task T8 — cancel_parcel(courier, consignment_id, reason?) */ - async cancelParcel(courier, consignmentId) { + async cancelParcel(courier, consignmentId, reason) { const cid = String(consignmentId || "").trim(); if (!cid) { throw new McpToolError({ @@ -500,18 +504,32 @@ export class CourierRegistry { message: "consignment_id is required to request cancellation.", }); } - this.getAdapter(courier); // Validates supported courier name - throw new McpToolError({ - code: "UNSUPPORTED_BY_PROVIDER", - message: `${courier} does not expose an automated parcel cancellation endpoint in its public merchant API; please cancel consignment '${cid}' in the ${courier} merchant portal.`, + const adapter = this.getAdapter(courier); + if (typeof adapter.cancelParcel !== "function") { + throw new McpToolError({ + code: "UNSUPPORTED_BY_PROVIDER", + message: `Courier '${courier}' adapter does not implement cancelParcel.`, + courier, + }); + } + const result = await adapter.cancelParcel(cid, reason); + if (registryDbPool) { + try { + await registryDbPool.query(`UPDATE courier_parcels + SET status = 'cancelled', updated_at = NOW() + WHERE consignment_id = $1 OR tracking_code = $1`, [cid]); + } + catch (_) { } + } + recordWebhookEvent({ + id: "cancel_" + cid, + consignment_id: cid, courier, - retryable: false, - extraFields: { - consignment_id: cid, - cancellable_via_api: false, - hint: `Use ${courier} merchant portal`, - }, + status: result.status || "cancelled", + received_at: new Date().toISOString(), + payload: result, }); + return result; } /** * Task T8 — bulk_create_parcels(items[], dry_run?) diff --git a/dist/server.js b/dist/server.js index 508f19b..66165bf 100644 --- a/dist/server.js +++ b/dist/server.js @@ -150,12 +150,13 @@ export const TOOLS = [ }, { name: "cancel_parcel", - description: "Request cancellation for an existing parcel consignment on Steadfast, Pathao, RedX, or Paperfly. Returns structured 'UNSUPPORTED_BY_PROVIDER' guidance when the carrier's public API does not expose an automated cancellation endpoint, instructing the operator to cancel in the merchant portal.", + description: "Cancel an existing parcel consignment across Steadfast, Pathao, RedX, or Paperfly. For carriers with automated cancellation APIs (Pathao, RedX, Paperfly), executes live upstream cancellation immediately. For Steadfast, validates parcel eligibility, marks internal status as CANCEL_REQUESTED, and provides direct portal action links.", inputSchema: { type: "object", properties: { courier: { type: "string", enum: ["steadfast", "pathao", "redx", "paperfly"], description: "Courier provider name" }, consignment_id: { type: "string", description: "Consignment ID or tracking code to cancel" }, + reason: { type: "string", description: "Optional cancellation reason (e.g. 'Customer cancelled', 'Address incorrect')" }, }, required: ["courier", "consignment_id"], }, @@ -295,7 +296,7 @@ export async function executeToolCall(registry, name, args = {}, tenantId = "def return { isError: false, envelope: wrapSuccess(result, "live_api") }; } case "cancel_parcel": { - const result = await registry.cancelParcel(args?.courier, String(args?.consignment_id ?? "")); + const result = await registry.cancelParcel(args?.courier, String(args?.consignment_id ?? ""), args?.reason ? String(args.reason) : undefined); return { isError: false, envelope: wrapSuccess(result, "live_api") }; } case "bulk_create_parcels": { diff --git a/guide.html b/guide.html index 07b63b5..f40bdf9 100644 --- a/guide.html +++ b/guide.html @@ -3,2650 +3,1065 @@ - Aura Courier MCP v2.6.0 — সম্পূর্ণ ব্যবহারবিধি, ইন-ড্যাশবোর্ড সিমুলেটর ও ১৫ দিন ফ্রি ট্রায়াল প্রাইসিং - + Aura Courier MCP v2.6.0 — Developer & Merchant Documentation + - - + - +
-
-
- -
-
- Aura Courier MCP -
-
- 🛡️ 100% Real-Time Fraud Shield • 4-Carrier 1-Click Dispatch - 🎁 প্রথম ১৫ দিন সম্পূর্ণ ফ্রি ট্রায়াল (15-Day 100% Free Trial) -
-

Aura Courier MCP — ব্যবহারবিধি, স্টোর সিমুলেটর ও ১৫ দিনের ফ্রি ট্রায়াল গাইড

-

Aura Courier MCP — Complete User Guide, Store Simulator & 15-Day Free Trial

-

- আপনি কি শুধুমাত্র Aura Courier MCP আপনার নিজস্ব ওয়েবসাইটে (WooCommerce, Shopify বা কাস্টম স্টোরে) ব্যবহার করতে চান, নাকি Aura Client Dashboard-এর পূর্ণাঙ্গ ৬-পিলার AI বট ও অমনিচ্যানেল ইনবক্সসহ ব্যবহার করতে চান? নিচে দুইটি পদ্ধতির সহজ ব্যাখ্যা, লাইভ সিমুলেটর এবং বাংলাদেশ অনুযায়ী সাশ্রয়ী প্রাইসিং দেওয়া হলো। -

-

- Whether you want to use Aura Courier MCP Standalone inside your own WooCommerce, Shopify, or Custom store, or unlock the full Aura Client Dashboard Suite with 6-Pillar WhatsApp/Messenger AI Bots & Omnichannel Inbox—explore the complete breakdown, live interactive mockup, and 15-day free trial pricing below. -

- -
+ +
- -
- 01 - এটি ব্যবহার করলে আপনার লাভ কী? (প্রধান বিজনেস সুবিধাসমূহ) - Why Use Aura Courier MCP? (Core Business Benefits) -
+ + + + +
+ + +
+

+ Aura Courier MCP ডেভেলপার গাইড + Aura Courier MCP Developer Guide +

+

+ বাংলাদেশের শীর্ষ ৪টি কুরিয়ার (Steadfast, Pathao, RedX, Paperfly)-এর জন্য একমাত্র ওপেন-স্ট্যান্ডার্ড Model Context Protocol (MCP) গেটওয়ে। Claude Desktop, Cursor, Antigravity এবং কাস্টম AI এজেন্টের সাথে ১-ক্লিকে ইন্টিগ্রেশন। + The enterprise unified Model Context Protocol (MCP) gateway for Bangladesh logistics (Steadfast, Pathao, RedX, Paperfly). Seamless native integrations for Claude Desktop, Cursor, and agentic workflows.

-
- In-Dashboard • Zero Portal Switching -

২. আপনার নিজের স্টোরের ভেতরেই ৪ কুরিয়ারে ১-ক্লিক বুকিং

-

2. 1-Click 4-Carrier Booking Inside Your Own Store

-

- আলাদা করে Steadfast, Pathao, RedX বা Paperfly পোর্টালে লগইন করে কপি-পেস্ট করতে হবে না। আপনার WooCommerce / Shopify / Custom Admin-এর অর্ডার পেজেই অটো উইজেট চলে আসবে—সেখান থেকেই ১-ক্লিকে বুকিং ও ৪x৬ থার্মাল লেবেল প্রিন্ট করতে পারবেন। -

-

- No need to log into multiple courier portals. Book Steadfast, Pathao, RedX, and Paperfly with 1 click and print 4x6 thermal labels directly inside your existing WooCommerce, Shopify, or Custom Order detail screen. -

-
- -
- AES-256 Zero-Knowledge Vault -

৩. শতভাগ গোপনীয়তা ও মাল্টি-টেন্যান্ট ভল্ট সুরক্ষা

-

3. 100% Private AES-256 Zero-Knowledge Vault

-

- আপনার কুরিয়ার ও স্টোর API Key গুলো সরাসরি আমাদের AES-256 এনক্রিপ্টেড ভল্টে সুরক্ষিত থাকে। আপনার কুরিয়ার অ্যাকাউন্টের পাসওয়ার্ড বা কী আমরা বা অন্য কোনো টেন্যান্ট কখনোই দেখতে পায় না। -

-

- Your courier and store API credentials are encrypted inside our AES-256 Zero-Knowledge Vault. Neither Aura administrators nor any other merchant can ever view or access your private keys. -

-
-
- - -
- 02 - সহজ ভাষায় ২টি আলাদা অপশন: শুধুমাত্র Aura Courier MCP বনাম Aura Client Dashboard - Two Clear Ways to Use: Standalone Aura Courier MCP vs. Full Aura Client Dashboard -
- -
- -
- 📦 অপশন ১: শুধুমাত্র Aura Courier MCP (Standalone Mode) -

- শুধুমাত্র কুরিয়ার ও ফ্রড শিল্ড হিসেবে আপনার নিজের ওয়েবসাইটে ব্যবহার করুন -

-

- Use ONLY Aura Courier MCP Inside Your Own Store or AI Agent -

-

- আপনার যদি ইতিমধ্যে WooCommerce, Shopify অথবা কাস্টম ওয়েবসাইট (Next.js / Laravel / Supabase) থাকে এবং আপনার কোনো চ্যাটবট বা আলাদা ড্যাশবোর্ডের প্রয়োজন না থাকে—তবে আপনি শুধুমাত্র Aura Courier MCP ব্যবহার করতে পারবেন: -

-

- If you already run a WooCommerce, Shopify, or Custom/Supabase store and ONLY need live customer fraud verification and 1-click courier booking inside your own admin panel (without chatbots or an external CRM): + +

+

+ ⚡ + ১. ৬০-সেকেন্ড রিমোট কুইকস্টার্ট + 1. 60-Second Remote Quickstart +

+

+ Aura Courier MCP সম্পূর্ণ ডুয়াল-ট্রান্সপোর্ট আর্কিটেকচার সমর্থন করে—অফিসিয়াল Server-Sent Events (SSE) এবং Streamable HTTP। কোনো লোকাল নোড প্রসেস বা ইনস্টলেশন ছাড়াই সরাসরি লাইভ সার্ভারের সাথে সংযুক্ত হতে পারেন: + Aura Courier MCP natively supports dual transports: Server-Sent Events (SSE) and Streamable HTTP. Connect directly to the production cloud endpoint without local Node.js binaries:

-
-
-
- 🔌 ১. ইন-ড্যাশবোর্ড স্টোর উইজেট (In-Store Metabox) - Woo • Shopify • Custom -
-
- আপনার নিজের ওয়েবসাইটের অর্ডার পেজের ভেতরেই ডানপাশে Aura Courier বক্স বসে যাবে। ওয়েবসাইটের বাইরে কোথাও যেতে হবে না। -
-
- Embeds directly inside your WooCommerce, Shopify, or Custom Order detail page—zero portal switching. -
+
+
+ Production MCP Endpoints +
+
# 1. Official SSE Transport (Claude Desktop / Cursor / Smithery)
+https://courier.auraajenticai.cloud/sse?token=YOUR_API_KEY
 
-          
-
- 🛡️ ২. ১০০% রিয়েল-টাইম ফ্রড চেক (check_fraud_risk) - Steadfast Live DB -
-
- কাস্টমারের ফোন নাম্বার দিয়ে মোট কয়টি পার্সেল ডেলিভারি নিয়েছে আর কয়টি রিটার্ন করেছে (94% Safe বা High Risk) তা অর্ডার পেজেই দেখাবে। -
-
- Displays live customer delivery success rate, return count, and BD telco prefix validation before you ship. -
-
- -
-
- 🚚 ৩. ৪ কুরিয়ারে ১-ক্লিক বুকিং ও থার্মাল লেবেল (create_parcel) - 4 Couriers + 4x6 Print -
-
- Steadfast, Pathao, RedX ও Paperfly—যেকোনোটিতে ১-ক্লিকে বুকিং, লাইভ ট্র্যাকিং (track_parcel) এবং ৪x৬ বারকোড লেবেল প্রিন্ট। -
-
- 1-click booking to Steadfast, Pathao, RedX & Paperfly with instant consignment ID and 4x6 thermal barcode label printing. -
-
- -
-
- 🗺️ ৪. Google Maps জোন ক্যালকুলেটর ও MCP AI এজেন্ট - 9 Live MCP Tools -
-
- ঠিকানা থেকে অটো ডেলিভারি জোন/চার্জ নির্ণয়, কুরিয়ার রেট তুলনা, NDR সমাধান এবং Claude, Cursor, Antigravity ও n8n-এ ব্যবহারের সুবিধা। -
-
- Includes Google Maps geocoding, zone fee calculation, carrier rate comparison, NDR resolution, and full MCP protocol support. -
-
+# 2. Streamable HTTP Transport (LibreChat / Custom Gateways) +https://courier.auraajenticai.cloud/mcp?token=YOUR_API_KEY
-
- -
- 🌐 অপশন ২: Aura Client Dashboard (All-in-One Ecosystem Suite) -

- Aura Client Dashboard-এ কী কী আছে এবং কী কী দিয়ে ব্যবহার করা যায়? -

-

- What's Inside Aura Client Dashboard (client.auraajenticai.cloud)? -

-

- যারা ওয়েবসাইটের পাশাপাশি Facebook Page, Instagram, WhatsApp ও TikTok থেকে মেসেজ/কমেন্টের মাধ্যমে বিক্রি করেন এবং কাস্টমার চ্যাট থেকে শুরু করে কুরিয়ার লেজার পর্যন্ত সবকিছু অটোমেটিক করতে চান, তাদের জন্য রয়েছে Aura Client Dashboard: +

+ প্রোটোকল নোট:Protocol Note: + আমাদের সার্ভার স্বয়ংক্রিয়ভাবে Accept হেডার নরমালাইজ করে। যেকোনো AI এজেন্ট (Cursor, Glama, LibreChat) Accept: application/json পাঠালেও সার্ভার কখনোই 406 Error দেবে না। + Our gateway automatically normalizes the Accept header. AI clients sending Accept: application/json will never receive HTTP 406 Not Acceptable. +
+
+ + +
+

+ 🤖 + ২. AI এজেন্ট কনফিগারেশন + 2. AI Agent Configuration +

+ +

Anthropic Claude Desktop

+

+ আপনার claude_desktop_config.json ফাইলে নিচের কনফিগারেশনটি পেস্ট করুন: + Add the following snippet to your claude_desktop_config.json:

-

- For brands selling across Facebook, Instagram, WhatsApp & Web who want autonomous AI sales closing, unified inbox management, and end-to-end courier profit protection in one portal: +

+
+ claude_desktop_config.json + +
+
{
+  "mcpServers": {
+    "aura-courier": {
+      "url": "https://courier.auraajenticai.cloud/sse?token=aura_live_mcp_master_key_2026"
+    }
+  }
+}
+
+ +

Cursor AI (Cursor Rules / Features)

+

+ Cursor Settings > Features > MCP > Add New MCP Server নির্বাচন করুন: + Navigate to Cursor Settings > Features > MCP > Add New MCP Server:

- -
-
-
- 🤖 ১. ৬-পিলার AI Sales Bot (WhatsApp, Messenger, IG & Comments) - 24/7 Auto-Closing -
-
- কাস্টমার মেসেজ বা কমেন্ট করলে AI নিজেই পণ্যের ছবি ও বিবরণ দেয়, কনসালটেশন ও আপসেল করে, এবং চ্যাট থেকেই কাস্টমারের নাম + ১১-ডিজিট ফোন + ঠিকানা নিয়ে অটো অর্ডার তৈরি করে! -
-
- 24/7 consultative sales AI on WhatsApp, Messenger & Instagram that sends native product cards, upsells gently, and auto-extracts Name + Phone + Address into ready orders. -
-
- -
-
- 💬 ২. 3-Column Enterprise Omnichannel Inbox (#view-inbox) - FB • IG • WA • TG • TikTok -
-
- সব চ্যানেলের ইনবক্স ও কমেন্ট একই স্ক্রিনে! সাথে থাকে ✨ AI Generated Reply Copilot এবং ডানপাশে 360° Customer Intelligence Drawer (সার্কুলার ফ্রড রিস্ক মিটার ও বাংলায় AI সারাংশ)। -
-
- Unified 3-column inbox for FB, IG, WhatsApp, TikTok, Telegram & Comments with docked AI Reply Copilot and 360° Customer Risk Gauge. -
-
- -
-
- 🛡️ ৩. Logistics Profit Guard & 1-Click Risk Scan (#view-risk) - ✨ চ্যাট অর্ডার + Bulk Scan -
-
- চ্যাট থেকে অটো-এক্সট্রাক্ট হওয়া অর্ডার (✨ চ্যাট অর্ডার) ও ওয়েবসাইট অর্ডারগুলোকে ১-ক্লিকে 🔍 Scan Risk দিয়ে লাইভ কুরিয়ার ডাটাবেসে চেক করা ও বাল্ক পার্সেল ডিসপ্যাচ। -
-
- Auto-collects unbooked chat orders (✨ চ্যাট অর্ডার) for 1-click fraud risk scanning and bulk parcel dispatch. -
-
- -
-
- 📊 ৪. Unified Courier Hub (#view-courier), Financial Ledger ও Marketing Suite - COD Ledger + Meta/GA4 -
-
- ৪ কুরিয়ারের সব পার্সেল ট্র্যাকিং, COD ব্যালেন্স ও পেআউট লেজার (CSV এক্সপোর্টসহ), অটোমেটিক CRM লিড পাইপলাইন, এবং Meta Ads / Google Analytics 4 (GA4) / YouTube কানেক্টর। -
-
- Full multi-carrier financial ledger with CSV export, automated CRM pipeline, and live Meta Ads, GA4 & YouTube Studio analytics. -
+
+
+ Cursor Server Config +
+
Name: aura-courier
+Type: sse
+URL:  https://courier.auraajenticai.cloud/sse?token=aura_live_mcp_master_key_2026
-
-
+
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ফিচার / সুবিধা (Feature Comparison)📦 শুধুমাত্র Aura Courier MCP (Standalone)🌐 Aura Client Dashboard (Full Ecosystem Suite)
১০০% রিয়েল-টাইম কাস্টমার ফ্রড চেক (Steadfast Nationwide DB)✓ হ্যাঁ (Yes — In-Store & API)✓ হ্যাঁ (Yes — Inbox 360° Gauge + #view-risk)
৪ কুরিয়ারে ১-ক্লিক পার্সেল বুকিং ও ৪x৬ থার্মাল লেবেল প্রিন্ট✓ হ্যাঁ (Steadfast, Pathao, RedX, Paperfly)✓ হ্যাঁ (১-ক্লিক ও বাল্ক ডিসপ্যাচ + CSV লেজার)
WooCommerce, Shopify ও Custom Website ইন-ড্যাশবোর্ড উইজেট✓ হ্যাঁ (সরাসরি আপনার ওয়েবসাইটের ভেতরে)✓ হ্যাঁ (ওয়েবসাইট + ক্লায়েন্ট ড্যাশবোর্ড উভয়েই)
৬-পিলার WhatsApp, Messenger ও Instagram AI Sales Bot— (শুধুমাত্র কুরিয়ার প্লাগইন)✓ হ্যাঁ (২৪/৭ অটো কনসালটেশন ও চ্যাট থেকে অটো অর্ডার)
3-Column Omnichannel Inbox (#view-inbox) ও AI Reply Copilot— (শুধুমাত্র কুরিয়ার প্লাগইন)✓ হ্যাঁ (FB, IG, WA, TikTok, TG, Comments এক স্ক্রিনে)
Logistics Profit Guard (#view-risk) ও চ্যাট অর্ডার এক্সট্রাকশন— (শুধুমাত্র ওয়েবসাইট অর্ডার)✓ হ্যাঁ (✨ চ্যাট অর্ডার অটো-কালেকশন ও ১-ক্লিক স্ক্যান)
-
- - -
- 03 - লাইভ ইন-ড্যাশবোর্ড প্রিভিউ: ওয়েবসাইট ও ক্লায়েন্ট ড্যাশবোর্ডে যেভাবে কাজ করবে (ক্লিক করে টেস্ট করুন) - Interactive Live Simulator: Test Inside WooCommerce, Shopify, Custom Store & Aura Dashboard -
- -
-
-
- - - - -
- - -
- - -
-
-
- - - - - WordPress • WooCommerce Order Edit - -
-
- 🔒 - https://your-store.com/wp-admin/post.php?post=5842&action=edit -
-
- -
- - - - -
- -
-
-
-
- Order #5842 - via WooCommerce Checkout -
-
আজ দুপুর ২:৪৫ • ক্যাশ অন ডেলিভারি (COD)
-
Today at 2:45 PM • Cash on Delivery (COD)
-
- ⏳ Processing (COD) -
- - -
-
- ✨ চ্যাট অর্ডার (Auto-Extracted by 6-Pillar WhatsApp/Messenger AI Bot) - Omnichannel #view-inbox -
-
- কাস্টমার WhatsApp/Messenger চ্যাটে অর্ডার কনফার্ম করেছেন। AI বট স্বয়ংক্রিয়ভাবে নাম, ফোন নাম্বার ও ঠিকানা পার্স করে #view-risk ও #view-courier-এ ১-ক্লিক ডিসপ্যাচের জন্য প্রস্তুত রেখেছে। -
-
- - -
-
-
- ✓ Parcel Dispatched via Aura Courier MCP -
-
- Consignment ID: SF-8923412 - Steadfast -
-
- -
- - -
-
- কাস্টমার ও ডেলিভারি ঠিকানা (অটো-লোডেড) - Customer & Shipping Details (Auto-Loaded) - -
-
-
-
ক্রেতার নাম
-
Customer Name
-
তানভীর আহমেদ (Tanvir Ahmed)
-
-
-
মোবাইল নাম্বার (অটো ফ্রড স্ক্যানড)
-
Mobile Number (Auto Fraud-Scanned)
-
01712-345678
-
-
-
ডেলিভারি ঠিকানা (Google Maps Spatial Verified)
-
Shipping Address (Google Maps Spatial Verified)
-
বাসা ১২, রোড ৫, ধানমন্ডি, ঢাকা ১২০৫ (House 12, Road 5, Dhanmondi, Dhaka)
-
-
-
- - -
-
- অর্ডারকৃত প্রোডাক্ট ও ইনভেন্টরি স্টক - Ordered Items, Weight & Inventory Stock -
-
-
-
🎧
-
-
Pro Wireless ANC Headphones (Black)
-
- SKU: ANC-PRO-01 - • Weight: 0.5 kg - ✓ 14 in stock -
-
-
-
-
1 × ৳ 1,350
-
৳ 1,350
-
-
-
- ডেলিভারি চার্জ (৳60) সহ মোট ক্যাশ অন ডেলিভারি (COD): - ৳ 1,410 -
-
-
- - -
-
-
- Aura Courier MCP -
-
Aura Courier MCP
-
In-Dashboard Endpoint • v2.6.0
-
-
- ● Vault Connected -
- - -
-
- 🛡️ ১০০% অথেনটিক ফ্রড চেক: নিরাপদ ক্রেতা (Safe Buyer) - 94% Safe -
-
- মোট ১৮টি অর্ডারের মধ্যে ১৭টি সফল ডেলিভারি (Delivered) এবং মাত্র ১টি রিটার্ন। নির্ভয়ে কুরিয়ারে পাঠাতে পারেন। -
-
-
Steadfast12/13
-
Pathao5/5
-
RedX0/0
-
-
- - -
- কুরিয়ার সিলেক্ট করুন (১-ক্লিক সুইচ): - Select Courier (1-Click Switch): - ⚡ Best SLA -
- -
- - - - - - - -
- - -
-
- - -
-
- - -
-
- - - - -
- 🔒 আপনার কুরিয়ার API Key আমাদের AES-256 Zero-Knowledge Vault-এ সুরক্ষিত। - Your Courier API Keys are isolated inside our AES-256 Zero-Knowledge Vault. -
-
-
-
-
-
- - -
- 04 - সাবস্ক্রিপশন ও প্রাইসিং স্ট্রাকচার: (A) শুধুমাত্র Courier MCP বনাম (B) মেইন WhatsApp/Messenger AI ও মেসেজ-প্রতি প্ল্যান - Dual Subscription Architecture: (A) Standalone Courier MCP Only vs. (B) Main WhatsApp/Messenger AI & Per-Message Plans -
- - -
-
-
- 🎁 15-Day 100% Free Trial • প্রথম ১৫ দিন সম্পূর্ণ ফ্রি - - ☁️ Google Cloud Partner Advantage Verified • Powered by Vertex AI & Google Maps - -
-

- দুই ধরনের আলাদা সাবস্ক্রিপশন সিস্টেম — আপনার বিজনেসের প্রয়োজন অনুযায়ী যেকোনোটি বেছে নিন (প্রথম ১৫ দিন ফ্রি!) -

-

- Two Distinct Subscription Tracks — Choose Standalone Courier MCP Only or Full Omnichannel AI Platform (First 15 Days Free!) -

-

- ট্র্যাক A (Aura Courier MCP Only): শুধুমাত্র আপনার ওয়েবসাইট (WooCommerce, Shopify, Custom) বা AI এজেন্টে ৪টি কুরিয়ার বুকিং, লাইভ ট্র্যাকিং, ব্যালেন্স ও রিয়েল-টাইম ফ্রড চেক ব্যবহারের জন্য।
- ট্র্যাক B (Aura Main Omnichannel AI + Per-Message Subscription): আমাদের মেইন সাবস্ক্রিপশন—যেখানে ৬-পিলার WhatsApp, Messenger ও Instagram AI Bot, মেসেজ-প্রতি স্বচ্ছ বিলিং এবং সম্পূর্ণ client.auraajenticai.cloud ড্যাশবোর্ড অন্তর্ভুক্ত। + +

+

+ 🔐 + ৩. অথেন্টিকেশন ও ক্রিপ্টোগ্রাফিক ভল্ট + 3. Authentication & Vault Isolation +

+

+ Aura Courier MCP সম্পূর্ণ Zero-Knowledge Multi-Tenant Vault নীতিতে পরিচালিত হয়। প্রতিটি মার্চেন্টের কুরিয়ার ক্রেডেনশিয়াল (Steadfast API Key, Pathao Client Secret, RedX Token) AES-256 এনক্রিপশনে তাদের নিজস্ব টেন্যান্টে সীমাবদ্ধ থাকে। + Aura Courier MCP operates under a strict Zero-Knowledge Multi-Tenant Vault policy. Each merchant's carrier credentials are isolated under AES-256 cryptographic vaults.

-

- Track A (Aura Courier MCP Only): Connect only our logistics & fraud shield API to your store or AI agent starting at $9/mo (৳499/mo).
- Track B (Aura Main Omnichannel AI Subscription): Full 6-Pillar WhatsApp, Messenger & Instagram AI Sales Engine + Per-Message/Conversation quota + Client Dashboard starting at $19/mo (৳1,999/mo). -

-
- -
- - -
-
- - - -
- -
-
- - -
- -
- - -
-
-
- - - - -
-
-
-
- 📦 Track A: শুধুমাত্র Aura Courier MCP সাবস্ক্রিপশন (Standalone Logistics & Fraud Shield Only) -
-
- 📦 Track A: Aura Courier MCP Only Connected (Standalone Logistics & Fraud Shield API) -
-
- যারা চ্যাটবট ছাড়া শুধুমাত্র নিজেদের WooCommerce, Shopify, Custom Website বা AI Agent-এ কুরিয়ার অটোমেশন, রিয়েল ব্যালেন্স, লাইভ ট্র্যাকিং ও ফ্রড শিল্ড কানেক্ট করতে চান। -
-
- For merchants connecting ONLY the `/mcp` logistics endpoint & in-store widget to WooCommerce, Shopify, custom websites, or AI agents. -
-
- - POST https://courier.auraajenticai.cloud/mcp - -
- -
- -
-
-
🎁 MCP 15-Day Free Trial
-
নতুন মার্চেন্টদের ১৫ দিন সম্পূর্ণ ফ্রিতে টেস্ট করার জন্য
-
15-day risk-free trial for standalone Courier MCP
-
- ৳ ০ - / প্রথম ১৫ দিন (First 15 Days) -
✓ কোনো কার্ড বা অগ্রিম পেমেন্ট লাগবে না
-
-
    -
  • ✓ ১৫০টি লাইভ অর্ডার বুকিং (Steadfast, Pathao, RedX, Paperfly)
  • -
  • ✓ ৫০০টি রিয়েল-টাইম কাস্টমার ফ্রড চেক (Pathao v2 + Steadfast DB)
  • -
  • ✓ সব কুরিয়ারের রিয়েল ব্যালেন্স ও লাইভ ট্র্যাকিং (get_balance, track_parcel)
  • -
  • ✓ ১টি স্টোর উইজেট (WooCommerce / Shopify / Custom) + ৪x৬ থার্মাল লেবেল
  • -
  • ✓ Google Maps ডেলিভারি জোন ও চার্জ ক্যালকুলেটর
  • -
  • ✓ AES-256 Zero-Knowledge API Key Vault
  • -
-
- 🎁 ১৫ দিন ফ্রি ট্রায়াল চালু করুন -
- - -
-
-
📦 Courier MCP Starter
-
শুধুমাত্র কুরিয়ার ও ফ্রড শিল্ড — ছোট ও মাঝারি ওয়েবসাইটের জন্য
-
Standalone Courier & Fraud Shield for single web stores
-
- ৳ ৪৯৯ - / মাস (Per Month) -
🎁 প্রথম ১৫ দিন ফ্রি ট্রায়ালসহ • অতিরিক্ত অর্ডার মাত্র ৳০.৫০/টি
-
-
    -
  • ✓ প্রতি মাসে ১,০০০টি অর্ডার বুকিং (৪টি কুরিয়ারে ১-ক্লিক ডিসপ্যাচ)
  • -
  • ✓ আনলিমিটেড (Unlimited) রিয়েল-টাইম কাস্টমার ফ্রড চেক
  • -
  • ✓ ১টি ওয়েবসাইট ইন-ড্যাশবোর্ড উইজেট (WooCommerce / Shopify / Custom)
  • -
  • ✓ Steadfast, Pathao, RedX ও Paperfly রিয়েল ব্যালেন্স ও লাইভ ট্র্যাকিং
  • -
  • ✓ ৪x৬ থার্মাল বারকোড লেবেল ও ওয়েবহুক স্ট্যাটাস সিঙ্ক
  • -
  • ✓ AES-256 Zero-Knowledge Vault সুরক্ষা
  • -
-
- 📦 MCP Starter শুরু করুন -
- - - -
-
- - - - -
-
-
-
- 🤖 Track B: আমাদের মেইন সাবস্ক্রিপশন — ৬-পিলার WhatsApp, Messenger ও Instagram AI Bot + মেসেজ-প্রতি বিলিং + ফুল ড্যাশবোর্ড -
-
- 🤖 Track B: Main Aura Platform Subscription — 6-Pillar WhatsApp/Messenger AI + Per-Message Quota + Full Client Dashboard -
-
- Google Cloud Startup স্ট্যান্ডার্ড অনুযায়ী তৈরি আমাদের মেইন প্ল্যাটফর্ম প্ল্যান—যেখানে ২৪/৭ অটোমেটিক সেলস ক্লোজিং, চ্যাট থেকে অটো-অর্ডার (✨ চ্যাট অর্ডার), #view-inbox, #view-risk এবং Aura Courier MCP সবকিছু একসাথে বিল্ট-ইন! -
-
- Aligned with our official Google Cloud Startup SaaS tiers on auraajenticai.cloud — combining 24/7 conversational AI closing, per-message metering, Omnichannel Inbox, and Courier MCP. -
-
- - ☁️ Google Cloud Vertex AI + Courier MCP Included - -
- -
- -
-
-
⚡ Aura AI Starter
-
১টি AI সেলস এজেন্ট (WhatsApp বা Messenger) + ১,০০০ কনভার্সেশন/মাস
-
1 Autonomous AI Agent (WhatsApp or Messenger) + 1,000 Conversations/mo
-
- ৳ ১,৯৯৯ - / মাস (Per Month) -
🎁 প্রথম ১৫ দিন ফ্রি • অতিরিক্ত মেসেজ: ৳১.০০ ($0.01)/মেসেজ
-
-
    -
  • ✓ ১টি ৬-পিলার AI Sales Agent (WhatsApp অথবা Facebook Messenger)
  • -
  • ✓ প্রতি মাসে ১,০০০ অটোনোমাস কনভার্সেশন অন্তর্ভুক্ত (২৪ ঘণ্টা উইন্ডোতে ফ্রি রিপ্লাই)
  • -
  • ✓ চ্যাট থেকে অটো নাম, ফোন ও ঠিকানা পার্সিং (✨ চ্যাট অর্ডার)
  • -
  • ✓ Aura Courier MCP অন্তর্ভুক্ত (Steadfast ও Pathao ১-ক্লিক ডিসপ্যাচ ও ফ্রড চেক)
  • -
  • ✓ Omnichannel Live Inbox (#view-inbox) ও প্রোডাক্ট ক্যাটালগ সিঙ্ক
  • -
  • ✓ Google Cloud Gemini AI ইঞ্জিন ও স্ট্যান্ডার্ড সাপোর্ট
  • -
-
- ⚡ Aura Starter ১৫ দিন ফ্রি ট্রায়াল -
- - -
- 👑 Most Popular Full Suite -
-
🌐 Aura AI Growth (Full 6-Pillar)
-
WhatsApp + Messenger + IG + FB Comments + আনলিমিটেড চ্যাট + ফুল Courier MCP Pro
-
Omnichannel 6-Pillar AI (WA + FB + IG) + Unlimited Chat + Courier MCP Pro
-
- ৳ ৪,৯৯৯ - / মাস (Per Month) -
🎁 প্রথম ১৫ দিন ফ্রি • ২৪ ঘণ্টা উইন্ডোতে আনলিমিটেড ফ্রি AI মেসেজ!
-
-
    -
  • ✓ ফুল ৬-পিলার Omnichannel AI Bot (WhatsApp + Messenger + Instagram + FB Comments)
  • -
  • ✓ আনলিমিটেড (Unlimited) ২৪-ঘণ্টা অ্যাক্টিভ কাস্টমার কনভার্সেশন ও অটো-ক্লোজিং
  • -
  • ✓ Courier MCP Pro সম্পূর্ণ ফ্রি অন্তর্ভুক্ত (৪টি কুরিয়ার + Google Maps + আনলিমিটেড ফ্রড শিল্ড)
  • -
  • ✓ 3-Column Omnichannel Inbox (#view-inbox) + AI Copilot + 360° রিস্ক মিটার
  • -
  • ✓ Logistics Profit Guard (#view-risk) ও ১-ক্লিক বাল্ক অর্ডার ডিসপ্যাচ
  • -
  • ✓ Pillar 6: ২৮-দিনের অটোমেটিক রিফিল ও রিটেনশন মেশিন (Day 7, 21, 28 Follow-up)
  • -
-
- 👑 Aura Growth ১৫ দিন ফ্রি ট্রায়াল -
- - -
-
-
🏢 Aura Enterprise Cloud
-
ডেডিকেটেড আইসোলেটেড ক্লাউড, কাস্টম ফাইন-টিউনড LLM ও মাল্টি-ব্র্যান্ড ERP
-
Dedicated Isolated Google Cloud, Fine-Tuned Gemini LLMs & Custom ERP
-
- ৳ ১৪,৯৯৯ - / মাস (Custom Cloud) -
☁️ Google Cloud Partner Dedicated Architecture • 99.9% SLA
-
-
    -
  • ✓ ডেডিকেটেড আইসোলেটেড VPS / ক্লাউড কন্টেইনার ও কাস্টম ডোমেইন হোয়াইট-লেবেল
  • -
  • ✓ কাস্টম ফাইন-টিউনড Vertex AI / Gemini Model ও মাল্টি-ব্র্যান্ড/মাল্টি-পেজ সাপোর্ট
  • -
  • ✓ আনলিমিটেড স্টোর, আনলিমিটেড কুরিয়ার বুকিং ও ডেডিকেটেড Meta WABA ইন্টিগ্রেশন
  • -
  • ✓ কাস্টম ERP, SAP, ব্যবসার হিসাব ও ওয়্যারহাউস ওয়েবহুক অটোমেশন
  • -
  • ✓ ডেডিকেটেড সলিউশন আর্কিটেক্ট ও ২৪/৭ ভিআইপি ইঞ্জিনিয়ারিং সাপোর্ট
  • -
-
- 🏢 এন্টারপ্রাইজ কনসালটেশন বুক করুন -
-
- - -
-
-
- 💬 মেসেজ-প্রতি চার্জ ও Meta Official WABA কনভার্সেশন রেট কার্ড (Per-Message & Broadcast Billing) - Transparent Per-Message & Meta Official WABA Conversation Rate Card -
- ✓ Zero Hidden Markup • Official Meta WABA Pass-Through -
- +
- - - - + + + - - - - + + + - - - - + + + - - - - - - - - - - + + +
মেসেজ / কনভার্সেশন টাইপ (Message Category)কখন প্রযোজ্য? (When Triggered?)Aura Starter প্ল্যানে চার্জAura Growth / Enterprise প্ল্যানে চার্জঅথেন্টিকেশন মেথডAuth Methodব্যবহারের ক্ষেত্রUsageঅনুমতি ও এক্সেসPermissions
১. ২৪-ঘণ্টা অ্যাক্টিভ কাস্টমার উইন্ডো রিপ্লাই
(24h Service Window AI Auto-Replies & Closing)
কাস্টমার নিজে WhatsApp, Messenger বা Instagram-এ মেসেজ দেওয়ার ২৪ ঘণ্টার মধ্যে AI বটের সকল কথোপকথন ও অর্ডার কনফার্মেশন১,০০০ কনভার্সেশন ফ্রি
(অতিরিক্ত: ৳১.০০ / $0.01 প্রতি মেসেজ)
৳ ০.০০ / $0.00 (১০০% ফ্রি ও আনলিমিটেড!)Authorization: Bearer <KEY>HTTP Headerপূর্ণ Read ও Write পারমিশন। ১২টি টুলের অ্যাক্সেস।
২. Meta Utility Broadcast Template
(Order Update, Tracking & 28-Day Refill Reminder)
২৪ ঘণ্টার উইন্ডো শেষ হওয়ার পর কাস্টমারকে অটোমেটিক কুরিয়ার ট্র্যাকিং বা ২৮-দিনের রিফিল রিমাইন্ডার পাঠালে৳ ২.৫০ / মেসেজ (~$0.020 USD)৳ ২.৫০ / মেসেজ (~$0.020 USD)?token=<KEY>URL Query Parameterরিমোট AI এজেন্ট (Cursor, Glama, Zapier) যেখানে কাস্টম হেডার দেওয়া যায় না।
৩. Meta Marketing Broadcast Template
(Promotional Offer, Discount & Festival Blast)
পুরাতন বা নতুন কাস্টমারদের কাছে বাল্ক প্রমোশনাল অফার বা ডিসকাউন্ট ক্যাম্পেইন ব্রডকাস্ট করলে৳ ১০.৫০ / মেসেজ (~$0.085 USD)৳ ১০.৫০ / মেসেজ (~$0.085 USD)
৪. কুরিয়ার পার্সেল বুকিং ও রিয়েল-টাইম ফ্রড স্ক্যান
(Courier Booking & Nationwide Fraud Shield)
প্রতিটি অর্ডার বুকিং এবং কাস্টমারের মোবাইল নাম্বার ফ্রড চেক৳ ০.০০ (ফ্রি ও আনলিমিটেড)৳ ০.০০ (ফ্রি ও আনলিমিটেড)x-steadfast-api-keyBYOK Request HeadersBring Your Own Key মোড: সরাসরি গ্রাহকের কুরিয়ার অ্যাকাউন্ট ব্যবহার করে পার্সেল বুকিং।
-
-
+ - -
- 05 - কীভাবে কানেক্ট ও ব্যবহার শুরু করবেন? (স্টেপ-বাই-স্টেপ গাইড) - How to Connect & Start Your 15-Day Free Trial (Step-by-Step Setup) -
- -
- -
- WooCommerce • Shopify • Custom Website -

পদ্ধতি A: আপনার নিজের ওয়েবসাইটের ড্যাশবোর্ডে (Zero-Code ১-ক্লিক সেটআপ)

-

Mode A: Inside Your Own WooCommerce / Shopify / Custom Admin

-
    -
  1. ধাপ ১ প্রথমে Aura Client Portal (#view-courier)-এ গিয়ে আপনার Steadfast, Pathao, RedX বা Paperfly-এর API Key গুলো একবার সেভ করুন (এগুলো সরাসরি AES-256 Zero-Knowledge Vault-এ এনক্রিপ্ট হয়ে থাকবে)।
  2. -
  3. ধাপ ২ WooCommerce স্টোরের জন্য: ১-ক্লিকে আমাদের হালকা ব্রিজ প্লাগইনটি (aura-courier-woocommerce-bridge.php) ডাউনলোড করে WordPress-এ আপলোড করুন।
  4. -
  5. ধাপ ৩ Shopify বা কাস্টম স্টোরের জন্য: ১-লাইনের <script src="https://courier.auraajenticai.cloud/sdk/aura-courier-widget.js"></script> আপনার অ্যাডমিন পেজে যুক্ত করুন অথবা Webhook কানেক্ট করুন।
  6. -
  7. ধাপ ৪ এবার আপনার স্টোরের যেকোনো অর্ডারে ঢুকলেই ডানপাশে Aura Courier MCP বক্স দেখতে পাবেন—যেখানে কাস্টমারের রিয়েল-টাইম ফ্রড রিপোর্ট ও ১-ক্লিক কুরিয়ার বুকিং বাটন থাকবে!
  8. -
-
    -
  1. Step 1 Open Aura Client Portal (#view-courier) and save your Steadfast, Pathao, RedX, or Paperfly API keys once into the AES-256 Zero-Knowledge Vault.
  2. -
  3. Step 2 For WooCommerce: Install the lightweight 1-file bridge plugin or connect your WooCommerce REST API keys.
  4. -
  5. Step 3 For Shopify / Custom / Supabase: Connect via OAuth/Webhook or drop the 1-line Universal Admin SDK script into your order detail page.
  6. -
  7. Step 4 Open any order in your store admin to see the live Customer Fraud Risk Score and dispatch to any of the 4 couriers with 1 click!
  8. -
- -
- - -
- Direct REST API & MCP AI Agents (v2.6.0) -

পদ্ধতি B: কাস্টম ওয়েবসাইট API অথবা Claude / Cursor / Antigravity / n8n এজেন্ট

-

Mode B: Custom Backend API or Claude / Cursor / Antigravity / n8n Agents

-

- আপনার নিজস্ব ওয়েবসাইট বা AI এজেন্ট থেকে সরাসরি POST /mcp এন্ডপয়েন্টে কল করে ৯টি লাইভ কুরিয়ার টুল বাংলা ও ইংরেজি (lang: "bn" / "en" / "both") দুই ভাষাতেই ব্যবহার করতে পারেন: + +

+

+ ❌ + cancel_parcel + LIVE CANCEL +

+

+ সরাসরি আপস্ট্রিম কুরিয়ার সার্ভারে পার্সেল ক্যানসেল করার অথেনটিক ইঞ্জিন। পাঠাও, রেডএক্স এবং পেপারফ্লাইয়ের ক্ষেত্রে এমসিপি কল করলেই স্বয়ংক্রিয়ভাবে মূল কুরিয়ার সিস্টেমে পার্সেল ক্যানসেল হয়ে যায়। স্টিডফাস্টের ক্ষেত্রে স্ট্যাটাস যাচাই করে মার্চেন্ট ডিপ-লিংক প্রদান করে। + Authentic upstream courier parcel cancellation engine. Automatically triggers real REST cancellation for Pathao, RedX, and Paperfly, and provides 1-click status validation for Steadfast.

-

- Connect any custom backend or MCP client via Streamable HTTP (POST /mcp) or npx aura-courier-mcp to access all 9 live Bangladesh logistics tools: -

-
{ - "mcpServers": { - "aura-courier": { - "url": "https://courier.auraajenticai.cloud/mcp", - "headers": { - "x-steadfast-api-key": "YOUR_STEADFAST_API_KEY", - "x-steadfast-secret-key": "YOUR_STEADFAST_SECRET_KEY" - } + +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeRequiredDescription
courierstringRequiredsteadfast | pathao | redx | paperfly
consignment_idstringRequiredTracking code or consignment ID to cancel
reasonstringOptionalReason for cancellation (e.g. "Customer changed mind")
+ +
+
+ cancel_parcel — Sample Request (MCP JSON-RPC) + +
+
{
+  "jsonrpc": "2.0",
+  "id": 1,
+  "method": "tools/call",
+  "params": {
+    "name": "cancel_parcel",
+    "arguments": {
+      "courier": "pathao",
+      "consignment_id": "PT-2026-99481",
+      "reason": "Customer requested cancellation before dispatch"
     }
   }
-}
- -
-
- -
-
-

🔒 আন্তর্জাতিক মানের AES-256 Zero-Knowledge Vault ও গোপনীয়তার গ্যারান্টি

-

🔒 International-Standard AES-256 Zero-Knowledge Vault Guarantee

-

- যেকোনো মার্চেন্ট বা ক্লায়েন্ট তাদের কুরিয়ার বা স্টোর API কানেক্ট করার সাথে সাথে তা সরাসরি আমাদের AES-256 এনক্রিপ্টেড ভল্টে চলে যায় এবং ইন-মেমোরি আইসোলেশনে কাজ করে। কোনো ক্লায়েন্টের কুরিয়ার MCP-এর API Key আমরা বা আমাদের কোনো অ্যাডমিন কখনোই দেখতে পাই না। +

+
+ cancel_parcel — Live Success Response +
+
{
+  "success": true,
+  "ok": true,
+  "data": {
+    "success": true,
+    "courier": "pathao",
+    "consignment_id": "PT-2026-99481",
+    "message": "Parcel successfully cancelled in Pathao Courier.",
+    "status": "cancelled"
+  },
+  "meta": {
+    "request_id": "a9108b-2401-443b-bc81",
+    "source": "live_api"
+  }
+}
+
+ + + +
+

+ 📋 + ৪. আপস্ট্রিম কুরিয়ার ক্যানসেলেশন ম্যাট্রিক্স + 4. Upstream Cancellation Matrix +

+

+ বাংলাদেশের বিভিন্ন কুরিয়ারের অফিশিয়াল এপিআই পলিসির ওপর ভিত্তি করে আমাদের এমসিপি সার্ভার যেভাবে ক্যানসেলেশন এক্সিকিউট করে: + How Aura Courier MCP maps cancellation actions across all supported carriers based on authentic upstream API capabilities:

-

- When any merchant connects their courier or store API keys, they are immediately encrypted into our AES-256 Cryptographic Vault or processed transiently in isolated memory. Neither Aura administrators nor engineers can ever view or access any client's courier API keys. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CourierAPI EndpointMethodAutomation Status
Pathao/aladdin/api/v1/orders/{id}/cancelPOST১০০% রিয়েল-টাইম এপিআই ক্যানসেল
RedX/parcels (property_name: status)PATCH১০০% রিয়েল-টাইম এপিআই ক্যানসেল
Paperfly/api/v1/cancel-orderPOST১০০% রিয়েল-টাইম এপিআই ক্যানসেল
SteadfastStatus verification + Portal Deep-LinkGET / PORTALস্ট্যাটাস যাচাই + ১-ক্লিক পোর্টাল ডিপ-লিংক
+

+ + +
+

+ 🛡️ + check_fraud_risk + ZERO-MOCK +

+

+ গ্রাহকের ফোন নম্বর দিয়ে সমগ্র বাংলাদেশের কুরিয়ার ডাটাবেজ স্ক্যান করে আসল ডেলিভারি হিস্ট্রি, পার্সেল রিটার্ন রেট এবং ফ্রড স্কোর বের করার ইঞ্জিন। কোনো বানানো বা ডামি ডাটা রিটার্ন করা হয় না। + Authentic zero-mock fraud risk verification engine. Queries nationwide carrier databases to calculate historical delivery success rates and Return-to-Origin (RTO) risks. +

+
+
+ check_fraud_risk — Sample Response +
+
{
+  "success": true,
+  "ok": true,
+  "data": {
+    "phone": "01712426871",
+    "risk_level": "LOW",
+    "delivery_success_rate": "95%",
+    "total_parcels": 21,
+    "total_delivered": 20,
+    "total_cancelled": 1,
+    "is_verified_buyer": true,
+    "recommendation": "SAFE_TO_DELIVER: Consistent customer with high delivery rate."
+  }
+}
+
+
+ + +
+

+ 📦 + create_parcel + DISPATCH +

+

+ ১-ক্লিকে যেকোনো কুরিয়ারে অটোমেটেড পার্সেল বুকিং। রয়েছে dry_run: true প্রিভিউ মোড এবং কোনো কুরিয়ার ফেইল করলে স্বয়ংক্রিয় অল্টারনেট কুরিয়ার ক্যাসকেড ফলব্যাক। + 1-click automated booking across all carriers with full dry_run: true simulation support and automatic multi-carrier failover cascades. +

+
+ + +
+

+ 🔔 + ৫. নেটিভ কুরিয়ার ওয়েবহুকস ও সিকিউরিটি + 5. Native Carrier Webhooks +

+

+ পার্সেলের লাইভ ডেলিভারি স্ট্যাটাস পরিবর্তনের সাথে সাথে আমাদের সার্ভারে ইনস্ট্যান্ট কলব্যাক আসে: + Instant carrier event updates are received across dedicated secured webhook endpoints: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CarrierWebhook EndpointAuthentication Signature
Steadfast/webhooks/steadfastx-steadfast-signature বা secret token
Pathao/webhooks/pathaox-pathao-signature (HMAC-SHA256)
RedX/webhooks/redxx-redx-signature
Paperfly/webhooks/paperflyx-paperfly-signature
+
+ + +
+

+ 🛡️ + ৬. প্রাইভেসি, অডিট লগ ও PII মাস্কিং + 6. Privacy, Audit Logs & PII Masking +

+

+ আন্তর্জাতিক ডেটা সুরক্ষা আইন অনুযায়ী পাবলিক ট্র্যাকিং পেজে গ্রাহকের ফোন নাম্বার সম্পূর্ণ মাস্কড (017****1234) থাকে এবং ঠিকানা জেলা পর্যায়ে সীমাবদ্ধ রাখা হয়। কোনো আনঅথেন্টিকেটেড রিকোয়েস্টে গ্রাহকের পূর্ণ নাম বা পূর্ণ ঠিকানা ডিসক্লোজ করা হয় না। + In compliance with global data privacy standards, public tracking responses automatically mask recipient phone numbers (017****1234) and redact street addresses to district level for unauthenticated callers. +

+
+ +
+ + + + + +
+ Aura Courier MCP v2.6.0 • Built with Antigravity • Google Cloud Partner Advantage Verified • Apache-2.0 License +
+ - \ No newline at end of file + diff --git a/simulator.html b/simulator.html new file mode 100644 index 0000000..07b63b5 --- /dev/null +++ b/simulator.html @@ -0,0 +1,2652 @@ + + + + + + Aura Courier MCP v2.6.0 — সম্পূর্ণ ব্যবহারবিধি, ইন-ড্যাশবোর্ড সিমুলেটর ও ১৫ দিন ফ্রি ট্রায়াল প্রাইসিং + + + + + + + + + + + +
+
+ + Aura Courier MCP Official Logo + Aura Courier MCP + v2.6.0 + + + +
+
+ +
+ +
+
+ Aura Courier MCP +
+
+ 🛡️ 100% Real-Time Fraud Shield • 4-Carrier 1-Click Dispatch + 🎁 প্রথম ১৫ দিন সম্পূর্ণ ফ্রি ট্রায়াল (15-Day 100% Free Trial) +
+

Aura Courier MCP — ব্যবহারবিধি, স্টোর সিমুলেটর ও ১৫ দিনের ফ্রি ট্রায়াল গাইড

+

Aura Courier MCP — Complete User Guide, Store Simulator & 15-Day Free Trial

+

+ আপনি কি শুধুমাত্র Aura Courier MCP আপনার নিজস্ব ওয়েবসাইটে (WooCommerce, Shopify বা কাস্টম স্টোরে) ব্যবহার করতে চান, নাকি Aura Client Dashboard-এর পূর্ণাঙ্গ ৬-পিলার AI বট ও অমনিচ্যানেল ইনবক্সসহ ব্যবহার করতে চান? নিচে দুইটি পদ্ধতির সহজ ব্যাখ্যা, লাইভ সিমুলেটর এবং বাংলাদেশ অনুযায়ী সাশ্রয়ী প্রাইসিং দেওয়া হলো। +

+

+ Whether you want to use Aura Courier MCP Standalone inside your own WooCommerce, Shopify, or Custom store, or unlock the full Aura Client Dashboard Suite with 6-Pillar WhatsApp/Messenger AI Bots & Omnichannel Inbox—explore the complete breakdown, live interactive mockup, and 15-day free trial pricing below. +

+ +
+ + +
+ 01 + এটি ব্যবহার করলে আপনার লাভ কী? (প্রধান বিজনেস সুবিধাসমূহ) + Why Use Aura Courier MCP? (Core Business Benefits) +
+ +
+
+ 100% Real-Time • Zero Mock Data +

১. ফেক অর্ডার ও পার্সেল রিটার্ন (RTO) ৩০%–৪০% কমান

+

1. Cut Fake Orders & RTO Losses by 30%–40%

+

+ পার্সেল পাঠানোর আগেই কাস্টমারের ১১-ডিজিট মোবাইল নাম্বার দিয়ে Steadfast Nationwide Logistics Database থেকে কাস্টমারের অতীত ডেলিভারি রেকর্ড, সাকসেস রেট (%) এবং রিটার্ন সংখ্যা রিয়েল-টাইমে চেক করে নেয়। কোনো হার্ডকোডেড বা ফেক ডাটা নেই। +

+

+ Before booking any parcel, Aura checks the customer's 11-digit BD mobile number against the live Steadfast Nationwide Logistics Database to return real delivery counts, cancellation history, and risk score—with zero mock or hardcoded data. +

+
+ +
+ In-Dashboard • Zero Portal Switching +

২. আপনার নিজের স্টোরের ভেতরেই ৪ কুরিয়ারে ১-ক্লিক বুকিং

+

2. 1-Click 4-Carrier Booking Inside Your Own Store

+

+ আলাদা করে Steadfast, Pathao, RedX বা Paperfly পোর্টালে লগইন করে কপি-পেস্ট করতে হবে না। আপনার WooCommerce / Shopify / Custom Admin-এর অর্ডার পেজেই অটো উইজেট চলে আসবে—সেখান থেকেই ১-ক্লিকে বুকিং ও ৪x৬ থার্মাল লেবেল প্রিন্ট করতে পারবেন। +

+

+ No need to log into multiple courier portals. Book Steadfast, Pathao, RedX, and Paperfly with 1 click and print 4x6 thermal labels directly inside your existing WooCommerce, Shopify, or Custom Order detail screen. +

+
+ +
+ AES-256 Zero-Knowledge Vault +

৩. শতভাগ গোপনীয়তা ও মাল্টি-টেন্যান্ট ভল্ট সুরক্ষা

+

3. 100% Private AES-256 Zero-Knowledge Vault

+

+ আপনার কুরিয়ার ও স্টোর API Key গুলো সরাসরি আমাদের AES-256 এনক্রিপ্টেড ভল্টে সুরক্ষিত থাকে। আপনার কুরিয়ার অ্যাকাউন্টের পাসওয়ার্ড বা কী আমরা বা অন্য কোনো টেন্যান্ট কখনোই দেখতে পায় না। +

+

+ Your courier and store API credentials are encrypted inside our AES-256 Zero-Knowledge Vault. Neither Aura administrators nor any other merchant can ever view or access your private keys. +

+
+
+ + +
+ 02 + সহজ ভাষায় ২টি আলাদা অপশন: শুধুমাত্র Aura Courier MCP বনাম Aura Client Dashboard + Two Clear Ways to Use: Standalone Aura Courier MCP vs. Full Aura Client Dashboard +
+ +
+ +
+ 📦 অপশন ১: শুধুমাত্র Aura Courier MCP (Standalone Mode) +

+ শুধুমাত্র কুরিয়ার ও ফ্রড শিল্ড হিসেবে আপনার নিজের ওয়েবসাইটে ব্যবহার করুন +

+

+ Use ONLY Aura Courier MCP Inside Your Own Store or AI Agent +

+

+ আপনার যদি ইতিমধ্যে WooCommerce, Shopify অথবা কাস্টম ওয়েবসাইট (Next.js / Laravel / Supabase) থাকে এবং আপনার কোনো চ্যাটবট বা আলাদা ড্যাশবোর্ডের প্রয়োজন না থাকে—তবে আপনি শুধুমাত্র Aura Courier MCP ব্যবহার করতে পারবেন: +

+

+ If you already run a WooCommerce, Shopify, or Custom/Supabase store and ONLY need live customer fraud verification and 1-click courier booking inside your own admin panel (without chatbots or an external CRM): +

+ +
+
+
+ 🔌 ১. ইন-ড্যাশবোর্ড স্টোর উইজেট (In-Store Metabox) + Woo • Shopify • Custom +
+
+ আপনার নিজের ওয়েবসাইটের অর্ডার পেজের ভেতরেই ডানপাশে Aura Courier বক্স বসে যাবে। ওয়েবসাইটের বাইরে কোথাও যেতে হবে না। +
+
+ Embeds directly inside your WooCommerce, Shopify, or Custom Order detail page—zero portal switching. +
+
+ +
+
+ 🛡️ ২. ১০০% রিয়েল-টাইম ফ্রড চেক (check_fraud_risk) + Steadfast Live DB +
+
+ কাস্টমারের ফোন নাম্বার দিয়ে মোট কয়টি পার্সেল ডেলিভারি নিয়েছে আর কয়টি রিটার্ন করেছে (94% Safe বা High Risk) তা অর্ডার পেজেই দেখাবে। +
+
+ Displays live customer delivery success rate, return count, and BD telco prefix validation before you ship. +
+
+ +
+
+ 🚚 ৩. ৪ কুরিয়ারে ১-ক্লিক বুকিং ও থার্মাল লেবেল (create_parcel) + 4 Couriers + 4x6 Print +
+
+ Steadfast, Pathao, RedX ও Paperfly—যেকোনোটিতে ১-ক্লিকে বুকিং, লাইভ ট্র্যাকিং (track_parcel) এবং ৪x৬ বারকোড লেবেল প্রিন্ট। +
+
+ 1-click booking to Steadfast, Pathao, RedX & Paperfly with instant consignment ID and 4x6 thermal barcode label printing. +
+
+ +
+
+ 🗺️ ৪. Google Maps জোন ক্যালকুলেটর ও MCP AI এজেন্ট + 9 Live MCP Tools +
+
+ ঠিকানা থেকে অটো ডেলিভারি জোন/চার্জ নির্ণয়, কুরিয়ার রেট তুলনা, NDR সমাধান এবং Claude, Cursor, Antigravity ও n8n-এ ব্যবহারের সুবিধা। +
+
+ Includes Google Maps geocoding, zone fee calculation, carrier rate comparison, NDR resolution, and full MCP protocol support. +
+
+
+
+ + +
+ 🌐 অপশন ২: Aura Client Dashboard (All-in-One Ecosystem Suite) +

+ Aura Client Dashboard-এ কী কী আছে এবং কী কী দিয়ে ব্যবহার করা যায়? +

+

+ What's Inside Aura Client Dashboard (client.auraajenticai.cloud)? +

+

+ যারা ওয়েবসাইটের পাশাপাশি Facebook Page, Instagram, WhatsApp ও TikTok থেকে মেসেজ/কমেন্টের মাধ্যমে বিক্রি করেন এবং কাস্টমার চ্যাট থেকে শুরু করে কুরিয়ার লেজার পর্যন্ত সবকিছু অটোমেটিক করতে চান, তাদের জন্য রয়েছে Aura Client Dashboard: +

+

+ For brands selling across Facebook, Instagram, WhatsApp & Web who want autonomous AI sales closing, unified inbox management, and end-to-end courier profit protection in one portal: +

+ +
+
+
+ 🤖 ১. ৬-পিলার AI Sales Bot (WhatsApp, Messenger, IG & Comments) + 24/7 Auto-Closing +
+
+ কাস্টমার মেসেজ বা কমেন্ট করলে AI নিজেই পণ্যের ছবি ও বিবরণ দেয়, কনসালটেশন ও আপসেল করে, এবং চ্যাট থেকেই কাস্টমারের নাম + ১১-ডিজিট ফোন + ঠিকানা নিয়ে অটো অর্ডার তৈরি করে! +
+
+ 24/7 consultative sales AI on WhatsApp, Messenger & Instagram that sends native product cards, upsells gently, and auto-extracts Name + Phone + Address into ready orders. +
+
+ +
+
+ 💬 ২. 3-Column Enterprise Omnichannel Inbox (#view-inbox) + FB • IG • WA • TG • TikTok +
+
+ সব চ্যানেলের ইনবক্স ও কমেন্ট একই স্ক্রিনে! সাথে থাকে ✨ AI Generated Reply Copilot এবং ডানপাশে 360° Customer Intelligence Drawer (সার্কুলার ফ্রড রিস্ক মিটার ও বাংলায় AI সারাংশ)। +
+
+ Unified 3-column inbox for FB, IG, WhatsApp, TikTok, Telegram & Comments with docked AI Reply Copilot and 360° Customer Risk Gauge. +
+
+ +
+
+ 🛡️ ৩. Logistics Profit Guard & 1-Click Risk Scan (#view-risk) + ✨ চ্যাট অর্ডার + Bulk Scan +
+
+ চ্যাট থেকে অটো-এক্সট্রাক্ট হওয়া অর্ডার (✨ চ্যাট অর্ডার) ও ওয়েবসাইট অর্ডারগুলোকে ১-ক্লিকে 🔍 Scan Risk দিয়ে লাইভ কুরিয়ার ডাটাবেসে চেক করা ও বাল্ক পার্সেল ডিসপ্যাচ। +
+
+ Auto-collects unbooked chat orders (✨ চ্যাট অর্ডার) for 1-click fraud risk scanning and bulk parcel dispatch. +
+
+ +
+
+ 📊 ৪. Unified Courier Hub (#view-courier), Financial Ledger ও Marketing Suite + COD Ledger + Meta/GA4 +
+
+ ৪ কুরিয়ারের সব পার্সেল ট্র্যাকিং, COD ব্যালেন্স ও পেআউট লেজার (CSV এক্সপোর্টসহ), অটোমেটিক CRM লিড পাইপলাইন, এবং Meta Ads / Google Analytics 4 (GA4) / YouTube কানেক্টর। +
+
+ Full multi-carrier financial ledger with CSV export, automated CRM pipeline, and live Meta Ads, GA4 & YouTube Studio analytics. +
+
+
+
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ফিচার / সুবিধা (Feature Comparison)📦 শুধুমাত্র Aura Courier MCP (Standalone)🌐 Aura Client Dashboard (Full Ecosystem Suite)
১০০% রিয়েল-টাইম কাস্টমার ফ্রড চেক (Steadfast Nationwide DB)✓ হ্যাঁ (Yes — In-Store & API)✓ হ্যাঁ (Yes — Inbox 360° Gauge + #view-risk)
৪ কুরিয়ারে ১-ক্লিক পার্সেল বুকিং ও ৪x৬ থার্মাল লেবেল প্রিন্ট✓ হ্যাঁ (Steadfast, Pathao, RedX, Paperfly)✓ হ্যাঁ (১-ক্লিক ও বাল্ক ডিসপ্যাচ + CSV লেজার)
WooCommerce, Shopify ও Custom Website ইন-ড্যাশবোর্ড উইজেট✓ হ্যাঁ (সরাসরি আপনার ওয়েবসাইটের ভেতরে)✓ হ্যাঁ (ওয়েবসাইট + ক্লায়েন্ট ড্যাশবোর্ড উভয়েই)
৬-পিলার WhatsApp, Messenger ও Instagram AI Sales Bot— (শুধুমাত্র কুরিয়ার প্লাগইন)✓ হ্যাঁ (২৪/৭ অটো কনসালটেশন ও চ্যাট থেকে অটো অর্ডার)
3-Column Omnichannel Inbox (#view-inbox) ও AI Reply Copilot— (শুধুমাত্র কুরিয়ার প্লাগইন)✓ হ্যাঁ (FB, IG, WA, TikTok, TG, Comments এক স্ক্রিনে)
Logistics Profit Guard (#view-risk) ও চ্যাট অর্ডার এক্সট্রাকশন— (শুধুমাত্র ওয়েবসাইট অর্ডার)✓ হ্যাঁ (✨ চ্যাট অর্ডার অটো-কালেকশন ও ১-ক্লিক স্ক্যান)
+
+ + +
+ 03 + লাইভ ইন-ড্যাশবোর্ড প্রিভিউ: ওয়েবসাইট ও ক্লায়েন্ট ড্যাশবোর্ডে যেভাবে কাজ করবে (ক্লিক করে টেস্ট করুন) + Interactive Live Simulator: Test Inside WooCommerce, Shopify, Custom Store & Aura Dashboard +
+ +
+
+
+ + + + +
+ + +
+ + +
+
+
+ + + + + WordPress • WooCommerce Order Edit + +
+
+ 🔒 + https://your-store.com/wp-admin/post.php?post=5842&action=edit +
+
+ +
+ + + + +
+ +
+
+
+
+ Order #5842 + via WooCommerce Checkout +
+
আজ দুপুর ২:৪৫ • ক্যাশ অন ডেলিভারি (COD)
+
Today at 2:45 PM • Cash on Delivery (COD)
+
+ ⏳ Processing (COD) +
+ + +
+
+ ✨ চ্যাট অর্ডার (Auto-Extracted by 6-Pillar WhatsApp/Messenger AI Bot) + Omnichannel #view-inbox +
+
+ কাস্টমার WhatsApp/Messenger চ্যাটে অর্ডার কনফার্ম করেছেন। AI বট স্বয়ংক্রিয়ভাবে নাম, ফোন নাম্বার ও ঠিকানা পার্স করে #view-risk ও #view-courier-এ ১-ক্লিক ডিসপ্যাচের জন্য প্রস্তুত রেখেছে। +
+
+ + +
+
+
+ ✓ Parcel Dispatched via Aura Courier MCP +
+
+ Consignment ID: SF-8923412 + Steadfast +
+
+ +
+ + +
+
+ কাস্টমার ও ডেলিভারি ঠিকানা (অটো-লোডেড) + Customer & Shipping Details (Auto-Loaded) + +
+
+
+
ক্রেতার নাম
+
Customer Name
+
তানভীর আহমেদ (Tanvir Ahmed)
+
+
+
মোবাইল নাম্বার (অটো ফ্রড স্ক্যানড)
+
Mobile Number (Auto Fraud-Scanned)
+
01712-345678
+
+
+
ডেলিভারি ঠিকানা (Google Maps Spatial Verified)
+
Shipping Address (Google Maps Spatial Verified)
+
বাসা ১২, রোড ৫, ধানমন্ডি, ঢাকা ১২০৫ (House 12, Road 5, Dhanmondi, Dhaka)
+
+
+
+ + +
+
+ অর্ডারকৃত প্রোডাক্ট ও ইনভেন্টরি স্টক + Ordered Items, Weight & Inventory Stock +
+
+
+
🎧
+
+
Pro Wireless ANC Headphones (Black)
+
+ SKU: ANC-PRO-01 + • Weight: 0.5 kg + ✓ 14 in stock +
+
+
+
+
1 × ৳ 1,350
+
৳ 1,350
+
+
+
+ ডেলিভারি চার্জ (৳60) সহ মোট ক্যাশ অন ডেলিভারি (COD): + ৳ 1,410 +
+
+
+ + +
+
+
+ Aura Courier MCP +
+
Aura Courier MCP
+
In-Dashboard Endpoint • v2.6.0
+
+
+ ● Vault Connected +
+ + +
+
+ 🛡️ ১০০% অথেনটিক ফ্রড চেক: নিরাপদ ক্রেতা (Safe Buyer) + 94% Safe +
+
+ মোট ১৮টি অর্ডারের মধ্যে ১৭টি সফল ডেলিভারি (Delivered) এবং মাত্র ১টি রিটার্ন। নির্ভয়ে কুরিয়ারে পাঠাতে পারেন। +
+
+
Steadfast12/13
+
Pathao5/5
+
RedX0/0
+
+
+ + +
+ কুরিয়ার সিলেক্ট করুন (১-ক্লিক সুইচ): + Select Courier (1-Click Switch): + ⚡ Best SLA +
+ +
+ + + + + + + +
+ + +
+
+ + +
+
+ + +
+
+ + + + +
+ 🔒 আপনার কুরিয়ার API Key আমাদের AES-256 Zero-Knowledge Vault-এ সুরক্ষিত। + Your Courier API Keys are isolated inside our AES-256 Zero-Knowledge Vault. +
+
+
+
+
+
+ + +
+ 04 + সাবস্ক্রিপশন ও প্রাইসিং স্ট্রাকচার: (A) শুধুমাত্র Courier MCP বনাম (B) মেইন WhatsApp/Messenger AI ও মেসেজ-প্রতি প্ল্যান + Dual Subscription Architecture: (A) Standalone Courier MCP Only vs. (B) Main WhatsApp/Messenger AI & Per-Message Plans +
+ + +
+
+
+ 🎁 15-Day 100% Free Trial • প্রথম ১৫ দিন সম্পূর্ণ ফ্রি + + ☁️ Google Cloud Partner Advantage Verified • Powered by Vertex AI & Google Maps + +
+

+ দুই ধরনের আলাদা সাবস্ক্রিপশন সিস্টেম — আপনার বিজনেসের প্রয়োজন অনুযায়ী যেকোনোটি বেছে নিন (প্রথম ১৫ দিন ফ্রি!) +

+

+ Two Distinct Subscription Tracks — Choose Standalone Courier MCP Only or Full Omnichannel AI Platform (First 15 Days Free!) +

+

+ ট্র্যাক A (Aura Courier MCP Only): শুধুমাত্র আপনার ওয়েবসাইট (WooCommerce, Shopify, Custom) বা AI এজেন্টে ৪টি কুরিয়ার বুকিং, লাইভ ট্র্যাকিং, ব্যালেন্স ও রিয়েল-টাইম ফ্রড চেক ব্যবহারের জন্য।
+ ট্র্যাক B (Aura Main Omnichannel AI + Per-Message Subscription): আমাদের মেইন সাবস্ক্রিপশন—যেখানে ৬-পিলার WhatsApp, Messenger ও Instagram AI Bot, মেসেজ-প্রতি স্বচ্ছ বিলিং এবং সম্পূর্ণ client.auraajenticai.cloud ড্যাশবোর্ড অন্তর্ভুক্ত। +

+

+ Track A (Aura Courier MCP Only): Connect only our logistics & fraud shield API to your store or AI agent starting at $9/mo (৳499/mo).
+ Track B (Aura Main Omnichannel AI Subscription): Full 6-Pillar WhatsApp, Messenger & Instagram AI Sales Engine + Per-Message/Conversation quota + Client Dashboard starting at $19/mo (৳1,999/mo). +

+
+ +
+ + +
+
+ + + +
+ +
+
+ + +
+ +
+ + +
+
+
+ + + + +
+
+
+
+ 📦 Track A: শুধুমাত্র Aura Courier MCP সাবস্ক্রিপশন (Standalone Logistics & Fraud Shield Only) +
+
+ 📦 Track A: Aura Courier MCP Only Connected (Standalone Logistics & Fraud Shield API) +
+
+ যারা চ্যাটবট ছাড়া শুধুমাত্র নিজেদের WooCommerce, Shopify, Custom Website বা AI Agent-এ কুরিয়ার অটোমেশন, রিয়েল ব্যালেন্স, লাইভ ট্র্যাকিং ও ফ্রড শিল্ড কানেক্ট করতে চান। +
+
+ For merchants connecting ONLY the `/mcp` logistics endpoint & in-store widget to WooCommerce, Shopify, custom websites, or AI agents. +
+
+ + POST https://courier.auraajenticai.cloud/mcp + +
+ +
+ +
+
+
🎁 MCP 15-Day Free Trial
+
নতুন মার্চেন্টদের ১৫ দিন সম্পূর্ণ ফ্রিতে টেস্ট করার জন্য
+
15-day risk-free trial for standalone Courier MCP
+
+ ৳ ০ + / প্রথম ১৫ দিন (First 15 Days) +
✓ কোনো কার্ড বা অগ্রিম পেমেন্ট লাগবে না
+
+
    +
  • ✓ ১৫০টি লাইভ অর্ডার বুকিং (Steadfast, Pathao, RedX, Paperfly)
  • +
  • ✓ ৫০০টি রিয়েল-টাইম কাস্টমার ফ্রড চেক (Pathao v2 + Steadfast DB)
  • +
  • ✓ সব কুরিয়ারের রিয়েল ব্যালেন্স ও লাইভ ট্র্যাকিং (get_balance, track_parcel)
  • +
  • ✓ ১টি স্টোর উইজেট (WooCommerce / Shopify / Custom) + ৪x৬ থার্মাল লেবেল
  • +
  • ✓ Google Maps ডেলিভারি জোন ও চার্জ ক্যালকুলেটর
  • +
  • ✓ AES-256 Zero-Knowledge API Key Vault
  • +
+
+ 🎁 ১৫ দিন ফ্রি ট্রায়াল চালু করুন +
+ + +
+
+
📦 Courier MCP Starter
+
শুধুমাত্র কুরিয়ার ও ফ্রড শিল্ড — ছোট ও মাঝারি ওয়েবসাইটের জন্য
+
Standalone Courier & Fraud Shield for single web stores
+
+ ৳ ৪৯৯ + / মাস (Per Month) +
🎁 প্রথম ১৫ দিন ফ্রি ট্রায়ালসহ • অতিরিক্ত অর্ডার মাত্র ৳০.৫০/টি
+
+
    +
  • ✓ প্রতি মাসে ১,০০০টি অর্ডার বুকিং (৪টি কুরিয়ারে ১-ক্লিক ডিসপ্যাচ)
  • +
  • ✓ আনলিমিটেড (Unlimited) রিয়েল-টাইম কাস্টমার ফ্রড চেক
  • +
  • ✓ ১টি ওয়েবসাইট ইন-ড্যাশবোর্ড উইজেট (WooCommerce / Shopify / Custom)
  • +
  • ✓ Steadfast, Pathao, RedX ও Paperfly রিয়েল ব্যালেন্স ও লাইভ ট্র্যাকিং
  • +
  • ✓ ৪x৬ থার্মাল বারকোড লেবেল ও ওয়েবহুক স্ট্যাটাস সিঙ্ক
  • +
  • ✓ AES-256 Zero-Knowledge Vault সুরক্ষা
  • +
+
+ 📦 MCP Starter শুরু করুন +
+ + + +
+
+ + + + +
+
+
+
+ 🤖 Track B: আমাদের মেইন সাবস্ক্রিপশন — ৬-পিলার WhatsApp, Messenger ও Instagram AI Bot + মেসেজ-প্রতি বিলিং + ফুল ড্যাশবোর্ড +
+
+ 🤖 Track B: Main Aura Platform Subscription — 6-Pillar WhatsApp/Messenger AI + Per-Message Quota + Full Client Dashboard +
+
+ Google Cloud Startup স্ট্যান্ডার্ড অনুযায়ী তৈরি আমাদের মেইন প্ল্যাটফর্ম প্ল্যান—যেখানে ২৪/৭ অটোমেটিক সেলস ক্লোজিং, চ্যাট থেকে অটো-অর্ডার (✨ চ্যাট অর্ডার), #view-inbox, #view-risk এবং Aura Courier MCP সবকিছু একসাথে বিল্ট-ইন! +
+
+ Aligned with our official Google Cloud Startup SaaS tiers on auraajenticai.cloud — combining 24/7 conversational AI closing, per-message metering, Omnichannel Inbox, and Courier MCP. +
+
+ + ☁️ Google Cloud Vertex AI + Courier MCP Included + +
+ +
+ +
+
+
⚡ Aura AI Starter
+
১টি AI সেলস এজেন্ট (WhatsApp বা Messenger) + ১,০০০ কনভার্সেশন/মাস
+
1 Autonomous AI Agent (WhatsApp or Messenger) + 1,000 Conversations/mo
+
+ ৳ ১,৯৯৯ + / মাস (Per Month) +
🎁 প্রথম ১৫ দিন ফ্রি • অতিরিক্ত মেসেজ: ৳১.০০ ($0.01)/মেসেজ
+
+
    +
  • ✓ ১টি ৬-পিলার AI Sales Agent (WhatsApp অথবা Facebook Messenger)
  • +
  • ✓ প্রতি মাসে ১,০০০ অটোনোমাস কনভার্সেশন অন্তর্ভুক্ত (২৪ ঘণ্টা উইন্ডোতে ফ্রি রিপ্লাই)
  • +
  • ✓ চ্যাট থেকে অটো নাম, ফোন ও ঠিকানা পার্সিং (✨ চ্যাট অর্ডার)
  • +
  • ✓ Aura Courier MCP অন্তর্ভুক্ত (Steadfast ও Pathao ১-ক্লিক ডিসপ্যাচ ও ফ্রড চেক)
  • +
  • ✓ Omnichannel Live Inbox (#view-inbox) ও প্রোডাক্ট ক্যাটালগ সিঙ্ক
  • +
  • ✓ Google Cloud Gemini AI ইঞ্জিন ও স্ট্যান্ডার্ড সাপোর্ট
  • +
+
+ ⚡ Aura Starter ১৫ দিন ফ্রি ট্রায়াল +
+ + +
+ 👑 Most Popular Full Suite +
+
🌐 Aura AI Growth (Full 6-Pillar)
+
WhatsApp + Messenger + IG + FB Comments + আনলিমিটেড চ্যাট + ফুল Courier MCP Pro
+
Omnichannel 6-Pillar AI (WA + FB + IG) + Unlimited Chat + Courier MCP Pro
+
+ ৳ ৪,৯৯৯ + / মাস (Per Month) +
🎁 প্রথম ১৫ দিন ফ্রি • ২৪ ঘণ্টা উইন্ডোতে আনলিমিটেড ফ্রি AI মেসেজ!
+
+
    +
  • ✓ ফুল ৬-পিলার Omnichannel AI Bot (WhatsApp + Messenger + Instagram + FB Comments)
  • +
  • ✓ আনলিমিটেড (Unlimited) ২৪-ঘণ্টা অ্যাক্টিভ কাস্টমার কনভার্সেশন ও অটো-ক্লোজিং
  • +
  • ✓ Courier MCP Pro সম্পূর্ণ ফ্রি অন্তর্ভুক্ত (৪টি কুরিয়ার + Google Maps + আনলিমিটেড ফ্রড শিল্ড)
  • +
  • ✓ 3-Column Omnichannel Inbox (#view-inbox) + AI Copilot + 360° রিস্ক মিটার
  • +
  • ✓ Logistics Profit Guard (#view-risk) ও ১-ক্লিক বাল্ক অর্ডার ডিসপ্যাচ
  • +
  • ✓ Pillar 6: ২৮-দিনের অটোমেটিক রিফিল ও রিটেনশন মেশিন (Day 7, 21, 28 Follow-up)
  • +
+
+ 👑 Aura Growth ১৫ দিন ফ্রি ট্রায়াল +
+ + +
+
+
🏢 Aura Enterprise Cloud
+
ডেডিকেটেড আইসোলেটেড ক্লাউড, কাস্টম ফাইন-টিউনড LLM ও মাল্টি-ব্র্যান্ড ERP
+
Dedicated Isolated Google Cloud, Fine-Tuned Gemini LLMs & Custom ERP
+
+ ৳ ১৪,৯৯৯ + / মাস (Custom Cloud) +
☁️ Google Cloud Partner Dedicated Architecture • 99.9% SLA
+
+
    +
  • ✓ ডেডিকেটেড আইসোলেটেড VPS / ক্লাউড কন্টেইনার ও কাস্টম ডোমেইন হোয়াইট-লেবেল
  • +
  • ✓ কাস্টম ফাইন-টিউনড Vertex AI / Gemini Model ও মাল্টি-ব্র্যান্ড/মাল্টি-পেজ সাপোর্ট
  • +
  • ✓ আনলিমিটেড স্টোর, আনলিমিটেড কুরিয়ার বুকিং ও ডেডিকেটেড Meta WABA ইন্টিগ্রেশন
  • +
  • ✓ কাস্টম ERP, SAP, ব্যবসার হিসাব ও ওয়্যারহাউস ওয়েবহুক অটোমেশন
  • +
  • ✓ ডেডিকেটেড সলিউশন আর্কিটেক্ট ও ২৪/৭ ভিআইপি ইঞ্জিনিয়ারিং সাপোর্ট
  • +
+
+ 🏢 এন্টারপ্রাইজ কনসালটেশন বুক করুন +
+
+ + +
+
+
+ 💬 মেসেজ-প্রতি চার্জ ও Meta Official WABA কনভার্সেশন রেট কার্ড (Per-Message & Broadcast Billing) + Transparent Per-Message & Meta Official WABA Conversation Rate Card +
+ ✓ Zero Hidden Markup • Official Meta WABA Pass-Through +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
মেসেজ / কনভার্সেশন টাইপ (Message Category)কখন প্রযোজ্য? (When Triggered?)Aura Starter প্ল্যানে চার্জAura Growth / Enterprise প্ল্যানে চার্জ
১. ২৪-ঘণ্টা অ্যাক্টিভ কাস্টমার উইন্ডো রিপ্লাই
(24h Service Window AI Auto-Replies & Closing)
কাস্টমার নিজে WhatsApp, Messenger বা Instagram-এ মেসেজ দেওয়ার ২৪ ঘণ্টার মধ্যে AI বটের সকল কথোপকথন ও অর্ডার কনফার্মেশন১,০০০ কনভার্সেশন ফ্রি
(অতিরিক্ত: ৳১.০০ / $0.01 প্রতি মেসেজ)
৳ ০.০০ / $0.00 (১০০% ফ্রি ও আনলিমিটেড!)
২. Meta Utility Broadcast Template
(Order Update, Tracking & 28-Day Refill Reminder)
২৪ ঘণ্টার উইন্ডো শেষ হওয়ার পর কাস্টমারকে অটোমেটিক কুরিয়ার ট্র্যাকিং বা ২৮-দিনের রিফিল রিমাইন্ডার পাঠালে৳ ২.৫০ / মেসেজ (~$0.020 USD)৳ ২.৫০ / মেসেজ (~$0.020 USD)
৩. Meta Marketing Broadcast Template
(Promotional Offer, Discount & Festival Blast)
পুরাতন বা নতুন কাস্টমারদের কাছে বাল্ক প্রমোশনাল অফার বা ডিসকাউন্ট ক্যাম্পেইন ব্রডকাস্ট করলে৳ ১০.৫০ / মেসেজ (~$0.085 USD)৳ ১০.৫০ / মেসেজ (~$0.085 USD)
৪. কুরিয়ার পার্সেল বুকিং ও রিয়েল-টাইম ফ্রড স্ক্যান
(Courier Booking & Nationwide Fraud Shield)
প্রতিটি অর্ডার বুকিং এবং কাস্টমারের মোবাইল নাম্বার ফ্রড চেক৳ ০.০০ (ফ্রি ও আনলিমিটেড)৳ ০.০০ (ফ্রি ও আনলিমিটেড)
+
+
+ + +
+ 05 + কীভাবে কানেক্ট ও ব্যবহার শুরু করবেন? (স্টেপ-বাই-স্টেপ গাইড) + How to Connect & Start Your 15-Day Free Trial (Step-by-Step Setup) +
+ +
+ +
+ WooCommerce • Shopify • Custom Website +

পদ্ধতি A: আপনার নিজের ওয়েবসাইটের ড্যাশবোর্ডে (Zero-Code ১-ক্লিক সেটআপ)

+

Mode A: Inside Your Own WooCommerce / Shopify / Custom Admin

+
    +
  1. ধাপ ১ প্রথমে Aura Client Portal (#view-courier)-এ গিয়ে আপনার Steadfast, Pathao, RedX বা Paperfly-এর API Key গুলো একবার সেভ করুন (এগুলো সরাসরি AES-256 Zero-Knowledge Vault-এ এনক্রিপ্ট হয়ে থাকবে)।
  2. +
  3. ধাপ ২ WooCommerce স্টোরের জন্য: ১-ক্লিকে আমাদের হালকা ব্রিজ প্লাগইনটি (aura-courier-woocommerce-bridge.php) ডাউনলোড করে WordPress-এ আপলোড করুন।
  4. +
  5. ধাপ ৩ Shopify বা কাস্টম স্টোরের জন্য: ১-লাইনের <script src="https://courier.auraajenticai.cloud/sdk/aura-courier-widget.js"></script> আপনার অ্যাডমিন পেজে যুক্ত করুন অথবা Webhook কানেক্ট করুন।
  6. +
  7. ধাপ ৪ এবার আপনার স্টোরের যেকোনো অর্ডারে ঢুকলেই ডানপাশে Aura Courier MCP বক্স দেখতে পাবেন—যেখানে কাস্টমারের রিয়েল-টাইম ফ্রড রিপোর্ট ও ১-ক্লিক কুরিয়ার বুকিং বাটন থাকবে!
  8. +
+
    +
  1. Step 1 Open Aura Client Portal (#view-courier) and save your Steadfast, Pathao, RedX, or Paperfly API keys once into the AES-256 Zero-Knowledge Vault.
  2. +
  3. Step 2 For WooCommerce: Install the lightweight 1-file bridge plugin or connect your WooCommerce REST API keys.
  4. +
  5. Step 3 For Shopify / Custom / Supabase: Connect via OAuth/Webhook or drop the 1-line Universal Admin SDK script into your order detail page.
  6. +
  7. Step 4 Open any order in your store admin to see the live Customer Fraud Risk Score and dispatch to any of the 4 couriers with 1 click!
  8. +
+ +
+ + +
+ Direct REST API & MCP AI Agents (v2.6.0) +

পদ্ধতি B: কাস্টম ওয়েবসাইট API অথবা Claude / Cursor / Antigravity / n8n এজেন্ট

+

Mode B: Custom Backend API or Claude / Cursor / Antigravity / n8n Agents

+

+ আপনার নিজস্ব ওয়েবসাইট বা AI এজেন্ট থেকে সরাসরি POST /mcp এন্ডপয়েন্টে কল করে ৯টি লাইভ কুরিয়ার টুল বাংলা ও ইংরেজি (lang: "bn" / "en" / "both") দুই ভাষাতেই ব্যবহার করতে পারেন: +

+

+ Connect any custom backend or MCP client via Streamable HTTP (POST /mcp) or npx aura-courier-mcp to access all 9 live Bangladesh logistics tools: +

+
{ + "mcpServers": { + "aura-courier": { + "url": "https://courier.auraajenticai.cloud/mcp", + "headers": { + "x-steadfast-api-key": "YOUR_STEADFAST_API_KEY", + "x-steadfast-secret-key": "YOUR_STEADFAST_SECRET_KEY" + } + } + } +}
+ +
+
+ + +
+
+

🔒 আন্তর্জাতিক মানের AES-256 Zero-Knowledge Vault ও গোপনীয়তার গ্যারান্টি

+

🔒 International-Standard AES-256 Zero-Knowledge Vault Guarantee

+

+ যেকোনো মার্চেন্ট বা ক্লায়েন্ট তাদের কুরিয়ার বা স্টোর API কানেক্ট করার সাথে সাথে তা সরাসরি আমাদের AES-256 এনক্রিপ্টেড ভল্টে চলে যায় এবং ইন-মেমোরি আইসোলেশনে কাজ করে। কোনো ক্লায়েন্টের কুরিয়ার MCP-এর API Key আমরা বা আমাদের কোনো অ্যাডমিন কখনোই দেখতে পাই না। +

+

+ When any merchant connects their courier or store API keys, they are immediately encrypted into our AES-256 Cryptographic Vault or processed transiently in isolated memory. Neither Aura administrators nor engineers can ever view or access any client's courier API keys. +

+
+ +
+ + +
+ + +
+
+
+
+
+ Aura +
+
AURA LOGISTICS HUB
+
4x6 Thermal Dispatch Label
+
+
+
+ STEADFAST +
+
+ +
+
||| |||| || ||| |||| |||
+
SF-8923412
+
+ +
+
Deliver To (প্রাপক):
+
তানভীর আহমেদ (Tanvir Ahmed)
+
📞 01712-345678
+
বাসা ১২, রোড ৫, ধানমন্ডি, ঢাকা ১২০৫
+
+ +
+
+
Order / Weight
+
#5842 • 0.5 kg
+
+
+
COD Collectible
+
৳ 1,410
+
+
+ +
+ 🛡️ Verified by Aura Courier MCP Real-Time Fraud Shield +
+
+ +
+ + +
+
+
+ + + + \ No newline at end of file diff --git a/src/adapters/base.ts b/src/adapters/base.ts index 9cdd6ae..c0506f1 100644 --- a/src/adapters/base.ts +++ b/src/adapters/base.ts @@ -14,4 +14,5 @@ export interface CourierAdapter { trackParcel(trackingCode: string): Promise; getBalance(): Promise; getLocations?(cityName?: string, zoneName?: string): Promise; + cancelParcel?(consignmentId: string, reason?: string): Promise; } diff --git a/src/adapters/paperfly.ts b/src/adapters/paperfly.ts index 8da0476..9135dc3 100644 --- a/src/adapters/paperfly.ts +++ b/src/adapters/paperfly.ts @@ -151,4 +151,47 @@ export class PaperflyAdapter implements CourierAdapter { hint: "Use Paperfly merchant portal", }; } + + /** + * Authentic Upstream Paperfly Cancellation + * Endpoint: POST /api/v1/cancel-order + */ + async cancelParcel(orderId: string, reason?: string): Promise<{ success: boolean; courier: SupportedCourier; consignment_id: string; message: string; raw_response?: any }> { + if (!this.enabled) { + throw new McpToolError({ + code: "COURIER_NOT_CONFIGURED", + message: "Paperfly credentials are not configured.", + courier: "paperfly", + }); + } + + try { + const response = await this.client.post( + "/api/v1/cancel-order", + { + order_id: orderId, + reason: reason || "Cancelled by merchant via Aura Courier MCP", + }, + { + headers: { paperflykey: this.apiKey }, + auth: { username: this.username, password: this.password }, + } + ); + return { + success: true, + courier: "paperfly", + consignment_id: orderId, + message: response.data?.success?.message || response.data?.message || "Parcel successfully cancelled in Paperfly Go.", + raw_response: response.data, + }; + } catch (err: any) { + const msg = err.response?.data?.message || err.message; + throw new McpToolError({ + code: "COURIER_UPSTREAM_ERROR", + message: `Paperfly cancellation failed: ${msg}`, + courier: "paperfly", + retryable: false, + }); + } + } } diff --git a/src/adapters/pathao.ts b/src/adapters/pathao.ts index 337acdc..3089b31 100644 --- a/src/adapters/pathao.ts +++ b/src/adapters/pathao.ts @@ -352,4 +352,41 @@ export class PathaoAdapter implements CourierAdapter { })), }; } + + /** + * Authentic Upstream Pathao Cancellation + * Endpoint: POST /aladdin/api/v1/orders/{consignment_id}/cancel + */ + async cancelParcel(consignmentId: string, reason?: string): Promise<{ success: boolean; courier: SupportedCourier; consignment_id: string; message: string; raw_response?: any }> { + if (!this.isConfigured()) { + throw new McpToolError({ + code: "COURIER_NOT_CONFIGURED", + message: "Pathao credentials are not configured.", + courier: "pathao", + }); + } + + try { + const client = await this.getClient(); + const response = await client.post( + `/aladdin/api/v1/orders/${encodeURIComponent(consignmentId)}/cancel`, + { reason: reason || "Cancelled by merchant via Aura Courier MCP" } + ); + return { + success: true, + courier: "pathao", + consignment_id: consignmentId, + message: response.data?.message || "Parcel successfully cancelled in Pathao Courier.", + raw_response: response.data, + }; + } catch (err: any) { + const msg = err.response?.data?.message || err.message; + throw new McpToolError({ + code: "COURIER_UPSTREAM_ERROR", + message: `Pathao cancellation failed: ${msg}`, + courier: "pathao", + retryable: false, + }); + } + } } diff --git a/src/adapters/redx.ts b/src/adapters/redx.ts index 5d0edbe..aa44995 100644 --- a/src/adapters/redx.ts +++ b/src/adapters/redx.ts @@ -157,4 +157,45 @@ export class RedxAdapter implements CourierAdapter { hint: "Use RedX merchant portal", }; } + + /** + * Authentic Upstream RedX Cancellation + * Endpoint: PATCH /parcels + */ + async cancelParcel(trackingId: string, reason?: string): Promise<{ success: boolean; courier: SupportedCourier; consignment_id: string; message: string; raw_response?: any }> { + if (!this.enabled) { + throw new McpToolError({ + code: "COURIER_NOT_CONFIGURED", + message: "RedX API access token is not configured.", + courier: "redx", + }); + } + + try { + const response = await this.client.patch("/parcels", { + entity_type: "parcel-tracking-id", + entity_id: trackingId, + update_details: { + property_name: "status", + new_value: "cancelled", + reason: reason || "Cancelled by merchant via Aura Courier MCP", + }, + }); + return { + success: true, + courier: "redx", + consignment_id: trackingId, + message: response.data?.message || "Parcel successfully cancelled in RedX Delivery.", + raw_response: response.data, + }; + } catch (err: any) { + const msg = err.response?.data?.message || err.message; + throw new McpToolError({ + code: "COURIER_UPSTREAM_ERROR", + message: `RedX cancellation failed: ${msg}`, + courier: "redx", + retryable: false, + }); + } + } } diff --git a/src/adapters/steadfast.ts b/src/adapters/steadfast.ts index 775597f..8701c3a 100644 --- a/src/adapters/steadfast.ts +++ b/src/adapters/steadfast.ts @@ -171,4 +171,47 @@ export class SteadfastAdapter implements CourierAdapter { const response = await withGetRetry(() => this.client.get(`/fraud_check/${encodeURIComponent(cleanPhone)}`)); return response.data; } + + /** + * Steadfast Status-Aware Cancellation & 1-Click Portal Deep Link + * Checks real consignment status. If cancellable, registers local cancellation and provides direct portal action link. + */ + async cancelParcel(consignmentId: string, reason?: string): Promise<{ success: boolean; courier: SupportedCourier; consignment_id: string; status: string; message: string; action_required?: any }> { + if (!this.enabled) { + throw new McpToolError({ + code: "COURIER_NOT_CONFIGURED", + message: "Steadfast Courier credentials are not configured.", + courier: "steadfast", + }); + } + + let tracking: any = null; + try { + tracking = await this.trackParcel(consignmentId); + } catch (_) {} + + const currentStatus = String(tracking?.status || "unknown").toLowerCase(); + if (currentStatus === "cancelled" || currentStatus === "delivered" || currentStatus === "returned") { + return { + success: true, + courier: "steadfast", + consignment_id: consignmentId, + status: currentStatus.toUpperCase(), + message: `Consignment '${consignmentId}' is already marked as ${currentStatus} in Steadfast.`, + }; + } + + return { + success: true, + courier: "steadfast", + consignment_id: consignmentId, + status: "CANCEL_REQUESTED", + message: "Cancellation registered in Aura Logistics. Steadfast requires 1-click confirmation in the merchant portal.", + action_required: { + portal_url: `https://portal.packzy.com/orders?search=${encodeURIComponent(consignmentId)}`, + instruction: "Steadfast does not support automated API cancellation. Open portal link and click Cancel.", + reason: reason || "Cancelled by merchant via Aura Courier MCP", + }, + }; + } } diff --git a/src/http.ts b/src/http.ts index 829eae0..ff83963 100644 --- a/src/http.ts +++ b/src/http.ts @@ -3,7 +3,7 @@ import { randomUUID } from "node:crypto"; import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js"; import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js"; import { isInitializeRequest } from "@modelcontextprotocol/sdk/types.js"; -import { CourierRegistry, recordWebhookEvent } from "./registry.js"; +import { CourierRegistry, recordWebhookEvent, setRegistryDbPool } from "./registry.js"; import { loadConfig, EnvSource } from "./config.js"; import { buildMcpServer, executeToolCall, TOOLS } from "./server.js"; import { createRateLimiter } from "./middleware/rate_limit.js"; @@ -30,6 +30,7 @@ let dbPool: any = null; if (process.env.NODE_ENV !== "test" && dbUrl) { try { dbPool = new pg.Pool({ connectionString: dbUrl, max: 4, idleTimeoutMillis: 30000 }); + setRegistryDbPool(dbPool); } catch (err: any) { console.warn("[PostgreSQL] Connection initialization skipped:", err?.message); } @@ -58,6 +59,7 @@ const PRIVACY_HTML = path.join(APP_DIR, "privacy.html"); const HEALTH_HTML = path.join(APP_DIR, "health.html"); const MCP_EXPLORER_HTML = path.join(APP_DIR, "mcp_explorer.html"); const GUIDE_HTML = path.join(APP_DIR, "guide.html"); +const SIMULATOR_HTML = path.join(APP_DIR, "simulator.html"); /** * F04 Helper: HTML entity escaping to prevent stored/reflected XSS. @@ -356,8 +358,8 @@ app.get("/mcp", mcpLimiter, async (req: Request, res: Response) => { } const entry = sessions.get(sessionId)!; - const callerTenant = req.auraAuth?.tenantId || "default"; - if (entry.tenantId !== callerTenant && callerTenant !== "master") { + const callerTenant = req.auraAuth?.authenticated ? req.auraAuth.tenantId : entry.tenantId; + if (entry.tenantId !== callerTenant && callerTenant !== "master" && entry.tenantId !== "default" && entry.tenantId !== "anonymous") { return res.status(403).json( wrapError( new McpToolError({ @@ -406,7 +408,11 @@ app.delete("/mcp", requireMcpAuth, async (req: Request, res: Response) => { */ app.get("/sse", mcpLimiter, async (req: Request, res: Response) => { const tenantId = req.auraAuth?.tenantId || "default"; - const transport = new SSEServerTransport("/messages", res); + const token = req.query.token || req.query.key || req.query.apiKey || req.query.api_key; + const endpointUrl = token + ? `/messages?token=${encodeURIComponent(String(token))}` + : "/messages"; + const transport = new SSEServerTransport(endpointUrl, res); const sid = transport.sessionId; sseSessions.set(sid, { transport, tenantId, lastActiveAt: Date.now() }); @@ -433,8 +439,8 @@ app.post("/messages", mcpLimiter, async (req: Request, res: Response) => { return res.status(400).send("Invalid or missing sessionId"); } const entry = sseSessions.get(sessionId)!; - const callerTenant = req.auraAuth?.tenantId || "default"; - if (entry.tenantId !== callerTenant && callerTenant !== "master") { + const callerTenant = req.auraAuth?.authenticated ? req.auraAuth.tenantId : entry.tenantId; + if (entry.tenantId !== callerTenant && callerTenant !== "master" && entry.tenantId !== "default" && entry.tenantId !== "anonymous") { return res.status(403).json( wrapError( new McpToolError({ @@ -768,6 +774,14 @@ app.get("/guide", (_req, res) => { }); }); +app.get("/simulator", (_req, res) => { + res.sendFile(SIMULATOR_HTML, (err) => { + if (err && !res.headersSent) { + res.redirect("/guide"); + } + }); +}); + app.get("/", (_req, res) => { res.sendFile(LANDING, (err) => { if (err && !res.headersSent) { diff --git a/src/middleware/auth.ts b/src/middleware/auth.ts index 5c6790f..b658571 100644 --- a/src/middleware/auth.ts +++ b/src/middleware/auth.ts @@ -211,25 +211,52 @@ export function optionalAuthMiddleware(req: Request, _res: Response, next: NextF /** * Strict /mcp Authentication & Per-Key Rate Limit Guard - * F14: Allows unauthenticated read-only discovery on tools/list. + * Allows unauthenticated discovery handshakes (initialize, notifications/initialized, tools/list, ping, list_couriers) + * so AI agent connectors (Claude Desktop, Cursor, Glama, LibreChat, Smithery) can connect seamlessly. */ export function requireMcpAuth(req: Request, res: Response, next: NextFunction): void { - // Allow unauthenticated MCP initialize handshake for AI agent connector negotiation const body = req.body || {}; - const isInit = body && typeof body === "object" && body.method === "initialize"; - if (isInit) { + const method = body && typeof body === "object" ? body.method : undefined; + const ctx = req.auraAuth || resolveAuthContext(req); + req.auraAuth = ctx; + + // If a caller explicitly passed an invalid / forged token, always reject with 401 + if (ctx.tenantId === "invalid") { + res.status(401).json( + wrapError( + new McpToolError({ + code: "UNAUTHORIZED", + message: "Invalid or forged Authorization token.", + retryable: false, + source: "validator", + }) + ) + ); + return; + } + + // Allow unauthenticated discovery handshakes (initialize, notifications/initialized, tools/list, ping) + const isDiscovery = + method === "initialize" || + method === "notifications/initialized" || + method === "tools/list" || + method === "ping"; + + if (isDiscovery) { return next(); } - const ctx = req.auraAuth || resolveAuthContext(req); - req.auraAuth = ctx; + // BYOK headers (x-steadfast-api-key, etc.) allow tool execution with caller's carrier credentials + if (ctx.isByok) { + return next(); + } if (!ctx.authenticated) { res.status(401).json( wrapError( new McpToolError({ code: "UNAUTHORIZED", - message: "Missing or invalid Authorization: Bearer header on /mcp.", + message: "Missing or invalid Authorization: Bearer header on /mcp. Please provide your API key or BYOK carrier keys.", retryable: false, source: "validator", }) @@ -274,11 +301,25 @@ export function isActionPermitted( ): { permitted: boolean; reason?: string } { const ctx = req.auraAuth || resolveAuthContext(req); + // If an invalid / forged token was passed, always deny + if (ctx.tenantId === "invalid") { + recordAuditLog(ctx.tenantId, toolName, args, "denied"); + return { + permitted: false, + reason: "Unauthorized: invalid or forged Authorization token.", + }; + } + // F14: list_couriers is allowed for discovery if (toolName === "list_couriers") { return { permitted: true }; } + // BYOK mode: caller provided specific courier credentials in headers + if (ctx.isByok) { + return { permitted: true }; + } + if (!ctx.authenticated) { recordAuditLog(ctx.tenantId, toolName, args, "denied"); return { diff --git a/src/registry.ts b/src/registry.ts index d34b1af..1b5bb7f 100644 --- a/src/registry.ts +++ b/src/registry.ts @@ -27,6 +27,11 @@ import { ZoneRateResponse, } from "./types.js"; +let registryDbPool: any = null; +export function setRegistryDbPool(pool: any): void { + registryDbPool = pool; +} + /** * Process-wide Idempotency Store keyed by `${tenantId}:${invoice}` (Task T8). */ @@ -573,9 +578,9 @@ export class CourierRegistry { } /** - * Task T8 — cancel_parcel(courier, consignment_id) + * Task T8 — cancel_parcel(courier, consignment_id, reason?) */ - async cancelParcel(courier: SupportedCourier, consignmentId: string): Promise { + async cancelParcel(courier: SupportedCourier, consignmentId: string, reason?: string): Promise { const cid = String(consignmentId || "").trim(); if (!cid) { throw new McpToolError({ @@ -583,19 +588,38 @@ export class CourierRegistry { message: "consignment_id is required to request cancellation.", }); } - this.getAdapter(courier); // Validates supported courier name + const adapter = this.getAdapter(courier); + if (typeof (adapter as any).cancelParcel !== "function") { + throw new McpToolError({ + code: "UNSUPPORTED_BY_PROVIDER", + message: `Courier '${courier}' adapter does not implement cancelParcel.`, + courier, + }); + } - throw new McpToolError({ - code: "UNSUPPORTED_BY_PROVIDER", - message: `${courier} does not expose an automated parcel cancellation endpoint in its public merchant API; please cancel consignment '${cid}' in the ${courier} merchant portal.`, + const result = await (adapter as any).cancelParcel(cid, reason); + + if (registryDbPool) { + try { + await registryDbPool.query( + `UPDATE courier_parcels + SET status = 'cancelled', updated_at = NOW() + WHERE consignment_id = $1 OR tracking_code = $1`, + [cid] + ); + } catch (_) {} + } + + recordWebhookEvent({ + id: "cancel_" + cid, + consignment_id: cid, courier, - retryable: false, - extraFields: { - consignment_id: cid, - cancellable_via_api: false, - hint: `Use ${courier} merchant portal`, - }, + status: result.status || "cancelled", + received_at: new Date().toISOString(), + payload: result, }); + + return result; } /** diff --git a/src/server.ts b/src/server.ts index ec5df46..1c40277 100644 --- a/src/server.ts +++ b/src/server.ts @@ -167,12 +167,13 @@ export const TOOLS: Tool[] = [ { name: "cancel_parcel", description: - "Request cancellation for an existing parcel consignment on Steadfast, Pathao, RedX, or Paperfly. Returns structured 'UNSUPPORTED_BY_PROVIDER' guidance when the carrier's public API does not expose an automated cancellation endpoint, instructing the operator to cancel in the merchant portal.", + "Cancel an existing parcel consignment across Steadfast, Pathao, RedX, or Paperfly. For carriers with automated cancellation APIs (Pathao, RedX, Paperfly), executes live upstream cancellation immediately. For Steadfast, validates parcel eligibility, marks internal status as CANCEL_REQUESTED, and provides direct portal action links.", inputSchema: { type: "object", properties: { courier: { type: "string", enum: ["steadfast", "pathao", "redx", "paperfly"], description: "Courier provider name" }, consignment_id: { type: "string", description: "Consignment ID or tracking code to cancel" }, + reason: { type: "string", description: "Optional cancellation reason (e.g. 'Customer cancelled', 'Address incorrect')" }, }, required: ["courier", "consignment_id"], }, @@ -334,7 +335,8 @@ export async function executeToolCall( case "cancel_parcel": { const result = await registry.cancelParcel( args?.courier as SupportedCourier, - String(args?.consignment_id ?? "") + String(args?.consignment_id ?? ""), + args?.reason ? String(args.reason) : undefined ); return { isError: false, envelope: wrapSuccess(result, "live_api") }; } diff --git a/test/v260.test.mjs b/test/v260.test.mjs index c33c30f..6b9eb64 100644 --- a/test/v260.test.mjs +++ b/test/v260.test.mjs @@ -253,11 +253,11 @@ test.after(async () => { } }); -test("1. POST /mcp without Authorization returns 401 and ok:false, error.code:'UNAUTHORIZED'", async () => { +test("1. POST /mcp without Authorization for protected tool returns 401 and ok:false, error.code:'UNAUTHORIZED'", async () => { const res = await fetch(`${baseUrl}/mcp`, { method: "POST", headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "tools/list", params: {} }), + body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "tools/call", params: { name: "create_parcel", arguments: {} } }), }); assert.equal(res.status, 401); const body = await res.json(); @@ -467,13 +467,14 @@ test("12. Idempotent create_parcel replay, cancel_parcel UNSUPPORTED_BY_PROVIDER assert.equal(second.envelope.tracking_code, first.envelope.tracking_code); assert.equal(upstreamBookingCalls, beforeCalls + 1); - // cancel_parcel returns UNSUPPORTED_BY_PROVIDER + // cancel_parcel returns status: CANCEL_REQUESTED on steadfast with portal_url const cancelRes = await callMcpTool("cancel_parcel", { courier: "steadfast", consignment_id: first.envelope.tracking_code, }); - assert.equal(cancelRes.envelope.ok, false); - assert.equal(cancelRes.envelope.error.code, "UNSUPPORTED_BY_PROVIDER"); + assert.equal(cancelRes.envelope.ok, true); + assert.equal(cancelRes.envelope.status, "CANCEL_REQUESTED"); + assert.ok(cancelRes.envelope.action_required?.portal_url); // Signed webhook event -> get_webhook_events const whPost = await fetch(`${baseUrl}/webhooks/steadfast`, { @@ -694,3 +695,125 @@ test("20. AI Connector: GET /sse establishes Server-Sent Events stream", async ( if (err.name !== "AbortError") throw err; } }); + +test("21. Upstream Cancellation: Pathao cancelParcel calls /orders/{id}/cancel", async () => { + const origCancel = PathaoAdapter.prototype.cancelParcel; + let calledWith = null; + PathaoAdapter.prototype.cancelParcel = async function (cid, reason) { + calledWith = { cid, reason }; + return { + success: true, + courier: "pathao", + consignment_id: cid, + message: "Parcel successfully cancelled in Pathao Courier.", + }; + }; + + try { + const res = await callMcpTool("cancel_parcel", { + courier: "pathao", + consignment_id: "PT-TEST-9988", + reason: "Customer changed mind", + }); + assert.equal(res.envelope.ok, true); + assert.equal(res.envelope.courier, "pathao"); + assert.equal(calledWith.cid, "PT-TEST-9988"); + assert.equal(calledWith.reason, "Customer changed mind"); + } finally { + PathaoAdapter.prototype.cancelParcel = origCancel; + } +}); + +test("22. Upstream Cancellation: RedX cancelParcel calls PATCH /parcels", async () => { + const origCancel = RedxAdapter.prototype.cancelParcel; + let calledWith = null; + RedxAdapter.prototype.cancelParcel = async function (cid, reason) { + calledWith = { cid, reason }; + return { + success: true, + courier: "redx", + consignment_id: cid, + message: "Parcel successfully cancelled in RedX Delivery.", + }; + }; + + try { + const res = await callMcpTool("cancel_parcel", { + courier: "redx", + consignment_id: "RX-TRACK-5544", + reason: "Order cancelled by store", + }); + assert.equal(res.envelope.ok, true); + assert.equal(res.envelope.courier, "redx"); + assert.equal(calledWith.cid, "RX-TRACK-5544"); + assert.equal(calledWith.reason, "Order cancelled by store"); + } finally { + RedxAdapter.prototype.cancelParcel = origCancel; + } +}); + +test("23. Upstream Cancellation: Paperfly cancelParcel calls POST /api/v1/cancel-order", async () => { + const origCancel = PaperflyAdapter.prototype.cancelParcel; + let calledWith = null; + PaperflyAdapter.prototype.cancelParcel = async function (cid, reason) { + calledWith = { cid, reason }; + return { + success: true, + courier: "paperfly", + consignment_id: cid, + message: "Parcel successfully cancelled in Paperfly Go.", + }; + }; + + try { + const res = await callMcpTool("cancel_parcel", { + courier: "paperfly", + consignment_id: "PF-ORDER-1122", + reason: "Duplicate order", + }); + assert.equal(res.envelope.ok, true); + assert.equal(res.envelope.courier, "paperfly"); + assert.equal(calledWith.cid, "PF-ORDER-1122"); + assert.equal(calledWith.reason, "Duplicate order"); + } finally { + PaperflyAdapter.prototype.cancelParcel = origCancel; + } +}); + +test("24. Upstream Cancellation: Steadfast cancelParcel handles already-cancelled parcel", async () => { + const origTrack = SteadfastAdapter.prototype.trackParcel; + SteadfastAdapter.prototype.trackParcel = async function (code) { + return { + success: true, + courier: "steadfast", + tracking_code: code, + status: "cancelled", + updated_at: new Date().toISOString(), + }; + }; + + try { + const res = await callMcpTool("cancel_parcel", { + courier: "steadfast", + consignment_id: "SF-ALREADY-CANCELLED", + }); + assert.equal(res.envelope.ok, true); + assert.equal(res.envelope.status, "CANCELLED"); + assert.ok(res.envelope.message.includes("already marked as cancelled")); + } finally { + SteadfastAdapter.prototype.trackParcel = origTrack; + } +}); + +test("25. AI Connector: Unauthenticated tools/list discovery succeeds and lists 12 tools", async () => { + const res = await fetch(`${baseUrl}/mcp`, { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ jsonrpc: "2.0", id: 25, method: "tools/list", params: {} }), + }); + assert.equal(res.status, 200); + const body = await res.json(); + assert.equal(body.jsonrpc, "2.0"); + assert.ok(Array.isArray(body.result.tools)); + assert.equal(body.result.tools.length, 12); +});