chore(release): unify all versions to v2.6.1 with single-source APP_VERSION
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
## [2.6.1] - 2026-11-13
|
||||
|
||||
### Fixed & Changed
|
||||
- **Single-Source-of-Truth Release Parity (`src/version.ts`)**: Added `APP_VERSION` reading `package.json` dynamically so `src/http.ts`, `src/server.ts`, and `src/index.ts` remain 100% synchronized with `package.json`, `server.json`, `plugin.json`, Glama Releases, GitHub Releases, and the live web UI (`v2.6.1`).
|
||||
- **Glama `pnpm` Docker Build Compatibility**: Explicit `Express` type export in `src/http.ts` eliminating `TS2742` under strict `.pnpm/` resolution.
|
||||
- **Silicon Valley Iconography & Live Portal Polish**: Replaced legacy glyph badges with crisp inline SVGs, upgraded RedX to its custom `RX` monogram badge, prevented header nav wrap, and restored live `#hubmap` canvas network animation.
|
||||
- **Config Identifier Parity**: Aligned all client snippets in `configs/*` and embedded portal drawers to `aura-courier-mcp@2.6.1` matching `package.json` and `server.json`.
|
||||
|
||||
## [2.6.0] - 2026-11-10
|
||||
|
||||
### Added
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# 🚚 AURA COURIER MCP v2.6.0 — THE ENTERPRISE LOGISTICS MASTER MANUAL
|
||||
# 🚚 AURA COURIER MCP v2.6.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,15 +227,7 @@ curl -s https://courier.auraajenticai.cloud/health | jq
|
||||
```json
|
||||
{
|
||||
"ok": true,
|
||||
"service": "aura-courier-mcp",
|
||||
"version": "2.6.0",
|
||||
"tools_count": 9,
|
||||
"spatial_engine": "Google Maps Platform (gmp_git_agentskills_v1)",
|
||||
"fraud_engine": "Steadfast Nationwide API + BD Prefix Validator",
|
||||
"webhooks": {
|
||||
"steadfast": "/webhooks/steadfast",
|
||||
"pathao": "/webhooks/pathao"
|
||||
}
|
||||
"version": "2.6.1"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -286,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.6.0"],
|
||||
"args": ["-y", "aura-courier-mcp@2.6.1"],
|
||||
"env": {
|
||||
"PORT": "8080",
|
||||
"GOOGLE_MAPS_API_KEY": "<GOOGLE_MAPS_API_KEY>",
|
||||
@@ -348,6 +340,9 @@ Bundles the complete `courier-ops` skill (9 tools), `rules/COURIER_RULES.md` (sm
|
||||
|
||||
## 9. Version History & Glama TDQS 5.0 Audit Log
|
||||
|
||||
* **v2.6.1 (Nov 13, 2026)**:
|
||||
- **Single-Source-of-Truth Release Parity (`src/version.ts`)**: Unified version synchronization across `package.json`, `server.json`, `plugin.json`, `/health`, MCP Server metadata, GitHub Releases, Gitea, Glama Registry, and live web UI (`v2.6.1`).
|
||||
- **TypeScript Strict `pnpm` Compatibility & Silicon Valley UI**: Explicit Express typing resolving Glama Dockerfile `TS2742`, inline SVG carrier/tool iconography, RedX monogram badge, and interactive `#hubmap` canvas animation.
|
||||
* **v2.6.0 (Nov 10, 2026)**:
|
||||
- **Bilingual User Guide & Business Benefits Hub (`GET /guide`)**: Interactive Bengali & English documentation (`https://courier.auraajenticai.cloud/guide`) covering 3-in-1 WooCommerce/Shopify integration, 6-Pillar WhatsApp/Messenger AI Bot harmony, Multi-Tenant Isolation, and MCP AI Agent setup.
|
||||
- **Bilingual Real-Time Fraud Risk Output (`🇧🇩 বাংলা | 🇬🇧 English`)**: Upgraded `FraudRiskEngine.evaluateRisk` and In-Dashboard Quick-Ship widget (`/api/courier/quick-ship`) with bilingual recommendations and 1-click language switching.
|
||||
|
||||
+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 @auraajenticai/aura-courier-mcp@2.6.0`
|
||||
`npx -y aura-courier-mcp@2.6.1`
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"aura-courier-local": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@auraajenticai/aura-courier-mcp@2.6.0"],
|
||||
"args": ["-y", "aura-courier-mcp@2.6.1"],
|
||||
"env": {
|
||||
"PORT": "8080"
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
},
|
||||
"aura-courier-stdio": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@auraajenticai/aura-courier-mcp@2.6.0"]
|
||||
"args": ["-y", "aura-courier-mcp@2.6.1"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+7
-6
@@ -9,6 +9,7 @@ import { buildMcpServer, executeToolCall, TOOLS } from "./server.js";
|
||||
import { createRateLimiter } from "./middleware/rate_limit.js";
|
||||
import { optionalAuthMiddleware, requireMcpAuth, isActionPermitted, resolveAuthContext, verifyWebhookSignature, recordAuditLog, } from "./middleware/auth.js";
|
||||
import { McpToolError, wrapError, wrapSuccess, maskPhone } from "./envelope.js";
|
||||
import { APP_VERSION } from "./version.js";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import pg from "pg";
|
||||
@@ -602,19 +603,19 @@ app.get("/health", (req, res) => {
|
||||
if (req.query.ui === "1" && req.headers.accept?.includes("text/html")) {
|
||||
return res.sendFile(HEALTH_HTML, (err) => {
|
||||
if (err && !res.headersSent)
|
||||
res.json({ ok: true, version: "2.6.0" });
|
||||
res.json({ ok: true, version: APP_VERSION });
|
||||
});
|
||||
}
|
||||
return res.json({
|
||||
ok: true,
|
||||
version: "2.6.0",
|
||||
version: APP_VERSION,
|
||||
});
|
||||
}
|
||||
const mem = process.memoryUsage();
|
||||
const detailed = {
|
||||
ok: true,
|
||||
service: "aura-courier-mcp",
|
||||
version: "2.6.0",
|
||||
version: APP_VERSION,
|
||||
tools_count: TOOLS.length,
|
||||
spatial_engine: "Google Maps Platform (gmp_git_agentskills_v1)",
|
||||
fraud_engine: "Pathao Nationwide v2 + Steadfast Nationwide API + BD Prefix Validator",
|
||||
@@ -637,7 +638,7 @@ app.get("/health", (req, res) => {
|
||||
app.get("/health.html", (_req, res) => {
|
||||
res.sendFile(HEALTH_HTML, (err) => {
|
||||
if (err && !res.headersSent)
|
||||
res.json({ ok: true, version: "2.6.0" });
|
||||
res.json({ ok: true, version: APP_VERSION });
|
||||
});
|
||||
});
|
||||
app.get("/privacy", (_req, res) => {
|
||||
@@ -668,7 +669,7 @@ app.get("/", (_req, res) => {
|
||||
.type("html")
|
||||
.send(`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Aura Courier MCP</title>` +
|
||||
`<style>body{font-family:system-ui,sans-serif;background:#07080a;color:#f4f5f7;margin:0;display:grid;place-items:center;min-height:100vh}.b{max-width:640px;padding:40px;text-align:center}h1{font-size:28px;margin:0 0 10px}code{background:#0f1115;padding:2px 8px;border-radius:6px;color:#00d4ff;font-size:13px}a{color:#00d4ff}p{line-height:1.6;color:#a4a8b3}</style></head>` +
|
||||
`<body><div class="b"><h1>🚚 Aura Courier MCP v2.6.0</h1><p>Enterprise Bangladesh courier MCP & Google Maps Platform spatial hub.</p>` +
|
||||
`<body><div class="b"><h1>🚚 Aura Courier MCP v${APP_VERSION}</h1><p>Enterprise Bangladesh courier MCP & Google Maps Platform spatial hub.</p>` +
|
||||
`<p>Connect your AI to <code>POST /mcp</code> with Streamable-HTTP.</p>` +
|
||||
`<p>Webhooks: <code>POST /webhooks/steadfast</code> · <code>POST /webhooks/pathao</code></p>` +
|
||||
`<p>By <a href="https://auraajenticai.cloud">Aura Ajentic AI</a> · <a href="https://courier.auraajenticai.cloud">docs & setup</a></p></div></body></html>`);
|
||||
@@ -677,6 +678,6 @@ app.get("/", (_req, res) => {
|
||||
});
|
||||
if (process.env.NODE_ENV !== "test") {
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Aura Courier MCP v2.6.0 (HTTP) listening on :${PORT} — POST /mcp`);
|
||||
console.log(`Aura Courier MCP v${APP_VERSION} (HTTP) listening on :${PORT} — POST /mcp`);
|
||||
});
|
||||
}
|
||||
|
||||
Vendored
+2
-1
@@ -2,13 +2,14 @@
|
||||
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
||||
import { CourierRegistry } from "./registry.js";
|
||||
import { buildMcpServer } from "./server.js";
|
||||
import { APP_VERSION } from "./version.js";
|
||||
// STDIO / npx entrypoint (Claude Desktop, Cursor, Antigravity).
|
||||
// Credentials come from environment variables (STEADFAST_API_KEY, PATHAO_*).
|
||||
async function run() {
|
||||
const server = buildMcpServer(new CourierRegistry());
|
||||
const transport = new StdioServerTransport();
|
||||
await server.connect(transport);
|
||||
console.error("Aura Courier MCP v2.6.0 running on STDIO");
|
||||
console.error(`Aura Courier MCP v${APP_VERSION} running on STDIO`);
|
||||
}
|
||||
run().catch((error) => {
|
||||
console.error("Fatal error running Aura Courier MCP:", error);
|
||||
|
||||
Vendored
+2
-1
@@ -1,6 +1,7 @@
|
||||
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
||||
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
||||
import { McpToolError, wrapError, wrapSuccess } from "./envelope.js";
|
||||
import { APP_VERSION } from "./version.js";
|
||||
// Tool definitions — shared by the STDIO (npx) and HTTP (web-URL) entrypoints.
|
||||
export const TOOLS = [
|
||||
{
|
||||
@@ -329,7 +330,7 @@ export async function executeToolCall(registry, name, args = {}, tenantId = "def
|
||||
* for HTTP it is built per-request from that client's keys.
|
||||
*/
|
||||
export function buildMcpServer(registry, authChecker, tenantId = "default") {
|
||||
const server = new Server({ name: "aura-courier-mcp", version: "2.6.0" }, { capabilities: { tools: {} } });
|
||||
const server = new Server({ name: "aura-courier-mcp", version: APP_VERSION }, { capabilities: { tools: {} } });
|
||||
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));
|
||||
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
||||
const { name, arguments: args } = request.params;
|
||||
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
export declare const APP_VERSION: string;
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
function readPackageVersion() {
|
||||
try {
|
||||
const pkgUrl = new URL("../package.json", import.meta.url);
|
||||
const raw = readFileSync(pkgUrl, "utf8");
|
||||
const parsed = JSON.parse(raw);
|
||||
if (typeof parsed?.version === "string" && parsed.version.trim()) {
|
||||
return parsed.version.trim();
|
||||
}
|
||||
}
|
||||
catch {
|
||||
// Fallback if package.json is unavailable at runtime
|
||||
}
|
||||
return "2.6.1";
|
||||
}
|
||||
export const APP_VERSION = readPackageVersion();
|
||||
+3
-3
@@ -1635,7 +1635,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.6.0</span>
|
||||
<span class="version-pill">v2.6.1</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="footer-tagline">
|
||||
@@ -2004,7 +2004,7 @@
|
||||
},
|
||||
"aura-courier-local": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@auraajenticai/aura-courier-mcp@2.6.0"],
|
||||
"args": ["-y", "aura-courier-mcp@2.6.1"],
|
||||
"env": { "PORT": "8080" }
|
||||
}
|
||||
}
|
||||
@@ -2021,7 +2021,7 @@
|
||||
},
|
||||
"aura-courier-stdio": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@auraajenticai/aura-courier-mcp@2.6.0"]
|
||||
"args": ["-y", "aura-courier-mcp@2.6.1"]
|
||||
}
|
||||
}
|
||||
}, null, 2)
|
||||
|
||||
+2
-2
@@ -360,7 +360,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<span class="brand-title">Aura Courier MCP</span>
|
||||
<span class="brand-sub">v2.6.0 · Telemetry</span>
|
||||
<span class="brand-sub">v2.6.1 · Telemetry</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nav-actions">
|
||||
@@ -499,7 +499,7 @@
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>Aura Courier MCP v2.6.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.6.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>
|
||||
|
||||
+5
-5
@@ -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.6.0 — Multi-Courier Integration for Developers</title>
|
||||
<title>Aura Courier MCP v2.6.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" />
|
||||
@@ -1171,7 +1171,7 @@
|
||||
<div class="logo-text-wrap">
|
||||
<div class="logo-title">
|
||||
<span>Aura Courier MCP</span>
|
||||
<span class="version-pill">v2.6.0</span>
|
||||
<span class="version-pill">v2.6.1</span>
|
||||
</div>
|
||||
<span class="logo-sub">Multi-Courier Integration for Developers</span>
|
||||
</div>
|
||||
@@ -1806,7 +1806,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.6.0</span>
|
||||
<span class="version-pill">v2.6.1</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="footer-tagline">
|
||||
@@ -2087,7 +2087,7 @@
|
||||
},
|
||||
"aura-courier-local": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@auraajenticai/aura-courier-mcp@2.6.0"],
|
||||
"args": ["-y", "aura-courier-mcp@2.6.1"],
|
||||
"env": { "PORT": "8080" }
|
||||
}
|
||||
}
|
||||
@@ -2104,7 +2104,7 @@
|
||||
},
|
||||
"aura-courier-stdio": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@auraajenticai/aura-courier-mcp@2.6.0"]
|
||||
"args": ["-y", "aura-courier-mcp@2.6.1"]
|
||||
}
|
||||
}
|
||||
}, null, 2)
|
||||
|
||||
+2
-2
@@ -361,7 +361,7 @@
|
||||
"capabilities": {},
|
||||
"clientInfo": {
|
||||
"name": "Aura-Playground",
|
||||
"version": "2.6.0"
|
||||
"version": "2.6.1"
|
||||
}
|
||||
}
|
||||
}</textarea>
|
||||
@@ -432,7 +432,7 @@
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>Aura Courier MCP v2.6.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.6.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.5.2",
|
||||
"version": "2.6.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "aura-courier-mcp",
|
||||
"version": "2.5.2",
|
||||
"version": "2.6.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.12.0",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "aura-courier-mcp",
|
||||
"version": "2.6.0",
|
||||
"version": "2.6.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",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "aura-courier",
|
||||
"displayName": "Aura Courier MCP",
|
||||
"version": "2.6.0",
|
||||
"version": "2.6.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",
|
||||
|
||||
+1
-1
@@ -254,7 +254,7 @@
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>Aura Courier MCP v2.5.4 · Developed by <b>Aura Agentic AI</b> · Released under <b>Apache License 2.0</b></p>
|
||||
<p>Aura Courier MCP v2.6.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> ·
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
"name": "io.github.auraajenticai/aura-courier-mcp",
|
||||
"title": "Aura Courier MCP",
|
||||
"description": "Bangladesh courier connector: Steadfast, Pathao, RedX, Paperfly normalized delivery and tracking.",
|
||||
"version": "2.6.0",
|
||||
"version": "2.6.1",
|
||||
"websiteUrl": "https://github.com/auraajenticai/aura-courier-mcp",
|
||||
"repository": {
|
||||
"url": "https://github.com/auraajenticai/aura-courier-mcp",
|
||||
@@ -13,7 +13,7 @@
|
||||
{
|
||||
"registryType": "npm",
|
||||
"identifier": "aura-courier-mcp",
|
||||
"version": "2.6.0",
|
||||
"version": "2.6.1",
|
||||
"transport": {
|
||||
"type": "stdio"
|
||||
},
|
||||
|
||||
+3
-3
@@ -1635,7 +1635,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.6.0</span>
|
||||
<span class="version-pill">v2.6.1</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="footer-tagline">
|
||||
@@ -2004,7 +2004,7 @@
|
||||
},
|
||||
"aura-courier-local": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@auraajenticai/aura-courier-mcp@2.6.0"],
|
||||
"args": ["-y", "aura-courier-mcp@2.6.1"],
|
||||
"env": { "PORT": "8080" }
|
||||
}
|
||||
}
|
||||
@@ -2021,7 +2021,7 @@
|
||||
},
|
||||
"aura-courier-stdio": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@auraajenticai/aura-courier-mcp@2.6.0"]
|
||||
"args": ["-y", "aura-courier-mcp@2.6.1"]
|
||||
}
|
||||
}
|
||||
}, null, 2)
|
||||
|
||||
+7
-6
@@ -17,6 +17,7 @@ import {
|
||||
} from "./middleware/auth.js";
|
||||
import { McpToolError, wrapError, wrapSuccess, maskPhone } from "./envelope.js";
|
||||
import { SupportedCourier } from "./types.js";
|
||||
import { APP_VERSION } from "./version.js";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import pg from "pg";
|
||||
@@ -728,12 +729,12 @@ app.get("/health", (req, res) => {
|
||||
if (!isAdmin) {
|
||||
if (req.query.ui === "1" && req.headers.accept?.includes("text/html")) {
|
||||
return res.sendFile(HEALTH_HTML, (err) => {
|
||||
if (err && !res.headersSent) res.json({ ok: true, version: "2.6.0" });
|
||||
if (err && !res.headersSent) res.json({ ok: true, version: APP_VERSION });
|
||||
});
|
||||
}
|
||||
return res.json({
|
||||
ok: true,
|
||||
version: "2.6.0",
|
||||
version: APP_VERSION,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -741,7 +742,7 @@ app.get("/health", (req, res) => {
|
||||
const detailed = {
|
||||
ok: true,
|
||||
service: "aura-courier-mcp",
|
||||
version: "2.6.0",
|
||||
version: APP_VERSION,
|
||||
tools_count: TOOLS.length,
|
||||
spatial_engine: "Google Maps Platform (gmp_git_agentskills_v1)",
|
||||
fraud_engine: "Pathao Nationwide v2 + Steadfast Nationwide API + BD Prefix Validator",
|
||||
@@ -765,7 +766,7 @@ app.get("/health", (req, res) => {
|
||||
|
||||
app.get("/health.html", (_req, res) => {
|
||||
res.sendFile(HEALTH_HTML, (err) => {
|
||||
if (err && !res.headersSent) res.json({ ok: true, version: "2.6.0" });
|
||||
if (err && !res.headersSent) res.json({ ok: true, version: APP_VERSION });
|
||||
});
|
||||
});
|
||||
|
||||
@@ -801,7 +802,7 @@ app.get("/", (_req, res) => {
|
||||
.send(
|
||||
`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Aura Courier MCP</title>` +
|
||||
`<style>body{font-family:system-ui,sans-serif;background:#07080a;color:#f4f5f7;margin:0;display:grid;place-items:center;min-height:100vh}.b{max-width:640px;padding:40px;text-align:center}h1{font-size:28px;margin:0 0 10px}code{background:#0f1115;padding:2px 8px;border-radius:6px;color:#00d4ff;font-size:13px}a{color:#00d4ff}p{line-height:1.6;color:#a4a8b3}</style></head>` +
|
||||
`<body><div class="b"><h1>🚚 Aura Courier MCP v2.6.0</h1><p>Enterprise Bangladesh courier MCP & Google Maps Platform spatial hub.</p>` +
|
||||
`<body><div class="b"><h1>🚚 Aura Courier MCP v${APP_VERSION}</h1><p>Enterprise Bangladesh courier MCP & Google Maps Platform spatial hub.</p>` +
|
||||
`<p>Connect your AI to <code>POST /mcp</code> with Streamable-HTTP.</p>` +
|
||||
`<p>Webhooks: <code>POST /webhooks/steadfast</code> · <code>POST /webhooks/pathao</code></p>` +
|
||||
`<p>By <a href="https://auraajenticai.cloud">Aura Ajentic AI</a> · <a href="https://courier.auraajenticai.cloud">docs & setup</a></p></div></body></html>`
|
||||
@@ -812,6 +813,6 @@ app.get("/", (_req, res) => {
|
||||
|
||||
if (process.env.NODE_ENV !== "test") {
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Aura Courier MCP v2.6.0 (HTTP) listening on :${PORT} — POST /mcp`);
|
||||
console.log(`Aura Courier MCP v${APP_VERSION} (HTTP) listening on :${PORT} — POST /mcp`);
|
||||
});
|
||||
}
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@
|
||||
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
||||
import { CourierRegistry } from "./registry.js";
|
||||
import { buildMcpServer } from "./server.js";
|
||||
import { APP_VERSION } from "./version.js";
|
||||
|
||||
// STDIO / npx entrypoint (Claude Desktop, Cursor, Antigravity).
|
||||
// Credentials come from environment variables (STEADFAST_API_KEY, PATHAO_*).
|
||||
@@ -9,7 +10,7 @@ async function run() {
|
||||
const server = buildMcpServer(new CourierRegistry());
|
||||
const transport = new StdioServerTransport();
|
||||
await server.connect(transport);
|
||||
console.error("Aura Courier MCP v2.6.0 running on STDIO");
|
||||
console.error(`Aura Courier MCP v${APP_VERSION} running on STDIO`);
|
||||
}
|
||||
|
||||
run().catch((error) => {
|
||||
|
||||
+2
-1
@@ -7,6 +7,7 @@ import {
|
||||
import { CourierRegistry } from "./registry.js";
|
||||
import { SupportedCourier } from "./types.js";
|
||||
import { EnvelopeSource, McpToolError, wrapError, wrapSuccess } from "./envelope.js";
|
||||
import { APP_VERSION } from "./version.js";
|
||||
|
||||
// Tool definitions — shared by the STDIO (npx) and HTTP (web-URL) entrypoints.
|
||||
export const TOOLS: Tool[] = [
|
||||
@@ -386,7 +387,7 @@ export function buildMcpServer(
|
||||
tenantId: string = "default"
|
||||
): Server {
|
||||
const server = new Server(
|
||||
{ name: "aura-courier-mcp", version: "2.6.0" },
|
||||
{ name: "aura-courier-mcp", version: APP_VERSION },
|
||||
{ capabilities: { tools: {} } }
|
||||
);
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
|
||||
function readPackageVersion(): string {
|
||||
try {
|
||||
const pkgUrl = new URL("../package.json", import.meta.url);
|
||||
const raw = readFileSync(pkgUrl, "utf8");
|
||||
const parsed = JSON.parse(raw);
|
||||
if (typeof parsed?.version === "string" && parsed.version.trim()) {
|
||||
return parsed.version.trim();
|
||||
}
|
||||
} catch {
|
||||
// Fallback if package.json is unavailable at runtime
|
||||
}
|
||||
return "2.6.1";
|
||||
}
|
||||
|
||||
export const APP_VERSION: string = readPackageVersion();
|
||||
+8
-2
@@ -3,6 +3,8 @@ import assert from "node:assert/strict";
|
||||
import http from "node:http";
|
||||
import axios from "axios";
|
||||
|
||||
import fs from "node:fs";
|
||||
|
||||
// Configure test environment before importing app/modules
|
||||
process.env.NODE_ENV = "test";
|
||||
process.env.AURA_API_KEY = "aura_test_master_key_v260";
|
||||
@@ -413,6 +415,10 @@ test("10. create_parcel({ ..., dry_run:true }) makes zero upstream booking calls
|
||||
assert.equal(envelope.validation.phone_ok, true);
|
||||
});
|
||||
|
||||
const expectedVersion = JSON.parse(
|
||||
fs.readFileSync(new URL("../package.json", import.meta.url), "utf8")
|
||||
).version;
|
||||
|
||||
test("11. GET /health unauthenticated returns only { ok, version }; with admin token returns full telemetry", async () => {
|
||||
const unauthRes = await fetch(`${baseUrl}/health`, {
|
||||
headers: { Accept: "application/json" },
|
||||
@@ -421,7 +427,7 @@ test("11. GET /health unauthenticated returns only { ok, version }; with admin t
|
||||
const unauthBody = await unauthRes.json();
|
||||
assert.deepEqual(Object.keys(unauthBody).sort(), ["ok", "version"]);
|
||||
assert.equal(unauthBody.ok, true);
|
||||
assert.equal(unauthBody.version, "2.6.0");
|
||||
assert.equal(unauthBody.version, expectedVersion);
|
||||
|
||||
const adminRes = await fetch(`${baseUrl}/health?detail=1`, {
|
||||
headers: {
|
||||
@@ -432,7 +438,7 @@ test("11. GET /health unauthenticated returns only { ok, version }; with admin t
|
||||
assert.equal(adminRes.status, 200);
|
||||
const adminBody = await adminRes.json();
|
||||
assert.equal(adminBody.ok, true);
|
||||
assert.equal(adminBody.version, "2.6.0");
|
||||
assert.equal(adminBody.version, expectedVersion);
|
||||
assert.equal(adminBody.tools_count, 12);
|
||||
assert.ok(adminBody.performance);
|
||||
});
|
||||
|
||||
+4
-3
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Aura Courier MCP — Plugin Validation & Compliance Suite (v2.5.2)
|
||||
* Aura Courier MCP — Plugin Validation & Compliance Suite
|
||||
* Corresponds to `agy plugin validate .` standards.
|
||||
*/
|
||||
|
||||
@@ -11,6 +11,7 @@ const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
const PLUGIN_DIR = __dirname;
|
||||
const PKG_VERSION = JSON.parse(fs.readFileSync(path.join(PLUGIN_DIR, 'package.json'), 'utf8')).version;
|
||||
let passedChecks = 0;
|
||||
let totalChecks = 0;
|
||||
|
||||
@@ -42,7 +43,7 @@ async function validateManifest() {
|
||||
|
||||
assert(json.name === 'aura-courier', `name matches 'aura-courier' (got '${json.name}')`);
|
||||
assert(json.displayName === 'Aura Courier MCP', `displayName is 'Aura Courier MCP'`);
|
||||
assert(json.version === '2.5.2', `version is '2.5.2'`);
|
||||
assert(json.version === PKG_VERSION, `version matches package.json ('${PKG_VERSION}', got '${json.version}')`);
|
||||
assert(json.category === 'Business / Logistics', `category is 'Business / Logistics'`);
|
||||
assert(typeof json.description === 'string' && json.description.length > 20, 'description is informative');
|
||||
assert(json.logo === 'assets/logo.svg', `logo points to 'assets/logo.svg'`);
|
||||
@@ -127,7 +128,7 @@ async function validateRemoteMcpServer() {
|
||||
params: {
|
||||
protocolVersion: '2024-11-05',
|
||||
capabilities: {},
|
||||
clientInfo: { name: 'antigravity-validator', version: '2.5.2' }
|
||||
clientInfo: { name: 'antigravity-validator', version: PKG_VERSION }
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user