ext-apps/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Chafik c3e9d4d694
fix(examples): use server.registerTool for non-UI tool + fix missing imports (#173)
* fix(threejs-server): use server.registerTool for non-UI tool

The learn_threejs tool doesn't have a UI component - it only returns
documentation text. Using registerAppTool without _meta causes a
runtime error when the function tries to access config._meta.ui.

Fixes crash: "Cannot read property 'ui' of undefined"

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

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

* fix(examples): add missing registerAppTool and registerAppResource imports

All example servers were using registerAppTool and registerAppResource
but not importing them from @modelcontextprotocol/ext-apps/server,
causing "ReferenceError: registerAppTool is not defined" at runtime.

Affected servers:
- budget-allocator-server
- cohort-heatmap-server
- customer-segmentation-server
- scenario-modeler-server
- system-monitor-server
- threejs-server
- wiki-explorer-server

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

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-17 00:17:45 +00:00
..
basic-host feat: make MCP SDK a peer dependency (#168) 2025-12-16 22:09:59 +00:00
basic-server-react feat: make MCP SDK a peer dependency (#168) 2025-12-16 22:09:59 +00:00
basic-server-vanillajs feat: make MCP SDK a peer dependency (#168) 2025-12-16 22:09:59 +00:00
budget-allocator-server fix(examples): use server.registerTool for non-UI tool + fix missing imports (#173) 2025-12-17 00:17:45 +00:00
cohort-heatmap-server fix(examples): use server.registerTool for non-UI tool + fix missing imports (#173) 2025-12-17 00:17:45 +00:00
customer-segmentation-server fix(examples): use server.registerTool for non-UI tool + fix missing imports (#173) 2025-12-17 00:17:45 +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 fix(examples): use server.registerTool for non-UI tool + fix missing imports (#173) 2025-12-17 00:17:45 +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 fix(examples): use server.registerTool for non-UI tool + fix missing imports (#173) 2025-12-17 00:17:45 +00:00
threejs-server fix(examples): use server.registerTool for non-UI tool + fix missing imports (#173) 2025-12-17 00:17:45 +00:00
wiki-explorer-server fix(examples): use server.registerTool for non-UI tool + fix missing imports (#173) 2025-12-17 00:17:45 +00:00
run-all.ts refactor(examples): use concurrently API for proper process cleanup (#128) 2025-12-11 14:04:39 +01:00