Commit 207c4e1
fix: align mcp-preview AppBridge with ext-apps SDK v1.2.2 protocol
The AppBridge used pre-spec camelCase method names causing runtime errors
when widgets built with @modelcontextprotocol/ext-apps@1.2.2 called
app.sendMessage() or app.updateModelContext().
- Rename ui/sendMessage handler to ui/message (spec name), keep old name
as backward-compat fallthrough
- Add ui/update-model-context stub handler (was falling through to
default and throwing Unknown method)
- Update hostCapabilities: sendMessage true, updateModelContext {}
- Update bundled App.sendMessage() to send spec-correct "ui/message"
- Sync TypeScript source (app-bridge.ts, app.ts) with .mjs bundle
- Rewrite mcp-tester README as a focused landing page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 71d0b7e commit 207c4e1
4 files changed
Lines changed: 113 additions & 733 deletions
File tree
- crates
- mcp-preview/assets
- mcp-tester
- packages/widget-runtime/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
1033 | | - | |
| 1033 | + | |
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
| |||
1292 | 1292 | | |
1293 | 1293 | | |
1294 | 1294 | | |
1295 | | - | |
| 1295 | + | |
| 1296 | + | |
1296 | 1297 | | |
1297 | 1298 | | |
1298 | 1299 | | |
| |||
1305 | 1306 | | |
1306 | 1307 | | |
1307 | 1308 | | |
1308 | | - | |
| 1309 | + | |
| 1310 | + | |
1309 | 1311 | | |
1310 | 1312 | | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
1311 | 1316 | | |
1312 | 1317 | | |
1313 | 1318 | | |
| |||
0 commit comments