mcp server
what-framework
What Framework — Signal-based UI framework. Fine-grained reactive signals, no virtual DOM, compiler-first JSX, islands architecture.
Set up
Runs on your computer. Pick your agent and operating system.
Before you start
- Node.js 20 or newer
{
"mcpServers": {
"celsianjs-what-framework": {
"command": "npx",
"args": [
"-y",
"what-devtools-mcp"
]
}
}
}same format Cursor, GitHub Copilot CLI, Junie, JetBrains AI Assistant, Augment (Auggie CLI), Factory Droid, Kiro, Devin CLI +12
Values in angle brackets are placeholders. Restart Claude Desktop after editing its config.Claude Desktop docs
README
synced Oct 14, 2026What Framework
The web framework built for AI agents.
whatfw.com · Docs · Playground · React Compat · Benchmarks · GitHub
Why What?
- MCP DevTools — AI agents inspect every signal, effect, and component in a running app via the Model Context Protocol
- Structured Errors — Core runtime errors carry a code, message, suggested fix, and code example, and serialize to JSON. Agents parse and fix in one pass
- Agent Guardrails — In dev mode the runtime catches infinite effect loops, refuses unsafe
innerHTML, and warns on signal misuse. Lint rules catch the rest before they ship - Compiler Intelligence — Write normal JSX. The compiler outputs fine-grained reactive DOM operations. No VDOM diff
- Small & Fast: fine-grained, no VDOM. Measured by
npm run check:size(production build, min+gzip): a counter app is 6.38KB, and the same app from the scaffold is 6.48KB. Minimal dependencies, fully tree-shakeable
Quick Start
npm create what@latest my-app
cd my-app
npm install
npm run dev
Open http://localhost:5173.
MCP Setup
Projects scaffolded with npm create what@latest already include the browser-side
bridge the MCP server talks to, and wire it up for you. Add it by hand only when
you are setting a project up manually:
npm install -D what-devtools
Then connect your AI agent to a running What app:
{
"mcpServers": {
"what-framework": {
"command": "npx",
"args": ["what-devtools-mcp"]
}
}
}
Add to .claude/mcp_servers.json (Claude Code) or .cursor/mcp.json (Cursor).
Example Component
import { signal, computed, mount } from 'what-framework';
function Counter() {
const count = signal(0, 'count');
const doubled = computed(() => count() * 2);
return (
<main>
<h1>What Framework</h1>
<p>Count: {count()}</p>
<p>Doubled: {doubled()}</p>
<button onClick={() => count(c => c + 1)}>Increment</button>
<button onClick={() => count(0)}>Reset</button>
</main>
);
}
mount(<Counter />, '#app');
The compiler handles reactive expressions automatically — signal reads in JSX are auto-wrapped.
Packages
The 13 maintained packages publish together at the same version. The table also lists deprecated what-mcp, frozen at 0.12.4 and excluded from new releases. See CHANGELOG.md for the current release.
| Package | Description |
|---|---|
what-framework | Umbrella package — re-exports core, router, server, etc. |
what-core | Signals, components, reactivity, forms, data fetching |
what-compiler | JSX transform and optimizing compiler (what-compiler/vite, /babel) |
what-router | File-based & programmatic routing with View Transitions |
what-server | SSR, islands architecture, static generation, server actions |
what-isr | Origin-first ISR cache engine (stale-while-revalidate, tags, webhooks) |
what-text | Optional text engine (powered by @chenglou/pretext) |
create-what | Project scaffolder (npm create what@latest) |
what-framework-cli | CLI — dev server, build, deploy tools (what dev/build/start) |
what-devtools | Browser dev panel (signal inspector, component tree) |
what-devtools-mcp | MCP server bridging AI agents to live app state — 29 live debugging tools |
what-mcp | Deprecated — docs/assistance MCP server, superseded by what-devtools-mcp |
what-react | React compatibility layer (use React-ecosystem packages) |
eslint-plugin-what | ESLint rules — catch signal bugs, enforce patterns |
The umbrella what-framework exposes subpaths: what-framework/router, /server,
/jsx-runtime, etc.
Manual Setup
npm init -y
npm install what-framework what-compiler
npm install -D vite
Set "type": "module" in package.json — what-compiler/vite is ESM-only, and Vite can't resolve it from a CommonJS project:
{
"type": "module"
}
// vite.config.js
import { defineConfig } from 'vite';
import what from 'what-compiler/vite';
export default defineConfig({
plugins: [what()],
});
Run the dev server with npx vite (open http://localhost:5173), and build with npx vite build.
Bun works too: bun create what@latest and bun run dev.
MCP DevTools (AI Agent Debugging)
What Framework ships an MCP server for AI-assisted development. 29 live debugging tools: inspect signals, effects, components, DOM, cache, dependency graphs, and more. See docs/MCP-DEVTOOLS.md.
React Compatibility
Run many React ecosystem libraries with what-react. This is a secondary feature — native What Framework APIs are preferred for new code.
npm install what-react
See REACT-COMPAT.md for the tested compatibility matrix. The verified list of libraries is the source of truth.
Where everything lives & deploys
| Surface | Domain | Source | How it deploys |
|---|---|---|---|
| Marketing + docs | whatfw.com (/docs) | docs-site/ | Native Vercel ↔ GitHub (push to main) |
| Playground | playground.whatfw.com | sites/playground/ | Native Vercel (Vite build) |
| React-compat demo | react.whatfw.com | sites/react-compat/ | Native Vercel (Vite build) |
| Benchmarks | benchmarks.whatfw.com | sites/benchmarks/ | Native Vercel (static) |
| Maintained npm packages (×13) | npmjs.com/~ | packages/* | Release And Deploy workflow / npm run release:* |
sites/showcase/ is local-only (not deployed). Full details — build commands, domains, the
release workflow, tokens vs. native integration — are in DEPLOYMENTS.md.
Docs
- Vision -- what What is and why
- Deployments -- where everything lives and how it ships
- Security Policy -- reporting + supported versions
- Agent Guide -- MCP, patterns, mistakes
- Getting Started -- Setup for agents and developers
- Quick Start -- Tutorial
- API Reference -- Full API
- Architecture -- Deep-dive on how the framework works
- MCP DevTools -- MCP tools reference
- Agent Patterns -- Best practices
- Gotchas -- Common mistakes
- Error codes -- diagnostics, each with a fix and a worked example
- Migration from React · TypeScript · Styling · Development · Release
- Ecosystem Roadmap -- planned
@what/*packages
Contributing
- Contributing -- setup, the gates, the PR workflow
- Repository Architecture -- where the code lives and what protects it
- Code of Conduct
License
MIT