streamable-httpupdated 1mo ago
Personal website of Sigao Li β AI Product Manager Β· Spatial Data Scientist. From maps to models, and the products in between.
What can you do with Sigao Li β personal MCP server?
sigaoli.com
Personal website of Sigao Li β AI Product Manager Β· Spatial Data Scientist. From maps to models, and the products in between.
Bilingual (English at /, δΈζ at /zh/), built with Astro + Tailwind CSS v4 + GSAP,
deployed to GitHub Pages via GitHub Actions. Launched 2026-06-11, replacing the previous
Jekyll (academicpages) site.
Highlights
- Generative canvas effects on a map motif β an interactive particle field (home), contour terrain (work), a "river as timeline" with a flow field (CV), and a geo-network arc map (photography); all vanilla canvas/SVG, tuned to 60fps with reduced-motion and mobile fallbacks
- Dotted world map β land sampled from Natural Earth, with 76 GPS-extracted photo footprints across 6 countries; click a marker to open that country's gallery
- Zoe, the digital doorcat β Sigao's cat (ι©Ίθ) lives in the corner of every page as a set of AI-generated, chroma-keyed VP9-alpha video clips pinned to shared anchor poses, driven by a state machine: she dozes off when ignored, reacts to page switches, listens while you type, "types back" while the assistant streams, and keeps a few easter eggs (production handbook in
docs/) - Built-in AI layer β a floating chat assistant (fronted by Zoe) on every page β it suggests the single most relevant page as you ask, and greets a returning visitor by name (stored only in their own browser, opt-in) β plus a personal MCP server, both fed by a build-time knowledge pack generated from the same sources as the pages (see below)
- Machine-readable by design β
/llms.txt,/llms-full.txt,/resume.json(JSON Resume),/knowledge.json,/.well-known/mcp.json, JSON-LD, and a robots.txt that explicitly welcomes AI crawlers - Build-time translation pipeline β long-form zh content generated by LLM with hash caching; human edits are protected from re-translation
- Lighthouse (mobile): 96β100 across all categories; zero cookies, no paid services, and a plain-language privacy notice at
/privacy
Commands
| Command | Action |
|---|---|
npm run dev |
Dev server at localhost:4321 (Astro 7 runs it as a daemon β stop with npx astro dev stop) |
npm run build |
Production build to dist/ |
npm run preview |
Serve the production build locally |
node scripts/translate.mjs |
Re-translate changed en content β zh (needs .env, see .env.example; manually edited zh files are never overwritten) |
node scripts/check-links.mjs |
Internal link integrity check over dist/ |
node scripts/verify-nav.mjs η |
Playwright interaction suites (run against a local server) |
npm run dev (in worker/) |
Chat + MCP Worker at localhost:8787 (wrangler; secrets in worker/.dev.vars, never committed) |
node scripts/verify-chat.mjs |
E2E chat-widget test (needs both dev servers running) |
node scripts/verify-zoe.mjs |
E2E for Zoe's action state machine (append ?zoe-fast locally to compress minute-scale timers) |
node scripts/verify-typeroute.mjs |
E2E for the intent-driven typing clip and the bilingual 404 page |
Any Playwright suite that waits on Zoe's state must pin the clock (
Date.prototype.getHours = () => 14): between 23:00 and 06:00 she starts the session asleep, sostatenever reachesidleand the run just times out.
When adding a Zoe clip, decide who prewarms it and when at the same time. A clip that is only fetched at playback stalls on a slow connection, and the stage shows nothing until it decodes. Prewarming has been missed three times already. Note
warm()takes the file name (sit-to-loaf), not theZOEkey (sitToLoaf).
The chat panel is rebuilt on every navigation β
transition:persistkeeps Zoe's stage, not the panel. Anything that lives only in panel DOM is gone the moment a visitor clicks a link. The streaming reply, the guidance chip and the unsent draft each had to be given module state plus a path back throughpaint(); the chip was lost for weeks before anyone noticed. So when adding persistent UI here, answer two questions up front: how doespaint()rebuild it, and should it ride along insessionStoragewith the history? Measure geometry only once the panel is visible βscrollHeightis 0 while it is hidden, which silently writesheight: 0px.
Turnstile guards
/chatand/classify. It must never guard/mcp. That endpoint exists so machines can read Sigao's profile β it is in the official registry β and Turnstile exists to stop machines. It also costs nothing to serve: the tools read the knowledge pack and never call a model. The static outlets (llms.txt,knowledge.json,.well-known/mcp.json) are served by Pages and never reach the Worker at all.
Locally, Turnstile uses Cloudflare's always-pass test keys β sitekey in
site.tsbehindimport.meta.env.DEV, secret inworker/.dev.vars. The real key rejects headless browsers, which is exactly its job, so every suite that drives a real Worker would fail against it. The real secret exists only in production, set withwrangler secret put. A corollary worth remembering: the production happy path cannot be verified from a script β reaching it needs a human in a real browser. Automation can still prove the gate is up (a request with no credential must return 403).
src/
βββ pages/ # en routes + zh/ mirrors; llms.txt / resume.json / knowledge.json endpoints
βββ components/ # Nav, Hero, WorldMap, Lightbox, CommandK, ChatWidget β¦
β βββ pages/ # shared page bodies rendered by both locales
βββ content/ # cases & research (en) + cases-zh & research-zh (generated, reviewed)
βββ data/ # cv.json / cv.zh.json / photos.json (GPS + bilingual alts)
β βββ knowledge/ # persona sources for the AI assistant (about / faq / guidelines / boundaries)
βββ lib/ # i18n dict, GSAP lifecycle helper, site config
β βββ knowledge/ # knowledge-pack pipeline (same-source layers + build-time privacy guard)
βββ assets/ # photo originals (optimized at build; originals never shipped)
worker/ # Cloudflare Worker: /chat (SSE) + /classify (intent) + /mcp (MCP server)
βββ src/core/ # runtime-agnostic logic; Cloudflare specifics live only in src/adapter/
public/zoe/ # Zoe's clip library (600p VP9 alpha, lazy-loaded; idle loads first)
docs/ # zoe-production-handbook.md β clip production specs & prompt cards
AI layer
One knowledge layer, three outlets: /llms-full.txt for passive crawlers, a chat assistant
(POST /chat, SSE) for humans, and an MCP server (/mcp, Streamable HTTP, no auth β tools:
get_profile / list_experience / get_case_study) for visiting agents, both served from
api.sigaoli.com (Cloudflare Worker, code in worker/). The knowledge pack
(/knowledge.json) is assembled at build time from the
same sources as the pages β persona markdown, cv.json, case studies, photo stats β so any
content edit propagates to all three outlets on the next deploy, no manual step. A privacy
guard fails the build if sensitive patterns (phone numbers, IDs, coordinates) ever leak into
the pack.
Alongside each reply the chat runs a lightweight intent classifier (POST /classify, a small
model) to suggest the single most relevant page, and can remember a returning visitor's name β
both kept entirely in the visitor's own browser (opt-in, clearable via "Forget me"), never on a
server. Visitors in the EU/EEA/UK have their chat and classification routed to an EU-hosted
provider, never the China-direct API. What the site stores and sends is described in plain
language at /privacy.
Editing content
- Case studies / research: edit
src/content/cases/*.md(en), then run the translate script β or edit the-zhfiles directly (they're override-protected afterwards). - CV: edit
src/data/cv.json(+cv.zh.json); the timeline,/resume.jsonand/llms-full.txtall render from it. Replacepublic/files/pdf/CV__Sigao_Li.pdfalongside. - UI strings & hero copy: hand-written bilingual dictionary in
src/lib/i18n.ts. - Photos: drop JPGs into
src/assets/photos/<country>/, add entries tosrc/data/photos.json(runnode scripts/extract-gps.mjsfor coordinates). Photo stats in the AI knowledge pack update automatically. - AI assistant persona: edit
src/data/knowledge/*.md; the knowledge pack rebuilds on every deploy and the assistant follows within ~10 minutes (Worker-side cache TTL). - Zoe's actions: source clips live outside the repo; the pipeline
(
scripts/zoe-board2.mjsβzoe-qc2.mjsβzoe-prod2.mjs) keys, QCs, mirrors and encodes them intopublic/zoe/. New actions = one clip + one row in theZOEtable inChatWidget.astro; specs and prompt cards indocs/zoe-production-handbook.md.
Deployment
Push to master β GitHub Actions (.github/workflows/deploy.yml) audits, builds and
deploys to Pages. Pushes to v2 build without deploying (verification).
The Worker deploys separately: cd worker && npx wrangler deploy (secrets via
wrangler secret put; custom domain api.sigaoli.com bound in the Cloudflare dashboard).
When a batch changes both, deploy the Worker first β the chat UI calls its endpoints, so a
site push ahead of the Worker leaves a brief window where those calls 404.
A deploy takes up to a minute to reach every edge location. Checking immediately reads the previous version, which has twice looked like a broken deploy when nothing was wrong β wait, then check.
Daily chat usage is at https://api.sigaoli.com/usage (last seven days, plus whether today has
hit the cap). The cap itself is DAILY_CAP in worker/src/core/quota.ts; when it trips it emails
once via Cloudflare Email Routing.
β οΈ Never click "Sync fork". This repository began as an academicpages fork; syncing would reset
masterto the upstream template. If that ever happens again:git push --force origin <good-commit>:master.
Install
Add Sigao Li β personal MCP server to your client. Pick the one you use.
claude mcp add --transport http sigao-li-personal-mcp-server https://api.sigaoli.com/mcpcodex mcp add sigao-li-personal-mcp-server --url https://api.sigaoli.com/mcp{
"mcpServers": {
"sigao-li-personal-mcp-server": {
"url": "https://api.sigaoli.com/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"sigao-li-personal-mcp-server": {
"type": "http",
"url": "https://api.sigaoli.com/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"sigao-li-personal-mcp-server": {
"url": "https://api.sigaoli.com/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"sigao-li-personal-mcp-server": {
"serverUrl": "https://api.sigaoli.com/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance19/25
- Trust6/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 24 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Version history
| Versions | Published |
|---|---|
| 1.0.0Latest | Aug 5, 2026 |