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
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,22 +58,22 @@ A [Claude Code plugin](https://github.com/modelcontextprotocol/ext-apps/tree/mai
58
58
<!-- prettier-ignore-start -->
59
59
||||
60
60
|:---:|:---:|:---:|
61
-
|[](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)|
77
77
<!-- prettier-ignore-end -->
78
78
79
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