@blade-hq/agent-react 2612.0.0-beta.68 → 2612.0.0-beta.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/{chunk-SA2U6KC5.js → chunk-HCW7SI5Q.js} +321 -257
  2. package/dist/chunk-HCW7SI5Q.js.map +1 -0
  3. package/dist/{chunk-SK5LWVRX.js → chunk-XP6T6SHZ.js} +2 -2
  4. package/dist/components/McpAppFrame.d.ts +17 -0
  5. package/dist/index.js +2 -2
  6. package/dist/internal.d.ts +2 -0
  7. package/dist/internal.js +4 -2
  8. package/dist/internal.js.map +1 -1
  9. package/dist/tool-details.js +1 -1
  10. package/node_modules/@modelcontextprotocol/ext-apps/LICENSE +216 -0
  11. package/node_modules/@modelcontextprotocol/ext-apps/README.md +284 -0
  12. package/node_modules/@modelcontextprotocol/ext-apps/dist/docs/patterns.d.ts +9 -0
  13. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.d.ts +1348 -0
  14. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.examples.d.ts +9 -0
  15. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.js +39 -0
  16. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.test.d.ts +1 -0
  17. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-with-deps.js +82 -0
  18. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.d.ts +1214 -0
  19. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.examples.d.ts +9 -0
  20. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.js +39 -0
  21. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.test.d.ts +1 -0
  22. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/constants.d.ts +65 -0
  23. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/events.d.ts +47 -0
  24. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/events.test.d.ts +1 -0
  25. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.d.ts +1047 -0
  26. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.json +6170 -0
  27. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.test.d.ts +41 -0
  28. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/interop-v1.test.d.ts +1 -0
  29. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/legacy-handlers.d.ts +66 -0
  30. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/legacy-handlers.test.d.ts +1 -0
  31. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.d.ts +126 -0
  32. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.examples.d.ts +9 -0
  33. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.test.d.ts +1 -0
  34. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.d.ts +37 -0
  35. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.examples.d.ts +6 -0
  36. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js +39 -0
  37. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/react-with-deps.js +82 -0
  38. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useApp.d.ts +115 -0
  39. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useApp.examples.d.ts +6 -0
  40. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useAutoResize.d.ts +54 -0
  41. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useAutoResize.examples.d.ts +6 -0
  42. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useDocumentTheme.d.ts +44 -0
  43. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useDocumentTheme.examples.d.ts +6 -0
  44. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useHostStyles.d.ts +113 -0
  45. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useHostStyles.examples.d.ts +6 -0
  46. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.d.ts +381 -0
  47. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.examples.d.ts +9 -0
  48. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.js +1 -0
  49. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.test.d.ts +1 -0
  50. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/spec.types.d.ts +698 -0
  51. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/standard-schema.d.ts +23 -0
  52. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/styles.d.ts +184 -0
  53. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/styles.examples.d.ts +9 -0
  54. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/types.d.ts +33 -0
  55. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/wire-compat.test.d.ts +1 -0
  56. package/node_modules/@modelcontextprotocol/ext-apps/package.json +144 -0
  57. package/node_modules/@standard-schema/spec/LICENSE +21 -0
  58. package/node_modules/@standard-schema/spec/README.md +198 -0
  59. package/node_modules/@standard-schema/spec/dist/index.cjs +18 -0
  60. package/node_modules/@standard-schema/spec/dist/index.d.cts +119 -0
  61. package/node_modules/@standard-schema/spec/dist/index.d.ts +119 -0
  62. package/node_modules/@standard-schema/spec/dist/index.js +0 -0
  63. package/node_modules/@standard-schema/spec/package.json +52 -0
  64. package/package.json +6 -2
  65. package/dist/chunk-SA2U6KC5.js.map +0 -1
  66. /package/dist/{chunk-SK5LWVRX.js.map → chunk-XP6T6SHZ.js.map} +0 -0
