項目作品/宿霧科爾多瓦旅遊CMS
基於Next.js 16打造嘅旅遊與商業投資平台,具備即時熱度分析同內置AI MCP伺服器。

為菲律賓宿霧科爾多瓦打造嘅高性能市政入口網站與無頭CMS。具備電影感嘅3D環繞主視覺、動態"Popular Now"熱度引擎、自動化SEO元數據生成,以及用於自主AI管理嘅內置Model Context Protocol(MCP)伺服器。
Key architectural decisions, concrete code implementations, and performance wins behind this project.
Exposing internal CMS operations (business listings, blog posts, media uploads, trending analytics, and hero settings) directly to external AI agents and LLM tooling without building redundant REST endpoints or compromising Next.js App Router security.
Implemented an embedded Streamable HTTP MCP server inside the Next.js Route Handler using @modelcontextprotocol/sdk, securing all incoming AI agent operations with stateless JWT verification via jose and modular domain toolkits.
Calculating real-time 'Popular Now' content rankings from raw PageView timeseries telemetry without bottlenecking the database or serving stale/empty results during low-traffic windows.
Built an aggregation engine in lib/trending.ts that groups page views by customizable time windows, falls back smoothly across cascading intervals (1h → 1d → 1w → all-time), and caches computed rankings via Next.js unstable_cache with interval-specific TTLs.
Maintaining rich search previews and Schema.org structured data (TouristDestination, LocalBusiness, Article, BreadcrumbList) dynamically across multi-tenant routes with varying fallbacks and strict search engine compliance.
Created a centralized builder utility in lib/seo.ts that produces typed OpenGraph, Twitter cards, and Schema.org graphs for business listings, municipal attractions, and editorial content.
// community_discussion
Have thoughts, questions, or ideas regarding this system's architecture? Leave a comment below with your GitHub account.