You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6. Host sends `sendToolResult()` when tool execution completes
79
79
7. Host calls `teardownResource()` before unmounting iframe
80
80
81
-
## Examples
81
+
## Documentation
82
82
83
-
Uses npm workspaces. Examples in `examples/` are separate packages:
83
+
JSDoc `@example` tags use `{@includeCode ./file.examples.ts#regionName}` to pull in type-checked code from companion `.examples.ts`/`.examples.tsx` files. Regions are marked with `//#region name` and `//#endregion name`, wrapped in functions (whose parameters provide types for external values). Region names follow `exportedName_variant` or `ClassName_methodName_variant` pattern (e.g., `useApp_basicUsage`, `App_hostCapabilities_checkAfterConnection`).
84
+
85
+
## Full Examples
86
+
87
+
Uses npm workspaces. Full examples in `examples/` are separate packages:
84
88
85
89
-`basic-server-*` - Starter templates (vanillajs, react, vue, svelte, preact, solid). Use these as the basis for new examples.
Copy file name to clipboardExpand all lines: README.md
+17-18Lines changed: 17 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,37 +44,36 @@ We have [contributed a tentative implementation](https://github.com/MCP-UI-Org/m
44
44
npm install -S @modelcontextprotocol/ext-apps
45
45
```
46
46
47
-
Or edit your `package.json` manually:
47
+
### Claude Code Plugin
48
48
49
-
```json
50
-
{
51
-
"dependencies": {
52
-
"@modelcontextprotocol/ext-apps": "^0.0.1"
53
-
}
54
-
}
49
+
A [Claude Code plugin](https://github.com/modelcontextprotocol/ext-apps/tree/main/plugins/mcp-apps) is available to help create MCP Apps. To install, run these commands inside Claude Code:
|[](examples/map-server)|[](examples/threejs-server)|[](examples/shadertoy-server)|
|[](examples/system-monitor-server)|[](examples/transcript-server)|[](examples/video-resource-server)|
|[](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/map-server)|[](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/threejs-server)|[](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/shadertoy-server)|
|[](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/system-monitor-server)|[](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/transcript-server)|[](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/video-resource-server)|
|[](examples/basic-server-react)| The same app built with different frameworks — pick your favorite!<br><br>[React](examples/basic-server-react) · [Vue](examples/basic-server-vue) · [Svelte](examples/basic-server-svelte) · [Preact](examples/basic-server-preact) · [Solid](examples/basic-server-solid) · [Vanilla JS](examples/basic-server-vanillajs)|
76
+
|[](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)|
78
77
<!-- prettier-ignore-end -->
79
78
80
79
The [`examples/`](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples) directory contains additional demo apps showcasing real-world use cases.
0 commit comments