@@ -0,0 +1,284 @@
1
+ <!-- LOGO -->
2
+ <div align="center">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="media/mcp-white.svg">
5
+ <source media="(prefers-color-scheme: light)" srcset="media/mcp.svg">
6
+ <img src="media/mcp.svg" alt="MCP Apps" width="128">
7
+ </picture>
8
+ <h1>MCP Apps</h1>
9
+ <p>
10
+ Build interactive UIs for MCP tools — charts, forms, dashboards — that render inline in Claude, ChatGPT and any other compliant chat client.
11
+ <br /><br />
12
+ <a href="#why-mcp-apps">Why</a>
13
+ ·
14
+ <a href="https://apps.extensions.modelcontextprotocol.io/api/documents/quickstart.html">Quickstart</a>
15
+ ·
16
+ <a href="https://apps.extensions.modelcontextprotocol.io/api/">API Docs</a>
17
+ ·
18
+ <a href="https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx">Spec</a>
19
+ ·
20
+ <a href="CONTRIBUTING.md">Contributing</a>
21
+ </p>
22
+ </div>
23
+
24
+ <p align="center">
25
+ <a href="https://github.com/modelcontextprotocol/ext-apps/actions/workflows/ci.yml"><img src="https://github.com/modelcontextprotocol/ext-apps/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
26
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue" alt="License: Apache 2.0"></a>
27
+ <a href="https://www.npmjs.com/package/@modelcontextprotocol/ext-apps"><img src="https://img.shields.io/npm/v/@modelcontextprotocol/ext-apps.svg" alt="npm version"></a>
28
+ <a href="https://www.npmjs.com/package/@modelcontextprotocol/ext-apps"><img src="https://img.shields.io/npm/dm/@modelcontextprotocol/ext-apps.svg" alt="npm downloads"></a>
29
+ <a href="https://github.com/modelcontextprotocol/ext-apps"><img src="https://img.shields.io/github/stars/modelcontextprotocol/ext-apps" alt="GitHub stars"></a>
30
+ <a href="https://apps.extensions.modelcontextprotocol.io/api/"><img src="https://img.shields.io/badge/docs-API%20Reference-blue" alt="API Documentation"></a>
31
+ </p>
32
+
33
+ <p align="center">
34
+ <img src="media/excalidraw.gif" alt="MCP Apps demo" width="600">
35
+ <br><em>Excalidraw built with MCP Apps, running in Claude</em>
36
+ </p>
37
+
38
+ ## Table of Contents
39
+
40
+ - [Build with Agent Skills](#build-with-agent-skills)
41
+ - [Supported Clients](#supported-clients)
42
+ - [Why MCP Apps?](#why-mcp-apps)
43
+ - [How It Works](#how-it-works)
44
+ - [Getting Started](#getting-started)
45
+ - [Using the SDK](#using-the-sdk)
46
+ - [Examples](#examples)
47
+ - [Specification](#specification)
48
+ - [Resources](#resources)
49
+ - [Contributing](#contributing)
50
+
51
+ ## Build with Agent Skills
52
+
53
+ The fastest way to build an MCP App is to let your AI coding agent do it. This
54
+ repo ships four [Agent Skills](https://agentskills.io/) — install them once,
55
+ then just ask:
56
+
57
+ | Skill | What it does | Try it |
58
+ | --------------------------------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------- |
59
+ | [`create-mcp-app`](./plugins/mcp-apps/skills/create-mcp-app/SKILL.md) | Scaffolds a new MCP App with an interactive UI from scratch | _"Create an MCP App"_ |
60
+ | [`migrate-oai-app`](./plugins/mcp-apps/skills/migrate-oai-app/SKILL.md) | Converts an existing OpenAI App to use MCP Apps | _"Migrate from OpenAI Apps SDK"_ |
61
+ | [`add-app-to-server`](./plugins/mcp-apps/skills/add-app-to-server/SKILL.md) | Adds interactive UI to an existing MCP server's tools | _"Add UI to my MCP server"_ |
62
+ | [`convert-web-app`](./plugins/mcp-apps/skills/convert-web-app/SKILL.md) | Turns an existing web app into a hybrid web + MCP App | _"Add MCP App support to my web app"_ |
63
+
64
+ ### Install the Skills
65
+
66
+ **Claude Code** — install via the plugin marketplace:
67
+
68
+ ```
69
+ /plugin marketplace add modelcontextprotocol/ext-apps
70
+ /plugin install mcp-apps@modelcontextprotocol-ext-apps
71
+ ```
72
+
73
+ **Other agents** — any AI coding agent that supports
74
+ [Agent Skills](https://agentskills.io/) can use these skills. See the
75
+ [agent skills guide](./docs/agent-skills.md) for manual installation
76
+ instructions.
77
+
78
+ Once installed, verify by asking your agent _"What skills do you have?"_ — you
79
+ should see `create-mcp-app`, `migrate-oai-app`, `add-app-to-server`, and
80
+ `convert-web-app` in the list. Then just ask it to create or migrate an app and
81
+ it will guide you through the rest.
82
+
83
+ ## Supported Clients
84
+
85
+ <p align="center">
86
+ <a href="https://developers.openai.com/apps-sdk/mcp-apps-in-chatgpt/"><img src="https://img.shields.io/badge/ChatGPT-docs-74aa9c?logo=openai&logoColor=white" alt="ChatGPT"></a>
87
+ <a href="https://claude.com/docs/connectors/building/mcp-apps/getting-started"><img src="https://img.shields.io/badge/Claude-docs-d97706?logo=claude&logoColor=white" alt="Claude"></a>
88
+ <a href="https://code.visualstudio.com/blogs/2026/01/26/mcp-apps-support"><img src="https://img.shields.io/badge/VS_Code-docs-007ACC?logo=visualstudiocode&logoColor=white" alt="VS Code"></a>
89
+ <a href="https://block.github.io/goose/docs/tutorials/building-mcp-apps/"><img src="https://img.shields.io/badge/Goose-docs-000000?logo=goose&logoColor=white" alt="Goose"></a>
90
+ <a href="https://learning.postman.com/docs/postman-ai/mcp-requests/interact"><img src="https://img.shields.io/badge/Postman-docs-FF6C37?logo=postman&logoColor=white" alt="Postman"></a>
91
+ <a href="https://www.mcpjam.com/blog/mcp-apps-example"><img src="https://img.shields.io/badge/MCPJam-docs-8B5CF6" alt="MCPJam"></a>
92
+ <a href="https://manufact.com/inspector"><img src="https://img.shields.io/badge/mcp--use-inspector-E5F3FD" alt="mcp-use"></a>
93
+ <a href="https://docs.alpic.ai/distribution/playground"><img src="https://img.shields.io/badge/Alpic-playground-E90060?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAKlBMVEUKDhz%2F%2F%2F%2BjpaogJDFBRE%2Fw8PHHyMvh4eNmaHF1d4CUlpuFho2ztLhWWWP5YkbJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAB1klEQVR42u2Y0ZKDIAxFBQQF8f9%2FdyW7dhAu7U7Iy87mzvShGfXU3CTGLotKpVKpVCqV6h%2FI2VuxfF3tUwcdVEccA2LNS%2BWCq2mUykG%2BCtg5iNmv76mllOApCPHrFQgNxJf8HHIQs10XdFtDKcEKPQ0x4brg6htKWGr0PIR8jq0tj4oQgJiIzD8rtATErMAWMj%2FxIYcBPjuPgoENcW3Jks%2BdLeXS32jLmise%2BZxQ8GRD%2BkkCbSlByi0Pgm3p0P6nJ1meXJ%2F8K1tKo7qUOFM4wdxEMMS4iSp9sqFJQrZ4hOZBTEa5gbaQ%2BTwI%2FcCu8TOq482xIWZkSx8MfAi0xcOEJTZkULKohXjm29epGU2SIGK%2BfT9J%2Bjre%2BRBYsiUYBSHkaEI2B0EInRx%2BkbApiB89EaMgBNdx7u5vDoJH79ne3yQElqxvEzYLKY%2Bl81PCZiFUsvlDwqYhw80uSkJg4z8Ttsss3OltwgQgMGGPlpSAwITVM0wCgius6iARCGzJcn%2BHJCSMXraCIATPsPW2SggCh364a1sIgveUew%2BTgtBGsuE9zDspyLBZ3M5aVCOCUDFlqXUbrm8j7%2FnvJ2B9G3kf%2BZBlt0iu%2Fr%2BNxHqRU6lUKpVKpVL9UX0BOrAPfcbTY8UAAAAASUVORK5CYII%3D" alt="Alpic Playground"></a>
94
+ </p>
95
+
96
+ > [!NOTE]
97
+ > MCP Apps is an extension to the
98
+ > [core MCP specification](https://modelcontextprotocol.io/specification). Host
99
+ > support varies — see the
100
+ > [clients page](https://modelcontextprotocol.io/clients) for the full list.
101
+
102
+ ## Why MCP Apps?
103
+
104
+ MCP tools return text and structured data. That works for many cases, but not
105
+ when you need an interactive UI, like a chart, form, design canvas or video player.
106
+
107
+ MCP Apps provide a standardized way to deliver interactive UIs from MCP servers.
108
+ Your UI renders inline in the conversation, in context, in any compliant host.
109
+
110
+ ## How It Works
111
+
112
+ MCP Apps extend the Model Context Protocol by letting tools declare UI
113
+ resources:
114
+
115
+ 1. **Tool definition** — Your tool declares a `ui://` resource containing its
116
+ HTML interface
117
+ 2. **Tool call** — The LLM calls the tool on your server
118
+ 3. **Host renders** — The host fetches the resource and displays it in a
119
+ sandboxed iframe
120
+ 4. **Bidirectional communication** — The host passes tool data to the UI via
121
+ notifications, and the UI can call other tools through the host
122
+
123
+ ## Getting Started
124
+
125
+ Requires Node.js 20+. The base MCP SDK packages are `^2.0.0` peers of
126
+ `ext-apps` (`@modelcontextprotocol/core` is a required peer that `client` already depends on, so npm installs it for you).
127
+
128
+ For a View or host:
129
+
130
+ ```bash
131
+ npm install -S @modelcontextprotocol/ext-apps \
132
+ @modelcontextprotocol/client@^2.0.0 \
133
+ zod@^4.2.0
134
+ ```
135
+
136
+ For an MCP server, add the server package (and, for HTTP transports, the Node
137
+ and Express adapters):
138
+
139
+ ```bash
140
+ npm install -S @modelcontextprotocol/ext-apps \
141
+ @modelcontextprotocol/client@^2.0.0 \
142
+ @modelcontextprotocol/server@^2.0.0 \
143
+ @modelcontextprotocol/node@^2.0.0 \
144
+ @modelcontextprotocol/express@^2.0.0 \
145
+ zod@^4.2.0
146
+ ```
147
+
148
+ The wire protocol is unchanged between `ext-apps` 1.x and 2.x: a 2.x View works
149
+ in a 1.x host and a 2.x host renders 1.x Views. See the
150
+ [migration guide](https://apps.extensions.modelcontextprotocol.io/api/documents/migrate-to-v2.html)
151
+ when upgrading from 1.x.
152
+
153
+ **New here?** Start with the
154
+ [Quickstart Guide](https://apps.extensions.modelcontextprotocol.io/api/documents/quickstart.html)
155
+ to build your first MCP App.
156
+
157
+ ## Using the SDK
158
+
159
+ The SDK serves three roles: app developers building interactive Views, host
160
+ developers embedding those Views, and MCP server authors registering tools with
161
+ UI metadata.
162
+
163
+ | Package | Purpose | Docs |
164
+ | ------------------------------------------- | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
165
+ | `@modelcontextprotocol/ext-apps` | Build interactive Views (App class, PostMessageTransport) | [API Docs →](https://apps.extensions.modelcontextprotocol.io/api/modules/app.html) |
166
+ | `@modelcontextprotocol/ext-apps/react` | React hooks for Views (useApp, useHostStyles, etc.) | [API Docs →](https://apps.extensions.modelcontextprotocol.io/api/modules/_modelcontextprotocol_ext-apps_react.html) |
167
+ | `@modelcontextprotocol/ext-apps/app-bridge` | Embed and communicate with Views in your chat client | [API Docs →](https://apps.extensions.modelcontextprotocol.io/api/modules/app-bridge.html) |
168
+ | `@modelcontextprotocol/ext-apps/server` | Register tools and resources on your MCP server | [API Docs →](https://apps.extensions.modelcontextprotocol.io/api/modules/server-helpers.html) |
169
+
170
+ There's no _supported_ host implementation in this repo (beyond the
171
+ [examples/basic-host](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/basic-host)
172
+ example).
173
+
174
+ The [MCP-UI](https://github.com/idosal/mcp-ui) client SDK offers a
175
+ fully-featured MCP Apps framework used by a few hosts. Clients may choose to use
176
+ it or roll their own implementation.
177
+
178
+ ## Examples
179
+
180
+ The
181
+ [`examples/`](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples)
182
+ directory contains demo apps showcasing real-world use cases.
183
+
184
+ <!-- prettier-ignore-start -->
185
+ | | | |
186
+ |:---:|:---:|:---:|
187
+ | [![Map](examples/map-server/grid-cell.png "Interactive 3D globe viewer using CesiumJS")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/map-server) | [![Three.js](examples/threejs-server/grid-cell.png "Interactive 3D scene renderer")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/threejs-server) | [![ShaderToy](examples/shadertoy-server/grid-cell.png "Real-time GLSL shader renderer")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/shadertoy-server) |
188
+ | [**Map**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/map-server) | [**Three.js**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/threejs-server) | [**ShaderToy**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/shadertoy-server) |
189
+ | [![Sheet Music](examples/sheet-music-server/grid-cell.png "ABC notation to sheet music")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/sheet-music-server) | [![Wiki Explorer](examples/wiki-explorer-server/grid-cell.png "Wikipedia link graph visualization")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/wiki-explorer-server) | [![Cohort Heatmap](examples/cohort-heatmap-server/grid-cell.png "Customer retention heatmap")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/cohort-heatmap-server) |
190
+ | [**Sheet Music**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/sheet-music-server) | [**Wiki Explorer**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/wiki-explorer-server) | [**Cohort Heatmap**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/cohort-heatmap-server) |
191
+ | [![Scenario Modeler](examples/scenario-modeler-server/grid-cell.png "SaaS business projections")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/scenario-modeler-server) | [![Budget Allocator](examples/budget-allocator-server/grid-cell.png "Interactive budget allocation")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/budget-allocator-server) | [![Customer Segmentation](examples/customer-segmentation-server/grid-cell.png "Scatter chart with clustering")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/customer-segmentation-server) |
192
+ | [**Scenario Modeler**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/scenario-modeler-server) | [**Budget Allocator**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/budget-allocator-server) | [**Customer Segmentation**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/customer-segmentation-server) |
193
+ | [![System Monitor](examples/system-monitor-server/grid-cell.png "Real-time OS metrics")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/system-monitor-server) | [![Transcript](examples/transcript-server/grid-cell.png "Live speech transcription")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/transcript-server) | [![Video Resource](examples/video-resource-server/grid-cell.png "Binary video via MCP resources")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/video-resource-server) |
194
+ | [**System Monitor**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/system-monitor-server) | [**Transcript**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/transcript-server) | [**Video Resource**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/video-resource-server) |
195
+ | [![PDF Server](examples/pdf-server/grid-cell.png "Interactive PDF viewer with chunked loading")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/pdf-server) | [![QR Code](examples/qr-server/grid-cell.png "QR code generator")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/qr-server) | [![Say Demo](examples/say-server/grid-cell.png "Text-to-speech demo")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/say-server) |
196
+ | [**PDF Server**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/pdf-server) | [**QR Code (Python)**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/qr-server) | [**Say Demo**](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/say-server) |
197
+
198
+ ### Starter Templates
199
+
200
+ | | |
201
+ |:---:|:---|
202
+ | [![Basic](examples/basic-server-react/grid-cell.png "Starter template")](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/basic-server-react) | The same app built with different frameworks — pick your favorite!<br><br>[React](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/basic-server-react) · [Vue](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/basic-server-vue) · [Svelte](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/basic-server-svelte) · [Preact](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/basic-server-preact) · [Solid](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/basic-server-solid) · [Vanilla JS](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/basic-server-vanillajs) |
203
+ <!-- prettier-ignore-end -->
204
+
205
+ ### Running the Examples
206
+
207
+ #### With basic-host
208
+
209
+ To run all examples locally using
210
+ [basic-host](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/basic-host)
211
+ (the reference host implementation included in this repo):
212
+
213
+ ```bash
214
+ git clone https://github.com/modelcontextprotocol/ext-apps.git
215
+ cd ext-apps
216
+ npm install
217
+ npm start
218
+ ```
219
+
220
+ Then open http://localhost:8080/.
221
+
222
+ #### With MCP Clients
223
+
224
+ Every Node.js example is published as `@modelcontextprotocol/server-<name>`. To
225
+ add one to an MCP client that supports stdio (Claude Desktop, VS Code, etc.),
226
+ use this pattern:
227
+
228
+ ```json
229
+ {
230
+ "mcpServers": {
231
+ "<name>": {
232
+ "command": "npx",
233
+ "args": ["-y", "@modelcontextprotocol/server-<name>", "--stdio"]
234
+ }
235
+ }
236
+ }
237
+ ```
238
+
239
+ For example, to add the map server: `@modelcontextprotocol/server-map`. The
240
+ Python examples (`qr-server`, `say-server`) use `uv run` instead — see their
241
+ READMEs for details.
242
+
243
+ #### Local Development
244
+
245
+ To test local modifications with an MCP client, clone the repo, install, then
246
+ point your client at a local build:
247
+
248
+ ```json
249
+ {
250
+ "mcpServers": {
251
+ "<name>": {
252
+ "command": "bash",
253
+ "args": [
254
+ "-c",
255
+ "cd ~/code/ext-apps/examples/<name>-server && npm run build >&2 && node dist/index.js --stdio"
256
+ ]
257
+ }
258
+ }
259
+ }
260
+ ```
261
+
262
+ ## Specification
263
+
264
+ <div align="center">
265
+
266
+ | Version | Status | Link |
267
+ | -------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------- |
268
+ | **2026-01-26** | Stable | [specification/2026-01-26/apps.mdx](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx) |
269
+ | **draft** | Development | [specification/draft/apps.mdx](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx) |
270
+
271
+ </div>
272
+
273
+ ## Resources
274
+
275
+ - [Quickstart Guide](https://apps.extensions.modelcontextprotocol.io/api/documents/quickstart.html)
276
+ - [API Documentation](https://apps.extensions.modelcontextprotocol.io/api/)
277
+ - [Specification (2026-01-26)](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx)
278
+ ([Draft](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx))
279
+ - [SEP-1865 Discussion](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/1865)
280
+
281
+ ## Contributing
282
+
283
+ Contributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) for
284
+ guidelines on how to get started, submit pull requests, and report issues.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Type-checked code examples for the patterns documentation.
3
+ *
4
+ * These examples are included in {@link ./patterns.md} via `@includeCode` tags.
5
+ * Each function's region markers define the code snippet that appears in the docs.
6
+ *
7
+ * @module
8
+ */
9
+ export {};