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.
⚡ ১. ৬০-সেকেন্ড রিমোট কুইকস্টার্ট 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:
# 1. Official SSE Transport (Claude Desktop / Cursor / Smithery)
https://courier.auraajenticai.cloud/sse?token=YOUR_API_KEY
# 2. Streamable HTTP Transport (LibreChat / Custom Gateways)
https://courier.auraajenticai.cloud/mcp?token=YOUR_API_KEY
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:
{
"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:
Name: aura-courier
Type: sse
URL: https://courier.auraajenticai.cloud/sse?token=aura_live_mcp_master_key_2026
🔐 ৩. অথেন্টিকেশন ও ক্রিপ্টোগ্রাফিক ভল্ট 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.
| অথেন্টিকেশন মেথডAuth Method | ব্যবহারের ক্ষেত্রUsage | অনুমতি ও এক্সেসPermissions |
|---|---|---|
Authorization: Bearer <KEY> |
HTTP Header | পূর্ণ Read ও Write পারমিশন। ১২টি টুলের অ্যাক্সেস। |
?token=<KEY> |
URL Query Parameter | রিমোট AI এজেন্ট (Cursor, Glama, Zapier) যেখানে কাস্টম হেডার দেওয়া যায় না। |
x-steadfast-api-key |
BYOK Request Headers | Bring Your Own Key মোড: সরাসরি গ্রাহকের কুরিয়ার অ্যাকাউন্ট ব্যবহার করে পার্সেল বুকিং। |
❌
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.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
courier |
string |
Required | steadfast | pathao | redx | paperfly |
consignment_id |
string |
Required | Tracking code or consignment ID to cancel |
reason |
string |
Optional | Reason for cancellation (e.g. "Customer changed mind") |
{
"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"
}
}
}
{
"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:
| Courier | API Endpoint | Method | Automation Status |
|---|---|---|---|
| Pathao | /aladdin/api/v1/orders/{id}/cancel |
POST |
১০০% রিয়েল-টাইম এপিআই ক্যানসেল |
| RedX | /parcels (property_name: status) |
PATCH |
১০০% রিয়েল-টাইম এপিআই ক্যানসেল |
| Paperfly | /api/v1/cancel-order |
POST |
১০০% রিয়েল-টাইম এপিআই ক্যানসেল |
| Steadfast | Status verification + Portal Deep-Link | GET / 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.
{
"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:
| Carrier | Webhook Endpoint | Authentication Signature |
|---|---|---|
| Steadfast | /webhooks/steadfast |
x-steadfast-signature বা secret token |
| Pathao | /webhooks/pathao |
x-pathao-signature (HMAC-SHA256) |
| RedX | /webhooks/redx |
x-redx-signature |
| Paperfly | /webhooks/paperfly |
x-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.