Skip to content
Conduit

mcp server

what-framework

What Framework — Signal-based UI framework. Fine-grained reactive signals, no virtual DOM, compiler-first JSX, islands architecture.

CelsianJs/what-frameworkcommunitylistedunreviewed

Set up

Runs on your computer. Pick your agent and operating system.

Before you start

  • Node.js 20 or newer
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "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, 2026

What Framework

npm version license CI

The web framework built for AI agents.

whatfw.com · Docs · Playground · React Compat · Benchmarks · GitHub

Try What Framework in the Playground →


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.

PackageDescription
what-frameworkUmbrella package — re-exports core, router, server, etc.
what-coreSignals, components, reactivity, forms, data fetching
what-compilerJSX transform and optimizing compiler (what-compiler/vite, /babel)
what-routerFile-based & programmatic routing with View Transitions
what-serverSSR, islands architecture, static generation, server actions
what-isrOrigin-first ISR cache engine (stale-while-revalidate, tags, webhooks)
what-textOptional text engine (powered by @chenglou/pretext)
create-whatProject scaffolder (npm create what@latest)
what-framework-cliCLI — dev server, build, deploy tools (what dev/build/start)
what-devtoolsBrowser dev panel (signal inspector, component tree)
what-devtools-mcpMCP server bridging AI agents to live app state — 29 live debugging tools
what-mcpDeprecated — docs/assistance MCP server, superseded by what-devtools-mcp
what-reactReact compatibility layer (use React-ecosystem packages)
eslint-plugin-whatESLint 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

SurfaceDomainSourceHow it deploys
Marketing + docswhatfw.com (/docs)docs-site/Native Vercel ↔ GitHub (push to main)
Playgroundplayground.whatfw.comsites/playground/Native Vercel (Vite build)
React-compat demoreact.whatfw.comsites/react-compat/Native Vercel (Vite build)
Benchmarksbenchmarks.whatfw.comsites/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

Contributing

License

MIT

↑↓ navigate openesc close