From 1d434233fac11c89289b75c09ad1de6ab485f0dd Mon Sep 17 00:00:00 2001 From: Amirul Islam Redwan71 Date: Mon, 9 Nov 2026 22:21:26 +0600 Subject: [PATCH] feat(v2.5.0): enterprise security hardening, zero hardcoded credentials, and Glama TDQS 5.0 audit compliance --- MASTER_OPERATIONS_MANUAL.md | 2 +- README.md | 17 ++++++++++++++--- dist/config.js | 18 +++++++++--------- dist/http.js | 2 +- dist/server.js | 18 +++++++++--------- package-lock.json | 8 ++++++-- package.json | 2 +- plugin.json | 2 +- server.json | 4 ++-- src/config.ts | 18 +++++++++--------- src/http.ts | 2 +- src/server.ts | 18 +++++++++--------- validate_plugin.js | 4 ++-- 13 files changed, 65 insertions(+), 50 deletions(-) diff --git a/MASTER_OPERATIONS_MANUAL.md b/MASTER_OPERATIONS_MANUAL.md index dbf8d17..3585b6f 100644 --- a/MASTER_OPERATIONS_MANUAL.md +++ b/MASTER_OPERATIONS_MANUAL.md @@ -1,4 +1,4 @@ -# 🚚 AURA COURIER MCP v2.4 — THE ENTERPRISE LOGISTICS MASTER MANUAL +# 🚚 AURA COURIER MCP v2.5.0 — THE ENTERPRISE LOGISTICS MASTER MANUAL ### Universal Multi-Carrier Logistics Engine, Spatial Intelligence Hub & Zero-Risk COD Gateway **Published by Aura Agentic AI · Architected with DeepMind Principles & Google Maps Platform** diff --git a/README.md b/README.md index 72f1efc..ed676e8 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# 🚚 AURA COURIER MCP v2.4.2 — THE ENTERPRISE LOGISTICS MASTER MANUAL +# 🚚 AURA COURIER MCP v2.5.0 — THE ENTERPRISE LOGISTICS MASTER MANUAL ### Universal Multi-Carrier Logistics Engine, Spatial Intelligence Hub & Zero-Risk COD Gateway **Published by Aura Agentic AI · Architected with DeepMind Principles & Google Maps Platform** [![Google Cloud Partner Advantage](https://img.shields.io/badge/Google_Cloud_Partner-Aura_Ajentic_AI-4285F4?logo=google-cloud&logoColor=white)](https://cloud.google.com/find-a-partner/partner/aura-ajentic-ai) [![auraajenticai/aura-courier-mcp MCP server](https://glama.ai/mcp/servers/auraajenticai/aura-courier-mcp/badges/score.svg)](https://glama.ai/mcp/servers/auraajenticai/aura-courier-mcp) -[![Antigravity Plugin](https://img.shields.io/badge/Antigravity_Plugin-v2.4.2-0676FF?logo=google&logoColor=white)](plugin.json) +[![Antigravity Plugin](https://img.shields.io/badge/Antigravity_Plugin-v2.5.0-0676FF?logo=google&logoColor=white)](plugin.json) [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Status](https://img.shields.io/badge/Status-Production%20Active-success.svg)](https://courier.auraajenticai.cloud) [![Node](https://img.shields.io/badge/Node-%3E%3D20.0.0-green.svg)](https://nodejs.org) @@ -341,7 +341,18 @@ Bundles the complete `courier-ops` skill (9 tools), `rules/COURIER_RULES.md` (sm --- -## 9. License & Legal Protection +## 9. Version History & Glama TDQS 5.0 Audit Log + +* **v2.5.0 (Nov 9, 2026)**: + - **Zero Hardcoded Credentials**: Purged all merchant secrets from repository code, enforcing strict runtime environment variable isolation. + - **Glama TDQS 5.0 Compliance**: Upgraded all 9 MCP tool definitions with explicit side-effects disclosure (state-mutating vs read-only), `when-to-use` vs `when-not-to-use` scenarios, and comprehensive parameter constraints. + - **Service Telemetry Update**: Updated `/health` endpoint to reflect v2.5.0 and automated release tag synchronization. +* **v2.4.2 (Nov 5, 2026)**: Official Google Antigravity Plugin bundle and partner advantage packaging. +* **v2.4.0 (Oct 22, 2026)**: Multi-carrier cascading auto-routing, rate comparison, and NDR dispute suite. + +--- + +## 10. License & Legal Protection Copyright © 2026 Aura Agentic AI . diff --git a/dist/config.js b/dist/config.js index 71a3b13..5d5c8d0 100644 --- a/dist/config.js +++ b/dist/config.js @@ -6,11 +6,11 @@ dotenv.config(); * entrypoint passes a per-request map built from that client's headers/query. */ export function loadConfig(src = process.env) { - const steadfastApiKey = src.STEADFAST_API_KEY || "e4pss5dglu3efhbgxlvx4nfgxizvpla5"; - const steadfastSecretKey = src.STEADFAST_SECRET_KEY || "8dityj8hfeuvkg4cmuafsmxk"; - const pathaoClientId = src.PATHAO_CLIENT_ID || "46dBOyYe79"; - const pathaoClientSecret = src.PATHAO_CLIENT_SECRET || "50yOJz09VSdfhzAaRMMeuiQ87lgrO1z8LmK0LbCb"; - const googleMapsKey = src.GOOGLE_MAPS_API_KEY || "AIzaSyByHxLB69J9h0f70irbNBPbzsbmDE0Innc"; + const steadfastApiKey = src.STEADFAST_API_KEY || ""; + const steadfastSecretKey = src.STEADFAST_SECRET_KEY || ""; + const pathaoClientId = src.PATHAO_CLIENT_ID || ""; + const pathaoClientSecret = src.PATHAO_CLIENT_SECRET || ""; + const googleMapsKey = src.GOOGLE_MAPS_API_KEY || ""; return { steadfast: { apiKey: steadfastApiKey, @@ -21,9 +21,9 @@ export function loadConfig(src = process.env) { pathao: { clientId: pathaoClientId, clientSecret: pathaoClientSecret, - username: src.PATHAO_USERNAME || "snehalatabestonline@gmail.com", - password: src.PATHAO_PASSWORD || "Redwan877091@&", - storeId: src.PATHAO_STORE_ID || "356230", + username: src.PATHAO_USERNAME || "", + password: src.PATHAO_PASSWORD || "", + storeId: src.PATHAO_STORE_ID || "", baseUrl: src.PATHAO_BASE_URL || "https://api-hermes.pathao.com", enabled: Boolean(pathaoClientId && pathaoClientSecret), }, @@ -37,7 +37,7 @@ export function loadConfig(src = process.env) { apiKey: src.PAPERFLY_API_KEY || "", username: src.PAPERFLY_USERNAME || "", password: src.PAPERFLY_PASSWORD || "", - storeName: src.PAPERFLY_STORE_NAME || "Aura Merchant", + storeName: src.PAPERFLY_STORE_NAME || "", baseUrl: src.PAPERFLY_BASE_URL || "https://api.paperfly.com.bd", enabled: Boolean(src.PAPERFLY_API_KEY && src.PAPERFLY_USERNAME), }, diff --git a/dist/http.js b/dist/http.js index 4d6cafe..ccbdf39 100644 --- a/dist/http.js +++ b/dist/http.js @@ -483,7 +483,7 @@ app.get("/health", (req, res) => { const data = { ok: true, service: "aura-courier-mcp", - version: "2.4.0", + version: "2.5.0", tools_count: TOOLS.length, spatial_engine: "Google Maps Platform (gmp_git_agentskills_v1)", fraud_engine: "Steadfast Nationwide API + BD Prefix Validator", diff --git a/dist/server.js b/dist/server.js index 3e084e8..25b70e1 100644 --- a/dist/server.js +++ b/dist/server.js @@ -4,12 +4,12 @@ import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextpro export const TOOLS = [ { name: "list_couriers", - description: "Show supported Bangladeshi couriers and spatial services, and check which credentials are active.", + description: "Inspect operational health, configuration status, and active API credentials for supported Bangladeshi courier networks (Steadfast, Pathao, RedX, Paperfly) and spatial routing services (Google Maps Platform). READ-ONLY DISCOVERY TOOL: Has zero external side effects and does not mutate database or carrier state. Use when initializing a session to verify which couriers are ready for order dispatch or balance checking. Do NOT use for querying shipment status (use 'track_parcel') or calculating shipping fees (use 'calculate_delivery_zone_and_fee').", inputSchema: { type: "object", properties: {}, required: [] }, }, { name: "create_parcel", - description: "Book a new parcel delivery across Bangladesh (Steadfast, Pathao, RedX or Paperfly) with normalized response.", + description: "Book and dispatch a physical parcel consignment across Bangladesh through Steadfast, Pathao, RedX, Paperfly, or AI smart cascading routing. STATE-MUTATING ACTION: This call creates a real, billable shipment record in the carrier's production database, assigns an official tracking code, and deducts courier fees upon pickup. Once booked, cancellations require direct courier portal operations. Use only after customer address and phone number are verified. Do NOT use for preliminary fee estimation (use 'calculate_delivery_zone_and_fee' or 'compare_courier_rates') or address validation (use 'validate_and_geocode_address'). Throws an error if required courier credentials are not configured or recipient phone is invalid.", inputSchema: { type: "object", properties: { @@ -31,7 +31,7 @@ export const TOOLS = [ }, { name: "track_parcel", - description: "Track real-time shipment delivery milestones and telemetry across Steadfast, Pathao, RedX, and Paperfly networks using consignment ID or tracking code. Returns normalized status (Booked, Picked Up, In Transit, Delivered, Returned), timestamps, and carrier telemetry.", + description: "Query live, real-time tracking milestones and delivery telemetry across Steadfast, Pathao, RedX, and Paperfly networks using consignment ID or tracking code. READ-ONLY OPERATION: Does not alter shipment state or carrier data. Returns normalized status (Booked, In Review, Picked Up, In Transit, Delivered, Partial Delivered, Cancelled, Returned), current location, carrier status notes, and timestamp history. Use when an end-customer or merchant inquires about existing shipment progress. Do NOT use for creating consignments (use 'create_parcel') or resolving failed deliveries (use 'resolve_ndr_issue'). Carrier provider is auto-detected from consignment prefix if omitted.", inputSchema: { type: "object", properties: { @@ -43,7 +43,7 @@ export const TOOLS = [ }, { name: "get_balance", - description: "Retrieve current merchant account balance and payout details from a courier.", + description: "Retrieve live merchant cash-on-delivery (COD) vault balance, pending disbursement amounts, and payout ledger from Steadfast or Pathao merchant portals. READ-ONLY FINANCIAL INQUIRY: Does not initiate payouts or mutate accounting ledgers. Use when accounting or merchant finance operators want to verify accrued COD collections or payout readiness. Do NOT use for customer balance or shipping quote estimation (use 'calculate_delivery_zone_and_fee'). Requires active merchant API keys for the requested courier; throws an error if unconfigured.", inputSchema: { type: "object", properties: { @@ -54,7 +54,7 @@ export const TOOLS = [ }, { name: "check_fraud_risk", - description: "100% Real Live nationwide courier fraud check across Bangladesh logistics networks (Steadfast nationwide API). Returns actual order delivery/cancellation counts, success rate, and risk evaluation. Zero mock data.", + description: "Screen a customer phone number against live nationwide Bangladesh logistics databases (millions of historical consignments) for delivery success rate, cancellation counts, and return fraud risk score. READ-ONLY DIAGNOSTIC QUERY: Zero mock data, authentic carrier telemetry only. Use before confirming high-value COD orders to screen for chronic returners or fake orders. Do NOT use for address geocoding (use 'validate_and_geocode_address') or parcel booking (use 'create_parcel'). Expects an 11-digit Bangladeshi mobile number ('01XXXXXXXXX').", inputSchema: { type: "object", properties: { @@ -65,7 +65,7 @@ export const TOOLS = [ }, { name: "validate_and_geocode_address", - description: "Validate and geocode a Bangladesh delivery address using Google Maps Platform Geocoding API with administrative sublocality (Thana, District, Division), exact lat/lng coordinates, and delivery confidence score.", + description: "Validate, clean, and geocode an unformatted Bangladesh delivery address into structured administrative boundaries (Thana, District, Division), rooftop latitude/longitude coordinates, and a deliverability confidence score (0-100) via Google Maps Platform Geocoding API with OpenStreetMap gazetteer fallback. READ-ONLY SPATIAL LOOKUP: Has zero side effects and does not mutate booking data. Use before booking parcels to detect spelling errors, verify Thana/District matching, and obtain precise coordinates. Do NOT use for calculating delivery fees or road routing distance (use 'calculate_delivery_zone_and_fee' instead).", inputSchema: { type: "object", properties: { @@ -78,7 +78,7 @@ export const TOOLS = [ }, { name: "calculate_delivery_zone_and_fee", - description: "Calculate standard delivery zone (inside Dhaka ৳80, sub Dhaka ৳100, outside Dhaka ৳150), road distance via Google Maps Routes API, estimated SLA turnaround, and applicable COD percentage for a single delivery address.", + description: "Calculate standard delivery zone (inside_dhaka ≤22km ৳80, sub_dhaka 22-45km ৳100, outside_dhaka >45km ৳150), actual road distance via Google Maps Platform Routes API (v2:computeRoutes), SLA turnaround time (24-72h), and applicable COD percentage for a SINGLE delivery destination. READ-ONLY ESTIMATION TOOL: Has zero external side effects and does NOT book shipments. Use when quoting shipping charges to a customer or determining flat delivery tiers for an order. Do NOT use if you need side-by-side multi-carrier tariff quotes with weight breaks and priority sorting across all 4 couriers (use 'compare_courier_rates' instead).", inputSchema: { type: "object", properties: { @@ -91,7 +91,7 @@ export const TOOLS = [ }, { name: "compare_courier_rates", - description: "Multi-carrier pricing and SLA comparison engine. Compares live rate quotes side-by-side across Steadfast, Pathao, RedX, and Paperfly based on weight, COD value, and priority (cheapest, fastest, balanced) to select the optimal logistics provider.", + description: "Execute side-by-side tariff, SLA, and COD collection fee comparisons across all four major Bangladeshi couriers (Steadfast, Pathao, RedX, Paperfly) for any destination nationwide. Evaluates exact parcel weight, declared COD amount, and optimization priority ('cheapest', 'fastest', 'balanced') to select the recommended courier. READ-ONLY CALCULATION ENGINE: Has zero external side effects and does not create orders. Use when deciding which carrier offers the best commercial rate or fastest SLA for a specific shipment before booking. Do NOT use for single flat-rate zone lookup (use 'calculate_delivery_zone_and_fee') or for actually booking the shipment (use 'create_parcel').", inputSchema: { type: "object", properties: { @@ -105,7 +105,7 @@ export const TOOLS = [ }, { name: "resolve_ndr_issue", - description: "Automate Non-Delivery Report (NDR) triage and resolution for failed courier delivery attempts. Generates WhatsApp re-engagement message to customer and official operational escalation/hold instructions for the carrier.", + description: "Automate Non-Delivery Report (NDR) triage and dispute resolution when a courier delivery attempt fails. GENERATION-ONLY TOOL (NO DIRECT DISPATCH): Generates empathetic, conversion-tested Bengali WhatsApp re-engagement copy for the customer and formal operational escalation tickets with hold instructions for the carrier. Does NOT send network messages or modify courier bookings automatically; output must be reviewed or dispatched through messaging channels. Use when a parcel status changes to failed attempt, customer phone off, or reschedule requested. Do NOT use for general order tracking (use 'track_parcel') or creating orders (use 'create_parcel').", inputSchema: { type: "object", properties: { diff --git a/package-lock.json b/package-lock.json index 89a4306..a3461be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "aura-courier-mcp", - "version": "2.4.2", + "version": "2.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "aura-courier-mcp", - "version": "2.4.2", + "version": "2.5.0", "license": "Apache-2.0", "dependencies": { "@modelcontextprotocol/sdk": "^1.12.0", @@ -1430,6 +1430,7 @@ "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz", "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==", "license": "MIT", + "peer": true, "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", @@ -1731,6 +1732,7 @@ "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.5.tgz", "integrity": "sha512-O6+/eCYRkzzzy0rPWwKLiGBR1nFuUPZynnwjxN1MBA62NNqbT0wQEzQyK2gSO5yDIDB336sXQleAhOHrzlYyKw==", "license": "MIT", + "peer": true, "engines": { "node": ">=16.9.0" } @@ -1996,6 +1998,7 @@ "resolved": "https://registry.npmjs.org/pg/-/pg-8.23.1.tgz", "integrity": "sha512-aL96AHANtWjPLDOLqnhx+ngp9+UK7ETEU8VJrDCGvsSSi/mGLcWYsS6Herg7lmaBJe4uwrfqsa7gTEFaSizDoQ==", "license": "MIT", + "peer": true, "dependencies": { "pg-connection-string": "^2.14.1", "pg-pool": "^3.14.0", @@ -2546,6 +2549,7 @@ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "license": "MIT", + "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/package.json b/package.json index 1719794..fe605a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aura-courier-mcp", - "version": "2.4.2", + "version": "2.5.0", "description": "Universal Bangladesh courier MCP server for Steadfast, Pathao, RedX, and Paperfly with zero-mock fraud risk, Google Maps routing, enterprise privacy, and token-bucket rate limiting.", "main": "dist/index.js", "type": "module", diff --git a/plugin.json b/plugin.json index e30c6e0..a259f30 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "name": "aura-courier", "displayName": "Aura Courier MCP", - "version": "2.4.2", + "version": "2.5.0", "category": "Business / Logistics", "description": "Enterprise Bangladesh Courier & Logistics Automation Hub. Real-time multi-carrier parcel dispatch, nationwide COD balance tracking, zero-mock fraud risk defense, sublocality geocoding, and automated NDR dispute triage across Steadfast, Pathao, RedX, and Paperfly.", "logo": "assets/logo.svg", diff --git a/server.json b/server.json index b964c59..bea3d76 100644 --- a/server.json +++ b/server.json @@ -3,7 +3,7 @@ "name": "io.github.auraajenticai/aura-courier-mcp", "title": "Aura Courier MCP", "description": "Bangladesh courier connector: Steadfast, Pathao, RedX, Paperfly normalized delivery and tracking.", - "version": "2.4.2", + "version": "2.5.0", "websiteUrl": "https://github.com/auraajenticai/aura-courier-mcp", "repository": { "url": "https://github.com/auraajenticai/aura-courier-mcp", @@ -13,7 +13,7 @@ { "registryType": "npm", "identifier": "aura-courier-mcp", - "version": "2.4.2", + "version": "2.5.0", "transport": { "type": "stdio" }, diff --git a/src/config.ts b/src/config.ts index f3af603..276e091 100644 --- a/src/config.ts +++ b/src/config.ts @@ -46,13 +46,13 @@ export type EnvSource = Record; * entrypoint passes a per-request map built from that client's headers/query. */ export function loadConfig(src: EnvSource = process.env): CourierConfig { - const steadfastApiKey = src.STEADFAST_API_KEY || "e4pss5dglu3efhbgxlvx4nfgxizvpla5"; - const steadfastSecretKey = src.STEADFAST_SECRET_KEY || "8dityj8hfeuvkg4cmuafsmxk"; + const steadfastApiKey = src.STEADFAST_API_KEY || ""; + const steadfastSecretKey = src.STEADFAST_SECRET_KEY || ""; - const pathaoClientId = src.PATHAO_CLIENT_ID || "46dBOyYe79"; - const pathaoClientSecret = src.PATHAO_CLIENT_SECRET || "50yOJz09VSdfhzAaRMMeuiQ87lgrO1z8LmK0LbCb"; + const pathaoClientId = src.PATHAO_CLIENT_ID || ""; + const pathaoClientSecret = src.PATHAO_CLIENT_SECRET || ""; - const googleMapsKey = src.GOOGLE_MAPS_API_KEY || "AIzaSyByHxLB69J9h0f70irbNBPbzsbmDE0Innc"; + const googleMapsKey = src.GOOGLE_MAPS_API_KEY || ""; return { steadfast: { @@ -64,9 +64,9 @@ export function loadConfig(src: EnvSource = process.env): CourierConfig { pathao: { clientId: pathaoClientId, clientSecret: pathaoClientSecret, - username: src.PATHAO_USERNAME || "snehalatabestonline@gmail.com", - password: src.PATHAO_PASSWORD || "Redwan877091@&", - storeId: src.PATHAO_STORE_ID || "356230", + username: src.PATHAO_USERNAME || "", + password: src.PATHAO_PASSWORD || "", + storeId: src.PATHAO_STORE_ID || "", baseUrl: src.PATHAO_BASE_URL || "https://api-hermes.pathao.com", enabled: Boolean(pathaoClientId && pathaoClientSecret), }, @@ -80,7 +80,7 @@ export function loadConfig(src: EnvSource = process.env): CourierConfig { apiKey: src.PAPERFLY_API_KEY || "", username: src.PAPERFLY_USERNAME || "", password: src.PAPERFLY_PASSWORD || "", - storeName: src.PAPERFLY_STORE_NAME || "Aura Merchant", + storeName: src.PAPERFLY_STORE_NAME || "", baseUrl: src.PAPERFLY_BASE_URL || "https://api.paperfly.com.bd", enabled: Boolean(src.PAPERFLY_API_KEY && src.PAPERFLY_USERNAME), }, diff --git a/src/http.ts b/src/http.ts index 9baca47..332dd32 100644 --- a/src/http.ts +++ b/src/http.ts @@ -517,7 +517,7 @@ app.get("/health", (req, res) => { const data = { ok: true, service: "aura-courier-mcp", - version: "2.4.0", + version: "2.5.0", tools_count: TOOLS.length, spatial_engine: "Google Maps Platform (gmp_git_agentskills_v1)", fraud_engine: "Steadfast Nationwide API + BD Prefix Validator", diff --git a/src/server.ts b/src/server.ts index 40f50d3..12a8ef2 100644 --- a/src/server.ts +++ b/src/server.ts @@ -11,12 +11,12 @@ import { SupportedCourier } from "./types.js"; export const TOOLS: Tool[] = [ { name: "list_couriers", - description: "Show supported Bangladeshi couriers and spatial services, and check which credentials are active.", + description: "Inspect operational health, configuration status, and active API credentials for supported Bangladeshi courier networks (Steadfast, Pathao, RedX, Paperfly) and spatial routing services (Google Maps Platform). READ-ONLY DISCOVERY TOOL: Has zero external side effects and does not mutate database or carrier state. Use when initializing a session to verify which couriers are ready for order dispatch or balance checking. Do NOT use for querying shipment status (use 'track_parcel') or calculating shipping fees (use 'calculate_delivery_zone_and_fee').", inputSchema: { type: "object", properties: {}, required: [] }, }, { name: "create_parcel", - description: "Book a new parcel delivery across Bangladesh (Steadfast, Pathao, RedX or Paperfly) with normalized response.", + description: "Book and dispatch a physical parcel consignment across Bangladesh through Steadfast, Pathao, RedX, Paperfly, or AI smart cascading routing. STATE-MUTATING ACTION: This call creates a real, billable shipment record in the carrier's production database, assigns an official tracking code, and deducts courier fees upon pickup. Once booked, cancellations require direct courier portal operations. Use only after customer address and phone number are verified. Do NOT use for preliminary fee estimation (use 'calculate_delivery_zone_and_fee' or 'compare_courier_rates') or address validation (use 'validate_and_geocode_address'). Throws an error if required courier credentials are not configured or recipient phone is invalid.", inputSchema: { type: "object", properties: { @@ -38,7 +38,7 @@ export const TOOLS: Tool[] = [ }, { name: "track_parcel", - description: "Track real-time shipment delivery milestones and telemetry across Steadfast, Pathao, RedX, and Paperfly networks using consignment ID or tracking code. Returns normalized status (Booked, Picked Up, In Transit, Delivered, Returned), timestamps, and carrier telemetry.", + description: "Query live, real-time tracking milestones and delivery telemetry across Steadfast, Pathao, RedX, and Paperfly networks using consignment ID or tracking code. READ-ONLY OPERATION: Does not alter shipment state or carrier data. Returns normalized status (Booked, In Review, Picked Up, In Transit, Delivered, Partial Delivered, Cancelled, Returned), current location, carrier status notes, and timestamp history. Use when an end-customer or merchant inquires about existing shipment progress. Do NOT use for creating consignments (use 'create_parcel') or resolving failed deliveries (use 'resolve_ndr_issue'). Carrier provider is auto-detected from consignment prefix if omitted.", inputSchema: { type: "object", properties: { @@ -50,7 +50,7 @@ export const TOOLS: Tool[] = [ }, { name: "get_balance", - description: "Retrieve current merchant account balance and payout details from a courier.", + description: "Retrieve live merchant cash-on-delivery (COD) vault balance, pending disbursement amounts, and payout ledger from Steadfast or Pathao merchant portals. READ-ONLY FINANCIAL INQUIRY: Does not initiate payouts or mutate accounting ledgers. Use when accounting or merchant finance operators want to verify accrued COD collections or payout readiness. Do NOT use for customer balance or shipping quote estimation (use 'calculate_delivery_zone_and_fee'). Requires active merchant API keys for the requested courier; throws an error if unconfigured.", inputSchema: { type: "object", properties: { @@ -61,7 +61,7 @@ export const TOOLS: Tool[] = [ }, { name: "check_fraud_risk", - description: "100% Real Live nationwide courier fraud check across Bangladesh logistics networks (Steadfast nationwide API). Returns actual order delivery/cancellation counts, success rate, and risk evaluation. Zero mock data.", + description: "Screen a customer phone number against live nationwide Bangladesh logistics databases (millions of historical consignments) for delivery success rate, cancellation counts, and return fraud risk score. READ-ONLY DIAGNOSTIC QUERY: Zero mock data, authentic carrier telemetry only. Use before confirming high-value COD orders to screen for chronic returners or fake orders. Do NOT use for address geocoding (use 'validate_and_geocode_address') or parcel booking (use 'create_parcel'). Expects an 11-digit Bangladeshi mobile number ('01XXXXXXXXX').", inputSchema: { type: "object", properties: { @@ -72,7 +72,7 @@ export const TOOLS: Tool[] = [ }, { name: "validate_and_geocode_address", - description: "Validate and geocode a Bangladesh delivery address using Google Maps Platform Geocoding API with administrative sublocality (Thana, District, Division), exact lat/lng coordinates, and delivery confidence score.", + description: "Validate, clean, and geocode an unformatted Bangladesh delivery address into structured administrative boundaries (Thana, District, Division), rooftop latitude/longitude coordinates, and a deliverability confidence score (0-100) via Google Maps Platform Geocoding API with OpenStreetMap gazetteer fallback. READ-ONLY SPATIAL LOOKUP: Has zero side effects and does not mutate booking data. Use before booking parcels to detect spelling errors, verify Thana/District matching, and obtain precise coordinates. Do NOT use for calculating delivery fees or road routing distance (use 'calculate_delivery_zone_and_fee' instead).", inputSchema: { type: "object", properties: { @@ -85,7 +85,7 @@ export const TOOLS: Tool[] = [ }, { name: "calculate_delivery_zone_and_fee", - description: "Calculate standard delivery zone (inside Dhaka ৳80, sub Dhaka ৳100, outside Dhaka ৳150), road distance via Google Maps Routes API, estimated SLA turnaround, and applicable COD percentage for a single delivery address.", + description: "Calculate standard delivery zone (inside_dhaka ≤22km ৳80, sub_dhaka 22-45km ৳100, outside_dhaka >45km ৳150), actual road distance via Google Maps Platform Routes API (v2:computeRoutes), SLA turnaround time (24-72h), and applicable COD percentage for a SINGLE delivery destination. READ-ONLY ESTIMATION TOOL: Has zero external side effects and does NOT book shipments. Use when quoting shipping charges to a customer or determining flat delivery tiers for an order. Do NOT use if you need side-by-side multi-carrier tariff quotes with weight breaks and priority sorting across all 4 couriers (use 'compare_courier_rates' instead).", inputSchema: { type: "object", properties: { @@ -98,7 +98,7 @@ export const TOOLS: Tool[] = [ }, { name: "compare_courier_rates", - description: "Multi-carrier pricing and SLA comparison engine. Compares live rate quotes side-by-side across Steadfast, Pathao, RedX, and Paperfly based on weight, COD value, and priority (cheapest, fastest, balanced) to select the optimal logistics provider.", + description: "Execute side-by-side tariff, SLA, and COD collection fee comparisons across all four major Bangladeshi couriers (Steadfast, Pathao, RedX, Paperfly) for any destination nationwide. Evaluates exact parcel weight, declared COD amount, and optimization priority ('cheapest', 'fastest', 'balanced') to select the recommended courier. READ-ONLY CALCULATION ENGINE: Has zero external side effects and does not create orders. Use when deciding which carrier offers the best commercial rate or fastest SLA for a specific shipment before booking. Do NOT use for single flat-rate zone lookup (use 'calculate_delivery_zone_and_fee') or for actually booking the shipment (use 'create_parcel').", inputSchema: { type: "object", properties: { @@ -112,7 +112,7 @@ export const TOOLS: Tool[] = [ }, { name: "resolve_ndr_issue", - description: "Automate Non-Delivery Report (NDR) triage and resolution for failed courier delivery attempts. Generates WhatsApp re-engagement message to customer and official operational escalation/hold instructions for the carrier.", + description: "Automate Non-Delivery Report (NDR) triage and dispute resolution when a courier delivery attempt fails. GENERATION-ONLY TOOL (NO DIRECT DISPATCH): Generates empathetic, conversion-tested Bengali WhatsApp re-engagement copy for the customer and formal operational escalation tickets with hold instructions for the carrier. Does NOT send network messages or modify courier bookings automatically; output must be reviewed or dispatched through messaging channels. Use when a parcel status changes to failed attempt, customer phone off, or reschedule requested. Do NOT use for general order tracking (use 'track_parcel') or creating orders (use 'create_parcel').", inputSchema: { type: "object", properties: { diff --git a/validate_plugin.js b/validate_plugin.js index b09b62e..f4714fc 100644 --- a/validate_plugin.js +++ b/validate_plugin.js @@ -42,7 +42,7 @@ async function validateManifest() { assert(json.name === 'aura-courier', `name matches 'aura-courier' (got '${json.name}')`); assert(json.displayName === 'Aura Courier MCP', `displayName is 'Aura Courier MCP'`); - assert(json.version === '2.4.2', `version is '2.4.2'`); + assert(json.version === '2.5.0', `version is '2.5.0'`); assert(json.category === 'Business / Logistics', `category is 'Business / Logistics'`); assert(typeof json.description === 'string' && json.description.length > 20, 'description is informative'); assert(json.logo === 'assets/logo.svg', `logo points to 'assets/logo.svg'`); @@ -127,7 +127,7 @@ async function validateRemoteMcpServer() { params: { protocolVersion: '2024-11-05', capabilities: {}, - clientInfo: { name: 'antigravity-validator', version: '2.4.2' } + clientInfo: { name: 'antigravity-validator', version: '2.5.0' } } }) });