@modelcontextprotocol/ext-apps 1.1.2 → 1.2.1
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.
- package/README.md +15 -12
- package/dist/src/app-bridge.js +8 -47
- package/dist/src/app-with-deps.js +10 -10
- package/dist/src/app.d.ts +108 -9
- package/dist/src/app.js +8 -47
- package/dist/src/generated/schema.d.ts +6 -6
- package/dist/src/generated/schema.json +5993 -0
- package/dist/src/react/index.js +8 -47
- package/dist/src/react/react-with-deps.js +29 -29
- package/dist/src/server/index.js +8 -47
- package/dist/src/spec.types.d.ts +1 -1
- package/package.json +9 -26
package/README.md
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
<!-- LOGO -->
|
|
2
2
|
<div align="center">
|
|
3
|
-
<
|
|
4
|
-
|
|
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>
|
|
5
8
|
<h1>MCP Apps</h1>
|
|
6
9
|
<p>
|
|
7
10
|
Build interactive UIs for MCP tools — charts, forms, dashboards — that render inline in Claude, ChatGPT and any other compliant chat client.
|
|
8
11
|
<br /><br />
|
|
9
12
|
<a href="#why-mcp-apps">Why</a>
|
|
10
13
|
·
|
|
11
|
-
<a href="https://modelcontextprotocol.
|
|
14
|
+
<a href="https://apps.extensions.modelcontextprotocol.io/api/documents/Quickstart.html">Quickstart</a>
|
|
12
15
|
·
|
|
13
|
-
<a href="https://modelcontextprotocol.
|
|
16
|
+
<a href="https://apps.extensions.modelcontextprotocol.io/api/">API Docs</a>
|
|
14
17
|
·
|
|
15
18
|
<a href="https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx">Spec</a>
|
|
16
19
|
·
|
|
@@ -24,7 +27,7 @@
|
|
|
24
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>
|
|
25
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>
|
|
26
29
|
<a href="https://github.com/modelcontextprotocol/ext-apps"><img src="https://img.shields.io/github/stars/modelcontextprotocol/ext-apps" alt="GitHub stars"></a>
|
|
27
|
-
<a href="https://modelcontextprotocol.
|
|
30
|
+
<a href="https://apps.extensions.modelcontextprotocol.io/api/"><img src="https://img.shields.io/badge/docs-API%20Reference-blue" alt="API Documentation"></a>
|
|
28
31
|
</p>
|
|
29
32
|
|
|
30
33
|
<p align="center">
|
|
@@ -122,7 +125,7 @@ npm install -S @modelcontextprotocol/ext-apps
|
|
|
122
125
|
```
|
|
123
126
|
|
|
124
127
|
**New here?** Start with the
|
|
125
|
-
[Quickstart Guide](https://modelcontextprotocol.
|
|
128
|
+
[Quickstart Guide](https://apps.extensions.modelcontextprotocol.io/api/documents/Quickstart.html)
|
|
126
129
|
to build your first MCP App.
|
|
127
130
|
|
|
128
131
|
## Using the SDK
|
|
@@ -133,10 +136,10 @@ UI metadata.
|
|
|
133
136
|
|
|
134
137
|
| Package | Purpose | Docs |
|
|
135
138
|
| ------------------------------------------- | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|
|
136
|
-
| `@modelcontextprotocol/ext-apps` | Build interactive Views (App class, PostMessageTransport) | [API Docs →](https://modelcontextprotocol.
|
|
137
|
-
| `@modelcontextprotocol/ext-apps/react` | React hooks for Views (useApp, useHostStyles, etc.) | [API Docs →](https://modelcontextprotocol.
|
|
138
|
-
| `@modelcontextprotocol/ext-apps/app-bridge` | Embed and communicate with Views in your chat client | [API Docs →](https://modelcontextprotocol.
|
|
139
|
-
| `@modelcontextprotocol/ext-apps/server` | Register tools and resources on your MCP server | [API Docs →](https://modelcontextprotocol.
|
|
139
|
+
| `@modelcontextprotocol/ext-apps` | Build interactive Views (App class, PostMessageTransport) | [API Docs →](https://apps.extensions.modelcontextprotocol.io/api/modules/app.html) |
|
|
140
|
+
| `@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) |
|
|
141
|
+
| `@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) |
|
|
142
|
+
| `@modelcontextprotocol/ext-apps/server` | Register tools and resources on your MCP server | [API Docs →](https://apps.extensions.modelcontextprotocol.io/api/modules/server.html) |
|
|
140
143
|
|
|
141
144
|
There's no _supported_ host implementation in this repo (beyond the
|
|
142
145
|
[examples/basic-host](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/basic-host)
|
|
@@ -243,8 +246,8 @@ point your client at a local build:
|
|
|
243
246
|
|
|
244
247
|
## Resources
|
|
245
248
|
|
|
246
|
-
- [Quickstart Guide](https://modelcontextprotocol.
|
|
247
|
-
- [API Documentation](https://modelcontextprotocol.
|
|
249
|
+
- [Quickstart Guide](https://apps.extensions.modelcontextprotocol.io/api/documents/Quickstart.html)
|
|
250
|
+
- [API Documentation](https://apps.extensions.modelcontextprotocol.io/api/)
|
|
248
251
|
- [Specification (2026-01-26)](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx)
|
|
249
252
|
([Draft](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx))
|
|
250
253
|
- [SEP-1865 Discussion](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/1865)
|