mcpview.dev documentation site
  • HTML 93.2%
  • TypeScript 3.1%
  • Astro 2.9%
  • CSS 0.6%
  • JavaScript 0.1%
  • Other 0.1%
Find a file
2026-12-01 21:04:54 +08:00
docs Explain Code Mode and show a real multi-server Compose board 2026-11-28 22:43:42 +08:00
media/linkedin feat: second pass — short hero, five recordings, beta.3 demo viewers 2026-10-17 21:32:01 +08:00
public Explain Code Mode and show a real multi-server Compose board 2026-11-28 22:43:42 +08:00
src docs: update active context FAQ to @mcpview/components 0.16 gestures 2026-12-01 21:04:54 +08:00
tools/recording docs: deploy guide, recording tools, demo wording 2026-10-17 22:27:15 +08:00
.gitignore chore: ignore Vercel link files 2026-10-17 22:45:20 +08:00
.vercelignore docs: @mcpview names, CLI deploy path, .vercelignore 2026-10-17 22:44:29 +08:00
astro.config.mjs feat: first draft of mcpview.dev (Astro, one page, live MCP Apps demo) 2026-10-17 21:06:31 +08:00
DEPLOY.md docs(deploy): repository, clean-checkout deploy, Vercel Git app 2026-10-17 23:51:36 +08:00
package-lock.json feat: first draft of mcpview.dev (Astro, one page, live MCP Apps demo) 2026-10-17 21:06:31 +08:00
package.json feat: second pass — short hero, five recordings, beta.3 demo viewers 2026-10-17 21:32:01 +08:00
README.md Explain Code Mode and show a real multi-server Compose board 2026-11-28 22:43:42 +08:00
tsconfig.json docs: deploy guide, recording tools, demo wording 2026-10-17 22:27:15 +08:00
vercel.json feat(analytics): cookieless Umami on mcpview.dev 2026-10-18 10:18:43 +08:00

mcpview-site

One-page website for mcpview.dev — “Point, open, go deeper — inside the MCP view.”

The site shows a new interaction experience between people and agents in MCP Apps views: the user acts in the view, the model follows along. Short screen recordings carry the message; below them, the real mcp-erpnext viewers run live in the page. The libraries behind it are the @mcpview family on JSR and npm (@mcpview/server, @mcpview/view, @mcpview/components, @mcpview/contracts, @mcpview/compose, @mcpview/bridge), developed in mcpview/mcpview.

Built with Astro (static output). No cookies; fonts and styles are system/local. Audience measurement uses Casys's self-hosted, cookieless Umami, loaded on mcpview.dev only — see docs/analytics.md.

Develop

Requires Node.js (any current LTS; developed on Node 26).

npm install
npm run dev        # http://localhost:4321

Build & check

npm run build      # static site in dist/
npm run preview    # serve dist/ locally
npx astro check    # type-check .astro / .ts sources

Deploy on Vercel

Output is fully static; vercel.json sets cache headers for /videos/* (immutable, one year) and /demos/* (one day), and serves the Umami script at /u/script.js from analytics.casys.ai.

  1. Push this repository to GitHub and import it in Vercel (“Add New… → Project”).
  2. Vercel detects the Astro framework automatically (build: npm run build, output: dist).
  3. Deploy, then attach mcpview.dev (and www) in Project → Settings → Domains. DNS records to change at OVH: see DEPLOY.md.

astro.config.mjs already sets site: "https://mcpview.dev" for canonical URLs.

Videos

Five square screen recordings live in public/videos/ (NN-…-web.mp4 + NN-…-poster.jpg). They play in the Interactions player (src/components/InteractionPlayer.astro, src/scripts/player.ts): one recording at a time, the five chapters in a rail, playing only while the player is on screen. Under prefers-reduced-motion nothing starts on its own and native controls replace the play button. The hero is not a video: it is an animated HTML surface (src/components/HeroSurface.astro, src/scripts/hero.ts).

The 1080×1080 masters for LinkedIn live in media/linkedin/ — they are kept in the repository but not served (nothing under media/ reaches public/).

Both sets were recorded from the real mcp-erpnext 3.2.0 viewers on a live ERPNext instance. The studio host, the scripted takes and the export script are in tools/recording/.

Live demo architecture

The demo groups real viewer bundles, copied unchanged into public/demos/<viewer>/index.html, by experience (one per MCP server, cards above the viewer tabs; a 3D experience will take its place next to them):

  • ERP records: the mcp-erpnext 3.2.0 viewers (document list, revenue chart, sales funnel, task board, stock, KPI; the invoice viewer opens from the document list);
  • SysML diagrams: the mcp-syson 0.9.1 diagram viewer (syson-diagram-viewer) on three views recorded from a local SysON project (src/data/syson/*.json: action flow, state machine, interconnection), served by src/scripts/demo-syson.ts.

Because MCP Apps expect a host, the page runs a small in-browser host (src/scripts/demo-host.ts) using the real AppBridge from @modelcontextprotocol/ext-apps — pinned to v1, the major the viewers were built with. The host:

  • advertises updateModelContext (text, structuredContent, resource) and serverTools,
  • sends one fixed tool result per viewer after the handshake, split the 3.2.0 way: business data in structuredContent, view enrichment (refreshRequest, _rowAction, jumps, _availableTools) in result._meta["io.casys/viewer"] next to ui.resourceUri — the viewers re-merge it themselves,
  • answers in-view tools/call navigation with fixed payloads (adapted from the viewers' fixture.ts files; for SysON, the recorded views and syson_diagram_list, syson_diagram_types, syson_element_get),
  • keeps a diagram's frame at its fixed height (the canvas fills what the host gives) instead of following the view's size reports,
  • pushes the light/dark theme through the host context (setHostContext, toggle in the demo bar; the live frame URL carries no ?theme=, which would pin the view and ignore the host),
  • renders every ui/update-model-context payload in the “What the model sees” panel, and deliberately refuses ui/message,
  • falls back to each ERP viewer's built-in ?fixture=1 mode if the handshake ever times out (the SysON viewer has none: it says the host is unavailable).

The viewer code and the host protocol are the real ones; ERPNext data, tool answers and writes (submit/cancel) are sample data served in the page, and the SysON views are recorded snapshots. The SysON viewer is built on ext-apps v2 and handshakes with the v1 AppBridge unchanged.

To refresh the demos, rebuild the viewers in mcp-erpnext or mcp-syson and re-copy src/ui/dist/<viewer>/index.html over public/demos/<viewer>/index.html (syson-diagram-viewer for the SysON diagram viewer); the recorded views come from mcp-syson's tests/fixtures/diagram-views.

Notes

  • The libraries are published under @mcpview on JSR and npm. The page shows no package version numbers, which would be stale after the next release; the JSR and npm links show the current one. Only @mcpview/server is production-ready; src/data/site.ts marks the others experimental. The former @casys/mcp-* names are deprecated aliases; the Quickstart links the migration guide.
  • This site's repository is meant to live at mcpview/mcpview.dev.

License

MIT. Maintained by Casys.