# Claude artifacts as desktop apps, and WebMCP in the AI SDK: the page is now the app and the tool surface

> Satyajit Ghana — Head of Engineering @ Inkers Technology
> canonical: https://ai.satyajit.si/articles/claude-artifact-apps-and-webmcp
> date: 2026-11-25
> tags: agents, mcp, tool-calling, generative-ui, developer-tools

Four posts landed in about seven hours, from the evening of 24 November UTC to just after midnight, and they belong together more than their authors probably planned. At 18:04 UTC the AI SDK announced [WebMCP support](https://x.com/aisdk/status/2125289351483654257): "Use the new WebMCP transport with our MCP client to discover and call tools exposed by your website." At 19:47 [@ClaudeDevs](https://x.com/ClaudeDevs/status/2125315491522650299) posted that "you can now install Claude artifacts as desktop apps on Mac and Windows." At 21:23 [@nopsnek](https://x.com/nopsnek/status/2125339529393381587) started posting screenshots of 61 demo apps built that way. And just after 01:10 UTC, [shadcn](https://x.com/shadcn/status/2125396779591925850) showed a store built with UI SDK taking "add two mugs" from a model through the AI SDK's new transport: "We wrote zero tools."

One of these is about where a web page runs and what it may touch. The rest are about how a model operates a web page without looking at it. Both treat the page as something more than a document, which is why I am writing them up as one piece. I read Anthropic's announcement, the WebMCP draft community report dated 24 November, the transport's source in `@ai-sdk/mcp` 2.0.104, the AI SDK cookbook recipe, and UI SDK's `registerTools` at commit `d5c6249`. I did not install an artifact as an app, and I did not run WebMCP in a browser: it is behind a Chrome flag, and my judgement of Install as app is from the announcement and the video, not from use.

## What "Install as app" gives an artifact

<Video
  src="https://ai.satyajit.si/articles/claude-artifact-apps-and-webmcp/install-as-app"
  poster="https://media.thesatyajit.com/ai/articles/claude-artifact-apps-and-webmcp/install-as-app-poster.jpg?v=47f0ede7d8afadd3"
  alt="A Claude chat builds a space debris tracker artifact showing a globe. A dialog asks 'Install Debris Space Tracker as an app?' with Cancel and Install. The tracker then opens in its own window on a macOS desktop, followed by other installed apps: a tide planner and a circuit board editor. The video ends on 'Build, run, and share desktop apps with Claude. Now available in beta in Claude for macOS & Windows'."
  caption="Anthropic's launch video: an artifact built in chat, the install prompt, and installed apps in their own windows. 28 seconds, muted (video from @ClaudeDevs's post on X)."
/>

Anthropic's [announcement](https://claude.com/resources/articles/install-as-app) is short and specific, so I'll list what it says and leave the adjectives out. An installed artifact gets its own icon and window instead of a tab inside Claude. It can use Claude and your connectors, it "updates automatically when the underlying artifact is edited", and its calls to Claude count against your plan. There is no packaging or signing step and no API key: "it uses your Claude account, so there's no API key or separate login." You need to be online and signed in to open one. Claude Docs, Slides and Sheets can't be installed. It is beta on all plans, on by default for Team with full access off, off on Enterprise until an owner turns it on, and not available to HIPAA-ready organisations or hybrid deployments.

The permissions are where it stops being a bookmark. There are three tiers:

| Tier | What the app may do |
|---|---|
| Default | "only do what they'd be able to do in a browser" |
| App permissions | ask for "always-on-top windows, listening for global shortcuts, or sending notifications"; the post adds menu bar and tray items |
| Full computer access | "run programs and read, change, or delete your files without asking each time" |

Two rules sit on top. "Your permission only covers the current version of the app, so Claude asks again after every update, even your own edits." And full access is only for apps you made, or on Team and Enterprise, apps made by people in your organisation; "Anthropic doesn't review apps before you install them."

The replies under the launch asked whether this is just a progressive web app. The default tier is close to one: a page in its own window with browser permissions. What a PWA does not get is the account. An installed artifact calls Claude and your connectors on your login with nothing to configure, and the two upper tiers reach past what a browser allows. That is the product, and it is also the risk, because it means a page you got from a colleague can run programs on your laptop once you say yes.

The re-ask-on-update rule is the right default and I would want it in any tool like this. The sentence after it is the one I would read twice: "If part of an app comes from another website, that part can change without Claude asking you again." An app with full access that loads a script from a CDN has a dependency whose next version you did not approve. Anthropic says so plainly, which I appreciate; the practical rule for anyone granting full access is to keep everything the app runs inside the artifact.

Anthropic's own examples are tools for daily use: a layered image editor (Linnet), a file manager (Phosphor), folder rules that use Claude to sort files (Sift), a terminal with Claude beside it (Tern), and a menu bar performance monitor (Vitals). The announcement also links a page of "more demo apps made by one of our engineers." @nopsnek's 61 are below. His posts don't say whether they are that set, so I won't claim it.

## 61 apps, all of them

<AppGallery />

<Figure
  src="https://media.thesatyajit.com/ai/articles/claude-artifact-apps-and-webmcp/apps-four.jpg?v=86687d02014eb0f0"
  alt="Four app screenshots in a grid. Top left: a crystallisation plate of wells with one drop magnified showing crystals. Top right: a colourwork knitting chart with a snowflake band. Bottom left: a glacier's front traced year by year on a contour map. Bottom right: a nautical chart with a sailing route, waypoints and a tide gate time."
  caption="Four of the 61, apps 4, 18, 60 and 61: a list on the left, a domain drawing in the middle, an inspector on the right (screenshots by @nopsnek on X)."
/>

I looked at every screenshot to write those captions, and the set has a clear house style. Nearly every app is one dense window: a list of things on the left, a large drawing in the middle that is the point of the app, and an inspector on the right with the selected item's fields. The drawings are domain drawings, not dashboards: a crystallisation plate (4), a glacier front traced year by year (60), a sailing passage across a chart with a tide gate (61), a knitting chart (18), a contact sheet of negatives (30), a soil core per field (37). Many carry a small human workflow on the right edge: draft a reply and merge tickets (2), queue a crystal for harvest (4), nudge the person a purchase order is waiting on (34), notify a school principal (33).

What the screenshots can't show is anything that needs the new permissions. None of them shows a notification, a tray icon or a file being touched; each is a page that a browser could render. That fits the default tier, and it is also a fair reading of where most of the value is. The window and the icon matter because a tool you use every day should open like the rest of your apps. Whether the apps were each made from one prompt, or how long each took, the posts don't say.

## WebMCP: a page hands the model its functions

The agent that operates a web page today usually does it the slow way: take a screenshot or read the accessibility tree, decide where to click, click, look again. [WebMCP](https://webmachinelearning.github.io/webmcp/) gives the page a way to skip that. The page registers JavaScript functions as tools, with names, descriptions and JSON Schemas, and an agent in the browser calls them.

The draft is a W3C community group report, and the version of 24 November puts the API on `Document`:

```text
partial interface Document {
  [SecureContext, SameObject] readonly attribute ModelContext modelContext;
};
```

`ModelContext` has a provider half and a consumer half. The page calls `registerTool(tool, { signal })` once per tool; aborting the signal unregisters it. A consumer, which is whatever agent the browser hosts, calls `getTools()` and `executeTool(tool, inputObject, { signal })`, which resolves to a string. A `toolchange` event fires when the set changes. Each tool can carry four annotations: `readOnlyHint`, `untrustedContentHint` (its output contains page text that may hold injected instructions), `consequentialHint` (it can do something that can't be undone) and `debugging`.

Until now the consumer had to be the browser's own agent. The AI SDK's new transport makes your own chat the consumer.

## The AI SDK transport, from its source

<Figure
  src="https://media.thesatyajit.com/ai/articles/claude-artifact-apps-and-webmcp/aisdk-webmcp.jpg?v=faf4aaef048390cf"
  alt="Code on a black background: import createMCPClient and Experimental_WebMCPTransport as WebMCPTransport from '@ai-sdk/mcp'; a comment 'In a WebMCP-enabled browser, after registering your tools.'; createMCPClient with transport new WebMCPTransport({ modelContext: document.modelContext }); client.listTools(); client.callTool({ name: 'getCart', arguments: {} })."
  caption="The announcement's whole API: an MCP client whose transport is the page's own modelContext (@aisdk's post on X)."
/>

`Experimental_WebMCPTransport` arrived in `@ai-sdk/mcp` 2.0.104 (changelog entry `38646e7`), with `createMCPTools` beside it. The transport is about 320 lines in `packages/mcp/src/tool/webmcp-transport.ts`, and reading it explains the design better than the docs do. It implements the same `MCPTransport` interface as the HTTP and stdio transports, but instead of sending JSON-RPC over a wire it answers the requests itself:

- `initialize` returns a canned server description (`serverInfo: { name: 'webmcp' }`, a tools capability). There is no server to negotiate with.
- `tools/list` calls `modelContext.getTools()` and turns each WebMCP tool into an MCP tool. The name is capped at 64 characters and made unique; with `fromOrigins` set, every name gets a prefix built from a SHA-256 of its origin, so a tool from another site can't pose as yours by picking your tool's name. Only `readOnlyHint` becomes an MCP annotation. The full WebMCP annotations, including `consequentialHint`, travel under `_meta['ai-sdk.dev/webmcp']`.
- `tools/call` looks the alias up and calls `modelContext.executeTool(tool, args, { signal })`. The string that comes back is parsed as JSON and returned as both text content and `structuredContent`. A tool that throws an `OperationError` becomes an `isError` result the model can read; a result that isn't JSON is an error.

The transport keeps a snapshot of the tool list. Its doc comment says to "list tools again after a WebMCP toolchange event." One reply under the AI SDK post asked exactly this, whether the client re-discovers when a cart page and a checkout page expose different tools. The cookbook's answer is to list tools before every request, which I'll come to.

Calling `client.callTool` from the page is the easy part. What the recipe does with it is decide where the model runs.

## Model on the server, tools in the tab

The [cookbook recipe](https://ai-sdk.dev/cookbook/next/webmcp-tools) is a shopping cart in Next.js, and it splits one chat across two machines. The page registers four tools on `document.modelContext`: `getCart`, `addToCart`, `updateCartItem` and `removeFromCart`. The model, and the API key, stay on the server. The browser carries the tools there and runs them when the model asks.

The browser's half is `useChat` with two hooks. Before each request it lists the page's tools and sends the definitions with the messages:

```ts
transport: new DefaultChatTransport({
  api: '/api/chat/webmcp',
  async prepareSendMessagesRequest({ messages }) {
    const { tools } = await client.current!.listTools();
    return { body: { messages, tools } };
  },
}),
```

The server turns the definitions into AI SDK tools with no `execute` function, so `streamText` can offer them to the model but cannot run them:

```ts
tools = createMCPTools(definitions);
```

When the model emits a tool call, it streams back to the browser. `onToolCall` runs it through the MCP client, which goes through the transport to `executeTool` and into the page's own function, and `addToolOutput` attaches the result. `sendAutomaticallyWhen: lastAssistantMessageIsCompleteWithToolCalls` sends the conversation back to the server for the next step. Each step is one HTTP round trip and every tool call runs in the tab.

<CartToolsLab />

The widget runs that loop. The tools, a small `modelContext` with the draft's `registerTool`, `getTools` and `executeTool`, and the transport's mapping are real code on this page. The model is scripted, so each prompt always makes the same calls; the prompts and the products are the ones in shadcn's video. With the cookbook's tools, "add two mugs and a tote bag" takes three requests to the server: read the cart (the recipe's instructions say to read it first), two `addToCart` calls in one step, then the reply. "Place the order" ends with the model saying it can't, because the four tools don't include one. Switch to UI SDK's tools and the same prompt is one `act` call and a reply, and "place the order" stops at a button the page marked as needing a person.

Listing tools before every request answers the re-discovery question: the server always sees the tools the page has now. It also means the server is reading tool definitions that came from a client. A definition is a name, a description and a schema, and the description goes into the model's context. The recipe treats them as untrusted: it rejects more than 32 definitions, catches `MCPClientError` from `createMCPTools` and returns a 400, rejects attachments, and refuses any request that isn't from local development. Its last paragraph says to replace that guard with authentication "and apply your own policies to browser-supplied definitions and results" before deploying. I would go further for anything public. A user can edit what their own browser sends, so a deployed version should check the definitions against the list the page is known to register, not only their shape.

WebMCP also has to exist. The recipe needs `chrome://flags/#enable-webmcp-testing` and a relaunch, and it checks for `document.modelContext.getTools` and `executeTool` before connecting. Until browsers ship it, this is a pattern for people who control the browser.

## "Zero tools written": three tools for the whole page

<Video
  src="https://ai.satyajit.si/articles/claude-artifact-apps-and-webmcp/ui-sdk-webmcp"
  poster="https://media.thesatyajit.com/ai/articles/claude-artifact-apps-and-webmcp/ui-sdk-webmcp-poster.jpg?v=8961c67fe2d33f46"
  alt="A Corner Store page with T-Shirt, Tote Bag and Mug rows, quantity steppers and a cart. A voice prompt 'Add two mugs and a tote bag' produces a WebMCP act call and the quantities update. 'Clear the cart' empties it, 'Add three t-shirts and a mug' fills it. 'Place the order' shows a dialog 'The assistant wants to place your order' with Cancel and Place Order. The video ends on 'Zero tools written. The agent uses the components you built.' and the code const agent = createAgent(); registerTools(agent, { allow })."
  caption="shadcn's demo: UI SDK components driven by voice through the AI SDK's WebMCP client, with a confirm before the order is placed. 39 seconds, muted (video from @shadcn's post on X)."
/>

The phrase is accurate and easy to misread. A reply under the post put it well: it doesn't mean the model operates the page by itself; it means the components came with tool definitions and this demo added none. From the source, one call registers three tools for the entire app:

```ts
const agent = createAgent()
const unregister = registerTools(agent, {
  allow: (step) => step.action !== "press" || confirm(`Press ${step.args[0]}?`),
})
```

`registerTools` in `packages/core/src/page/agent/agent.ts` loops over `agentTools` and calls `document.modelContext.registerTool` for `act`, `query` and `snapshot`, with annotations set per tool: `snapshot` is read-only, all three carry `untrustedContentHint` because their results include text from the page, and `act` carries `consequentialHint` because "a step can press any button, including one whose action can't be undone." That last hint was added in a changeset after my [first read of UI SDK](/articles/vercel-ui-sdk). The `allow` callback is required, because "the browser's agent isn't one you wrote"; the AI SDK client is one more such agent. A button marked `data-agent-confirm` reaches `allow` with `step.confirm`, which is the dialog at the end of the video.

So the cart in the video has no `addToCart`. The model calls `act` with steps like `{ ref: "Mug quantity", action: "setValue", args: [2] }`, and the bridge finds the number input by its label and calls its own API. This is the same bridge I measured on a settings form in November: 10 tool calls down to 2 and 9.6 s down to 3.7 s against generic browser tools. WebMCP only changes who can reach it.

The trade has a number on it. WindTunnel's reference patches, which I [read in September](/articles/webmcp-windtunnel), added 7,302 lines to expose 44 hand-written WebMCP tools across eight apps, about 166 lines per tool. The best of those tools encode a whole journey: one `complete_checkout` call that fills in the address, picks the only shipping option and places the order. UI SDK's three tools cost nothing to write and know nothing about checkout. The model has to plan the steps from labels, guided by an `act` description that runs to several hundred words. For a page built from ui-sdk components, I'd start with the three generic tools and write a specific one only where a task keeps failing or needs a single atomic call.

## Where the two meet

Nothing in Anthropic's announcement says an installed artifact registers WebMCP tools or that Claude calls them, and I won't guess that it will. What the two launches share is a shift in what a web page is for. Install as app makes a page something you keep, with a window and permissions. WebMCP makes it something a model can operate through functions the page chose to expose. A page built with UI SDK and installed as an app would be both, with its permissions decided in two places: Claude's tiers for what the app may do to your machine, and `allow` for what any agent may do to the app.

That second boundary is the one I care about for Kaël, where agents draft documents that a person reviews in a React frontend. An `allow` callback plus a confirm attribute on the send button is a small amount of code for a boundary that matters. Reading the source, it is in the right place.

My position, plainly: Install as app is the bigger change for most people, and the permission design is better than I expected, apart from remote code that changes under a granted permission. WebMCP in the AI SDK is a clean transport for an API almost nobody can use yet. Build against it if you control the browser; otherwise watch for the flag to go away. UI SDK's three tools are the most useful idea of the three, because they make a page operable by a model without anyone writing tools for it.

<RepoCard repo="vercel-labs/ui" note="Read at d5c6249 (24 November 2026): packages/core/src/page/agent/agent.ts (registerTools, agentTools) and apps/docs/content/docs/agents/connect-an-agent/webmcp.mdx." />

<RepoCard repo="vercel/ai" note="Read at a457990 (24 November 2026): packages/mcp/src/tool/webmcp-transport.ts, the @ai-sdk/mcp 2.0.104 changelog, the createMCPTools reference and the cookbook recipe content/cookbook/01-next/76-webmcp-tools.mdx." />

**What I read, and what I didn't run.** The four posts and their threads and replies, through the fxtwitter mirror; Anthropic's announcement of 24 November; the WebMCP draft community group report dated 24 November 2026; `@ai-sdk/mcp`'s transport source, changelog and `createMCPTools` reference at `vercel/ai` commit `a457990`; the AI SDK cookbook recipe; UI SDK's `registerTools`, `agentTools` and WebMCP docs at `vercel-labs/ui` commit `d5c6249`. I did not install an artifact as an app or run WebMCP in a browser. The gallery's captions are my descriptions of @nopsnek's screenshots. The cart widget's tools, `modelContext` and transport mapping run on this page; the model's calls are scripted.
