実績・プロジェクト/コルドバ、セブ 観光CMS
リアルタイムトレンド分析と組み込みAI MCPサーバーを備えた、Next.js 16による観光・ビジネス投資プラットフォーム。

フィリピン・セブ島コルドバのための高性能な自治体ポータル兼ヘッドレス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.