ext-apps/examples/sheet-music-server/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonathan Hefner def96b392a
Fix onhostcontextchanged handler invocation in examples
`App.onhostcontextchanged` is a setter-only property with no getter.
TypeScript doesn't prevent reading from setter-only properties, so
`app.onhostcontextchanged?.(ctx)` compiles but silently returns
`undefined` at runtime.

Extract the handler into a named `handleHostContextChanged()` function
and call it directly after `connect()`, matching the pattern used in
`basic-server-vanillajs` and other examples.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 13:38:33 -06:00
..
global.css Add sheet-music-server example 2026-01-05 16:06:09 -06:00
mcp-app.css Add sheet-music-server example 2026-01-05 16:06:09 -06:00
mcp-app.ts Fix onhostcontextchanged handler invocation in examples 2026-01-25 13:38:33 -06:00