Destiny 2.0.0:雙連接埠 MCP 故障切換、Smart Git 鏡像與 100 分頁瀏覽器驗證
Zero-Downtime Dual-Port MCP Failover (:18094/:18095), Smart Git Mirroring (:18096) & 100-Tab Browser Verification
Destiny 2.0.0 將雙連接埠 Streamable HTTP MCP 故障切換、自我託管 Smart Git 鏡像及瀏覽器安全驗證整合成可驗證堆疊。MCP 兩個連接埠均提供 114 項工具,Smart Git 鏡像則透過 :18096 提供唯讀 Git 儲存庫。Hugging Face 工作區現有 98 個零上載互動分頁,第 99 和第 100 個分頁則列入路線圖。
Shipping public verification tools and open-source developer suites requires resilience across three operational planes: zero-downtime Streamable HTTP API routing, self-hosted Smart Git mirroring independent of third-party code hosts, and reproducible browser security verification inside clean tabs.
Across nandai.org/glossary/model-context-protocol-mcp-json-rpc-2-0-stdio-local-tools, nandai.org/glossary/well-known-mcp-json-model-context-protocol-discovery, and nandai.org/proofs/verify-zero-upload-browser-tools-devtools-network-proof, Destiny 2.0.0 links all three planes into a single verifiable stack.
1. Zero-Downtime Dual-Port Streamable HTTP MCP Failover (:18094 + :18095)
Behind https://nandai.org/api/mcp, Nginx proxies traffic to destiny_mcp_backend (:18094 + :18095 backup) (mcp-streamable-http, protocol versions 2025-06-18, 2025-03-26, and 2024-11-05):
-
Rolling Port Handoff: Both
:18094/healthzand:18095/healthzexpose livetools_count: 114parity;rolling_restart.shupgrades one worker at a time while the backup port drains zero-auth JSON-RPC requests (197 / 2042xxresponses across89unique IPs). -
Stateless Zero-Auth Sandboxing:
https://nandai.org/.well-known/mcp/server-card.jsonandhttps://nandai.org/.well-known/mcp.jsonadvertiseauthentication.required: falseunder"stateless-zero-auth-no-filesystem-no-subprocess"sandboxing (blocking/etc/passwdreads with403 sandbox_blocked). -
One-Click Discovery Formats:
/api/mcp?format=server-cardand/api/mcp?format=openapimirror live schemas across all114MIT tools.
2. Self-Hosted Smart Git Mirroring (:18096 -> /git/destiny.git)
Upstream destiny_git_backend (:18096) serves read-only Smart HTTP Git repositories indexed in sovereign-git-mirrors.json:
| Sovereign Artifact | Live Endpoint & Verified State |
|---|---|
| Primary MIT Repo |
https://nandai.org/git/destiny.git (HEAD 071e662279ee91ddce00468d3be03744ba19ef85, 20 pre-commit hooks, 0 PyPI deps) |
| Homebrew Tap Repo |
https://nandai.org/git/homebrew-destiny.git/ (HEAD fac988dde98359e5e7d32c17e2ad434a4136ef7f) |
| Static Source Mirror & Tarball |
https://nandai.org/src/destiny/ (121 tracked files; 151 mirror files / 257 hits / 85 unique IPs) + destiny-verify-2.0.0.tar.gz (6,547,414 B) |
3. Browser Security Verification & 100-Tab Zero-Upload Suite
Client-side browser verification combines static header hardening with multi-tab interactive testing:
-
Static
nandai.orgBrowser Tools (nandai.org/tools): Live Playwright runtime auditing across all12/tools/*utilities +/download+/tools(14/14HTTP 200) measured0console errors,0page errors,0CSP violations,0failed subresources,0third-party requests, and0beacon calls (all_observed_hosts: ["nandai.org"]), paired with46pinned SHA-256 CSP hashes across895static HTML files. -
Hugging Face Interactive Workspace (
destiny-apple-silicon-workspace): Runs98live zero-upload interactive tabs (#1 umathrough#97 dockerfile-secand#98 csp-strict), whilehuggingface-100tab-roadmap-index.jsontracks staged Tabs#99(pci-client-integrity) and#100(agent-security-guard) paired withDestiny-M4-Pro-Hardware-Benchmarks.
4. End-to-End Python Verification Script
#!/usr/bin/env python3
"""Verify dual-port /api/mcp (114 tools), Smart Git mirror (:18096), and 100-tab HF roadmap."""
import json
import urllib.request
HEADERS = {"User-Agent": "Mozilla/5.0"}
def fetch_json(url: str) -> dict:
with urllib.request.urlopen(urllib.request.Request(url, headers=HEADERS), timeout=15) as r:
assert r.status == 200
return json.loads(r.read().decode("utf-8"))
mcp = fetch_json("https://nandai.org/api/mcp")
git_reg = fetch_json("https://nandai.org/.well-known/sovereign-git-mirrors.json")
hf_idx = fetch_json("https://nandai.org/.well-known/huggingface-100tab-roadmap-index.json")
assert mcp["ok"] is True and mcp["tools_count"] == len(mcp["tool_names"]) == 114
assert git_reg["verifiedCommit"] == "071e662279ee91ddce00468d3be03744ba19ef85"
assert hf_idx["roadmapTo100Tabs"]["roadmapTargetTabsCount"] == 100
with urllib.request.urlopen(urllib.request.Request("https://nandai.org/git/destiny.git", headers=HEADERS), timeout=15) as r:
assert r.status == 200
print("Dual-port /api/mcp, Smart Git mirror, and 100-tab browser verification verified.")
Additional references: nandai.org/security and nandai.org/opensource.
來源:DEV Community · dev.to