Cloudflare Remix ViteBLOCK
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
This project demonstrates how to build interactive MCP (Model Context Protocol) widgets that run on Cloudflare Workers and can be embedded in AI chat interfaces like ChatGPT. It showcases the power of combining MCP with modern web technologies to create rich, stateful experiences within AI conversations.
Demo Video
See the calculator widget in action with ChatGPT, including the hidden TRON easter egg:
https://github.com/user-attachments/assets/5df110d8-f40b-4c6a-8820-c2dbf3ff79c8
How the Demo Works
Architecture Overview
This demo implements a calculator widget as an MCP tool that can be invoked by AI assistants. The architecture consists of several key components:
- MCP Server - A Cloudflare Durable Object that implements the Model
Context Protocol
- Widget System - Interactive UI components built with Remix 3 that can be
embedded in AI chats
- Two-way Communication - Widgets can both receive initial state from the
AI and send messages back
- Static Assets - Widget bundles served from Cloudflare's CDN
The Calculator Widget
The calculator is a fully functional, beautifully styled calculator with a retro-futuristic aesthetic inspired by Tron. Here's what makes it special:
Initial State Configuration
When an AI assistant invokes the calculator tool, it can pass initial state parameters:
display- The initial display valuepreviousValue- A value already entered (e.g., "I want to add 5 to a
number")
operation- The pending operation (+, -, \*, /)waitingForNewValue- Whether the calculator is ready for new inputerrorState- Whether to start in an error state
This means the AI can pre-configure the calculator based on the user's request. For example, if a user says "I want to add 5 to something," the AI can invoke the calculator with previousValue: 5, operation: '+', and `waitin
d1d03405b634OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add cloudflare-remix-vite-mcp -- npx -y [email protected]
{
"mcpServers": {
"cloudflare-remix-vite-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (2)
2 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
calculator | read | A simple calculator |
do_math | read |
Trust audit
BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (5 observation(s))
- Shell
- declared (2 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (8)
exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null;
exec(query: string): Promise<D1ExecResult>;
.prettierignore
atob(data: string): string;
declare function atob(data: string): string;
@epic-web/invariant, @modelcontextprotocol/ext-apps, @modelcontextprotocol/sdk, @remix-run/dom, @remix-run/events, @remix-run/fetch-router, agents, zod
demo.mp4
Gates applied: no_behavioural_pass, no_license.
d1d03405b634full audit observations/trust-audit/mcp-server/kentcdodds__cloudflare-remix-vite.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | d1d03405b634 | BLOCK | D | 69 | first audit |
Questions
What tools does Cloudflare Remix Vite expose?
2 in total: 2 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Cloudflare Remix Vite safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does Cloudflare Remix Vite need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (d1d03405b634), read on 2026-10-08. The repository is watched and re-audited when it changes.