ext-apps/examples/basic-host/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Chafik 741b1d3925
feat(basic-host): improve host UI with collapsible panels and SDK types (#244)
* refactor(basic-host): use SDK types for ModelContext and AppMessage

- Import McpUiUpdateModelContextRequest and McpUiMessageRequest from SDK
- Replace custom ModelContext with McpUiUpdateModelContextRequest['params']
- Replace custom AppMessage with McpUiMessageRequest['params']
- Pass full message params instead of extracting text
- Format messages by extracting text from content blocks in display

* feat(basic-host): handle non-text content blocks in display

- Add formatContentBlock helper for text, image, audio, resource types
- Show placeholders like <image: image/png> for non-text content
- Apply to both messages and model context display

* test: update shadertoy screenshot

* test: update screenshots from CI (linux x64)
2026-01-12 19:42:11 +00:00
..
global.css Add basic-host and basic-server-react examples 2025-12-04 14:28:27 -06:00
implementation.ts feat(basic-host): improve host UI with collapsible panels and SDK types (#244) 2026-01-12 19:42:11 +00:00
index.module.css feat(basic-host): improve host UI with collapsible panels and SDK types (#244) 2026-01-12 19:42:11 +00:00
index.tsx feat(basic-host): improve host UI with collapsible panels and SDK types (#244) 2026-01-12 19:42:11 +00:00
sandbox.ts feat(basic-host): improve host UI with collapsible panels and SDK types (#244) 2026-01-12 19:42:11 +00:00
tamper-detection.ts fix: proper CSP handling in basic-host sandboxing (HTTP headers, worker-src, document.write) (#234) 2026-01-11 14:32:48 +00:00
vite-env.d.ts Add basic-host and basic-server-react examples 2025-12-04 14:28:27 -06:00