ext-apps/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Chafik 2dd223b611
refactor: rename request methods to remove send prefix (#161)
* refactor: rename request methods to remove send prefix

Following the MCP TS SDK convention where request methods don't have
the "send" prefix (reserved for notifications):

- App.sendMessage() → App.message()
- App.sendOpenLink() → App.openLink()
- AppBridge.sendResourceTeardown() → AppBridge.resourceTeardown()

The old method names are kept as deprecated aliases for backwards
compatibility.

Updated all examples to use the new method names.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* test: add tests for deprecated method aliases

- Update existing tests to use new method names (message, openLink)
- Add tests verifying deprecated aliases are same reference as new methods
- Add tests verifying deprecated aliases still work functionally

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* refactor: rename message→sendMessage, resourceTeardown→teardownResource

- App.message() → App.sendMessage() (with deprecated message alias)
- AppBridge.resourceTeardown() → AppBridge.teardownResource() (with deprecated aliases)

This better follows the pattern where methods that send data have 'send' or action verb prefix.

* fix: update examples to use sendMessage instead of message

* fix: update basic-host to use teardownResource

* fix: update threejs-server to use sendMessage

* refactor: remove deprecated app.message alias

The app.message alias was removed since sendMessage is the correct name.
sendResourceTeardown already exists in AppBridge.

* refactor: remove resourceTeardown alias, keep only sendResourceTeardown

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-16 22:07:06 +00:00
..
basic-host refactor: rename request methods to remove send prefix (#161) 2025-12-16 22:07:06 +00:00
basic-server-react refactor: rename request methods to remove send prefix (#161) 2025-12-16 22:07:06 +00:00
basic-server-vanillajs refactor: rename request methods to remove send prefix (#161) 2025-12-16 22:07:06 +00:00
budget-allocator-server docs: add tool visibility and restructure _meta.ui (#131) 2025-12-16 21:47:40 +00:00
cohort-heatmap-server feat: add server helpers, make connect() to default to parent post transport (#165) 2025-12-16 21:25:26 +00:00
customer-segmentation-server docs: add tool visibility and restructure _meta.ui (#131) 2025-12-16 21:47:40 +00:00
qr-server feat: add server helpers, make connect() to default to parent post transport (#165) 2025-12-16 21:25:26 +00:00
scenario-modeler-server docs: add tool visibility and restructure _meta.ui (#131) 2025-12-16 21:47:40 +00:00
shared tests: add Playwright E2E tests with screenshot golden testing (+ fix examples session handling) (#115) 2025-12-13 20:57:27 +00:00
system-monitor-server docs: add tool visibility and restructure _meta.ui (#131) 2025-12-16 21:47:40 +00:00
threejs-server refactor: rename request methods to remove send prefix (#161) 2025-12-16 22:07:06 +00:00
wiki-explorer-server refactor: rename request methods to remove send prefix (#161) 2025-12-16 22:07:06 +00:00
run-all.ts refactor(examples): use concurrently API for proper process cleanup (#128) 2025-12-11 14:04:39 +01:00