- HTML 93.2%
- TypeScript 3.1%
- Astro 2.9%
- CSS 0.6%
- JavaScript 0.1%
- Other 0.1%
| docs | ||
| media/linkedin | ||
| public | ||
| src | ||
| tools/recording | ||
| .gitignore | ||
| .vercelignore | ||
| astro.config.mjs | ||
| DEPLOY.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vercel.json | ||
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.
- Push this repository to GitHub and import it in Vercel (“Add New… → Project”).
- Vercel detects the Astro framework automatically
(build:
npm run build, output:dist). - 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 bysrc/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) andserverTools, - 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) inresult._meta["io.casys/viewer"]next toui.resourceUri— the viewers re-merge it themselves, - answers in-view
tools/callnavigation with fixed payloads (adapted from the viewers'fixture.tsfiles; for SysON, the recorded views andsyson_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-contextpayload in the “What the model sees” panel, and deliberately refusesui/message, - falls back to each ERP viewer's built-in
?fixture=1mode 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
@mcpviewon 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/serveris production-ready;src/data/site.tsmarks the othersexperimental. 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.