Compare commits
1 Commits
8aa306bf63
..
v2.7.1
| Author | SHA1 | Date | |
|---|---|---|---|
| f48c86c3f9 |
@@ -1,5 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
## [2.7.1] - 2026-11-24
|
||||
|
||||
### Added & Improved (Global AI Partner Directory Readiness)
|
||||
- **MCP 2025-03-26 Tool Annotations (`src/server.ts`)**: Added accurate `title`, `readOnlyHint`, `destructiveHint`, `idempotentHint`, and `openWorldHint` annotations 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`)**: Added `claude.com` (alongside `claude.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`, and `activepieces.com`.
|
||||
- **Official Antigravity Marketplace & MCP Registry Schema Parity**: Added `"$schema": "https://antigravity.google/schemas/v1/plugin.json"`, `privacyPolicyUrl`, and `termsOfServiceUrl` to `plugin.json`; aligned `mcp_config.json` to official Antigravity `"serverUrl"` format; updated `skills/courier-ops/SKILL.md` to all 13 live tools; added hosted `"remotes"` Streamable HTTP declaration to `server.json`.
|
||||
- **Terms of Service (`terms.html` / `GET /terms`)**: Added official Terms of Service page linked from OAuth Consent UI and `plugin.json`.
|
||||
|
||||
## [2.7.0] - 2026-11-24
|
||||
|
||||
### Added
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ RUN npm install --no-audit --no-fund
|
||||
COPY src ./src
|
||||
COPY assets ./assets
|
||||
COPY configs ./configs
|
||||
COPY README.md index.html guide.html health.html privacy.html mcp_explorer.html simulator.html ./
|
||||
COPY README.md index.html guide.html health.html privacy.html terms.html mcp_explorer.html simulator.html ./
|
||||
RUN npm run build
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# 🚚 AURA COURIER MCP v2.7.0 — THE ENTERPRISE LOGISTICS MASTER MANUAL
|
||||
# 🚚 AURA COURIER MCP v2.7.1 — 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**
|
||||
|
||||
[](https://cloud.google.com/find-a-partner/partner/aura-ajentic-ai)
|
||||
[](https://glama.ai/mcp/servers/auraajenticai/aura-courier-mcp)
|
||||
[](plugin.json)
|
||||
[](plugin.json)
|
||||
[](https://courier.auraajenticai.cloud/guide)
|
||||
[](https://opensource.org/licenses/Apache-2.0)
|
||||
[](https://courier.auraajenticai.cloud)
|
||||
@@ -227,7 +227,7 @@ curl -s https://courier.auraajenticai.cloud/health | jq
|
||||
```json
|
||||
{
|
||||
"ok": true,
|
||||
"version": "2.7.0"
|
||||
"version": "2.7.1"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -278,7 +278,7 @@ Add this configuration block to your client settings (`claude_desktop_config.jso
|
||||
"mcpServers": {
|
||||
"aura-courier": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "aura-courier-mcp@2.7.0"],
|
||||
"args": ["-y", "aura-courier-mcp@2.7.1"],
|
||||
"env": {
|
||||
"PORT": "8080",
|
||||
"GOOGLE_MAPS_API_KEY": "<GOOGLE_MAPS_API_KEY>",
|
||||
@@ -340,6 +340,8 @@ Bundles the complete `courier-ops` skill (9 tools), `rules/COURIER_RULES.md` (sm
|
||||
|
||||
## 9. Version History & Glama TDQS 5.0 Audit Log
|
||||
|
||||
* **v2.7.1 (Nov 24, 2026)**:
|
||||
- **Global AI Agent Partner Directory Certification Ready**: Added MCP 2025-03-26 tool annotations (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`) on all 13 tools, `claude.com` + global AI/automation OAuth partner redirects, official Antigravity `$schema` + `serverUrl` + 13-tool `SKILL.md`, Official MCP Registry `remotes` in `server.json`, live `/terms` Terms of Service, and npm `2.7.1` sync.
|
||||
* **v2.7.0 (Nov 24, 2026)**:
|
||||
- **Standard MCP OAuth 2.1 + PKCE (`S256`) + RFC 9728 / 8414 / 7591 DCR**: Native remote OAuth connectivity for **Google Gemini**, **Antigravity Marketplace**, **ChatGPT**, and **Claude Web** with 1-click Aura Cloud SSO, Google Sign-In, Developer API Key Dual-Auth, and non-rotating refresh tokens.
|
||||
- **13 Live Logistics & Spatial Tools + Full Glama / Antigravity Plugin Parity**: Synchronized all manifests (`package.json`, `plugin.json`, `server.json`, `validate_plugin.js`) and expanded automated tests (`30+` passing).
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ Connect any AI Agent / IDE to Aura Courier MCP in seconds.
|
||||
- **Server-Sent Events / SSE (Claude Desktop, Remote SSE)**:
|
||||
`https://courier.auraajenticai.cloud/sse`
|
||||
- **NPX Direct CLI**:
|
||||
`npx -y aura-courier-mcp@2.7.0`
|
||||
`npx -y aura-courier-mcp@2.7.1`
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"aura-courier-local": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "aura-courier-mcp@2.7.0"],
|
||||
"args": ["-y", "aura-courier-mcp@2.7.1"],
|
||||
"env": {
|
||||
"PORT": "8080"
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
},
|
||||
"aura-courier-stdio": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "aura-courier-mcp@2.7.0"]
|
||||
"args": ["-y", "aura-courier-mcp@2.7.1"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+8
@@ -48,6 +48,7 @@ const PORT = Number(process.env.PORT || 8080);
|
||||
const APP_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const LANDING = path.join(APP_DIR, "index.html");
|
||||
const PRIVACY_HTML = path.join(APP_DIR, "privacy.html");
|
||||
const TERMS_HTML = path.join(APP_DIR, "terms.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");
|
||||
@@ -728,6 +729,13 @@ app.get("/privacy", (_req, res) => {
|
||||
}
|
||||
});
|
||||
});
|
||||
app.get("/terms", (_req, res) => {
|
||||
res.sendFile(TERMS_HTML, (err) => {
|
||||
if (err && !res.headersSent) {
|
||||
res.redirect("/");
|
||||
}
|
||||
});
|
||||
});
|
||||
app.get("/guide", (_req, res) => {
|
||||
res.sendFile(GUIDE_HTML, (err) => {
|
||||
if (err && !res.headersSent) {
|
||||
|
||||
Vendored
+30
-3
@@ -234,7 +234,8 @@ export function isAllowedRedirectUri(uri) {
|
||||
proto === "windsurf:" ||
|
||||
proto === "antigravity:" ||
|
||||
proto === "claude:" ||
|
||||
proto === "cline:") {
|
||||
proto === "cline:" ||
|
||||
proto === "raycast:") {
|
||||
return true;
|
||||
}
|
||||
if ((proto === "http:" || proto === "https:") &&
|
||||
@@ -244,17 +245,43 @@ export function isAllowedRedirectUri(uri) {
|
||||
if (proto !== "https:")
|
||||
return false;
|
||||
const trustedHostPatterns = [
|
||||
// Google / Gemini / Antigravity / AI Studio
|
||||
/^(?:.+\.)?googleusercontent\.com$/,
|
||||
/^(?:.+\.)?google\.com$/,
|
||||
/^(?:.+\.)?googleapis\.com$/,
|
||||
/^(?:.+\.)?google\.dev$/,
|
||||
/^(?:.+\.)?antigravity\.google$/,
|
||||
// Anthropic / Claude Connectors Directory (claude.ai + claude.com)
|
||||
/^(?:.+\.)?claude\.ai$/,
|
||||
/^(?:.+\.)?claude\.com$/,
|
||||
/^(?:.+\.)?anthropic\.com$/,
|
||||
// OpenAI / ChatGPT Apps & Connectors Directory
|
||||
/^(?:.+\.)?chatgpt\.com$/,
|
||||
/^(?:.+\.)?openai\.com$/,
|
||||
// Global AI IDEs, Assistants & Agent Marketplaces
|
||||
/^(?:.+\.)?cursor\.com$/,
|
||||
/^(?:.+\.)?cursor\.sh$/,
|
||||
/^(?:.+\.)?windsurf\.com$/,
|
||||
/^(?:.+\.)?codeium\.com$/,
|
||||
/^(?:.+\.)?perplexity\.ai$/,
|
||||
/^(?:.+\.)?mistral\.ai$/,
|
||||
/^(?:.+\.)?poe\.com$/,
|
||||
/^(?:.+\.)?huggingface\.co$/,
|
||||
/^(?:.+\.)?github\.com$/,
|
||||
/^(?:.+\.)?vscode\.dev$/,
|
||||
/^(?:.+\.)?raycast\.com$/,
|
||||
// Automation & Workflow Connectors
|
||||
/^(?:.+\.)?zapier\.com$/,
|
||||
/^(?:.+\.)?make\.com$/,
|
||||
/^(?:.+\.)?integromat\.com$/,
|
||||
/^(?:.+\.)?n8n\.io$/,
|
||||
/^(?:.+\.)?n8n\.cloud$/,
|
||||
/^(?:.+\.)?pipedream\.com$/,
|
||||
/^(?:.+\.)?activepieces\.com$/,
|
||||
// Aura & Partner Ecosystem
|
||||
/^(?:.+\.)?auraajenticai\.cloud$/,
|
||||
/^(?:.+\.)?snehalata\.com$/,
|
||||
// Official MCP Registries, Directories & API Clients
|
||||
/^(?:.+\.)?glama\.ai$/,
|
||||
/^(?:.+\.)?smithery\.ai$/,
|
||||
/^(?:.+\.)?modelcontextprotocol\.io$/,
|
||||
@@ -834,7 +861,7 @@ function renderConsentPage(opts) {
|
||||
${authSectionHtml}
|
||||
|
||||
<div class="foot">
|
||||
Protected by <a href="https://auraajenticai.cloud" target="_blank" rel="noopener">Aura Ajentic AI</a> · <a href="/privacy" target="_blank" rel="noopener">Privacy</a> · <a href="/guide" target="_blank" rel="noopener">Docs</a>
|
||||
Protected by <a href="https://auraajenticai.cloud" target="_blank" rel="noopener">Aura Ajentic AI</a> · <a href="/privacy" target="_blank" rel="noopener">Privacy</a> · <a href="/terms" target="_blank" rel="noopener">Terms</a> · <a href="/guide" target="_blank" rel="noopener">Docs</a>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
@@ -892,7 +919,7 @@ function resolveClientMeta(clientId, redirectUri) {
|
||||
const h = new URL(redirectUri).hostname.toLowerCase();
|
||||
if (h.includes("googleusercontent.com") || h.includes("google.com"))
|
||||
inferredName = "Google Gemini";
|
||||
else if (h.includes("claude.ai") || h.includes("anthropic.com"))
|
||||
else if (h.includes("claude.ai") || h.includes("claude.com") || h.includes("anthropic.com"))
|
||||
inferredName = "Claude";
|
||||
else if (h.includes("chatgpt.com") || h.includes("openai.com"))
|
||||
inferredName = "ChatGPT";
|
||||
|
||||
Vendored
+91
@@ -7,11 +7,25 @@ export const TOOLS = [
|
||||
{
|
||||
name: "list_couriers",
|
||||
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').",
|
||||
annotations: {
|
||||
title: "List Active Couriers",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: false,
|
||||
},
|
||||
inputSchema: { type: "object", properties: {}, required: [] },
|
||||
},
|
||||
{
|
||||
name: "create_parcel",
|
||||
description: "Book and dispatch a physical parcel consignment across Bangladesh through Steadfast, Pathao, RedX, Paperfly, or AI smart cascading routing, with built-in per-tenant invoice idempotency and optional dry-run validation. STATE-MUTATING ACTION (unless dry_run=true): Creates a real, billable shipment record in the carrier's production database, assigns an official tracking code, and deducts courier fees upon pickup. Set dry_run=true to validate recipient phone/address and preview the target courier and estimated BDT cost without booking upstream. Once booked, cancellations require direct courier portal operations ('cancellable_via_api: false').",
|
||||
annotations: {
|
||||
title: "Create & Dispatch Parcel",
|
||||
readOnlyHint: false,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -42,6 +56,13 @@ export const TOOLS = [
|
||||
{
|
||||
name: "track_parcel",
|
||||
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, current location, carrier status notes, and timestamp history. Returns structured error code 'CONSIGNMENT_NOT_FOUND' with 'couriers_checked' if the consignment does not exist. Carrier provider is auto-detected from consignment prefix if omitted.",
|
||||
annotations: {
|
||||
title: "Track Parcel Live",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -61,6 +82,13 @@ export const TOOLS = [
|
||||
{
|
||||
name: "get_balance",
|
||||
description: "Retrieve live merchant cash-on-delivery (COD) vault balance from Steadfast, or check provider balance support across Pathao, RedX, Paperfly, or all 4 couriers simultaneously. READ-ONLY FINANCIAL INQUIRY: Steadfast returns live 'amount_bdt' and 'status: OK'; Pathao, RedX, and Paperfly return 'amount_bdt: null' and 'status: UNSUPPORTED_BY_PROVIDER' with merchant portal hints because their public APIs do not expose a balance endpoint.",
|
||||
annotations: {
|
||||
title: "Get Merchant COD Balance",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -76,6 +104,13 @@ export const TOOLS = [
|
||||
{
|
||||
name: "check_fraud_risk",
|
||||
description: "Screen a customer phone number against live nationwide Bangladesh logistics databases (Steadfast & Pathao) and the BTRC 11-digit prefix validator for delivery success rate, cancellation counts, and return fraud risk level ('INVALID_NUMBER', 'NO_HISTORY', 'LOW', 'MEDIUM', 'HIGH', 'CRITICAL'). READ-ONLY DIAGNOSTIC QUERY: Returns null rates when a number is invalid or has 0 parcel history. Expects an 11-digit Bangladeshi mobile number ('01[3-9]XXXXXXXX').",
|
||||
annotations: {
|
||||
title: "Check Customer Fraud Risk",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -87,6 +122,13 @@ export const TOOLS = [
|
||||
{
|
||||
name: "validate_and_geocode_address",
|
||||
description: "Validate, clean, and geocode an unformatted Bangladesh delivery address into structured administrative boundaries (thana_input, thana_resolved, district, division), latitude/longitude coordinates, match_quality (road, house, area), needs_review flag, and a deliverability confidence score (0-100, capped at 60 when location_type != ROOFTOP) via Google Maps Platform Geocoding API with OpenStreetMap gazetteer fallback. READ-ONLY SPATIAL LOOKUP.",
|
||||
annotations: {
|
||||
title: "Validate & Geocode Address",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -100,6 +142,13 @@ export const TOOLS = [
|
||||
{
|
||||
name: "calculate_delivery_zone_and_fee",
|
||||
description: "Calculate standard delivery zone (inside_dhaka <=22km ৳80, sub_dhaka 22-45km ৳100, outside_dhaka >45km ৳150), road distance via Google Maps Platform Routes API, structured SLA hours ({min, max}), and applicable COD percentage for a single delivery destination using the unified tariff table (meta.source='static_tariff'). READ-ONLY ESTIMATION TOOL.",
|
||||
annotations: {
|
||||
title: "Calculate Delivery Zone & Fee",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -113,6 +162,13 @@ export const TOOLS = [
|
||||
{
|
||||
name: "compare_courier_rates",
|
||||
description: "Execute side-by-side tariff, structured SLA ({min, max}), and COD collection fee comparisons across all four major Bangladeshi couriers (Steadfast, Pathao, RedX, Paperfly) for any destination nationwide using the unified tariff table (meta.source='static_tariff'). Evaluates exact parcel weight, declared COD amount, and optimization priority ('cheapest', 'fastest', 'balanced') to select the recommended courier. READ-ONLY CALCULATION ENGINE.",
|
||||
annotations: {
|
||||
title: "Compare Multi-Carrier Rates",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -131,6 +187,13 @@ export const TOOLS = [
|
||||
{
|
||||
name: "resolve_ndr_issue",
|
||||
description: "Verify that a consignment exists on the specified courier via 'track_parcel' and generate honest, draft-only Non-Delivery Report (NDR) re-engagement copy ('status: DRAFT_GENERATED', 'actions_executed: []'). GENERATION-ONLY TOOL: Verifies consignment_id first (returns CONSIGNMENT_NOT_FOUND if unknown), then generates proposed Bengali WhatsApp copy ('whatsapp_draft') and a carrier escalation ticket draft ('courier_ticket_draft') for manual merchant execution.",
|
||||
annotations: {
|
||||
title: "Generate NDR Resolution Draft",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -152,6 +215,13 @@ export const TOOLS = [
|
||||
{
|
||||
name: "cancel_parcel",
|
||||
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.",
|
||||
annotations: {
|
||||
title: "Cancel Parcel Consignment",
|
||||
readOnlyHint: false,
|
||||
destructiveHint: true,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -165,6 +235,13 @@ export const TOOLS = [
|
||||
{
|
||||
name: "update_parcel",
|
||||
description: "Update delivery instructions, customer phone number, delivery address landmark, or COD collection amount for an existing in-transit consignment across supported courier partners. STATE-MUTATING ACTION: Propagates updated delivery notes upstream to carrier dispatch centers.",
|
||||
annotations: {
|
||||
title: "Update In-Transit Parcel",
|
||||
readOnlyHint: false,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -181,6 +258,13 @@ export const TOOLS = [
|
||||
{
|
||||
name: "bulk_create_parcels",
|
||||
description: "Validate or book up to 100 parcels in a single batch with per-item error isolation, invoice idempotency, and optional dry_run preview mode. STATE-MUTATING ACTION (unless dry_run=true): Returns total, succeeded, failed, and per-item results.",
|
||||
annotations: {
|
||||
title: "Bulk Create Parcels",
|
||||
readOnlyHint: false,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -214,6 +298,13 @@ export const TOOLS = [
|
||||
{
|
||||
name: "get_webhook_events",
|
||||
description: "Query verified courier webhook status events received by the server's /webhooks/{steadfast,pathao,redx,paperfly} endpoints. READ-ONLY DIAGNOSTIC TOOL: Filterable by consignment_id and ISO-8601 'since' timestamp.",
|
||||
annotations: {
|
||||
title: "Query Courier Webhook Events",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: false,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
|
||||
Vendored
+1
-1
@@ -11,6 +11,6 @@ function readPackageVersion() {
|
||||
catch {
|
||||
// Fallback if package.json is unavailable at runtime
|
||||
}
|
||||
return "2.7.0";
|
||||
return "2.7.1";
|
||||
}
|
||||
export const APP_VERSION = readPackageVersion();
|
||||
|
||||
+2
-2
@@ -1605,7 +1605,7 @@
|
||||
<img class="logo-img" src="/assets/courier-logo.png" onerror="this.onerror=null; this.src='/assets/courier-logo.jpg';" alt="Aura Courier MCP Logo" />
|
||||
<div>
|
||||
<span class="f-brand-title">Aura Courier MCP</span>
|
||||
<span class="version-pill">v2.7.0</span>
|
||||
<span class="version-pill">v2.7.1</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="footer-tagline">
|
||||
@@ -1657,7 +1657,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.npmjs.com/package/@auraajenticai/aura-courier-mcp" target="_blank" rel="noopener">
|
||||
<span>📦 npm Package (v2.7.0)</span>
|
||||
<span>📦 npm Package (v2.7.1)</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
+2
-2
@@ -360,7 +360,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<span class="brand-title">Aura Courier MCP</span>
|
||||
<span class="brand-sub">v2.7.0 · Telemetry</span>
|
||||
<span class="brand-sub">v2.7.1 · Telemetry</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nav-actions">
|
||||
@@ -499,7 +499,7 @@
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>Aura Courier MCP v2.7.0 · Built with pride by <a href="https://auraajenticai.cloud" style="color:var(--text);font-weight:600;">Aura Ajentic AI</a> · Apache 2.0 License</p>
|
||||
<p>Aura Courier MCP v2.7.1 · Built with pride by <a href="https://auraajenticai.cloud" style="color:var(--text);font-weight:600;">Aura Ajentic AI</a> · Apache 2.0 License</p>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
|
||||
+7
-7
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<title>Aura Courier MCP v2.7.0 — Multi-Courier Integration for Developers</title>
|
||||
<title>Aura Courier MCP v2.7.1 — Multi-Courier Integration for Developers</title>
|
||||
<meta name="description" content="Aura Courier MCP — এক কানেক্টরেই ৪ কুরিয়ার (Steadfast, Pathao, RedX, Paperfly) + Google Maps Spatial AI। Model Context Protocol (MCP) server for AI Agents and E-commerce." />
|
||||
|
||||
<link rel="icon" type="image/jpeg" href="/assets/courier-logo.jpg" />
|
||||
@@ -1201,7 +1201,7 @@
|
||||
<div class="logo-text-wrap">
|
||||
<div class="logo-title">
|
||||
<span>Aura Courier MCP</span>
|
||||
<span class="version-pill">v2.7.0</span>
|
||||
<span class="version-pill">v2.7.1</span>
|
||||
</div>
|
||||
<span class="logo-sub">Multi-Courier Integration for Developers</span>
|
||||
</div>
|
||||
@@ -2046,7 +2046,7 @@
|
||||
<img class="logo-img" src="/assets/courier-logo.png" onerror="this.onerror=null; this.src='/assets/courier-logo.jpg';" alt="Aura Courier MCP Logo" />
|
||||
<div>
|
||||
<span class="f-brand-title">Aura Courier MCP</span>
|
||||
<span class="version-pill">v2.7.0</span>
|
||||
<span class="version-pill">v2.7.1</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="footer-tagline">
|
||||
@@ -2098,7 +2098,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.npmjs.com/package/@auraajenticai/aura-courier-mcp" target="_blank" rel="noopener">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/><polyline points="3.27 6.96 12 12.01 20.73 6.96"/><line x1="12" y1="22.08" x2="12" y2="12"/></svg><span>npm Package (v2.7.0)</span>
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/><polyline points="3.27 6.96 12 12.01 20.73 6.96"/><line x1="12" y1="22.08" x2="12" y2="12"/></svg><span>npm Package (v2.7.1)</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -2176,7 +2176,7 @@
|
||||
</nav>
|
||||
|
||||
<!-- ===== Background Animation Canvas Script ===== -->
|
||||
<script src="/assets/courier-canvas.js?v=2.7.0"></script>
|
||||
<script src="/assets/courier-canvas.js?v=2.7.1"></script>
|
||||
<script>
|
||||
if (typeof initCourierCanvas === 'function') {
|
||||
initCourierCanvas('hubmap');
|
||||
@@ -3210,7 +3210,7 @@
|
||||
const ms = Math.round(performance.now() - t0);
|
||||
const pill = document.querySelector('.health-pill');
|
||||
if (pill && data.ok) {
|
||||
pill.innerHTML = `<span class="health-dot"></span><span>Health OK (v${data.version || '2.7.0'} · ${ms}ms)</span>`;
|
||||
pill.innerHTML = `<span class="health-dot"></span><span>Health OK (v${data.version || '2.7.1'} · ${ms}ms)</span>`;
|
||||
}
|
||||
const sbStatus = document.querySelector('.sandbox-status');
|
||||
if (sbStatus) {
|
||||
@@ -3220,7 +3220,7 @@
|
||||
.catch(() => {
|
||||
const pill = document.querySelector('.health-pill');
|
||||
if (pill) {
|
||||
pill.innerHTML = `<span class="health-dot" style="background:var(--emerald);"></span><span>Health OK (v2.7.0)</span>`;
|
||||
pill.innerHTML = `<span class="health-dot" style="background:var(--emerald);"></span><span>Health OK (v2.7.1)</span>`;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
{
|
||||
"mcpServers": {
|
||||
"aura-courier": {
|
||||
"url": "https://courier.auraajenticai.cloud/mcp",
|
||||
"transport": "streamable-http"
|
||||
"serverUrl": "https://courier.auraajenticai.cloud/mcp"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -361,7 +361,7 @@
|
||||
"capabilities": {},
|
||||
"clientInfo": {
|
||||
"name": "Aura-Playground",
|
||||
"version": "2.7.0"
|
||||
"version": "2.7.1"
|
||||
}
|
||||
}
|
||||
}</textarea>
|
||||
@@ -452,7 +452,7 @@
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>Aura Courier MCP v2.7.0 · Built with pride by <a href="https://auraajenticai.cloud" style="color:var(--text);font-weight:600;">Aura Ajentic AI</a> · Apache 2.0 License</p>
|
||||
<p>Aura Courier MCP v2.7.1 · Built with pride by <a href="https://auraajenticai.cloud" style="color:var(--text);font-weight:600;">Aura Ajentic AI</a> · Apache 2.0 License</p>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "aura-courier-mcp",
|
||||
"version": "2.7.0",
|
||||
"version": "2.7.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "aura-courier-mcp",
|
||||
"version": "2.7.0",
|
||||
"version": "2.7.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.12.0",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "aura-courier-mcp",
|
||||
"version": "2.7.0",
|
||||
"version": "2.7.1",
|
||||
"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",
|
||||
|
||||
+7
-2
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
|
||||
"name": "aura-courier",
|
||||
"displayName": "Aura Courier MCP",
|
||||
"version": "2.7.0",
|
||||
"version": "2.7.1",
|
||||
"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",
|
||||
@@ -21,6 +22,8 @@
|
||||
"tier": "Google Cloud Partner Advantage"
|
||||
},
|
||||
"homepage": "https://courier.auraajenticai.cloud",
|
||||
"privacyPolicyUrl": "https://courier.auraajenticai.cloud/privacy",
|
||||
"termsOfServiceUrl": "https://courier.auraajenticai.cloud/terms",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/auraajenticai/aura-courier-mcp.git"
|
||||
@@ -38,10 +41,12 @@
|
||||
"cod",
|
||||
"fraud-detection",
|
||||
"geocoding",
|
||||
"ecommerce"
|
||||
"ecommerce",
|
||||
"oauth2"
|
||||
],
|
||||
"mcpServers": {
|
||||
"aura-courier": {
|
||||
"serverUrl": "https://courier.auraajenticai.cloud/mcp",
|
||||
"url": "https://courier.auraajenticai.cloud/mcp",
|
||||
"transport": "streamable-http",
|
||||
"description": "Universal Bangladesh Courier MCP Hub providing 13 live logistics & spatial intelligence tools with OAuth 2.1 + PKCE"
|
||||
|
||||
+1
-1
@@ -254,7 +254,7 @@
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>Aura Courier MCP v2.7.0 · Developed by <b>Aura Agentic AI</b> · Released under <b>Apache License 2.0</b></p>
|
||||
<p>Aura Courier MCP v2.7.1 · Developed by <b>Aura Agentic AI</b> · Released under <b>Apache License 2.0</b></p>
|
||||
<p>
|
||||
<a href="https://auraajenticai.cloud" target="_blank" rel="noopener">auraajenticai.cloud</a> ·
|
||||
<a href="https://github.com/auraajenticai/aura-courier-mcp" target="_blank" rel="noopener">github.com/auraajenticai</a> ·
|
||||
|
||||
+9
-3
@@ -3,17 +3,23 @@
|
||||
"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.7.0",
|
||||
"websiteUrl": "https://github.com/auraajenticai/aura-courier-mcp",
|
||||
"version": "2.7.1",
|
||||
"websiteUrl": "https://courier.auraajenticai.cloud",
|
||||
"repository": {
|
||||
"url": "https://github.com/auraajenticai/aura-courier-mcp",
|
||||
"source": "github"
|
||||
},
|
||||
"remotes": [
|
||||
{
|
||||
"type": "streamable-http",
|
||||
"url": "https://courier.auraajenticai.cloud/mcp"
|
||||
}
|
||||
],
|
||||
"packages": [
|
||||
{
|
||||
"registryType": "npm",
|
||||
"identifier": "aura-courier-mcp",
|
||||
"version": "2.7.0",
|
||||
"version": "2.7.1",
|
||||
"transport": {
|
||||
"type": "stdio"
|
||||
},
|
||||
|
||||
+2
-2
@@ -1576,7 +1576,7 @@
|
||||
<img class="logo-img" src="/assets/courier-logo.png" onerror="this.onerror=null; this.src='/assets/courier-logo.jpg';" alt="Aura Courier MCP Logo" />
|
||||
<div>
|
||||
<span class="f-brand-title">Aura Courier MCP</span>
|
||||
<span class="version-pill">v2.7.0</span>
|
||||
<span class="version-pill">v2.7.1</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="footer-tagline">
|
||||
@@ -1628,7 +1628,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.npmjs.com/package/@auraajenticai/aura-courier-mcp" target="_blank" rel="noopener">
|
||||
<span>📦 npm Package (v2.7.0)</span>
|
||||
<span>📦 npm Package (v2.7.1)</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -7,15 +7,15 @@ description: >-
|
||||
carrier rates, or resolving NDR delivery issues across Steadfast, Pathao, RedX, and Paperfly.
|
||||
---
|
||||
|
||||
# Bangladesh Courier Operations & Zero-Risk COD Hub (v2.4.2)
|
||||
# Bangladesh Courier Operations & Zero-Risk COD Hub (v2.7.1)
|
||||
|
||||
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`).
|
||||
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`, OAuth 2.1 + PKCE `S256` & Dual-Auth).
|
||||
|
||||
---
|
||||
|
||||
## 1. Tool Catalog & Capabilities (9 Live Production Tools)
|
||||
## 1. Tool Catalog & Capabilities (13 Live Production Tools)
|
||||
|
||||
The remote MCP server exposes 9 specialized logistics tools:
|
||||
The remote MCP server exposes 13 specialized logistics and spatial intelligence tools (each annotated with MCP `readOnlyHint`, `destructiveHint`, `idempotentHint`, and `openWorldHint`):
|
||||
|
||||
### 1. `list_couriers`
|
||||
* **Purpose**: Inspect currently configured carrier credentials (Steadfast, Pathao, RedX, Paperfly) and verify Google Maps Platform spatial routing readiness.
|
||||
@@ -137,6 +137,30 @@ The remote MCP server exposes 9 specialized logistics tools:
|
||||
|
||||
---
|
||||
|
||||
### 10. `cancel_parcel`
|
||||
* **Purpose**: Cancel an existing parcel consignment across Steadfast, Pathao, RedX, or Paperfly (`destructiveHint: true`). Executes live upstream cancellation on Pathao, RedX, and Paperfly; validates eligibility and provides portal guidance on Steadfast.
|
||||
* **Input Schema**: `courier` *(required)*, `consignment_id` *(required)*, `reason` *(optional)*.
|
||||
|
||||
---
|
||||
|
||||
### 11. `update_parcel`
|
||||
* **Purpose**: Update delivery instructions, recipient phone, address landmark, or COD amount on an existing in-transit consignment (`readOnlyHint: false`).
|
||||
* **Input Schema**: `courier` *(required)*, `consignment_id` *(required)*, `recipient_phone`, `recipient_address`, `cod_amount`, `note`.
|
||||
|
||||
---
|
||||
|
||||
### 12. `bulk_create_parcels`
|
||||
* **Purpose**: Validate (`dry_run: true`) or book up to 100 parcels in one batch with per-item error isolation and per-tenant invoice idempotency (`readOnlyHint: false`).
|
||||
* **Input Schema**: `items[]` *(required, 1–100 parcel objects)*, `dry_run` *(optional boolean)*.
|
||||
|
||||
---
|
||||
|
||||
### 13. `get_webhook_events`
|
||||
* **Purpose**: Query verified real-time courier webhook status events recorded from Steadfast, Pathao, RedX, and Paperfly (`readOnlyHint: true`).
|
||||
* **Input Schema**: `consignment_id` *(optional)*, `since` *(optional ISO-8601 timestamp)*.
|
||||
|
||||
---
|
||||
|
||||
## 2. Progressive Disclosure & Order Lifecycle Workflow
|
||||
|
||||
When executing parcel fulfillment, follow this 4-step progressive lifecycle:
|
||||
|
||||
@@ -63,6 +63,7 @@ const PORT = Number(process.env.PORT || 8080);
|
||||
const APP_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const LANDING = path.join(APP_DIR, "index.html");
|
||||
const PRIVACY_HTML = path.join(APP_DIR, "privacy.html");
|
||||
const TERMS_HTML = path.join(APP_DIR, "terms.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");
|
||||
@@ -871,6 +872,14 @@ app.get("/privacy", (_req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
app.get("/terms", (_req, res) => {
|
||||
res.sendFile(TERMS_HTML, (err) => {
|
||||
if (err && !res.headersSent) {
|
||||
res.redirect("/");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
app.get("/guide", (_req, res) => {
|
||||
res.sendFile(GUIDE_HTML, (err) => {
|
||||
if (err && !res.headersSent) {
|
||||
|
||||
+30
-3
@@ -303,7 +303,8 @@ export function isAllowedRedirectUri(uri: string): boolean {
|
||||
proto === "windsurf:" ||
|
||||
proto === "antigravity:" ||
|
||||
proto === "claude:" ||
|
||||
proto === "cline:"
|
||||
proto === "cline:" ||
|
||||
proto === "raycast:"
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
@@ -318,17 +319,43 @@ export function isAllowedRedirectUri(uri: string): boolean {
|
||||
if (proto !== "https:") return false;
|
||||
|
||||
const trustedHostPatterns = [
|
||||
// Google / Gemini / Antigravity / AI Studio
|
||||
/^(?:.+\.)?googleusercontent\.com$/,
|
||||
/^(?:.+\.)?google\.com$/,
|
||||
/^(?:.+\.)?googleapis\.com$/,
|
||||
/^(?:.+\.)?google\.dev$/,
|
||||
/^(?:.+\.)?antigravity\.google$/,
|
||||
// Anthropic / Claude Connectors Directory (claude.ai + claude.com)
|
||||
/^(?:.+\.)?claude\.ai$/,
|
||||
/^(?:.+\.)?claude\.com$/,
|
||||
/^(?:.+\.)?anthropic\.com$/,
|
||||
// OpenAI / ChatGPT Apps & Connectors Directory
|
||||
/^(?:.+\.)?chatgpt\.com$/,
|
||||
/^(?:.+\.)?openai\.com$/,
|
||||
// Global AI IDEs, Assistants & Agent Marketplaces
|
||||
/^(?:.+\.)?cursor\.com$/,
|
||||
/^(?:.+\.)?cursor\.sh$/,
|
||||
/^(?:.+\.)?windsurf\.com$/,
|
||||
/^(?:.+\.)?codeium\.com$/,
|
||||
/^(?:.+\.)?perplexity\.ai$/,
|
||||
/^(?:.+\.)?mistral\.ai$/,
|
||||
/^(?:.+\.)?poe\.com$/,
|
||||
/^(?:.+\.)?huggingface\.co$/,
|
||||
/^(?:.+\.)?github\.com$/,
|
||||
/^(?:.+\.)?vscode\.dev$/,
|
||||
/^(?:.+\.)?raycast\.com$/,
|
||||
// Automation & Workflow Connectors
|
||||
/^(?:.+\.)?zapier\.com$/,
|
||||
/^(?:.+\.)?make\.com$/,
|
||||
/^(?:.+\.)?integromat\.com$/,
|
||||
/^(?:.+\.)?n8n\.io$/,
|
||||
/^(?:.+\.)?n8n\.cloud$/,
|
||||
/^(?:.+\.)?pipedream\.com$/,
|
||||
/^(?:.+\.)?activepieces\.com$/,
|
||||
// Aura & Partner Ecosystem
|
||||
/^(?:.+\.)?auraajenticai\.cloud$/,
|
||||
/^(?:.+\.)?snehalata\.com$/,
|
||||
// Official MCP Registries, Directories & API Clients
|
||||
/^(?:.+\.)?glama\.ai$/,
|
||||
/^(?:.+\.)?smithery\.ai$/,
|
||||
/^(?:.+\.)?modelcontextprotocol\.io$/,
|
||||
@@ -951,7 +978,7 @@ function renderConsentPage(opts: {
|
||||
${authSectionHtml}
|
||||
|
||||
<div class="foot">
|
||||
Protected by <a href="https://auraajenticai.cloud" target="_blank" rel="noopener">Aura Ajentic AI</a> · <a href="/privacy" target="_blank" rel="noopener">Privacy</a> · <a href="/guide" target="_blank" rel="noopener">Docs</a>
|
||||
Protected by <a href="https://auraajenticai.cloud" target="_blank" rel="noopener">Aura Ajentic AI</a> · <a href="/privacy" target="_blank" rel="noopener">Privacy</a> · <a href="/terms" target="_blank" rel="noopener">Terms</a> · <a href="/guide" target="_blank" rel="noopener">Docs</a>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
@@ -1015,7 +1042,7 @@ function resolveClientMeta(clientId: string, redirectUri: string): {
|
||||
try {
|
||||
const h = new URL(redirectUri).hostname.toLowerCase();
|
||||
if (h.includes("googleusercontent.com") || h.includes("google.com")) inferredName = "Google Gemini";
|
||||
else if (h.includes("claude.ai") || h.includes("anthropic.com")) inferredName = "Claude";
|
||||
else if (h.includes("claude.ai") || h.includes("claude.com") || h.includes("anthropic.com")) inferredName = "Claude";
|
||||
else if (h.includes("chatgpt.com") || h.includes("openai.com")) inferredName = "ChatGPT";
|
||||
} catch {}
|
||||
return { valid: true, clientName: inferredName, authMethod: "none" };
|
||||
|
||||
@@ -15,12 +15,26 @@ export const TOOLS: Tool[] = [
|
||||
name: "list_couriers",
|
||||
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').",
|
||||
annotations: {
|
||||
title: "List Active Couriers",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: false,
|
||||
},
|
||||
inputSchema: { type: "object", properties: {}, required: [] },
|
||||
},
|
||||
{
|
||||
name: "create_parcel",
|
||||
description:
|
||||
"Book and dispatch a physical parcel consignment across Bangladesh through Steadfast, Pathao, RedX, Paperfly, or AI smart cascading routing, with built-in per-tenant invoice idempotency and optional dry-run validation. STATE-MUTATING ACTION (unless dry_run=true): Creates a real, billable shipment record in the carrier's production database, assigns an official tracking code, and deducts courier fees upon pickup. Set dry_run=true to validate recipient phone/address and preview the target courier and estimated BDT cost without booking upstream. Once booked, cancellations require direct courier portal operations ('cancellable_via_api: false').",
|
||||
annotations: {
|
||||
title: "Create & Dispatch Parcel",
|
||||
readOnlyHint: false,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -52,6 +66,13 @@ export const TOOLS: Tool[] = [
|
||||
name: "track_parcel",
|
||||
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, current location, carrier status notes, and timestamp history. Returns structured error code 'CONSIGNMENT_NOT_FOUND' with 'couriers_checked' if the consignment does not exist. Carrier provider is auto-detected from consignment prefix if omitted.",
|
||||
annotations: {
|
||||
title: "Track Parcel Live",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -72,6 +93,13 @@ export const TOOLS: Tool[] = [
|
||||
name: "get_balance",
|
||||
description:
|
||||
"Retrieve live merchant cash-on-delivery (COD) vault balance from Steadfast, or check provider balance support across Pathao, RedX, Paperfly, or all 4 couriers simultaneously. READ-ONLY FINANCIAL INQUIRY: Steadfast returns live 'amount_bdt' and 'status: OK'; Pathao, RedX, and Paperfly return 'amount_bdt: null' and 'status: UNSUPPORTED_BY_PROVIDER' with merchant portal hints because their public APIs do not expose a balance endpoint.",
|
||||
annotations: {
|
||||
title: "Get Merchant COD Balance",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -88,6 +116,13 @@ export const TOOLS: Tool[] = [
|
||||
name: "check_fraud_risk",
|
||||
description:
|
||||
"Screen a customer phone number against live nationwide Bangladesh logistics databases (Steadfast & Pathao) and the BTRC 11-digit prefix validator for delivery success rate, cancellation counts, and return fraud risk level ('INVALID_NUMBER', 'NO_HISTORY', 'LOW', 'MEDIUM', 'HIGH', 'CRITICAL'). READ-ONLY DIAGNOSTIC QUERY: Returns null rates when a number is invalid or has 0 parcel history. Expects an 11-digit Bangladeshi mobile number ('01[3-9]XXXXXXXX').",
|
||||
annotations: {
|
||||
title: "Check Customer Fraud Risk",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -100,6 +135,13 @@ export const TOOLS: Tool[] = [
|
||||
name: "validate_and_geocode_address",
|
||||
description:
|
||||
"Validate, clean, and geocode an unformatted Bangladesh delivery address into structured administrative boundaries (thana_input, thana_resolved, district, division), latitude/longitude coordinates, match_quality (road, house, area), needs_review flag, and a deliverability confidence score (0-100, capped at 60 when location_type != ROOFTOP) via Google Maps Platform Geocoding API with OpenStreetMap gazetteer fallback. READ-ONLY SPATIAL LOOKUP.",
|
||||
annotations: {
|
||||
title: "Validate & Geocode Address",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -114,6 +156,13 @@ export const TOOLS: Tool[] = [
|
||||
name: "calculate_delivery_zone_and_fee",
|
||||
description:
|
||||
"Calculate standard delivery zone (inside_dhaka <=22km ৳80, sub_dhaka 22-45km ৳100, outside_dhaka >45km ৳150), road distance via Google Maps Platform Routes API, structured SLA hours ({min, max}), and applicable COD percentage for a single delivery destination using the unified tariff table (meta.source='static_tariff'). READ-ONLY ESTIMATION TOOL.",
|
||||
annotations: {
|
||||
title: "Calculate Delivery Zone & Fee",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -128,6 +177,13 @@ export const TOOLS: Tool[] = [
|
||||
name: "compare_courier_rates",
|
||||
description:
|
||||
"Execute side-by-side tariff, structured SLA ({min, max}), and COD collection fee comparisons across all four major Bangladeshi couriers (Steadfast, Pathao, RedX, Paperfly) for any destination nationwide using the unified tariff table (meta.source='static_tariff'). Evaluates exact parcel weight, declared COD amount, and optimization priority ('cheapest', 'fastest', 'balanced') to select the recommended courier. READ-ONLY CALCULATION ENGINE.",
|
||||
annotations: {
|
||||
title: "Compare Multi-Carrier Rates",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -147,6 +203,13 @@ export const TOOLS: Tool[] = [
|
||||
name: "resolve_ndr_issue",
|
||||
description:
|
||||
"Verify that a consignment exists on the specified courier via 'track_parcel' and generate honest, draft-only Non-Delivery Report (NDR) re-engagement copy ('status: DRAFT_GENERATED', 'actions_executed: []'). GENERATION-ONLY TOOL: Verifies consignment_id first (returns CONSIGNMENT_NOT_FOUND if unknown), then generates proposed Bengali WhatsApp copy ('whatsapp_draft') and a carrier escalation ticket draft ('courier_ticket_draft') for manual merchant execution.",
|
||||
annotations: {
|
||||
title: "Generate NDR Resolution Draft",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -169,6 +232,13 @@ export const TOOLS: Tool[] = [
|
||||
name: "cancel_parcel",
|
||||
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.",
|
||||
annotations: {
|
||||
title: "Cancel Parcel Consignment",
|
||||
readOnlyHint: false,
|
||||
destructiveHint: true,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -183,6 +253,13 @@ export const TOOLS: Tool[] = [
|
||||
name: "update_parcel",
|
||||
description:
|
||||
"Update delivery instructions, customer phone number, delivery address landmark, or COD collection amount for an existing in-transit consignment across supported courier partners. STATE-MUTATING ACTION: Propagates updated delivery notes upstream to carrier dispatch centers.",
|
||||
annotations: {
|
||||
title: "Update In-Transit Parcel",
|
||||
readOnlyHint: false,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -200,6 +277,13 @@ export const TOOLS: Tool[] = [
|
||||
name: "bulk_create_parcels",
|
||||
description:
|
||||
"Validate or book up to 100 parcels in a single batch with per-item error isolation, invoice idempotency, and optional dry_run preview mode. STATE-MUTATING ACTION (unless dry_run=true): Returns total, succeeded, failed, and per-item results.",
|
||||
annotations: {
|
||||
title: "Bulk Create Parcels",
|
||||
readOnlyHint: false,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: true,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -234,6 +318,13 @@ export const TOOLS: Tool[] = [
|
||||
name: "get_webhook_events",
|
||||
description:
|
||||
"Query verified courier webhook status events received by the server's /webhooks/{steadfast,pathao,redx,paperfly} endpoints. READ-ONLY DIAGNOSTIC TOOL: Filterable by consignment_id and ISO-8601 'since' timestamp.",
|
||||
annotations: {
|
||||
title: "Query Courier Webhook Events",
|
||||
readOnlyHint: true,
|
||||
destructiveHint: false,
|
||||
idempotentHint: true,
|
||||
openWorldHint: false,
|
||||
},
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ function readPackageVersion(): string {
|
||||
} catch {
|
||||
// Fallback if package.json is unavailable at runtime
|
||||
}
|
||||
return "2.7.0";
|
||||
return "2.7.1";
|
||||
}
|
||||
|
||||
export const APP_VERSION: string = readPackageVersion();
|
||||
|
||||
+138
@@ -0,0 +1,138 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="Terms of Service for Aura Courier MCP — Enterprise multi-carrier logistics connector for AI agents and e-commerce platforms." />
|
||||
<title>Terms of Service — Aura Courier MCP</title>
|
||||
<link rel="icon" type="image/svg+xml" href="/assets/logo.svg" />
|
||||
<style>
|
||||
:root {
|
||||
--bg: #070b14;
|
||||
--card: rgba(14, 21, 37, 0.85);
|
||||
--line: rgba(148, 163, 184, 0.16);
|
||||
--text: #e2e8f0;
|
||||
--muted: #94a3b8;
|
||||
--cyan: #38bdf8;
|
||||
--emerald: #34d399;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
background:
|
||||
radial-gradient(900px 460px at 50% -10%, rgba(6, 182, 212, 0.12), transparent 60%),
|
||||
var(--bg);
|
||||
color: var(--text);
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
|
||||
font-size: 15px;
|
||||
line-height: 1.7;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
a { color: var(--cyan); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
header {
|
||||
position: sticky; top: 0; z-index: 20;
|
||||
backdrop-filter: blur(14px);
|
||||
background: rgba(7, 11, 20, 0.88);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.hbar {
|
||||
max-width: 900px; margin: 0 auto; padding: 14px 20px;
|
||||
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
||||
}
|
||||
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15.5px; color: #fff; text-decoration: none; }
|
||||
.brand img { width: 34px; height: 34px; border-radius: 9px; }
|
||||
.nav { display: flex; gap: 14px; font-size: 13px; font-weight: 600; }
|
||||
.wrap { max-width: 900px; margin: 0 auto; padding: 42px 20px 72px; }
|
||||
.pill {
|
||||
display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650;
|
||||
color: var(--emerald); background: rgba(16, 185, 129, 0.12);
|
||||
border: 1px solid rgba(16, 185, 129, 0.3); padding: 4px 12px; border-radius: 999px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.025em; color: #fff; margin-bottom: 8px; }
|
||||
.meta { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
|
||||
.card {
|
||||
background: var(--card); border: 1px solid var(--line); border-radius: 16px;
|
||||
padding: 24px 26px; margin-bottom: 18px;
|
||||
}
|
||||
.card h2 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 10px; }
|
||||
.card p { color: #cbd5e1; margin-bottom: 10px; }
|
||||
.card p:last-child { margin-bottom: 0; }
|
||||
.card ul { margin: 8px 0 0 20px; color: #cbd5e1; display: grid; gap: 6px; }
|
||||
footer {
|
||||
max-width: 900px; margin: 0 auto; padding: 24px 20px 44px;
|
||||
border-top: 1px solid var(--line); text-align: center;
|
||||
font-size: 12.5px; color: var(--muted);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="hbar">
|
||||
<a href="/" class="brand">
|
||||
<img src="/assets/logo.svg" alt="Aura Courier MCP" />
|
||||
<span>Aura Courier MCP</span>
|
||||
</a>
|
||||
<nav class="nav">
|
||||
<a href="/">Home</a>
|
||||
<a href="/guide">Docs</a>
|
||||
<a href="/privacy">Privacy Policy</a>
|
||||
<a href="/health.html">Status</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="wrap">
|
||||
<div class="pill">Effective: November 24, 2026 · v2.7.1</div>
|
||||
<h1>Terms of Service</h1>
|
||||
<p class="meta">Published by <strong>Aura Ajentic AI</strong> (Google Cloud Partner Advantage) · Contact: <a href="mailto:ceo@auraajenticai.cloud">ceo@auraajenticai.cloud</a></p>
|
||||
|
||||
<section class="card">
|
||||
<h2>1. Scope of Service</h2>
|
||||
<p>Aura Courier MCP (<code>https://courier.auraajenticai.cloud</code>) provides a Model Context Protocol (MCP) server and logistics integration gateway enabling AI assistants (including Google Gemini, Antigravity, Claude, ChatGPT, Cursor, and custom agents) and e-commerce stores to interact with supported Bangladeshi courier providers (Steadfast, Pathao, RedX, Paperfly) and Google Maps Platform spatial APIs.</p>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>2. Authentication, OAuth 2.1 & Credential Responsibility</h2>
|
||||
<p>Access to protected endpoints is governed via OAuth 2.1 with PKCE (<code>S256</code>), Aura Cloud SSO, scoped Merchant API keys, or Bring-Your-Own-Key (BYOK) request headers.</p>
|
||||
<ul>
|
||||
<li>You are solely responsible for safeguarding your Aura account credentials, API keys, and third-party carrier credentials.</li>
|
||||
<li>OAuth tokens may be revoked at any time via <code>POST /oauth/revoke</code> or through your Aura Cloud Console.</li>
|
||||
<li>Read-Only Sandbox access is strictly limited to non-mutating discovery and estimation tools.</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>3. Carrier Dispatch, Fees & Billable Actions</h2>
|
||||
<p>State-mutating tools such as <code>create_parcel</code>, <code>bulk_create_parcels</code>, <code>update_parcel</code>, and <code>cancel_parcel</code> transmit real operational requests directly to third-party courier networks when invoked with write credentials (unless <code>dry_run: true</code> is specified).</p>
|
||||
<ul>
|
||||
<li>All courier shipping charges, COD settlement timelines, pickup schedules, and parcel insurance terms are governed directly by your agreement with Steadfast, Pathao, RedX, or Paperfly.</li>
|
||||
<li>We recommend using <code>dry_run: true</code> or human-in-the-loop confirmation before dispatching high-value COD shipments.</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>4. Acceptable Use & Rate Limits</h2>
|
||||
<ul>
|
||||
<li>Do not abuse fraud-check, geocoding, or carrier APIs for unauthorized scraping, harassment, or unlawful surveillance.</li>
|
||||
<li>Fair-use rate limits (per-key and per-IP) apply to protect carrier upstream quotas and platform availability.</li>
|
||||
<li>Any automated or human-initiated misuse may result in immediate key suspension or revocation.</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>5. Privacy, Retention & Open-Source License</h2>
|
||||
<p>Personal data handling, PII masking on public tracking pages, 90-day automated anonymization, and zero-knowledge credential isolation are detailed in our <a href="/privacy">Privacy Policy</a>. The Aura Courier MCP open-source codebase is licensed under the <a href="https://opensource.org/licenses/Apache-2.0" target="_blank" rel="noopener">Apache License 2.0</a>.</p>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>6. Disclaimer & Support</h2>
|
||||
<p>Aura Courier MCP is provided "as is" without warranties regarding third-party courier API uptime or carrier delivery SLAs. For enterprise support, compliance inquiries, or security disclosures, contact <a href="mailto:ceo@auraajenticai.cloud">ceo@auraajenticai.cloud</a>.</p>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>Aura Courier MCP v2.7.1 · Operated by <a href="https://auraajenticai.cloud">Aura Ajentic AI</a> · <a href="/privacy">Privacy Policy</a> · <a href="/terms">Terms of Service</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -511,3 +511,49 @@ test("OAuth 7: 1-Click Read-Only Sandbox strictly limits scope to read without e
|
||||
assert.equal(writeBody.result.isError, true);
|
||||
assert.ok(writeBody.result.content[0].text.includes("Insufficient scope"));
|
||||
});
|
||||
|
||||
test("OAuth 8: Global Partner Directory Compliance (13 MCP tool annotations, claude.com/chatgpt/cursor/zapier/n8n DCR, and GET /terms)", async () => {
|
||||
// 1. All 13 tools expose MCP 2025-03-26 annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint)
|
||||
const listRes = await fetch(`${baseUrl}/mcp`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ jsonrpc: "2.0", id: 80, method: "tools/list", params: {} }),
|
||||
});
|
||||
assert.equal(listRes.status, 200);
|
||||
const tools = (await listRes.json()).result.tools;
|
||||
assert.equal(tools.length, 13);
|
||||
for (const t of tools) {
|
||||
assert.ok(t.annotations && typeof t.annotations.title === "string", `missing title annotation on ${t.name}`);
|
||||
assert.equal(typeof t.annotations.readOnlyHint, "boolean", `missing readOnlyHint on ${t.name}`);
|
||||
assert.equal(typeof t.annotations.destructiveHint, "boolean", `missing destructiveHint on ${t.name}`);
|
||||
assert.equal(typeof t.annotations.idempotentHint, "boolean", `missing idempotentHint on ${t.name}`);
|
||||
assert.equal(typeof t.annotations.openWorldHint, "boolean", `missing openWorldHint on ${t.name}`);
|
||||
}
|
||||
const byName = Object.fromEntries(tools.map((t) => [t.name, t.annotations]));
|
||||
assert.equal(byName.track_parcel.readOnlyHint, true);
|
||||
assert.equal(byName.create_parcel.readOnlyHint, false);
|
||||
assert.equal(byName.cancel_parcel.destructiveHint, true);
|
||||
assert.equal(byName.resolve_ndr_issue.readOnlyHint, true);
|
||||
|
||||
// 2. Major AI partner callback URIs accepted via RFC 7591 DCR
|
||||
const partnerCallbacks = [
|
||||
"https://claude.com/api/mcp/auth_callback",
|
||||
"https://claude.ai/api/mcp/auth_callback",
|
||||
"https://chatgpt.com/connector_platform_oauth_redirect",
|
||||
"https://cursor.com/oauth/callback",
|
||||
"https://zapier.com/dashboard/auth/oauth/return/App123",
|
||||
"https://my.n8n.cloud/rest/oauth2-credential/callback",
|
||||
];
|
||||
const regRes = await fetch(`${baseUrl}/oauth/register`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ client_name: "Global AI Directory Suite", redirect_uris: partnerCallbacks }),
|
||||
});
|
||||
assert.equal(regRes.status, 201);
|
||||
|
||||
// 3. Legal /terms & /privacy endpoints return 200 HTML
|
||||
const termsRes = await fetch(`${baseUrl}/terms`);
|
||||
assert.equal(termsRes.status, 200);
|
||||
const termsHtml = await termsRes.text();
|
||||
assert.ok(termsHtml.includes("Terms of Service"));
|
||||
});
|
||||
|
||||
+16
-3
@@ -41,9 +41,12 @@ async function validateManifest() {
|
||||
return;
|
||||
}
|
||||
|
||||
assert(json.$schema === 'https://antigravity.google/schemas/v1/plugin.json', 'plugin.json declares official Antigravity $schema');
|
||||
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 === PKG_VERSION, `version matches package.json ('${PKG_VERSION}', got '${json.version}')`);
|
||||
assert(json.privacyPolicyUrl === 'https://courier.auraajenticai.cloud/privacy', 'privacyPolicyUrl is configured');
|
||||
assert(json.termsOfServiceUrl === 'https://courier.auraajenticai.cloud/terms', 'termsOfServiceUrl is configured');
|
||||
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'`);
|
||||
@@ -65,8 +68,7 @@ async function validateMcpConfig() {
|
||||
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');
|
||||
assert(json.mcpServers['aura-courier'].serverUrl === 'https://courier.auraajenticai.cloud/mcp', 'remote MCP serverUrl is https://courier.auraajenticai.cloud/mcp');
|
||||
}
|
||||
|
||||
async function validateAssets() {
|
||||
@@ -94,7 +96,11 @@ async function validateSkillsAndRules() {
|
||||
'validate_and_geocode_address',
|
||||
'calculate_delivery_zone_and_fee',
|
||||
'compare_courier_rates',
|
||||
'resolve_ndr_issue'
|
||||
'resolve_ndr_issue',
|
||||
'cancel_parcel',
|
||||
'update_parcel',
|
||||
'bulk_create_parcels',
|
||||
'get_webhook_events'
|
||||
];
|
||||
for (const tool of expectedTools) {
|
||||
assert(skillContent.includes(`\`${tool}\``), `skill documents tool '${tool}'`);
|
||||
@@ -197,6 +203,13 @@ async function validateRemoteMcpServer() {
|
||||
const toolsData = await toolsRes.json();
|
||||
const liveTools = toolsData.result?.tools || [];
|
||||
assert(liveTools.length === 13, `exactly 13 tools returned by remote server (got ${liveTools.length})`);
|
||||
const allAnnotated = liveTools.every(t => t.annotations && typeof t.annotations.readOnlyHint === 'boolean' && typeof t.annotations.destructiveHint === 'boolean');
|
||||
assert(allAnnotated, 'all 13 live tools expose MCP readOnlyHint & destructiveHint annotations');
|
||||
|
||||
const termsRes = await fetch(`${baseOrigin}/terms`);
|
||||
assert(termsRes.status === 200, `Terms of Service /terms returned HTTP 200 (got ${termsRes.status})`);
|
||||
const privRes = await fetch(`${baseOrigin}/privacy`);
|
||||
assert(privRes.status === 200, `Privacy Policy /privacy returned HTTP 200 (got ${privRes.status})`);
|
||||
|
||||
const liveToolNames = liveTools.map(t => t.name);
|
||||
console.log(` Live tools on server: [ ${liveToolNames.join(', ')} ]`);
|
||||
|
||||
Reference in New Issue
Block a user