16 KiB
16 KiB
Changelog
[2.7.3] - 2026-11-27
Security, Reliability & Parity Hardening
- PostgreSQL Schema Alignment & Tenant SQL Isolation (
src/registry.ts,src/server.ts,src/http.ts): Alignedupdate_parcel,cancel_parcel, and the 90-day PII retention sweep with livecourier_parcelscolumns (customer_name,phone,address,raw->>'consignment_id') and enforcedAND tenant = $...isolation across updates, cancellations, and synthetic cancellation webhook events. - Spoof-Resistant Rate Limiter & OAuth Throttling (
src/middleware/rate_limit.ts,src/middleware/oauth.ts): EliminatedX-Forwarded-For/CF-Connecting-IPprivate-IP bypasses, validatedCF-Connecting-IPonly withCF-Ray+ public IP checks, and added dedicated rate limiting onPOST /oauth/register,POST /oauth/authorize, andPOST /oauth/token. - Safe Zero-Token Public Fraud Demo & Explorer (
src/http.ts,index.html,mcp_explorer.html): Replaced legacy browser demo tokens with a strictly rate-limited server-sidePOST /api/public/fraud-demoendpoint (10 req/min/IP, zero token exposure in HTML) and updated/mcpbrowser explorer for cleantools/listdiscovery and optional user-supplied Bearer tokens. - Defense-in-Depth
GET /mcpAuth & Query-Token Scrubbing (src/http.ts,src/middleware/auth.ts): Enforcedreq.auraAuth.authenticatedonGET /mcpSSE stream resumption, restricted query-string tokens strictly to/mcp&/ssewith immediate URL redaction andReferrer-Policy: no-referrer. - Multi-Stage Non-Root Docker Runtime & Full
2.7.3npm/Manifest Parity (Dockerfile,.github/workflows/ci.yml): ConvertedDockerfileto a deterministic 2-stagenpm ci --omit=devnon-root (USER node) runtime, addedgit diff --exit-code dist/in CI, cleaned repository metadata clutter, and synchronizedpackage.json,server.json,plugin.json, HTML docs, andnpmjs.orgtov2.7.3.
[2.7.2] - 2026-11-27
Critical Security & Idempotency Remediation
- Fail-Closed Secret Validation (
P0-01): Removed all fallback default keys; enforced strong minimum-entropy secrets on startup. - Webhook Signature & Replay Defense (
P0-02): Removed path-token bypass and secret header echo; added timing-safe secret validation,±10mtimestamp check, andHTTP 409duplicate event replay guard. - Auth-First BYOK & Anti-SSRF Carrier Host Allowlist (
P0-03,P1-01): Enforced authentication before BYOK evaluation, complete per-carrier credential bundles,/sseauth, officialhttps:carrier host allowlist, andmaxRedirects: 0. - Public Tracking Redaction & Durable Idempotency (
P1-02,P1-03,P1-04,P1-05): Sanitized public/track/:codeDTOs, added concurrent in-flight + PostgreSQL durableinvoiceidempotency, halted auto-cascade on ambiguous5xx/malformed upstream responses, and upgraded dependencies (0npm vulnerabilities).
[2.7.1] - 2026-11-24
Added & Improved (Global AI Partner Directory Readiness)
- MCP 2025-03-26 Tool Annotations (
src/server.ts): Added accuratetitle,readOnlyHint,destructiveHint,idempotentHint, andopenWorldHintannotations across all 13 tools (required by Anthropic Claude Connectors Directory, OpenAI ChatGPT Apps/Connectors Directory, and Google Antigravity Marketplace). - Expanded Global AI Partner OAuth Redirect Allowlist (
src/middleware/oauth.ts): Addedclaude.com(alongsideclaude.ai),cursor.com,cursor.sh,windsurf.com,codeium.com,perplexity.ai,mistral.ai,poe.com,huggingface.co,github.com,vscode.dev,raycast.com,zapier.com,make.com,n8n.io,n8n.cloud,pipedream.com, andactivepieces.com. - Official Antigravity Marketplace & MCP Registry Schema Parity: Added
"$schema": "https://antigravity.google/schemas/v1/plugin.json",privacyPolicyUrl, andtermsOfServiceUrltoplugin.json; alignedmcp_config.jsonto official Antigravity"serverUrl"format; updatedskills/courier-ops/SKILL.mdto all 13 live tools; added hosted"remotes"Streamable HTTP declaration toserver.json. - Terms of Service (
terms.html/GET /terms): Added official Terms of Service page linked from OAuth Consent UI andplugin.json.
[2.7.0] - 2026-11-24
Added
- Standard MCP OAuth 2.1 + PKCE (
S256) Authorization Server (src/middleware/oauth.ts):- RFC 9728 Protected Resource Metadata:
GET /.well-known/oauth-protected-resourceand/.well-known/oauth-protected-resource/mcp+WWW-Authenticatechallenge on all401 Unauthorized/mcpresponses (POST,GET,DELETE) with CORS exposure (Access-Control-Expose-Headers: mcp-session-id, WWW-Authenticate). - RFC 8414 Authorization Server Metadata:
GET /.well-known/oauth-authorization-serverand/.well-known/openid-configurationadvertising PKCES256,authorization_code, andrefresh_tokengrants. - RFC 7591 Dynamic Client Registration (
POST /oauth/register): Restart-proof HMAC-signed client IDs supporting Google Gemini (*.googleusercontent.com), Claude, ChatGPT, Antigravity, Cursor, VS Code, and RFC 8252 loopback redirects while strictly rejecting untrusted redirect hosts. - Silicon Valley Global Consent & Aura Cloud SSO (
GET/POST /oauth/authorize): Instant 1-click consent for signed-in Aura Cloud accounts (aura_accesscookie), native Continue with Google & Work Email sign-in viaauth.auraajenticai.cloud, Developer/Merchant API Key tab, 1-click Read-Only Sandbox for evaluators, and crisp inline vector SVG branding. - Gemini-Safe Non-Rotating Refresh & Dual-Auth (
POST /oauth/token,POST /oauth/revoke,src/middleware/auth.ts):application/x-www-form-urlencoded+ JSON token exchange with PKCES256, 180-day non-rotating refresh tokens (preventing Google Gemini unlinking), and full Dual-Auth compatibility preserving static Bearer API Keys, PostgreSQL dynamic keys (aura_courier_runtime), and BYOK carrier headers.
- RFC 9728 Protected Resource Metadata:
- Automated OAuth 2.1 Acceptance Suite (
test/oauth21.test.mjs): Full end-to-end verification of discovery, DCR, SSO cookie consent, Read-Only Sandbox, PKCES256, non-rotating refresh, Dual-Auth, and RFC 7009 revocation alongside all 25 existing tests.
[2.6.1] - 2026-11-13
Fixed & Changed
- Single-Source-of-Truth Release Parity (
src/version.ts): AddedAPP_VERSIONreadingpackage.jsondynamically sosrc/http.ts,src/server.ts, andsrc/index.tsremain 100% synchronized withpackage.json,server.json,plugin.json, Glama Releases, GitHub Releases, and the live web UI (v2.6.1). - Glama
pnpmDocker Build Compatibility: ExplicitExpresstype export insrc/http.tseliminatingTS2742under strict.pnpm/resolution. - Silicon Valley Iconography & Live Portal Polish: Replaced legacy glyph badges with crisp inline SVGs, upgraded RedX to its custom
RXmonogram badge, prevented header nav wrap, and restored live#hubmapcanvas network animation. - Config Identifier Parity: Aligned all client snippets in
configs/*and embedded portal drawers toaura-courier-mcp@2.6.1matchingpackage.jsonandserver.json.
[2.6.0] - 2026-11-10
Added
- Global Response Envelope (
src/envelope.ts): All 12 MCP tools now return a normalized{ ok, data, error, meta: { request_id, source, as_of } }envelope alongside existing top-level backward-compatible fields. Raw Axios error strings ("Request failed with status code ...") are strictly sanitized and replaced with typedEnvelopeErrorCodeentries (UNAUTHORIZED,INVALID_INPUT,CONSIGNMENT_NOT_FOUND,COURIER_NOT_CONFIGURED,COURIER_UPSTREAM_ERROR,UNSUPPORTED_BY_PROVIDER,DUPLICATE_INVOICE). - Task T1 — Authentication, Scopes, Per-Key Rate Limits & Webhook Verification (
src/middleware/auth.ts):POST /mcpnow strictly requiresAuthorization: Bearer <key>(HTTP 401+UNAUTHORIZEDenvelope when missing/invalid).- Supports
read(aura_ro_*) andwrite(aura_rw_*/ master) scopes, per-key sliding-window rate limits, tenant credential isolation (keysFromRequest), and privacy-safe audit logs (maskPhoneas017****1234,[REDACTED_ADDRESS]). /webhooks/{steadfast,pathao,redx,paperfly}verify inbound webhook signatures/tokens (HTTP 401on unsigned requests).
- Task T2 — Verified Draft-Only
resolve_ndr_issue: Verifiesconsignment_idviatrack_parcelfirst (returningCONSIGNMENT_NOT_FOUNDon bogus IDs), and returnsstatus: "DRAFT_GENERATED",actions_executed: [],requires_manual_execution: true, and conditional Bengali copy prefixed with"প্রস্তাবিত মেসেজ:". - Task T3 — Honest
get_balanceSemantics:Steadfastreturns liveamount_bdtandstatus: "OK";Pathao,RedX, andPaperflyreturnamount_bdt: null, pending_bdt: null, status: "UNSUPPORTED_BY_PROVIDER"with merchant portal hints (never a misleading numeric0). - Task T4 — Single Tariff Source of Truth (
src/tariffs.ts): UnifiedZONE_DEFINITIONSandCARRIER_TARIFF_TABLE(meta.source: "static_tariff") acrosscalculate_delivery_zone_and_feeandcompare_courier_rateswith structuredsla_hours: { min, max }and route-specificcoverage_notes. - Task T5 — Geocoding Accuracy & Thana Verification (
src/adapters/google_maps.ts):validate_and_geocode_addressderivesthana_resolvedstrictly from geocoder components (never echoingthana_input), capsconfidence_scoreat60whenlocation_type !== "ROOFTOP", and returnsmatch_quality: { road, house, area },needs_review, andwarnings[]. - Task T6 — Honest
check_fraud_riskTaxonomy (src/adapters/fraud_engine.ts): Returnsrisk_level: "INVALID_NUMBER"withdelivery_success_rate: nullfor invalid prefixes (01000000000),risk_level: "NO_HISTORY"withnullrates whensample_size === 0, anddata_sources,sample_size, andcoverage_note. - Task T7 — Multi-Courier
track_parcel& Bounded GET Retry: Auto-detects prefix, checks all configured couriers (couriers_checked), retries transient429/5xx/timeoutGETs viawithGetRetry, and returnsCONSIGNMENT_NOT_FOUNDwithout raw Axios strings. - Task T8 —
create_parcelDry-Run, Invoice Idempotency & 3 New Tools (12 Total Tools):create_parcelsupportsdry_run: true(zero upstream calls, returnswould_book_withandestimated_cost_bdt) and per-tenantinvoiceidempotency (idempotent_replay: true/false).- Added
cancel_parcel(courier, consignment_id),bulk_create_parcels(items[], dry_run?), andget_webhook_events(consignment_id?, since?).
- Task T9 — Hardened
/healthEndpoint: UnauthenticatedGET /healthreturns{ ok: true, version: "2.6.0" }only; full telemetry requires an admin Bearer token. - Automated CI Acceptance Suite (
test/v260.test.mjs): Added 12 mocked unit & acceptance tests covering allAGENTS.mdcriteria (npm test).
[2.5.5] - 2026-11-10
Added
- Live 4-Courier Balance, Settlement & Store Verification (
get_balance): Upgradedget_balanceto supportsteadfast,pathao,redx,paperfly, andallsimultaneously—querying live Packzy wallet balances (Steadfast), live OAuth 2.0 order/COD settlement ledgers & active stores (Pathao), live OpenAPI pickup stores (RedX), and live Basic Auth +paperflykeymerchant status (Paperfly). - Dual-Carrier Nationwide Fraud Shield (
check_fraud_risk): Integrated Pathao's live/aladdin/api/v1/user/successnationwide customer delivery history API alongside Steadfast's/fraud_check/{phone}API for 100% livetotal_parcels,total_delivered,total_cancelled, anddelivery_success_ratetelemetry. - Stateless + Stateful Dual-Mode
POST /mcpGateway: Added direct single-request JSON-RPC 2.0 execution fortools/callandtools/listonPOST /mcpwithout requiring a priormcp-session-idhandshake, while preserving full statefulStreamableHTTPServerTransportsessions for MCP clients. - Dual Subscription & Per-Message Pricing Architecture (
/guide#pricing): Structured two distinct Google Cloud Startup–aligned subscription tracks: Track A (Aura Courier MCP Only— Free Trial$0, Starter$9 / ৳499, Pro$19 / ৳999) and Track B (Aura Main Omnichannel AI + WhatsApp/Messenger + Per-Message Quota— Starter$19 / ৳1,999, Growth$49 / ৳4,999, Enterprise$149 / ৳14,999+ Meta WABA Per-Message Rate Card).
[2.5.4] - 2026-11-10
Added
- Standalone Courier MCP vs. Full Aura Client Dashboard Architecture Guide (
/guide#architecture): Added a comprehensive bilingual comparison and module breakdown explaining how merchants can use Aura Courier MCP Standalone inside WooCommerce/Shopify/Custom stores or upgrade to the full Aura Client Dashboard Suite (client.auraajenticai.cloud) with 6-Pillar WhatsApp/Messenger AI Bots, 3-Column Omnichannel Inbox (#view-inbox), and Logistics Profit Guard (#view-risk). - 4-Platform Interactive Simulator (
/guide#simulator): Upgraded the live simulator with a 4th interactive tab (🌐 Aura Client Dashboard) and dynamic Delivery Zone Switcher (Inside Dhaka,Sub-Dhaka,Outside Dhaka). - Bangladesh (
৳ BDT) & Global ($ USD) Pricing Structure + 15-Day Free Trial (/guide#pricing): Bound transparent 4-tier pricing (15-Day Free Trial৳0, Courier MCP Starter৳499/mo, Courier MCP Pro৳999/mo, and Aura Ecosystem Suite৳2,499/mo) with interactive BDT/USD and Monthly/Yearly toggles. - Clean Single-Line Navigation UI: Removed cluttering diagonal arrows (
↗) across the landing page and guide navigation bars.
[2.5.3] - 2026-11-10
Added
- Interactive In-Dashboard Store Simulator (
/guide): Added a full interactive store admin simulator directly insidehttps://courier.auraajenticai.cloud/guideallowing merchants to switch between WooCommerce (WP Admin), Shopify Admin, and Custom Website (Supabase), toggle Safe vs. High-Risk Fraud Customer telemetry, select any of the 4 Couriers (Steadfast, Pathao, RedX, Paperfly), book parcels with 1 click, and preview 4x6 Thermal Barcode Shipping Labels. - Official High-Res Brand Icon (
/assets/courier-logo.jpg): Integrated the official Aura Courier MCP brand icon across/guideand static assets. - GitHub Linguist Configuration (
.gitattributes): Marked static HTML documentation pages aslinguist-documentationso GitHub and Glama AI classify the repository language accurately asTypeScript.
All notable changes to Aura Courier MCP are documented in this file.
[2.5.2] - 2026-11-10
Added
- Bilingual User Guide & Business Benefits Hub (
GET /guide): Interactive Bengali & English guide (https://courier.auraajenticai.cloud/guide) covering 3-in-1 WooCommerce/Shopify integration, 6-Pillar WhatsApp/Messenger AI Bot harmony, Multi-Tenant Isolation, and MCP AI Agent setup. - Bilingual Real-Time Fraud Risk Output (
🇧🇩 বাংলা | 🇬🇧 English): UpgradedFraudRiskEngine.evaluateRiskand In-Dashboard Quick-Ship widget (/api/courier/quick-ship) with bilingual recommendations and 1-click language switching. - Repository Governance & Security Documentation: Added
SECURITY.md,CONTRIBUTING.md, andCHANGELOG.md.
[2.5.1] - 2026-11-10
Added
- Zero-Knowledge AES-256 Cryptographic Vault Policy (
/privacy): Documented strict Zero Admin Visibility guarantee for client courier API keys. - 3-in-1 Store Connection & In-Dashboard Quick-Ship Bridge: Added support for 1-Click WooCommerce Auto-Connect, Pre-Connected
.zipPlugin, and Shopify/Custom Store widgets.
[2.5.0] - 2026-11-09
Changed
- Glama TDQS 5.0 Compliance: Enhanced all 9 MCP tool descriptions with explicit side-effect declarations, disambiguation rules, and parameter constraints.
- Credential Isolation: Removed all fallback merchant credentials from source files in favor of runtime environment and header injection.