fix: complete the MCP Apps handshake the way hosts validate it

The panel sent clientInfo and capabilities in ui/initialize, where the MCP
Apps schema requires appInfo, so hosts such as Claude rejected the handshake
and never showed the panel. It now sends exactly appCapabilities, appInfo and
protocolVersion, sends initialized without parameters, says so when a host
rejects it, and offers the link when God's Eye View does not load within 20
seconds. Checked against the MCP Apps SDK's own host bridge.
This commit is contained in:
Sameh Khamis committed 2026-10-02 15:21:37 -07:00
1 parent ba751d9433
commit d368df533d
2 files changed
+19 -4

No files matched your search

+3
View File
@@ -21,6 +21,9 @@ test('the globe panel is an MCP Apps resource that may frame only the app', () =
assert.match(resource.text, /'ui\/initialize'/);
assert.match(resource.text, /'ui\/notifications\/tool-result'/);
assert.match(resource.text, /protocolVersion: "2026-01-26"/);
// The MCP Apps SDK's initialize parameters; hosts reject anything else.
assert.match(resource.text, /appInfo: \{ name: 'gods-eye-view'/);
assert.doesNotMatch(resource.text, /clientInfo/);
});
test('show_in_gods_eye_view names the panel and shows a view another answer returned', async () => {