feat(antigravity): bundle official Antigravity Plugin v2.4.2 for Aura Courier MCP

This commit is contained in:
Amirul Islam Redwan71
2026-11-05 18:06:54 +06:00
parent a97b5218a2
commit a7ca6f700a
8 changed files with 550 additions and 0 deletions
+19
View File
@@ -2,7 +2,9 @@
### Universal Multi-Carrier Logistics Engine, Spatial Intelligence Hub & Zero-Risk COD Gateway ### Universal Multi-Carrier Logistics Engine, Spatial Intelligence Hub & Zero-Risk COD Gateway
**Published by Aura Agentic AI · Architected with DeepMind Principles & Google Maps Platform** **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) [![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)
[![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![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) [![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) [![Node](https://img.shields.io/badge/Node-%3E%3D20.0.0-green.svg)](https://nodejs.org)
@@ -310,6 +312,23 @@ Or connect directly via **Streamable-HTTP** URL:
* **Server URL**: `https://courier.auraajenticai.cloud/mcp` * **Server URL**: `https://courier.auraajenticai.cloud/mcp`
* **Client Protocol**: MCP Streamable-HTTP (`2024-11-05`) * **Client Protocol**: MCP Streamable-HTTP (`2024-11-05`)
### Google Antigravity Plugin (One-Click Marketplace Activation)
For Google Antigravity agents, activate directly via the [Antigravity Marketplace Card](https://cloud.google.com/find-a-partner/partner/aura-ajentic-ai):
```markdown
<plugin-card catalog-id="antigravity-plugins-partners/plugin/aura-courier"></plugin-card>
```
Or declare in your Antigravity `plugins.json`:
```json
{
"plugins": {
"aura-courier": {
"source": "https://github.com/auraajenticai/aura-courier-mcp"
}
}
}
```
Bundles the complete `courier-ops` skill (9 tools), `rules/COURIER_RULES.md` (smart auto-routing cascade & zero-mock policies), and `mcp_config.json`.
--- ---
## 8. Google Maps Platform Attribution & Legal Appendix ## 8. Google Maps Platform Attribution & Legal Appendix
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" role="img" aria-label="Aura Courier MCP app icon"><defs><linearGradient id="bg" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#04143e"/><stop offset=".6" stop-color="#0456cc"/><stop offset="1" stop-color="#03bb85"/></linearGradient><linearGradient id="box" x1="0" x2="1" y1="0" y2="1"><stop stop-color="#09bdfc"/><stop offset="1" stop-color="#0451de"/></linearGradient><linearGradient id="speed" x1="0" x2="1"><stop stop-color="#34ee60"/><stop offset="1" stop-color="#04cbe8"/></linearGradient></defs><rect x="16" y="16" width="992" height="992" rx="215" fill="url(#bg)"/><g transform="translate(95 155)"><path d="M35 230h265M90 300h205M65 370h230" fill="none" stroke="url(#speed)" stroke-width="36" stroke-linecap="round"/><path d="m300 220 225-115 236 111-227 118Z" fill="#139cff"/><path d="M300 220v266l234 132V334Z" fill="url(#box)"/><path d="M534 334v284l227-130V216Z" fill="#0750ce"/><path d="m393 174 234 119v137l40-23V270L436 152Z" fill="#fff"/><path d="M265 570c160 122 411 83 532-125" fill="none" stroke="url(#speed)" stroke-width="39" stroke-linecap="round"/></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

+8
View File
@@ -0,0 +1,8 @@
{
"mcpServers": {
"aura-courier": {
"url": "https://courier.auraajenticai.cloud/mcp",
"transport": "streamable-http"
}
}
}
+50
View File
@@ -0,0 +1,50 @@
{
"name": "aura-courier",
"displayName": "Aura Courier MCP",
"version": "2.4.2",
"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",
"suggestedPrompts": [
"Check nationwide delivery fraud risk for customer phone 01712345678",
"Compare delivery rates and SLAs for a 1.2kg parcel going to Dhanmondi, Dhaka",
"Book an auto-routed COD parcel of ৳2,400 to Agrabad, Chittagong via create_parcel"
],
"author": {
"name": "Aura Ajentic AI Cloud",
"email": "ceo@auraajenticai.cloud",
"url": "https://auraajenticai.cloud"
},
"partner": {
"organization": "Aura Ajentic AI",
"googleCloudPartnerUrl": "https://cloud.google.com/find-a-partner/partner/aura-ajentic-ai",
"tier": "Google Cloud Partner Advantage"
},
"homepage": "https://courier.auraajenticai.cloud",
"repository": {
"type": "git",
"url": "https://github.com/auraajenticai/aura-courier-mcp.git"
},
"license": "Apache-2.0",
"keywords": [
"courier",
"logistics",
"bangladesh",
"delivery",
"steadfast",
"pathao",
"redx",
"paperfly",
"cod",
"fraud-detection",
"geocoding",
"ecommerce"
],
"mcpServers": {
"aura-courier": {
"url": "https://courier.auraajenticai.cloud/mcp",
"transport": "streamable-http",
"description": "Universal Bangladesh Courier MCP Hub providing 9 live logistics tools"
}
}
}
+25
View File
@@ -0,0 +1,25 @@
# Aura Courier Logistics Master Operational Guidelines
When interacting with Bangladesh courier services, parcel bookings, fraud checks, or address validation, you MUST follow these operational guidelines:
## 1. Zero Mock Data Mandate
- Never return fabricated delivery percentages, fake risk scores, dummy balances, or mock tracking updates.
- All metrics must originate from live carrier APIs (Steadfast, Pathao, RedX, Paperfly) via the `aura-courier` MCP tools.
## 2. Smart Auto-Routing Hierarchy
- **Dhaka Metro**: Prioritize Pathao Express (12–24h SLA, ৳60) ➔ RedX ➔ Steadfast ➔ Paperfly.
- **Sub-Dhaka (Savar, Gazipur, Narayanganj, Keraniganj)**: Prioritize Paperfly (৳90) / Steadfast (৳100) ➔ Pathao ➔ RedX.
- **Outside Dhaka (64 Districts & Nationwide)**: Prioritize Steadfast Courier (nationwide door-to-door network) ➔ Paperfly (৳110) ➔ Pathao ➔ RedX.
## 3. Address Geocoding & Phone Sanitization
- Validate recipient phone numbers against `^01[3-9]\d{8}$` before booking.
- Parse addresses through Division ➔ District ➔ Thana/Upazila ➔ Sublocality ➔ Street hierarchy using Google Maps Platform Geocoding API (`validate_and_geocode_address`).
- Never send dummy city/zone IDs.
## 4. Multi-Tenant Security
- Isolate merchant credentials and consignment queries strictly by `tenant` and `clientId`.
## 5. Customer NDR Recovery Protocol
- Keep customer WhatsApp/SMS messages concise (2–3 sentences max).
- Use respectful honorifics: "স্যার" for tech/hardware service brands, "আপু/ভাইয়া" for retail/skincare brands.
- Never output markdown link brackets in customer chat copy.
+78
View File
@@ -0,0 +1,78 @@
# Aura Courier MCP — Master Operational Rules & Logistics Policies
These operational guidelines govern all automated and interactive parcel dispatches, fraud checks, tracking lookups, and customer communications executed by Antigravity agents across Bangladesh logistics networks.
---
## 1. Zero Mock Data Mandate (Absolute Standard)
1. **No Pseudo-Data or Hardcoded Metrics**:
- Never fabricate delivery success rates, return risk scores, carrier balances, or tracking milestones.
- All responses returned to the user or stored in system state must derive directly from authentic carrier APIs (Steadfast, Pathao, RedX, Paperfly) or Google Maps Platform.
2. **Transparent Error Reporting**:
- If a carrier endpoint returns an error, timeout, or authentication failure, report the exact authentic error code and message. Never suppress carrier errors with fabricated successful payloads.
---
## 2. Multi-Carrier Fallback & Smart Auto-Routing Hierarchy
When `courier: "auto"` is selected or when automatic order dispatch is triggered, agents and routing services MUST adhere to the following geographical and SLA priority matrix:
### Zone 1: Dhaka Metro
* **Primary Carrier**: `Pathao Express` (Fastest intraday SLA: 12–24h, ৳60 base fee).
* **First Failover**: `RedX Delivery` (Reliable metro coverage: ৳60 base fee).
* **Second Failover**: `Steadfast Courier` (Standard metro SLA).
* **Tertiary Failover**: `Paperfly Go`.
### Zone 2: Sub-Dhaka / Suburban Belt
*(Savar, Ashulia, Keraniganj, Gazipur, Tongi, Narayanganj)*
* **Primary Carriers**: `Paperfly Go` (৳90) / `Steadfast Courier` (৳100, 24–48h SLA).
* **First Failover**: `Pathao Express`.
* **Second Failover**: `RedX Delivery`.
### Zone 3: Outside Dhaka (Nationwide 64 Districts & Rural Upazilas)
* **Primary Carrier**: `Steadfast Courier` (Deepest nationwide door-to-door network covering all 495 upazilas with 99% fulfillment rate).
* **First Failover**: `Paperfly Go` (Strong union-level pickup network, ৳110).
* **Second Failover**: `Pathao Express`.
* **Third Failover**: `RedX Delivery`.
---
## 3. Address Geocoding & Validation Policies
1. **Hierarchy Extraction**:
- Every delivery address must be parsed into the standard Bangladeshi administrative hierarchy:
$$\text{Division} \longrightarrow \text{District} \longrightarrow \text{Thana / Upazila} \longrightarrow \text{Sublocality / Area} \longrightarrow \text{Street / House}$$
2. **Zero Dummy IDs Rule**:
- Never inject arbitrary or placeholder IDs (such as `recipient_city: 1, recipient_zone: 1` into Pathao's API), as this causes immediate HTTP 422 Unprocessable Entity errors.
- If zone or area cannot be unambiguously resolved via Google Maps Geocoding API (`gmp_git_agentskills_v1`), omit those specific fields so that Pathao or RedX server-side auto-populators resolve them from `recipient_address`.
3. **Bangladeshi Mobile Phone Validation**:
- Every recipient phone number MUST be validated against the official Bangladeshi mobile format:
```regex
^01[3-9]\d{8}$
```
- Strip leading country codes (`+880`, `880`, `00880`) and trim spaces or dashes before submitting to courier APIs.
---
## 4. Multi-Tenant Data & Credential Security
1. **Credential Isolation**:
- Merchant credentials (Steadfast API Key/Secret, Pathao OAuth client tokens, RedX bearer tokens, Paperfly credentials) are strictly client-scoped and stored encrypted via AES-256-GCM.
- An agent handling merchant A must NEVER read, reuse, or leak credentials belonging to merchant B.
2. **Consignment Scoping**:
- All parcel queries, balance checks, and CSV exports must enforce `tenant` and `clientId` filters. No cross-tenant order visibility is permitted.
---
## 5. Customer NDR Resolution & Communication Protocol
1. **Concise & Direct Copy**:
- When drafting WhatsApp or SMS recovery messages for failed delivery attempts (Non-Delivery Reports), limit the message to **2–3 sentences max**.
- State the issue clearly (e.g. rider could not reach by phone) and ask for a convenient reschedule date or alternate phone number.
2. **Polite Bengali Honorifics**:
- Always use respectful Bengali honorifics based on the merchant persona:
- For tech/service brands (e.g. Applix BD): address the customer respectfully as **"স্যার"** (never "আপু").
- For lifestyle/skincare brands (e.g. Glamour's Touch): address the customer warmly as **"আপু/ভাইয়া"**.
3. **Zero Raw Markdown Links**:
- In WhatsApp and SMS communications, never output raw markdown link syntax (`[text](url)`). Provide plain text URLs or clean formatted instructions.
+179
View File
@@ -0,0 +1,179 @@
---
name: courier-ops
description: >-
Universal Bangladesh Courier Operations & Logistics Automation. Use this skill when
booking parcels, tracking consignments, checking merchant COD balances, scanning customer
fraud/return risk, validating Bangladeshi street addresses, computing zone fees, comparing
carrier rates, or resolving NDR delivery issues across Steadfast, Pathao, RedX, and Paperfly.
---
# Bangladesh Courier Operations & Zero-Risk COD Hub (v2.4.2)
This skill provides complete operational runbooks, tool execution patterns, and domain intelligence for managing nationwide e-commerce logistics across Bangladesh via the **Aura Courier MCP** remote server (`https://courier.auraajenticai.cloud/mcp`).
---
## 1. Tool Catalog & Capabilities (9 Live Production Tools)
The remote MCP server exposes 9 specialized logistics tools:
### 1. `list_couriers`
* **Purpose**: Inspect currently configured carrier credentials (Steadfast, Pathao, RedX, Paperfly) and verify Google Maps Platform spatial routing readiness.
* **Input Schema**:
```json
{}
```
* **Sample Prompts**:
- "List all active couriers and check if Steadfast and Pathao APIs are connected."
- "Check carrier integration status and Google Maps Platform quota readiness."
---
### 2. `create_parcel`
* **Purpose**: Universal parcel booking engine with dynamic cascading fallback or explicit target carrier. Automatically injects merchant pickup warehouse IDs and resolves spatial parameters.
* **Input Schema**:
- `invoice` *(string, required)*: Unique order invoice identifier (e.g. `INV-1002`).
- `recipient_name` *(string, required)*: Customer's full name.
- `recipient_phone` *(string, required)*: 11-digit Bangladeshi mobile number (regex: `^01[3-9]\d{8}$`).
- `recipient_address` *(string, required)*: Complete delivery address including house, road, thana, and district.
- `cod_amount` *(number, required)*: Cash on delivery amount in BDT (pass `0` for prepaid orders).
- `courier` *(string, optional, enum: `["steadfast", "pathao", "redx", "paperfly", "auto"]`)*: Target carrier. Defaults to `"auto"` (AI zone and SLA routing).
- `note` *(string, optional)*: Rider delivery instructions (e.g. "হাতে পাওয়ার পর চেক করে নিবে").
- `item_weight` *(number, optional)*: Parcel weight in KG (default: `0.5`).
- `item_type` *(string, optional)*: Description of parcel contents (required by RedX).
- `value` *(number, optional)*: Declared value in BDT (defaults to `cod_amount`).
- `delivery_area_id` *(number, optional)*: RedX numeric delivery-area ID (auto-resolved if omitted).
- `pickup_store_id` *(number, optional)*: Merchant pickup store ID.
* **Sample Prompts**:
- "Book an auto-routed parcel for Tania Akter, phone 01711223344, address 'House 12, Road 4, Dhanmondi, Dhaka', COD ৳1,450, invoice 'GT-9081'."
- "Dispatch invoice 'APP-402' via Steadfast to 'Motaleb Plaza, Hatirpool, Dhaka', phone 01846548010, COD ৳3,500."
---
### 3. `track_parcel`
* **Purpose**: Real-time consignment, invoice, or tracking code lookup across all carrier networks. Normalizes milestones into a single chronological timeline: `Booked` ➔ `Picked Up` ➔ `In Transit` ➔ `Delivered` / `Returned`.
* **Input Schema**:
- `tracking_code` *(string, required)*: Consignment ID, consignment code, or merchant invoice number (e.g. `DS190926QZNGJT`, `SF12345678`, `REDX123`).
- `courier` *(string, optional, enum: `["steadfast", "pathao", "redx", "paperfly"]`)*: Carrier name. Auto-detected from prefix if omitted.
* **Sample Prompts**:
- "Track consignment DS190926QZNGJT and report current delivery status."
- "Check the latest tracking updates for Steadfast parcel SF987654."
---
### 4. `get_balance`
* **Purpose**: Retrieve merchant current COD balance, pending disbursement amounts, and payout ledger status directly from carrier accounts.
* **Input Schema**:
- `courier` *(string, required, enum: `["steadfast", "pathao"]`)*: Target carrier to inspect.
* **Sample Prompts**:
- "What is our current available COD balance in Steadfast?"
- "Check pending COD payouts on our Pathao merchant account."
---
### 5. `check_fraud_risk`
* **Purpose**: Query nationwide delivery history for any Bangladeshi mobile number across carrier databases. Returns total orders placed, delivered count, canceled/returned count, delivery success rate, and risk tier (`LOW`, `MEDIUM`, `HIGH`). **Zero Mock Data**.
* **Input Schema**:
- `phone` *(string, required)*: 11-digit Bangladeshi mobile number (e.g. `01712345678`).
* **Sample Prompts**:
- "Check delivery risk and cancel rate for customer phone 01911877091."
- "Scan fraud risk for 01606047055 before booking a ৳4,000 COD shipment."
---
### 6. `validate_and_geocode_address`
* **Purpose**: Parse unstructured Bangladeshi addresses into verified administrative divisions, districts, thanas/upazilas, and exact lat/lng coordinates using Google Maps Platform Geocoding API (`gmp_git_agentskills_v1`).
* **Input Schema**:
- `address` *(string, required)*: Full street or local address (e.g. "Road 11, House 24, Dhanmondi, Dhaka").
- `thana` *(string, optional)*: Thana or Upazila name.
- `district` *(string, optional)*: District name.
* **Sample Prompts**:
- "Geocode and validate this address: 'মিরপুর ১০, ব্লক সি, রোড ৪, বাসা ১২, ঢাকা'."
- "Parse administrative hierarchy for 'Agrabad C/A, Double Mooring, Chittagong'."
---
### 7. `calculate_delivery_zone_and_fee`
* **Purpose**: Classify delivery destination into standard logistics zones, calculate real driving distance via Google Maps Routes API v2, and determine customer delivery fees:
- **Inside Dhaka Metro**: ৳80 (12–24h SLA)
- **Sub-Dhaka / Suburban**: ৳100 (24–48h SLA)
- **Outside Dhaka (Nationwide)**: ৳150 (48–72h SLA)
* **Input Schema**:
- `recipient_address` *(string, required)*: Delivery destination address.
- `origin_address` *(string, optional)*: Merchant warehouse address (defaults to Dhaka Central Hub).
- `weight_kg` *(number, optional)*: Parcel weight in KG (default: `0.5`).
* **Sample Prompts**:
- "Calculate delivery zone, fee, and driving distance for 'Chasara, Narayanganj'."
- "What is the delivery fee and SLA for a 2.5kg parcel to Bogura Sadar?"
---
### 8. `compare_courier_rates`
* **Purpose**: Side-by-side multi-carrier tariff and SLA comparison engine. Compares base delivery fees, COD commission percentages, and transit times across Steadfast, Pathao, RedX, and Paperfly.
* **Input Schema**:
- `recipient_address` *(string, required)*: Delivery destination address anywhere in Bangladesh.
- `weight_kg` *(number, optional)*: Parcel weight in KG (default: `0.5`).
- `cod_amount` *(number, optional)*: Cash on delivery amount in BDT (default: `0`).
- `priority` *(string, optional, enum: `["cheapest", "fastest", "balanced"]`)*: Optimization goal.
* **Sample Prompts**:
- "Compare courier rates for a 1kg parcel of ৳2,000 COD going to Sylhet Zindabazar with 'cheapest' priority."
- "Show fastest vs cheapest courier options for Uttara Sector 3, Dhaka."
---
### 9. `resolve_ndr_issue`
* **Purpose**: Non-Delivery Report (NDR) automated triage. Diagnoses delivery exceptions (fake attempt by rider, customer phone off, wrong address, customer requested reschedule) and generates tailored Bengali customer WhatsApp recovery messages and carrier hold instructions.
* **Input Schema**:
- `consignment_id` *(string, required)*: Consignment tracking ID.
- `courier` *(string, required, enum: `["steadfast", "pathao", "redx", "paperfly"]`)*: Courier provider.
- `issue_type` *(string, required, enum: `["customer_phone_off", "reschedule_requested", "wrong_address", "customer_refused", "fake_attempt"]`)*: Reason for failed delivery.
- `customer_phone` *(string, optional)*: Customer mobile number.
- `customer_name` *(string, optional)*: Customer full name.
- `reschedule_date` *(string, optional)*: Preferred new delivery date.
- `corrected_address` *(string, optional)*: Updated delivery address.
* **Sample Prompts**:
- "Rider reported customer phone off for consignment SF88291. Generate NDR recovery WhatsApp copy and dispute instructions for Steadfast."
- "Customer requested Sunday delivery for Pathao consignment DS99120. Triage NDR issue with reschedule date 2026-11-08."
---
## 2. Progressive Disclosure & Order Lifecycle Workflow
When executing parcel fulfillment, follow this 4-step progressive lifecycle:
```
[Customer Address + Phone]
│
▼
Step 1: Pre-Dispatch Verification
├── check_fraud_risk(phone) ➔ Alert if return rate > 30%
└── validate_and_geocode_address(address) ➔ Resolve Thana & District
│
▼
Step 2: Rate & Route Optimization
├── calculate_delivery_zone_and_fee(address) ➔ Determine standard tariff
└── compare_courier_rates(address, weight, cod) ➔ Select best carrier
│
▼
Step 3: Order Booking
└── create_parcel(courier: 'auto' or target, invoice, details...)
│
▼
Step 4: Post-Dispatch Tracking & NDR
├── track_parcel(tracking_code) ➔ Monitor milestones
└── resolve_ndr_issue(...) ➔ Triggered on delivery exception
```
---
## 3. Best Practices & Operational Rules
1. **Zero Mock Data Mandate**:
- Never fabricate delivery stats or pseudo-random metrics.
- Always return authentic data from live carrier endpoints.
2. **Phone Number Sanitization**:
- Normalize Bangladeshi mobile numbers to 11 digits starting with `01` (e.g. `+88017...` ➔ `017...`).
3. **Address Quality**:
- Always verify that the address specifies at minimum: (1) District, (2) Thana/Upazila, and (3) Local area or street.
4. **Polite Bengali Communication**:
- When generating NDR recovery messages, keep them concise (2–3 sentences max), empathetic, and professional, using respectful honorifics ("স্যার" / "আপু/ভাইয়া").
+190
View File
@@ -0,0 +1,190 @@
/**
* Aura Courier MCP — Plugin Validation & Compliance Suite (v2.4.0)
* Corresponds to `agy plugin validate .` standards.
*/
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const PLUGIN_DIR = __dirname;
let passedChecks = 0;
let totalChecks = 0;
function assert(condition, message) {
totalChecks++;
if (condition) {
passedChecks++;
console.log(` [PASS] ${message}`);
} else {
console.error(` [FAIL] ${message}`);
process.exitCode = 1;
}
}
async function validateManifest() {
console.log('\n--- 1. Validating plugin.json Manifest ---');
const manifestPath = path.join(PLUGIN_DIR, 'plugin.json');
assert(fs.existsSync(manifestPath), 'plugin.json exists');
const content = fs.readFileSync(manifestPath, 'utf8');
let json;
try {
json = JSON.parse(content);
assert(true, 'plugin.json is valid JSON');
} catch (err) {
assert(false, `plugin.json JSON parse error: ${err.message}`);
return;
}
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.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'`);
assert(Array.isArray(json.suggestedPrompts) && json.suggestedPrompts.length === 3, `suggestedPrompts contains exactly 3 starter prompts`);
assert(json.author && json.author.name && json.author.email, 'author metadata is complete');
assert(json.partner && json.partner.googleCloudPartnerUrl.includes('aura-ajentic-ai'), 'Google Cloud Partner Advantage link is present');
assert(json.repository && (typeof json.repository === 'string' || json.repository.url), 'source repository is configured');
assert(json.repository.url.includes('auraajenticai/aura-courier-mcp'), 'repository points to official auraajenticai/aura-courier-mcp');
assert(json.license === 'Apache-2.0', 'license is Apache-2.0');
assert(Array.isArray(json.keywords) && json.keywords.length >= 5, 'keywords tags array is populated');
assert(json.mcpServers && json.mcpServers['aura-courier'] && json.mcpServers['aura-courier'].url, 'mcpServers declaration exists in manifest');
}
async function validateMcpConfig() {
console.log('\n--- 2. Validating mcp_config.json ---');
const mcpConfigPath = path.join(PLUGIN_DIR, 'mcp_config.json');
assert(fs.existsSync(mcpConfigPath), 'mcp_config.json exists');
const content = fs.readFileSync(mcpConfigPath, 'utf8');
const json = JSON.parse(content);
assert(json.mcpServers && json.mcpServers['aura-courier'], 'server aura-courier is declared');
assert(json.mcpServers['aura-courier'].url === 'https://courier.auraajenticai.cloud/mcp', 'remote MCP endpoint is https://courier.auraajenticai.cloud/mcp');
assert(json.mcpServers['aura-courier'].transport === 'streamable-http', 'transport is streamable-http');
}
async function validateAssets() {
console.log('\n--- 3. Validating Assets ---');
const logoPath = path.join(PLUGIN_DIR, 'assets', 'logo.svg');
assert(fs.existsSync(logoPath), 'assets/logo.svg exists');
const logoContent = fs.readFileSync(logoPath, 'utf8');
assert(logoContent.includes('<svg') && logoContent.includes('</svg>'), 'logo.svg is valid XML/SVG');
assert(logoContent.includes('viewBox="0 0 1024 1024"'), 'logo.svg is square 1024x1024 asset');
}
async function validateSkillsAndRules() {
console.log('\n--- 4. Validating Skills & Rules ---');
const skillPath = path.join(PLUGIN_DIR, 'skills', 'courier-ops', 'SKILL.md');
assert(fs.existsSync(skillPath), 'skills/courier-ops/SKILL.md exists');
const skillContent = fs.readFileSync(skillPath, 'utf8');
assert(skillContent.startsWith('---') && skillContent.includes('name: courier-ops'), 'skill has valid YAML frontmatter');
const expectedTools = [
'list_couriers',
'create_parcel',
'track_parcel',
'get_balance',
'check_fraud_risk',
'validate_and_geocode_address',
'calculate_delivery_zone_and_fee',
'compare_courier_rates',
'resolve_ndr_issue'
];
for (const tool of expectedTools) {
assert(skillContent.includes(`\`${tool}\``), `skill documents tool '${tool}'`);
}
const courierRulesPath = path.join(PLUGIN_DIR, 'rules', 'COURIER_RULES.md');
const agentsPath = path.join(PLUGIN_DIR, 'rules', 'AGENTS.md');
assert(fs.existsSync(courierRulesPath), 'rules/COURIER_RULES.md exists');
assert(fs.existsSync(agentsPath), 'rules/AGENTS.md exists');
const ruleContent = fs.readFileSync(courierRulesPath, 'utf8');
assert(ruleContent.includes('Zero Mock Data Mandate'), 'COURIER_RULES enforces Zero Mock Data');
assert(ruleContent.includes('Steadfast') && ruleContent.includes('Pathao') && ruleContent.includes('RedX') && ruleContent.includes('Paperfly'), 'all 4 carriers are governed');
assert(ruleContent.includes('Google Maps Platform'), 'Google Maps geocoding policy is defined');
}
async function validateRemoteMcpServer() {
console.log('\n--- 5. Validating Live Remote MCP Handshake & Tools ---');
const endpoint = 'https://courier.auraajenticai.cloud/mcp';
try {
const initRes = await fetch(endpoint, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json, text/event-stream'
},
body: JSON.stringify({
jsonrpc: '2.0',
id: 1,
method: 'initialize',
params: {
protocolVersion: '2024-11-05',
capabilities: {},
clientInfo: { name: 'antigravity-validator', version: '2.4.2' }
}
})
});
assert(initRes.status === 200, `initialize endpoint returned HTTP 200 (got ${initRes.status})`);
const sessionId = initRes.headers.get('mcp-session-id');
assert(!!sessionId, `mcp-session-id header received: ${sessionId}`);
const initData = await initRes.json();
assert(initData.result && initData.result.serverInfo && initData.result.serverInfo.name === 'aura-courier-mcp', 'serverInfo is aura-courier-mcp');
const toolsRes = await fetch(endpoint, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json, text/event-stream',
'mcp-session-id': sessionId
},
body: JSON.stringify({
jsonrpc: '2.0',
id: 2,
method: 'tools/list',
params: {}
})
});
assert(toolsRes.status === 200, `tools/list returned HTTP 200`);
const toolsData = await toolsRes.json();
const liveTools = toolsData.result?.tools || [];
assert(liveTools.length === 9, `exactly 9 tools returned by remote server (got ${liveTools.length})`);
const liveToolNames = liveTools.map(t => t.name);
console.log(` Live tools on server: [ ${liveToolNames.join(', ')} ]`);
assert(liveToolNames.includes('create_parcel'), 'create_parcel tool is live');
assert(liveToolNames.includes('check_fraud_risk'), 'check_fraud_risk tool is live');
assert(liveToolNames.includes('validate_and_geocode_address'), 'validate_and_geocode_address tool is live');
} catch (err) {
assert(false, `Remote MCP server connection error: ${err.message}`);
}
}
async function run() {
console.log('====================================================');
console.log(' Aura Courier MCP — Antigravity Plugin Validator ');
console.log('====================================================');
await validateManifest();
await validateMcpConfig();
await validateAssets();
await validateSkillsAndRules();
await validateRemoteMcpServer();
console.log('\n====================================================');
console.log(` Result: ${passedChecks}/${totalChecks} checks passed.`);
console.log('====================================================\n');
if (process.exitCode) {
process.exit(1);
}
}
run();