sunpeak 0.18.2 → 0.18.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/commands/inspect.mjs +392 -4
- package/bin/lib/sandbox-server.mjs +11 -1
- package/dist/chatgpt/index.cjs +1 -1
- package/dist/chatgpt/index.js +1 -1
- package/dist/claude/index.cjs +1 -1
- package/dist/claude/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-request-teardown.d.ts +21 -0
- package/dist/host/chatgpt/index.cjs +1 -1
- package/dist/host/chatgpt/index.js +1 -1
- package/dist/index.cjs +110 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +68 -31
- package/dist/index.js.map +1 -1
- package/dist/inspector/hosts.d.ts +12 -0
- package/dist/inspector/index.cjs +1 -1
- package/dist/inspector/index.js +1 -1
- package/dist/inspector/mcp-app-host.d.ts +3 -0
- package/dist/inspector/simple-sidebar.d.ts +1 -1
- package/dist/inspector/use-mcp-connection.d.ts +9 -1
- package/dist/{inspector-ClhpqKLi.js → inspector-CjSoXm6N.js} +497 -117
- package/dist/inspector-CjSoXm6N.js.map +1 -0
- package/dist/{inspector-CByJjmPD.cjs → inspector-DRD_Q66E.cjs} +498 -118
- package/dist/inspector-DRD_Q66E.cjs.map +1 -0
- package/dist/mcp/index.cjs +38 -33
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.js +35 -30
- package/dist/mcp/index.js.map +1 -1
- package/dist/style.css +8 -0
- package/dist/{use-app-X7JbGskk.js → use-app-BNbz1uzj.js} +51 -42
- package/dist/use-app-BNbz1uzj.js.map +1 -0
- package/dist/{use-app-D2h-aiyr.cjs → use-app-Dqh20JPP.cjs} +93 -72
- package/dist/use-app-Dqh20JPP.cjs.map +1 -0
- package/package.json +2 -2
- package/template/dist/albums/albums.html +3 -3
- package/template/dist/albums/albums.json +1 -1
- package/template/dist/carousel/carousel.html +3 -3
- package/template/dist/carousel/carousel.json +1 -1
- package/template/dist/map/map.html +3 -3
- package/template/dist/map/map.json +1 -1
- package/template/dist/review/review.html +3 -3
- package/template/dist/review/review.json +1 -1
- package/template/node_modules/.vite/deps/_metadata.json +3 -3
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js +51 -42
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js +56 -50
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js +52 -43
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/_metadata.json +22 -22
- package/template/tests/e2e/albums.spec.ts +19 -15
- package/template/tests/live/albums.spec.ts +10 -0
- package/dist/inspector-CByJjmPD.cjs.map +0 -1
- package/dist/inspector-ClhpqKLi.js.map +0 -1
- package/dist/use-app-D2h-aiyr.cjs.map +0 -1
- package/dist/use-app-X7JbGskk.js.map +0 -1
|
@@ -2,9 +2,9 @@ import { r as __toESM } from "./chunk-BoAXSpZd.js";
|
|
|
2
2
|
import { t as require_react } from "./react.js";
|
|
3
3
|
import { Cn as object, In as string, Jn as union, Sn as number, St as _undefined, Tt as array, Yn as unknown, jn as record, kt as boolean, ln as literal } from "./schemas-NsgmY9QV.js";
|
|
4
4
|
import { S as ResourceLinkSchema, T as ToolSchema, _ as PingRequestSchema, a as EmbeddedResourceSchema, b as ReadResourceResultSchema, c as JSONRPCMessageSchema, h as ListToolsRequestSchema, i as ContentBlockSchema, m as ListResourcesResultSchema, n as CallToolRequestSchema, o as EmptyResultSchema, r as CallToolResultSchema, s as ImplementationSchema, t as Protocol, x as RequestIdSchema } from "./protocol-CTflwIfG.js";
|
|
5
|
-
//#region ../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.
|
|
5
|
+
//#region ../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.3.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__react-_cd1fb28fd87e0bddd0a29eba0721855d/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js
|
|
6
6
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7
|
-
var
|
|
7
|
+
var z = "2026-01-26", o = "ui/open-link", a = "ui/download-file", s = "ui/message", t = "ui/notifications/sandbox-proxy-ready", e = "ui/notifications/sandbox-resource-ready", JJ = "ui/notifications/size-changed", KJ = "ui/notifications/tool-input", U = "ui/notifications/tool-input-partial", QJ = "ui/notifications/tool-result", XJ = "ui/notifications/tool-cancelled", YJ = "ui/notifications/host-context-changed", ZJ = "ui/notifications/request-teardown", $J = "ui/resource-teardown", GJ = "ui/initialize", jJ = "ui/notifications/initialized", WJ = "ui/request-display-mode";
|
|
8
8
|
var j = class {
|
|
9
9
|
eventTarget;
|
|
10
10
|
eventSource;
|
|
@@ -39,11 +39,11 @@ var j = class {
|
|
|
39
39
|
sessionId;
|
|
40
40
|
setProtocolVersion;
|
|
41
41
|
};
|
|
42
|
-
var m = union([literal("light"), literal("dark")]).describe("Color theme preference for the host environment."),
|
|
42
|
+
var m = union([literal("light"), literal("dark")]).describe("Color theme preference for the host environment."), W = union([
|
|
43
43
|
literal("inline"),
|
|
44
44
|
literal("fullscreen"),
|
|
45
45
|
literal("pip")
|
|
46
|
-
]).describe("Display mode for UI presentation."),
|
|
46
|
+
]).describe("Display mode for UI presentation."), qJ = record(union([
|
|
47
47
|
literal("--color-background-primary"),
|
|
48
48
|
literal("--color-background-secondary"),
|
|
49
49
|
literal("--color-background-tertiary"),
|
|
@@ -138,10 +138,10 @@ Individual style keys are optional - hosts may provide any subset of these value
|
|
|
138
138
|
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
139
139
|
|
|
140
140
|
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
141
|
-
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),
|
|
141
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`), DJ = object({
|
|
142
142
|
method: literal("ui/open-link"),
|
|
143
143
|
params: object({ url: string().describe("URL to open in the host's browser") })
|
|
144
|
-
}),
|
|
144
|
+
}), M = object({ isError: boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).") }).passthrough(), T = object({ isError: boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).") }).passthrough(), H = object({ isError: boolean().optional().describe("True if the host rejected or failed to deliver the message.") }).passthrough(), IJ = object({
|
|
145
145
|
method: literal("ui/notifications/sandbox-proxy-ready"),
|
|
146
146
|
params: object({})
|
|
147
147
|
}), P = object({
|
|
@@ -157,7 +157,7 @@ for compatibility with Zod schema generation. Both are functionally equivalent f
|
|
|
157
157
|
microphone: object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),
|
|
158
158
|
geolocation: object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),
|
|
159
159
|
clipboardWrite: object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")
|
|
160
|
-
}),
|
|
160
|
+
}), FJ = object({
|
|
161
161
|
method: literal("ui/notifications/size-changed"),
|
|
162
162
|
params: object({
|
|
163
163
|
width: number().optional().describe("New width in pixels."),
|
|
@@ -173,18 +173,21 @@ for compatibility with Zod schema generation. Both are functionally equivalent f
|
|
|
173
173
|
method: literal("ui/notifications/tool-cancelled"),
|
|
174
174
|
params: object({ reason: string().optional().describe("Optional reason for the cancellation (e.g., \"user action\", \"timeout\").") })
|
|
175
175
|
}), c = object({ fonts: string().optional() }), r = object({
|
|
176
|
-
variables:
|
|
176
|
+
variables: qJ.optional().describe("CSS variables for theming the app."),
|
|
177
177
|
css: c.optional().describe("CSS blocks that apps can inject.")
|
|
178
|
-
}),
|
|
178
|
+
}), b = object({
|
|
179
179
|
method: literal("ui/resource-teardown"),
|
|
180
180
|
params: object({})
|
|
181
|
-
}),
|
|
181
|
+
}), EJ = record(string(), unknown()), w = object({
|
|
182
182
|
text: object({}).optional().describe("Host supports text content blocks."),
|
|
183
183
|
image: object({}).optional().describe("Host supports image content blocks."),
|
|
184
184
|
audio: object({}).optional().describe("Host supports audio content blocks."),
|
|
185
185
|
resource: object({}).optional().describe("Host supports resource content blocks."),
|
|
186
186
|
resourceLink: object({}).optional().describe("Host supports resource link content blocks."),
|
|
187
187
|
structuredContent: object({}).optional().describe("Host supports structured content.")
|
|
188
|
+
}), RJ = object({
|
|
189
|
+
method: literal("ui/notifications/request-teardown"),
|
|
190
|
+
params: object({}).optional()
|
|
188
191
|
}), l = object({
|
|
189
192
|
experimental: object({}).optional().describe("Experimental features (structure TBD)."),
|
|
190
193
|
openLinks: object({}).optional().describe("Host supports opening external URLs."),
|
|
@@ -196,16 +199,16 @@ for compatibility with Zod schema generation. Both are functionally equivalent f
|
|
|
196
199
|
permissions: _.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),
|
|
197
200
|
csp: P.optional().describe("CSP domains approved by the host.")
|
|
198
201
|
}).optional().describe("Sandbox configuration applied by the host."),
|
|
199
|
-
updateModelContext:
|
|
200
|
-
message:
|
|
202
|
+
updateModelContext: w.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),
|
|
203
|
+
message: w.optional().describe("Host supports receiving content messages (ui/message) from the view.")
|
|
201
204
|
}), i = object({
|
|
202
205
|
experimental: object({}).optional().describe("Experimental features (structure TBD)."),
|
|
203
206
|
tools: object({ listChanged: boolean().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."),
|
|
204
|
-
availableDisplayModes: array(
|
|
205
|
-
}),
|
|
207
|
+
availableDisplayModes: array(W).optional().describe("Display modes the app supports.")
|
|
208
|
+
}), zJ = object({
|
|
206
209
|
method: literal("ui/notifications/initialized"),
|
|
207
210
|
params: object({}).optional()
|
|
208
|
-
}),
|
|
211
|
+
}), UJ = object({
|
|
209
212
|
csp: P.optional().describe("Content Security Policy configuration for UI resources."),
|
|
210
213
|
permissions: _.optional().describe("Sandbox permissions requested by the UI resource."),
|
|
211
214
|
domain: string().optional().describe(`Dedicated origin for view sandbox.
|
|
@@ -224,26 +227,26 @@ Boolean requesting whether a visible border and background is provided by the ho
|
|
|
224
227
|
- \`true\`: request visible border + background
|
|
225
228
|
- \`false\`: request no visible border + background
|
|
226
229
|
- omitted: host decides border`)
|
|
227
|
-
}),
|
|
230
|
+
}), wJ = object({
|
|
228
231
|
method: literal("ui/request-display-mode"),
|
|
229
|
-
params: object({ mode:
|
|
230
|
-
}),
|
|
232
|
+
params: object({ mode: W.describe("The display mode being requested.") })
|
|
233
|
+
}), S = object({ mode: W.describe("The display mode that was actually set. May differ from requested if not supported.") }).passthrough(), p = union([literal("model"), literal("app")]).describe("Tool visibility scope - who can access the tool."), MJ = object({
|
|
231
234
|
resourceUri: string().optional(),
|
|
232
235
|
visibility: array(p).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
233
236
|
- "model": Tool visible to and callable by the agent
|
|
234
237
|
- "app": Tool callable by the app from this server only`)
|
|
235
238
|
});
|
|
236
239
|
object({ mimeTypes: array(string()).optional().describe("Array of supported MIME types for UI resources.\nMust include `\"text/html;profile=mcp-app\"` for MCP Apps support.") });
|
|
237
|
-
var
|
|
240
|
+
var TJ = object({
|
|
238
241
|
method: literal("ui/download-file"),
|
|
239
242
|
params: object({ contents: array(union([EmbeddedResourceSchema, ResourceLinkSchema])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.") })
|
|
240
|
-
}),
|
|
243
|
+
}), HJ = object({
|
|
241
244
|
method: literal("ui/message"),
|
|
242
245
|
params: object({
|
|
243
246
|
role: literal("user").describe("Message role, currently only \"user\" is supported."),
|
|
244
247
|
content: array(ContentBlockSchema).describe("Message content blocks (text, image, etc.).")
|
|
245
248
|
})
|
|
246
|
-
}),
|
|
249
|
+
}), vJ = object({
|
|
247
250
|
method: literal("ui/notifications/sandbox-resource-ready"),
|
|
248
251
|
params: object({
|
|
249
252
|
html: string().describe("HTML content to load into the inner iframe."),
|
|
@@ -261,8 +264,8 @@ var MJ = object({
|
|
|
261
264
|
}).optional().describe("Metadata of the tool call that instantiated this App."),
|
|
262
265
|
theme: m.optional().describe("Current color theme preference."),
|
|
263
266
|
styles: r.optional().describe("Style configuration for theming the app."),
|
|
264
|
-
displayMode:
|
|
265
|
-
availableDisplayModes: array(
|
|
267
|
+
displayMode: W.optional().describe("How the UI is currently displayed."),
|
|
268
|
+
availableDisplayModes: array(W).optional().describe("Display modes the host supports."),
|
|
266
269
|
containerDimensions: union([object({ height: number().describe("Fixed container height in pixels.") }), object({ maxHeight: union([number(), _undefined()]).optional().describe("Maximum container height in pixels.") })]).and(union([object({ width: number().describe("Fixed container width in pixels.") }), object({ maxWidth: union([number(), _undefined()]).optional().describe("Maximum container width in pixels.") })])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
267
270
|
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),
|
|
268
271
|
locale: string().optional().describe("User's language and region preference in BCP 47 format."),
|
|
@@ -286,13 +289,13 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
286
289
|
}).passthrough(), x = object({
|
|
287
290
|
method: literal("ui/notifications/host-context-changed"),
|
|
288
291
|
params: g.describe("Partial context update containing only changed fields.")
|
|
289
|
-
}),
|
|
292
|
+
}), AJ = object({
|
|
290
293
|
method: literal("ui/update-model-context"),
|
|
291
294
|
params: object({
|
|
292
295
|
content: array(ContentBlockSchema).optional().describe("Context content blocks (text, image, etc.)."),
|
|
293
296
|
structuredContent: record(string(), unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")
|
|
294
297
|
})
|
|
295
|
-
}),
|
|
298
|
+
}), kJ = object({
|
|
296
299
|
method: literal("ui/initialize"),
|
|
297
300
|
params: object({
|
|
298
301
|
appInfo: ImplementationSchema.describe("App identification (name and version)."),
|
|
@@ -322,7 +325,7 @@ function I(K) {
|
|
|
322
325
|
let X = document.createElement("style");
|
|
323
326
|
X.id = "__mcp-host-fonts", X.textContent = K, document.head.appendChild(X);
|
|
324
327
|
}
|
|
325
|
-
var
|
|
328
|
+
var dK = "ui/resourceUri", uK = "text/html;profile=mcp-app";
|
|
326
329
|
var f = class extends Protocol {
|
|
327
330
|
_appInfo;
|
|
328
331
|
_capabilities;
|
|
@@ -369,7 +372,7 @@ var f = class extends Protocol {
|
|
|
369
372
|
});
|
|
370
373
|
}
|
|
371
374
|
set onteardown(K) {
|
|
372
|
-
this.setRequestHandler(
|
|
375
|
+
this.setRequestHandler(b, (Q, X) => K(Q.params, X));
|
|
373
376
|
}
|
|
374
377
|
set oncalltool(K) {
|
|
375
378
|
this.setRequestHandler(CallToolRequestSchema, (Q, X) => K(Q.params, X));
|
|
@@ -437,7 +440,7 @@ var f = class extends Protocol {
|
|
|
437
440
|
return this.request({
|
|
438
441
|
method: "ui/open-link",
|
|
439
442
|
params: K
|
|
440
|
-
},
|
|
443
|
+
}, M, Q);
|
|
441
444
|
}
|
|
442
445
|
sendOpenLink = this.openLink;
|
|
443
446
|
downloadFile(K, Q) {
|
|
@@ -446,11 +449,17 @@ var f = class extends Protocol {
|
|
|
446
449
|
params: K
|
|
447
450
|
}, T, Q);
|
|
448
451
|
}
|
|
452
|
+
requestTeardown(K = {}) {
|
|
453
|
+
return this.notification({
|
|
454
|
+
method: "ui/notifications/request-teardown",
|
|
455
|
+
params: K
|
|
456
|
+
});
|
|
457
|
+
}
|
|
449
458
|
requestDisplayMode(K, Q) {
|
|
450
459
|
return this.request({
|
|
451
460
|
method: "ui/request-display-mode",
|
|
452
461
|
params: K
|
|
453
|
-
},
|
|
462
|
+
}, S, Q);
|
|
454
463
|
}
|
|
455
464
|
sendSizeChanged(K) {
|
|
456
465
|
return this.notification({
|
|
@@ -465,9 +474,9 @@ var f = class extends Protocol {
|
|
|
465
474
|
K = !1;
|
|
466
475
|
let Z = document.documentElement, V = Z.style.width, E = Z.style.height;
|
|
467
476
|
Z.style.width = "fit-content", Z.style.height = "max-content";
|
|
468
|
-
let
|
|
477
|
+
let L = Z.getBoundingClientRect();
|
|
469
478
|
Z.style.width = V, Z.style.height = E;
|
|
470
|
-
let N = window.innerWidth - Z.clientWidth, B = Math.ceil(
|
|
479
|
+
let N = window.innerWidth - Z.clientWidth, B = Math.ceil(L.width + N), $ = Math.ceil(L.height);
|
|
471
480
|
if (B !== Q || $ !== X) Q = B, X = $, this.sendSizeChanged({
|
|
472
481
|
width: B,
|
|
473
482
|
height: $
|
|
@@ -487,7 +496,7 @@ var f = class extends Protocol {
|
|
|
487
496
|
params: {
|
|
488
497
|
appCapabilities: this._capabilities,
|
|
489
498
|
appInfo: this._appInfo,
|
|
490
|
-
protocolVersion:
|
|
499
|
+
protocolVersion: z
|
|
491
500
|
}
|
|
492
501
|
}, y, Q);
|
|
493
502
|
if (X === void 0) throw Error(`Server sent invalid initialize result: ${X}`);
|
|
@@ -497,16 +506,16 @@ var f = class extends Protocol {
|
|
|
497
506
|
}
|
|
498
507
|
}
|
|
499
508
|
};
|
|
500
|
-
function
|
|
501
|
-
let [Y, G] = (0, import_react.useState)(null), [Z, V] = (0, import_react.useState)(!1), [E,
|
|
509
|
+
function nK({ appInfo: K, capabilities: Q, onAppCreated: X }) {
|
|
510
|
+
let [Y, G] = (0, import_react.useState)(null), [Z, V] = (0, import_react.useState)(!1), [E, L] = (0, import_react.useState)(null);
|
|
502
511
|
return (0, import_react.useEffect)(() => {
|
|
503
512
|
let N = !0;
|
|
504
513
|
async function B() {
|
|
505
514
|
try {
|
|
506
515
|
let $ = new j(window.parent, window.parent), R = new f(K, Q);
|
|
507
|
-
if (X?.(R), await R.connect($), N) G(R), V(!0),
|
|
516
|
+
if (X?.(R), await R.connect($), N) G(R), V(!0), L(null);
|
|
508
517
|
} catch ($) {
|
|
509
|
-
if (N) G(null), V(!1),
|
|
518
|
+
if (N) G(null), V(!1), L($ instanceof Error ? $ : Error("Failed to connect"));
|
|
510
519
|
}
|
|
511
520
|
}
|
|
512
521
|
return B(), () => {
|
|
@@ -518,13 +527,13 @@ function lK({ appInfo: K, capabilities: Q, onAppCreated: X }) {
|
|
|
518
527
|
error: E
|
|
519
528
|
};
|
|
520
529
|
}
|
|
521
|
-
function
|
|
530
|
+
function eK(K, Q) {
|
|
522
531
|
(0, import_react.useEffect)(() => {
|
|
523
532
|
if (!K) return;
|
|
524
533
|
return K.setupSizeChangedNotifications();
|
|
525
534
|
}, [K, Q]);
|
|
526
535
|
}
|
|
527
|
-
function
|
|
536
|
+
function XQ() {
|
|
528
537
|
let [K, Q] = (0, import_react.useState)(O);
|
|
529
538
|
return (0, import_react.useEffect)(() => {
|
|
530
539
|
let X = new MutationObserver(() => {
|
|
@@ -539,7 +548,7 @@ function JQ() {
|
|
|
539
548
|
}), () => X.disconnect();
|
|
540
549
|
}, []), K;
|
|
541
550
|
}
|
|
542
|
-
function
|
|
551
|
+
function rJ(K, Q) {
|
|
543
552
|
let X = (0, import_react.useRef)(!1);
|
|
544
553
|
(0, import_react.useEffect)(() => {
|
|
545
554
|
if (X.current) return;
|
|
@@ -554,7 +563,7 @@ function mJ(K, Q) {
|
|
|
554
563
|
};
|
|
555
564
|
}, [K]);
|
|
556
565
|
}
|
|
557
|
-
function
|
|
566
|
+
function lJ(K, Q) {
|
|
558
567
|
let X = (0, import_react.useRef)(!1);
|
|
559
568
|
(0, import_react.useEffect)(() => {
|
|
560
569
|
if (X.current) return;
|
|
@@ -566,10 +575,10 @@ function cJ(K, Q) {
|
|
|
566
575
|
};
|
|
567
576
|
}, [K]);
|
|
568
577
|
}
|
|
569
|
-
function
|
|
570
|
-
|
|
578
|
+
function GQ(K, Q) {
|
|
579
|
+
rJ(K, Q), lJ(K, Q);
|
|
571
580
|
}
|
|
572
581
|
//#endregion
|
|
573
|
-
export { f as App,
|
|
582
|
+
export { f as App, a as DOWNLOAD_FILE_METHOD, YJ as HOST_CONTEXT_CHANGED_METHOD, jJ as INITIALIZED_METHOD, GJ as INITIALIZE_METHOD, z as LATEST_PROTOCOL_VERSION, s as MESSAGE_METHOD, i as McpUiAppCapabilitiesSchema, W as McpUiDisplayModeSchema, TJ as McpUiDownloadFileRequestSchema, T as McpUiDownloadFileResultSchema, l as McpUiHostCapabilitiesSchema, x as McpUiHostContextChangedNotificationSchema, g as McpUiHostContextSchema, c as McpUiHostCssSchema, r as McpUiHostStylesSchema, kJ as McpUiInitializeRequestSchema, y as McpUiInitializeResultSchema, zJ as McpUiInitializedNotificationSchema, HJ as McpUiMessageRequestSchema, H as McpUiMessageResultSchema, DJ as McpUiOpenLinkRequestSchema, M as McpUiOpenLinkResultSchema, wJ as McpUiRequestDisplayModeRequestSchema, S as McpUiRequestDisplayModeResultSchema, RJ as McpUiRequestTeardownNotificationSchema, P as McpUiResourceCspSchema, UJ as McpUiResourceMetaSchema, _ as McpUiResourcePermissionsSchema, b as McpUiResourceTeardownRequestSchema, EJ as McpUiResourceTeardownResultSchema, IJ as McpUiSandboxProxyReadyNotificationSchema, vJ as McpUiSandboxResourceReadyNotificationSchema, FJ as McpUiSizeChangedNotificationSchema, w as McpUiSupportedContentBlockModalitiesSchema, m as McpUiThemeSchema, k as McpUiToolCancelledNotificationSchema, v as McpUiToolInputNotificationSchema, A as McpUiToolInputPartialNotificationSchema, MJ as McpUiToolMetaSchema, C as McpUiToolResultNotificationSchema, p as McpUiToolVisibilitySchema, AJ as McpUiUpdateModelContextRequestSchema, o as OPEN_LINK_METHOD, j as PostMessageTransport, WJ as REQUEST_DISPLAY_MODE_METHOD, ZJ as REQUEST_TEARDOWN_METHOD, uK as RESOURCE_MIME_TYPE, $J as RESOURCE_TEARDOWN_METHOD, dK as RESOURCE_URI_META_KEY, t as SANDBOX_PROXY_READY_METHOD, e as SANDBOX_RESOURCE_READY_METHOD, JJ as SIZE_CHANGED_METHOD, XJ as TOOL_CANCELLED_METHOD, KJ as TOOL_INPUT_METHOD, U as TOOL_INPUT_PARTIAL_METHOD, QJ as TOOL_RESULT_METHOD, q as applyDocumentTheme, I as applyHostFonts, D as applyHostStyleVariables, O as getDocumentTheme, nK as useApp, eK as useAutoResize, XQ as useDocumentTheme, lJ as useHostFonts, rJ as useHostStyleVariables, GQ as useHostStyles };
|
|
574
583
|
|
|
575
584
|
//# sourceMappingURL=@modelcontextprotocol_ext-apps_react.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"@modelcontextprotocol_ext-apps_react.js","names":["LJ","J.union","J.literal","J.record","J.string","J.undefined","J.object","J.boolean","J.array","J.number","J.unknown","NJ","VJ","u","WJ","BJ","PJ","h","AJ","xJ","kJ","gJ","SJ","yJ","CJ","bJ"],"sources":["../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.2.2_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__react-_e9bf7657371391a829fe8b4e289b253c/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js"],"sourcesContent":["import{useEffect as fJ,useState as d}from\"react\";import{Protocol as AJ}from\"@modelcontextprotocol/sdk/shared/protocol.js\";import{CallToolRequestSchema as kJ,CallToolResultSchema as SJ,EmptyResultSchema as bJ,ListResourcesResultSchema as CJ,ListToolsRequestSchema as gJ,PingRequestSchema as xJ,ReadResourceResultSchema as yJ}from\"@modelcontextprotocol/sdk/types.js\";import{JSONRPCMessageSchema as LJ}from\"@modelcontextprotocol/sdk/types.js\";var U=\"2026-01-26\",a=\"ui/open-link\",o=\"ui/download-file\",s=\"ui/message\",t=\"ui/notifications/sandbox-proxy-ready\",e=\"ui/notifications/sandbox-resource-ready\",JJ=\"ui/notifications/size-changed\",KJ=\"ui/notifications/tool-input\",z=\"ui/notifications/tool-input-partial\",QJ=\"ui/notifications/tool-result\",XJ=\"ui/notifications/tool-cancelled\",YJ=\"ui/notifications/host-context-changed\",ZJ=\"ui/resource-teardown\",$J=\"ui/initialize\",GJ=\"ui/notifications/initialized\",jJ=\"ui/request-display-mode\";class j{eventTarget;eventSource;messageListener;constructor(K=window.parent,Q){this.eventTarget=K;this.eventSource=Q;this.messageListener=(X)=>{if(Q&&X.source!==this.eventSource){console.debug(\"Ignoring message from unknown source\",X);return}let Y=LJ.safeParse(X.data);if(Y.success)console.debug(\"Parsed message\",Y.data),this.onmessage?.(Y.data);else if(X.data?.jsonrpc!==\"2.0\")console.debug(\"Ignoring non-JSON-RPC message\",Y.error.message,X);else console.error(\"Failed to parse message\",Y.error.message,X),this.onerror?.(Error(\"Invalid JSON-RPC message received: \"+Y.error.message))}}async start(){window.addEventListener(\"message\",this.messageListener)}async send(K,Q){if(K.method!==z)console.debug(\"Sending message\",K);this.eventTarget.postMessage(K,\"*\")}async close(){window.removeEventListener(\"message\",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}import{z as J}from\"zod/v4\";import{ContentBlockSchema as u,CallToolResultSchema as WJ,EmbeddedResourceSchema as NJ,ImplementationSchema as h,RequestIdSchema as BJ,ResourceLinkSchema as VJ,ToolSchema as PJ}from\"@modelcontextprotocol/sdk/types.js\";var m=J.union([J.literal(\"light\"),J.literal(\"dark\")]).describe(\"Color theme preference for the host environment.\"),L=J.union([J.literal(\"inline\"),J.literal(\"fullscreen\"),J.literal(\"pip\")]).describe(\"Display mode for UI presentation.\"),_J=J.union([J.literal(\"--color-background-primary\"),J.literal(\"--color-background-secondary\"),J.literal(\"--color-background-tertiary\"),J.literal(\"--color-background-inverse\"),J.literal(\"--color-background-ghost\"),J.literal(\"--color-background-info\"),J.literal(\"--color-background-danger\"),J.literal(\"--color-background-success\"),J.literal(\"--color-background-warning\"),J.literal(\"--color-background-disabled\"),J.literal(\"--color-text-primary\"),J.literal(\"--color-text-secondary\"),J.literal(\"--color-text-tertiary\"),J.literal(\"--color-text-inverse\"),J.literal(\"--color-text-ghost\"),J.literal(\"--color-text-info\"),J.literal(\"--color-text-danger\"),J.literal(\"--color-text-success\"),J.literal(\"--color-text-warning\"),J.literal(\"--color-text-disabled\"),J.literal(\"--color-border-primary\"),J.literal(\"--color-border-secondary\"),J.literal(\"--color-border-tertiary\"),J.literal(\"--color-border-inverse\"),J.literal(\"--color-border-ghost\"),J.literal(\"--color-border-info\"),J.literal(\"--color-border-danger\"),J.literal(\"--color-border-success\"),J.literal(\"--color-border-warning\"),J.literal(\"--color-border-disabled\"),J.literal(\"--color-ring-primary\"),J.literal(\"--color-ring-secondary\"),J.literal(\"--color-ring-inverse\"),J.literal(\"--color-ring-info\"),J.literal(\"--color-ring-danger\"),J.literal(\"--color-ring-success\"),J.literal(\"--color-ring-warning\"),J.literal(\"--font-sans\"),J.literal(\"--font-mono\"),J.literal(\"--font-weight-normal\"),J.literal(\"--font-weight-medium\"),J.literal(\"--font-weight-semibold\"),J.literal(\"--font-weight-bold\"),J.literal(\"--font-text-xs-size\"),J.literal(\"--font-text-sm-size\"),J.literal(\"--font-text-md-size\"),J.literal(\"--font-text-lg-size\"),J.literal(\"--font-heading-xs-size\"),J.literal(\"--font-heading-sm-size\"),J.literal(\"--font-heading-md-size\"),J.literal(\"--font-heading-lg-size\"),J.literal(\"--font-heading-xl-size\"),J.literal(\"--font-heading-2xl-size\"),J.literal(\"--font-heading-3xl-size\"),J.literal(\"--font-text-xs-line-height\"),J.literal(\"--font-text-sm-line-height\"),J.literal(\"--font-text-md-line-height\"),J.literal(\"--font-text-lg-line-height\"),J.literal(\"--font-heading-xs-line-height\"),J.literal(\"--font-heading-sm-line-height\"),J.literal(\"--font-heading-md-line-height\"),J.literal(\"--font-heading-lg-line-height\"),J.literal(\"--font-heading-xl-line-height\"),J.literal(\"--font-heading-2xl-line-height\"),J.literal(\"--font-heading-3xl-line-height\"),J.literal(\"--border-radius-xs\"),J.literal(\"--border-radius-sm\"),J.literal(\"--border-radius-md\"),J.literal(\"--border-radius-lg\"),J.literal(\"--border-radius-xl\"),J.literal(\"--border-radius-full\"),J.literal(\"--border-width-regular\"),J.literal(\"--shadow-hairline\"),J.literal(\"--shadow-sm\"),J.literal(\"--shadow-md\"),J.literal(\"--shadow-lg\")]).describe(\"CSS variable keys available to MCP apps for theming.\"),OJ=J.record(_J.describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),J.union([J.string(),J.undefined()]).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),qJ=J.object({method:J.literal(\"ui/open-link\"),params:J.object({url:J.string().describe(\"URL to open in the host's browser\")})}),w=J.object({isError:J.boolean().optional().describe(\"True if the host failed to open the URL (e.g., due to security policy).\")}).passthrough(),T=J.object({isError:J.boolean().optional().describe(\"True if the download failed (e.g., user cancelled or host denied).\")}).passthrough(),H=J.object({isError:J.boolean().optional().describe(\"True if the host rejected or failed to deliver the message.\")}).passthrough(),DJ=J.object({method:J.literal(\"ui/notifications/sandbox-proxy-ready\"),params:J.object({})}),P=J.object({connectDomains:J.array(J.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP \\`connect-src\\` directive\n- Empty or omitted → no network connections (secure default)`),resourceDomains:J.array(J.string()).optional().describe(\"Origins for static resources (images, scripts, stylesheets, fonts, media).\\n\\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\\n- Wildcard subdomains supported: `https://*.example.com`\\n- Empty or omitted → no network resources (secure default)\"),frameDomains:J.array(J.string()).optional().describe(\"Origins for nested iframes.\\n\\n- Maps to CSP `frame-src` directive\\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)\"),baseUriDomains:J.array(J.string()).optional().describe(\"Allowed base URIs for the document.\\n\\n- Maps to CSP `base-uri` directive\\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)\")}),_=J.object({camera:J.object({}).optional().describe(\"Request camera access.\\n\\nMaps to Permission Policy `camera` feature.\"),microphone:J.object({}).optional().describe(\"Request microphone access.\\n\\nMaps to Permission Policy `microphone` feature.\"),geolocation:J.object({}).optional().describe(\"Request geolocation access.\\n\\nMaps to Permission Policy `geolocation` feature.\"),clipboardWrite:J.object({}).optional().describe(\"Request clipboard write access.\\n\\nMaps to Permission Policy `clipboard-write` feature.\")}),IJ=J.object({method:J.literal(\"ui/notifications/size-changed\"),params:J.object({width:J.number().optional().describe(\"New width in pixels.\"),height:J.number().optional().describe(\"New height in pixels.\")})}),v=J.object({method:J.literal(\"ui/notifications/tool-input\"),params:J.object({arguments:J.record(J.string(),J.unknown().describe(\"Complete tool call arguments as key-value pairs.\")).optional().describe(\"Complete tool call arguments as key-value pairs.\")})}),A=J.object({method:J.literal(\"ui/notifications/tool-input-partial\"),params:J.object({arguments:J.record(J.string(),J.unknown().describe(\"Partial tool call arguments (incomplete, may change).\")).optional().describe(\"Partial tool call arguments (incomplete, may change).\")})}),k=J.object({method:J.literal(\"ui/notifications/tool-cancelled\"),params:J.object({reason:J.string().optional().describe('Optional reason for the cancellation (e.g., \"user action\", \"timeout\").')})}),c=J.object({fonts:J.string().optional()}),r=J.object({variables:OJ.optional().describe(\"CSS variables for theming the app.\"),css:c.optional().describe(\"CSS blocks that apps can inject.\")}),S=J.object({method:J.literal(\"ui/resource-teardown\"),params:J.object({})}),FJ=J.record(J.string(),J.unknown()),M=J.object({text:J.object({}).optional().describe(\"Host supports text content blocks.\"),image:J.object({}).optional().describe(\"Host supports image content blocks.\"),audio:J.object({}).optional().describe(\"Host supports audio content blocks.\"),resource:J.object({}).optional().describe(\"Host supports resource content blocks.\"),resourceLink:J.object({}).optional().describe(\"Host supports resource link content blocks.\"),structuredContent:J.object({}).optional().describe(\"Host supports structured content.\")}),l=J.object({experimental:J.object({}).optional().describe(\"Experimental features (structure TBD).\"),openLinks:J.object({}).optional().describe(\"Host supports opening external URLs.\"),downloadFile:J.object({}).optional().describe(\"Host supports file downloads via ui/download-file.\"),serverTools:J.object({listChanged:J.boolean().optional().describe(\"Host supports tools/list_changed notifications.\")}).optional().describe(\"Host can proxy tool calls to the MCP server.\"),serverResources:J.object({listChanged:J.boolean().optional().describe(\"Host supports resources/list_changed notifications.\")}).optional().describe(\"Host can proxy resource reads to the MCP server.\"),logging:J.object({}).optional().describe(\"Host accepts log messages.\"),sandbox:J.object({permissions:_.optional().describe(\"Permissions granted by the host (camera, microphone, geolocation).\"),csp:P.optional().describe(\"CSP domains approved by the host.\")}).optional().describe(\"Sandbox configuration applied by the host.\"),updateModelContext:M.optional().describe(\"Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.\"),message:M.optional().describe(\"Host supports receiving content messages (ui/message) from the view.\")}),i=J.object({experimental:J.object({}).optional().describe(\"Experimental features (structure TBD).\"),tools:J.object({listChanged:J.boolean().optional().describe(\"App supports tools/list_changed notifications.\")}).optional().describe(\"App exposes MCP-style tools that the host can call.\"),availableDisplayModes:J.array(L).optional().describe(\"Display modes the app supports.\")}),EJ=J.object({method:J.literal(\"ui/notifications/initialized\"),params:J.object({}).optional()}),RJ=J.object({csp:P.optional().describe(\"Content Security Policy configuration for UI resources.\"),permissions:_.optional().describe(\"Sandbox permissions requested by the UI resource.\"),domain:J.string().optional().describe(`Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., \\`{hash}.claudemcpcontent.com\\`)\n- URL-derived subdomains (e.g., \\`www-example-com.oaiusercontent.com\\`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:J.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- \\`true\\`: request visible border + background\n- \\`false\\`: request no visible border + background\n- omitted: host decides border`)}),UJ=J.object({method:J.literal(\"ui/request-display-mode\"),params:J.object({mode:L.describe(\"The display mode being requested.\")})}),b=J.object({mode:L.describe(\"The display mode that was actually set. May differ from requested if not supported.\")}).passthrough(),p=J.union([J.literal(\"model\"),J.literal(\"app\")]).describe(\"Tool visibility scope - who can access the tool.\"),zJ=J.object({resourceUri:J.string().optional(),visibility:J.array(p).optional().describe(`Who can access this tool. Default: [\"model\", \"app\"]\n- \"model\": Tool visible to and callable by the agent\n- \"app\": Tool callable by the app from this server only`)}),tJ=J.object({mimeTypes:J.array(J.string()).optional().describe('Array of supported MIME types for UI resources.\\nMust include `\"text/html;profile=mcp-app\"` for MCP Apps support.')}),MJ=J.object({method:J.literal(\"ui/download-file\"),params:J.object({contents:J.array(J.union([NJ,VJ])).describe(\"Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.\")})}),wJ=J.object({method:J.literal(\"ui/message\"),params:J.object({role:J.literal(\"user\").describe('Message role, currently only \"user\" is supported.'),content:J.array(u).describe(\"Message content blocks (text, image, etc.).\")})}),TJ=J.object({method:J.literal(\"ui/notifications/sandbox-resource-ready\"),params:J.object({html:J.string().describe(\"HTML content to load into the inner iframe.\"),sandbox:J.string().optional().describe(\"Optional override for the inner iframe's sandbox attribute.\"),csp:P.optional().describe(\"CSP configuration from resource metadata.\"),permissions:_.optional().describe(\"Sandbox permissions from resource metadata.\")})}),C=J.object({method:J.literal(\"ui/notifications/tool-result\"),params:WJ.describe(\"Standard MCP tool execution result.\")}),g=J.object({toolInfo:J.object({id:BJ.optional().describe(\"JSON-RPC id of the tools/call request.\"),tool:PJ.describe(\"Tool definition including name, inputSchema, etc.\")}).optional().describe(\"Metadata of the tool call that instantiated this App.\"),theme:m.optional().describe(\"Current color theme preference.\"),styles:r.optional().describe(\"Style configuration for theming the app.\"),displayMode:L.optional().describe(\"How the UI is currently displayed.\"),availableDisplayModes:J.array(L).optional().describe(\"Display modes the host supports.\"),containerDimensions:J.union([J.object({height:J.number().describe(\"Fixed container height in pixels.\")}),J.object({maxHeight:J.union([J.number(),J.undefined()]).optional().describe(\"Maximum container height in pixels.\")})]).and(J.union([J.object({width:J.number().describe(\"Fixed container width in pixels.\")}),J.object({maxWidth:J.union([J.number(),J.undefined()]).optional().describe(\"Maximum container width in pixels.\")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:J.string().optional().describe(\"User's language and region preference in BCP 47 format.\"),timeZone:J.string().optional().describe(\"User's timezone in IANA format.\"),userAgent:J.string().optional().describe(\"Host application identifier.\"),platform:J.union([J.literal(\"web\"),J.literal(\"desktop\"),J.literal(\"mobile\")]).optional().describe(\"Platform type for responsive design decisions.\"),deviceCapabilities:J.object({touch:J.boolean().optional().describe(\"Whether the device supports touch input.\"),hover:J.boolean().optional().describe(\"Whether the device supports hover interactions.\")}).optional().describe(\"Device input capabilities.\"),safeAreaInsets:J.object({top:J.number().describe(\"Top safe area inset in pixels.\"),right:J.number().describe(\"Right safe area inset in pixels.\"),bottom:J.number().describe(\"Bottom safe area inset in pixels.\"),left:J.number().describe(\"Left safe area inset in pixels.\")}).optional().describe(\"Mobile safe area boundaries in pixels.\")}).passthrough(),x=J.object({method:J.literal(\"ui/notifications/host-context-changed\"),params:g.describe(\"Partial context update containing only changed fields.\")}),HJ=J.object({method:J.literal(\"ui/update-model-context\"),params:J.object({content:J.array(u).optional().describe(\"Context content blocks (text, image, etc.).\"),structuredContent:J.record(J.string(),J.unknown().describe(\"Structured content for machine-readable context data.\")).optional().describe(\"Structured content for machine-readable context data.\")})}),vJ=J.object({method:J.literal(\"ui/initialize\"),params:J.object({appInfo:h.describe(\"App identification (name and version).\"),appCapabilities:i.describe(\"Features and capabilities this app provides.\"),protocolVersion:J.string().describe(\"Protocol version this app supports.\")})}),y=J.object({protocolVersion:J.string().describe('Negotiated protocol version string (e.g., \"2025-11-21\").'),hostInfo:h.describe(\"Host application identification and version.\"),hostCapabilities:l.describe(\"Features and capabilities provided by the host.\"),hostContext:g.describe(\"Rich context about the host environment.\")}).passthrough();function O(){let K=document.documentElement.getAttribute(\"data-theme\");if(K===\"dark\"||K===\"light\")return K;return document.documentElement.classList.contains(\"dark\")?\"dark\":\"light\"}function q(K){let Q=document.documentElement;Q.setAttribute(\"data-theme\",K),Q.style.colorScheme=K}function D(K,Q=document.documentElement){for(let[X,Y]of Object.entries(K))if(Y!==void 0)Q.style.setProperty(X,Y)}function I(K){if(document.getElementById(\"__mcp-host-fonts\"))return;let X=document.createElement(\"style\");X.id=\"__mcp-host-fonts\",X.textContent=K,document.head.appendChild(X)}var xK=\"ui/resourceUri\",yK=\"text/html;profile=mcp-app\";class f extends AJ{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;constructor(K,Q={},X={autoResize:!0}){super(X);this._appInfo=K;this._capabilities=Q;this.options=X;this.setRequestHandler(xJ,(Y)=>{return console.log(\"Received ping:\",Y.params),{}}),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(K){this.setNotificationHandler(v,(Q)=>K(Q.params))}set ontoolinputpartial(K){this.setNotificationHandler(A,(Q)=>K(Q.params))}set ontoolresult(K){this.setNotificationHandler(C,(Q)=>K(Q.params))}set ontoolcancelled(K){this.setNotificationHandler(k,(Q)=>K(Q.params))}set onhostcontextchanged(K){this.setNotificationHandler(x,(Q)=>{this._hostContext={...this._hostContext,...Q.params},K(Q.params)})}set onteardown(K){this.setRequestHandler(S,(Q,X)=>K(Q.params,X))}set oncalltool(K){this.setRequestHandler(kJ,(Q,X)=>K(Q.params,X))}set onlisttools(K){this.setRequestHandler(gJ,(Q,X)=>K(Q.params,X))}assertCapabilityForMethod(K){}assertRequestHandlerCapability(K){switch(K){case\"tools/call\":case\"tools/list\":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${K})`);return;case\"ping\":case\"ui/resource-teardown\":return;default:throw Error(`No handler for method ${K} registered`)}}assertNotificationCapability(K){}assertTaskCapability(K){throw Error(\"Tasks are not supported in MCP Apps\")}assertTaskHandlerCapability(K){throw Error(\"Task handlers are not supported in MCP Apps\")}async callServerTool(K,Q){if(typeof K===\"string\")throw Error(`callServerTool() expects an object as its first argument, but received a string (\"${K}\"). Did you mean: callServerTool({ name: \"${K}\", arguments: { ... } })?`);return await this.request({method:\"tools/call\",params:K},SJ,Q)}async readServerResource(K,Q){return await this.request({method:\"resources/read\",params:K},yJ,Q)}async listServerResources(K,Q){return await this.request({method:\"resources/list\",params:K},CJ,Q)}sendMessage(K,Q){return this.request({method:\"ui/message\",params:K},H,Q)}sendLog(K){return this.notification({method:\"notifications/message\",params:K})}updateModelContext(K,Q){return this.request({method:\"ui/update-model-context\",params:K},bJ,Q)}openLink(K,Q){return this.request({method:\"ui/open-link\",params:K},w,Q)}sendOpenLink=this.openLink;downloadFile(K,Q){return this.request({method:\"ui/download-file\",params:K},T,Q)}requestDisplayMode(K,Q){return this.request({method:\"ui/request-display-mode\",params:K},b,Q)}sendSizeChanged(K){return this.notification({method:\"ui/notifications/size-changed\",params:K})}setupSizeChangedNotifications(){let K=!1,Q=0,X=0,Y=()=>{if(K)return;K=!0,requestAnimationFrame(()=>{K=!1;let Z=document.documentElement,V=Z.style.width,E=Z.style.height;Z.style.width=\"fit-content\",Z.style.height=\"max-content\";let W=Z.getBoundingClientRect();Z.style.width=V,Z.style.height=E;let N=window.innerWidth-Z.clientWidth,B=Math.ceil(W.width+N),$=Math.ceil(W.height);if(B!==Q||$!==X)Q=B,X=$,this.sendSizeChanged({width:B,height:$})})};Y();let G=new ResizeObserver(Y);return G.observe(document.documentElement),G.observe(document.body),()=>G.disconnect()}async connect(K=new j(window.parent,window.parent),Q){if(this.transport)throw Error(\"App is already connected. Call close() before connecting again.\");await super.connect(K);try{let X=await this.request({method:\"ui/initialize\",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:U}},y,Q);if(X===void 0)throw Error(`Server sent invalid initialize result: ${X}`);if(this._hostCapabilities=X.hostCapabilities,this._hostInfo=X.hostInfo,this._hostContext=X.hostContext,await this.notification({method:\"ui/notifications/initialized\"}),this.options?.autoResize)this.setupSizeChangedNotifications()}catch(X){throw this.close(),X}}}function lK({appInfo:K,capabilities:Q,onAppCreated:X}){let[Y,G]=d(null),[Z,V]=d(!1),[E,W]=d(null);return fJ(()=>{let N=!0;async function B(){try{let $=new j(window.parent,window.parent),R=new f(K,Q);if(X?.(R),await R.connect($),N)G(R),V(!0),W(null)}catch($){if(N)G(null),V(!1),W($ instanceof Error?$:Error(\"Failed to connect\"))}}return B(),()=>{N=!1}},[]),{app:Y,isConnected:Z,error:E}}import{useEffect as dJ}from\"react\";function oK(K,Q){dJ(()=>{if(!K)return;return K.setupSizeChangedNotifications()},[K,Q])}import{useEffect as uJ,useState as hJ}from\"react\";function JQ(){let[K,Q]=hJ(O);return uJ(()=>{let X=new MutationObserver(()=>{Q(O())});return X.observe(document.documentElement,{attributes:!0,attributeFilter:[\"data-theme\",\"class\"],characterData:!1,childList:!1,subtree:!1}),()=>X.disconnect()},[]),K}import{useEffect as F,useRef as n}from\"react\";function mJ(K,Q){let X=n(!1);F(()=>{if(X.current)return;if(Q?.theme)q(Q.theme);if(Q?.styles?.variables)D(Q.styles.variables);if(Q?.theme||Q?.styles?.variables)X.current=!0},[Q]),F(()=>{if(!K)return;K.onhostcontextchanged=(Y)=>{if(Y.theme)q(Y.theme);if(Y.styles?.variables)D(Y.styles.variables)}},[K])}function cJ(K,Q){let X=n(!1);F(()=>{if(X.current)return;if(Q?.styles?.css?.fonts)I(Q.styles.css.fonts),X.current=!0},[Q]),F(()=>{if(!K)return;K.onhostcontextchanged=(Y)=>{if(Y.styles?.css?.fonts)I(Y.styles.css.fonts)}},[K])}function YQ(K,Q){mJ(K,Q),cJ(K,Q)}export{YQ as useHostStyles,mJ as useHostStyleVariables,cJ as useHostFonts,JQ as useDocumentTheme,oK as useAutoResize,lK as useApp,O as getDocumentTheme,D as applyHostStyleVariables,I as applyHostFonts,q as applyDocumentTheme,QJ as TOOL_RESULT_METHOD,z as TOOL_INPUT_PARTIAL_METHOD,KJ as TOOL_INPUT_METHOD,XJ as TOOL_CANCELLED_METHOD,JJ as SIZE_CHANGED_METHOD,e as SANDBOX_RESOURCE_READY_METHOD,t as SANDBOX_PROXY_READY_METHOD,xK as RESOURCE_URI_META_KEY,ZJ as RESOURCE_TEARDOWN_METHOD,yK as RESOURCE_MIME_TYPE,jJ as REQUEST_DISPLAY_MODE_METHOD,j as PostMessageTransport,a as OPEN_LINK_METHOD,HJ as McpUiUpdateModelContextRequestSchema,p as McpUiToolVisibilitySchema,C as McpUiToolResultNotificationSchema,zJ as McpUiToolMetaSchema,A as McpUiToolInputPartialNotificationSchema,v as McpUiToolInputNotificationSchema,k as McpUiToolCancelledNotificationSchema,m as McpUiThemeSchema,M as McpUiSupportedContentBlockModalitiesSchema,IJ as McpUiSizeChangedNotificationSchema,TJ as McpUiSandboxResourceReadyNotificationSchema,DJ as McpUiSandboxProxyReadyNotificationSchema,FJ as McpUiResourceTeardownResultSchema,S as McpUiResourceTeardownRequestSchema,_ as McpUiResourcePermissionsSchema,RJ as McpUiResourceMetaSchema,P as McpUiResourceCspSchema,b as McpUiRequestDisplayModeResultSchema,UJ as McpUiRequestDisplayModeRequestSchema,w as McpUiOpenLinkResultSchema,qJ as McpUiOpenLinkRequestSchema,H as McpUiMessageResultSchema,wJ as McpUiMessageRequestSchema,EJ as McpUiInitializedNotificationSchema,y as McpUiInitializeResultSchema,vJ as McpUiInitializeRequestSchema,r as McpUiHostStylesSchema,c as McpUiHostCssSchema,g as McpUiHostContextSchema,x as McpUiHostContextChangedNotificationSchema,l as McpUiHostCapabilitiesSchema,T as McpUiDownloadFileResultSchema,MJ as McpUiDownloadFileRequestSchema,L as McpUiDisplayModeSchema,i as McpUiAppCapabilitiesSchema,s as MESSAGE_METHOD,U as LATEST_PROTOCOL_VERSION,$J as INITIALIZE_METHOD,GJ as INITIALIZED_METHOD,YJ as HOST_CONTEXT_CHANGED_METHOD,o as DOWNLOAD_FILE_METHOD,f as App};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;AAAwb,IAAI,IAAE,cAAa,IAAE,gBAAe,IAAE,oBAAmB,IAAE,cAAa,IAAE,wCAAuC,IAAE,2CAA0C,KAAG,iCAAgC,KAAG,+BAA8B,IAAE,uCAAsC,KAAG,gCAA+B,KAAG,mCAAkC,KAAG,yCAAwC,KAAG,wBAAuB,KAAG,iBAAgB,KAAG,gCAA+B,KAAG;AAA0B,IAAM,IAAN,MAAO;CAAC;CAAY;CAAY;CAAgB,YAAY,IAAE,OAAO,QAAO,GAAE;AAAC,OAAK,cAAY;AAAE,OAAK,cAAY;AAAE,OAAK,mBAAiB,MAAI;AAAC,OAAG,KAAG,EAAE,WAAS,KAAK,aAAY;AAAC,YAAQ,MAAM,wCAAuC,EAAE;AAAC;;GAAO,IAAI,IAAEA,qBAAG,UAAU,EAAE,KAAK;AAAC,OAAG,EAAE,QAAQ,SAAQ,MAAM,kBAAiB,EAAE,KAAK,EAAC,KAAK,YAAY,EAAE,KAAK;YAAS,EAAE,MAAM,YAAU,MAAM,SAAQ,MAAM,iCAAgC,EAAE,MAAM,SAAQ,EAAE;OAAM,SAAQ,MAAM,2BAA0B,EAAE,MAAM,SAAQ,EAAE,EAAC,KAAK,UAAU,MAAM,wCAAsC,EAAE,MAAM,QAAQ,C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AU;;IAAG,CAAC,EAAE,CAAC;;AAAC,SAAS,GAAG,GAAE,GAAE;CAAC,IAAI,KAAA,GAAA,aAAA,QAAI,CAAC,EAAE;AAAC,EAAA,GAAA,aAAA,iBAAM;AAAC,MAAG,EAAE,QAAQ;AAAO,MAAG,GAAG,QAAQ,KAAK,MAAM,GAAE,EAAE,OAAO,IAAI,MAAM,EAAC,EAAE,UAAQ,CAAC;IAAG,CAAC,EAAE,CAAC,GAAA,GAAA,aAAA,iBAAO;AAAC,MAAG,CAAC,EAAE;AAAO,IAAE,wBAAsB,MAAI;AAAC,OAAG,EAAE,QAAQ,KAAK,MAAM,GAAE,EAAE,OAAO,IAAI,MAAM;;IAAG,CAAC,EAAE,CAAC;;AAAC,SAAS,GAAG,GAAE,GAAE;AAAC,IAAG,GAAE,EAAE,EAAC,GAAG,GAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"@modelcontextprotocol_ext-apps_react.js","names":["LJ","J.union","J.literal","J.record","J.string","J.undefined","J.object","J.boolean","J.array","J.number","J.unknown","BJ","PJ","u","NJ","VJ","_J","h","bJ","fJ","SJ","yJ","CJ","dJ","xJ","gJ"],"sources":["../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.3.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__react-_cd1fb28fd87e0bddd0a29eba0721855d/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js"],"sourcesContent":["import{useEffect as uJ,useState as d}from\"react\";import{Protocol as bJ}from\"@modelcontextprotocol/sdk/shared/protocol.js\";import{CallToolRequestSchema as SJ,CallToolResultSchema as CJ,EmptyResultSchema as gJ,ListResourcesResultSchema as xJ,ListToolsRequestSchema as yJ,PingRequestSchema as fJ,ReadResourceResultSchema as dJ}from\"@modelcontextprotocol/sdk/types.js\";import{JSONRPCMessageSchema as LJ}from\"@modelcontextprotocol/sdk/types.js\";var z=\"2026-01-26\",o=\"ui/open-link\",a=\"ui/download-file\",s=\"ui/message\",t=\"ui/notifications/sandbox-proxy-ready\",e=\"ui/notifications/sandbox-resource-ready\",JJ=\"ui/notifications/size-changed\",KJ=\"ui/notifications/tool-input\",U=\"ui/notifications/tool-input-partial\",QJ=\"ui/notifications/tool-result\",XJ=\"ui/notifications/tool-cancelled\",YJ=\"ui/notifications/host-context-changed\",ZJ=\"ui/notifications/request-teardown\",$J=\"ui/resource-teardown\",GJ=\"ui/initialize\",jJ=\"ui/notifications/initialized\",WJ=\"ui/request-display-mode\";class j{eventTarget;eventSource;messageListener;constructor(K=window.parent,Q){this.eventTarget=K;this.eventSource=Q;this.messageListener=(X)=>{if(Q&&X.source!==this.eventSource){console.debug(\"Ignoring message from unknown source\",X);return}let Y=LJ.safeParse(X.data);if(Y.success)console.debug(\"Parsed message\",Y.data),this.onmessage?.(Y.data);else if(X.data?.jsonrpc!==\"2.0\")console.debug(\"Ignoring non-JSON-RPC message\",Y.error.message,X);else console.error(\"Failed to parse message\",Y.error.message,X),this.onerror?.(Error(\"Invalid JSON-RPC message received: \"+Y.error.message))}}async start(){window.addEventListener(\"message\",this.messageListener)}async send(K,Q){if(K.method!==U)console.debug(\"Sending message\",K);this.eventTarget.postMessage(K,\"*\")}async close(){window.removeEventListener(\"message\",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}import{z as J}from\"zod/v4\";import{ContentBlockSchema as u,CallToolResultSchema as NJ,EmbeddedResourceSchema as BJ,ImplementationSchema as h,RequestIdSchema as VJ,ResourceLinkSchema as PJ,ToolSchema as _J}from\"@modelcontextprotocol/sdk/types.js\";var m=J.union([J.literal(\"light\"),J.literal(\"dark\")]).describe(\"Color theme preference for the host environment.\"),W=J.union([J.literal(\"inline\"),J.literal(\"fullscreen\"),J.literal(\"pip\")]).describe(\"Display mode for UI presentation.\"),OJ=J.union([J.literal(\"--color-background-primary\"),J.literal(\"--color-background-secondary\"),J.literal(\"--color-background-tertiary\"),J.literal(\"--color-background-inverse\"),J.literal(\"--color-background-ghost\"),J.literal(\"--color-background-info\"),J.literal(\"--color-background-danger\"),J.literal(\"--color-background-success\"),J.literal(\"--color-background-warning\"),J.literal(\"--color-background-disabled\"),J.literal(\"--color-text-primary\"),J.literal(\"--color-text-secondary\"),J.literal(\"--color-text-tertiary\"),J.literal(\"--color-text-inverse\"),J.literal(\"--color-text-ghost\"),J.literal(\"--color-text-info\"),J.literal(\"--color-text-danger\"),J.literal(\"--color-text-success\"),J.literal(\"--color-text-warning\"),J.literal(\"--color-text-disabled\"),J.literal(\"--color-border-primary\"),J.literal(\"--color-border-secondary\"),J.literal(\"--color-border-tertiary\"),J.literal(\"--color-border-inverse\"),J.literal(\"--color-border-ghost\"),J.literal(\"--color-border-info\"),J.literal(\"--color-border-danger\"),J.literal(\"--color-border-success\"),J.literal(\"--color-border-warning\"),J.literal(\"--color-border-disabled\"),J.literal(\"--color-ring-primary\"),J.literal(\"--color-ring-secondary\"),J.literal(\"--color-ring-inverse\"),J.literal(\"--color-ring-info\"),J.literal(\"--color-ring-danger\"),J.literal(\"--color-ring-success\"),J.literal(\"--color-ring-warning\"),J.literal(\"--font-sans\"),J.literal(\"--font-mono\"),J.literal(\"--font-weight-normal\"),J.literal(\"--font-weight-medium\"),J.literal(\"--font-weight-semibold\"),J.literal(\"--font-weight-bold\"),J.literal(\"--font-text-xs-size\"),J.literal(\"--font-text-sm-size\"),J.literal(\"--font-text-md-size\"),J.literal(\"--font-text-lg-size\"),J.literal(\"--font-heading-xs-size\"),J.literal(\"--font-heading-sm-size\"),J.literal(\"--font-heading-md-size\"),J.literal(\"--font-heading-lg-size\"),J.literal(\"--font-heading-xl-size\"),J.literal(\"--font-heading-2xl-size\"),J.literal(\"--font-heading-3xl-size\"),J.literal(\"--font-text-xs-line-height\"),J.literal(\"--font-text-sm-line-height\"),J.literal(\"--font-text-md-line-height\"),J.literal(\"--font-text-lg-line-height\"),J.literal(\"--font-heading-xs-line-height\"),J.literal(\"--font-heading-sm-line-height\"),J.literal(\"--font-heading-md-line-height\"),J.literal(\"--font-heading-lg-line-height\"),J.literal(\"--font-heading-xl-line-height\"),J.literal(\"--font-heading-2xl-line-height\"),J.literal(\"--font-heading-3xl-line-height\"),J.literal(\"--border-radius-xs\"),J.literal(\"--border-radius-sm\"),J.literal(\"--border-radius-md\"),J.literal(\"--border-radius-lg\"),J.literal(\"--border-radius-xl\"),J.literal(\"--border-radius-full\"),J.literal(\"--border-width-regular\"),J.literal(\"--shadow-hairline\"),J.literal(\"--shadow-sm\"),J.literal(\"--shadow-md\"),J.literal(\"--shadow-lg\")]).describe(\"CSS variable keys available to MCP apps for theming.\"),qJ=J.record(OJ.describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),J.union([J.string(),J.undefined()]).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),DJ=J.object({method:J.literal(\"ui/open-link\"),params:J.object({url:J.string().describe(\"URL to open in the host's browser\")})}),M=J.object({isError:J.boolean().optional().describe(\"True if the host failed to open the URL (e.g., due to security policy).\")}).passthrough(),T=J.object({isError:J.boolean().optional().describe(\"True if the download failed (e.g., user cancelled or host denied).\")}).passthrough(),H=J.object({isError:J.boolean().optional().describe(\"True if the host rejected or failed to deliver the message.\")}).passthrough(),IJ=J.object({method:J.literal(\"ui/notifications/sandbox-proxy-ready\"),params:J.object({})}),P=J.object({connectDomains:J.array(J.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP \\`connect-src\\` directive\n- Empty or omitted → no network connections (secure default)`),resourceDomains:J.array(J.string()).optional().describe(\"Origins for static resources (images, scripts, stylesheets, fonts, media).\\n\\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\\n- Wildcard subdomains supported: `https://*.example.com`\\n- Empty or omitted → no network resources (secure default)\"),frameDomains:J.array(J.string()).optional().describe(\"Origins for nested iframes.\\n\\n- Maps to CSP `frame-src` directive\\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)\"),baseUriDomains:J.array(J.string()).optional().describe(\"Allowed base URIs for the document.\\n\\n- Maps to CSP `base-uri` directive\\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)\")}),_=J.object({camera:J.object({}).optional().describe(\"Request camera access.\\n\\nMaps to Permission Policy `camera` feature.\"),microphone:J.object({}).optional().describe(\"Request microphone access.\\n\\nMaps to Permission Policy `microphone` feature.\"),geolocation:J.object({}).optional().describe(\"Request geolocation access.\\n\\nMaps to Permission Policy `geolocation` feature.\"),clipboardWrite:J.object({}).optional().describe(\"Request clipboard write access.\\n\\nMaps to Permission Policy `clipboard-write` feature.\")}),FJ=J.object({method:J.literal(\"ui/notifications/size-changed\"),params:J.object({width:J.number().optional().describe(\"New width in pixels.\"),height:J.number().optional().describe(\"New height in pixels.\")})}),v=J.object({method:J.literal(\"ui/notifications/tool-input\"),params:J.object({arguments:J.record(J.string(),J.unknown().describe(\"Complete tool call arguments as key-value pairs.\")).optional().describe(\"Complete tool call arguments as key-value pairs.\")})}),A=J.object({method:J.literal(\"ui/notifications/tool-input-partial\"),params:J.object({arguments:J.record(J.string(),J.unknown().describe(\"Partial tool call arguments (incomplete, may change).\")).optional().describe(\"Partial tool call arguments (incomplete, may change).\")})}),k=J.object({method:J.literal(\"ui/notifications/tool-cancelled\"),params:J.object({reason:J.string().optional().describe('Optional reason for the cancellation (e.g., \"user action\", \"timeout\").')})}),c=J.object({fonts:J.string().optional()}),r=J.object({variables:qJ.optional().describe(\"CSS variables for theming the app.\"),css:c.optional().describe(\"CSS blocks that apps can inject.\")}),b=J.object({method:J.literal(\"ui/resource-teardown\"),params:J.object({})}),EJ=J.record(J.string(),J.unknown()),w=J.object({text:J.object({}).optional().describe(\"Host supports text content blocks.\"),image:J.object({}).optional().describe(\"Host supports image content blocks.\"),audio:J.object({}).optional().describe(\"Host supports audio content blocks.\"),resource:J.object({}).optional().describe(\"Host supports resource content blocks.\"),resourceLink:J.object({}).optional().describe(\"Host supports resource link content blocks.\"),structuredContent:J.object({}).optional().describe(\"Host supports structured content.\")}),RJ=J.object({method:J.literal(\"ui/notifications/request-teardown\"),params:J.object({}).optional()}),l=J.object({experimental:J.object({}).optional().describe(\"Experimental features (structure TBD).\"),openLinks:J.object({}).optional().describe(\"Host supports opening external URLs.\"),downloadFile:J.object({}).optional().describe(\"Host supports file downloads via ui/download-file.\"),serverTools:J.object({listChanged:J.boolean().optional().describe(\"Host supports tools/list_changed notifications.\")}).optional().describe(\"Host can proxy tool calls to the MCP server.\"),serverResources:J.object({listChanged:J.boolean().optional().describe(\"Host supports resources/list_changed notifications.\")}).optional().describe(\"Host can proxy resource reads to the MCP server.\"),logging:J.object({}).optional().describe(\"Host accepts log messages.\"),sandbox:J.object({permissions:_.optional().describe(\"Permissions granted by the host (camera, microphone, geolocation).\"),csp:P.optional().describe(\"CSP domains approved by the host.\")}).optional().describe(\"Sandbox configuration applied by the host.\"),updateModelContext:w.optional().describe(\"Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.\"),message:w.optional().describe(\"Host supports receiving content messages (ui/message) from the view.\")}),i=J.object({experimental:J.object({}).optional().describe(\"Experimental features (structure TBD).\"),tools:J.object({listChanged:J.boolean().optional().describe(\"App supports tools/list_changed notifications.\")}).optional().describe(\"App exposes MCP-style tools that the host can call.\"),availableDisplayModes:J.array(W).optional().describe(\"Display modes the app supports.\")}),zJ=J.object({method:J.literal(\"ui/notifications/initialized\"),params:J.object({}).optional()}),UJ=J.object({csp:P.optional().describe(\"Content Security Policy configuration for UI resources.\"),permissions:_.optional().describe(\"Sandbox permissions requested by the UI resource.\"),domain:J.string().optional().describe(`Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., \\`{hash}.claudemcpcontent.com\\`)\n- URL-derived subdomains (e.g., \\`www-example-com.oaiusercontent.com\\`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:J.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- \\`true\\`: request visible border + background\n- \\`false\\`: request no visible border + background\n- omitted: host decides border`)}),wJ=J.object({method:J.literal(\"ui/request-display-mode\"),params:J.object({mode:W.describe(\"The display mode being requested.\")})}),S=J.object({mode:W.describe(\"The display mode that was actually set. May differ from requested if not supported.\")}).passthrough(),p=J.union([J.literal(\"model\"),J.literal(\"app\")]).describe(\"Tool visibility scope - who can access the tool.\"),MJ=J.object({resourceUri:J.string().optional(),visibility:J.array(p).optional().describe(`Who can access this tool. Default: [\"model\", \"app\"]\n- \"model\": Tool visible to and callable by the agent\n- \"app\": Tool callable by the app from this server only`)}),JK=J.object({mimeTypes:J.array(J.string()).optional().describe('Array of supported MIME types for UI resources.\\nMust include `\"text/html;profile=mcp-app\"` for MCP Apps support.')}),TJ=J.object({method:J.literal(\"ui/download-file\"),params:J.object({contents:J.array(J.union([BJ,PJ])).describe(\"Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.\")})}),HJ=J.object({method:J.literal(\"ui/message\"),params:J.object({role:J.literal(\"user\").describe('Message role, currently only \"user\" is supported.'),content:J.array(u).describe(\"Message content blocks (text, image, etc.).\")})}),vJ=J.object({method:J.literal(\"ui/notifications/sandbox-resource-ready\"),params:J.object({html:J.string().describe(\"HTML content to load into the inner iframe.\"),sandbox:J.string().optional().describe(\"Optional override for the inner iframe's sandbox attribute.\"),csp:P.optional().describe(\"CSP configuration from resource metadata.\"),permissions:_.optional().describe(\"Sandbox permissions from resource metadata.\")})}),C=J.object({method:J.literal(\"ui/notifications/tool-result\"),params:NJ.describe(\"Standard MCP tool execution result.\")}),g=J.object({toolInfo:J.object({id:VJ.optional().describe(\"JSON-RPC id of the tools/call request.\"),tool:_J.describe(\"Tool definition including name, inputSchema, etc.\")}).optional().describe(\"Metadata of the tool call that instantiated this App.\"),theme:m.optional().describe(\"Current color theme preference.\"),styles:r.optional().describe(\"Style configuration for theming the app.\"),displayMode:W.optional().describe(\"How the UI is currently displayed.\"),availableDisplayModes:J.array(W).optional().describe(\"Display modes the host supports.\"),containerDimensions:J.union([J.object({height:J.number().describe(\"Fixed container height in pixels.\")}),J.object({maxHeight:J.union([J.number(),J.undefined()]).optional().describe(\"Maximum container height in pixels.\")})]).and(J.union([J.object({width:J.number().describe(\"Fixed container width in pixels.\")}),J.object({maxWidth:J.union([J.number(),J.undefined()]).optional().describe(\"Maximum container width in pixels.\")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:J.string().optional().describe(\"User's language and region preference in BCP 47 format.\"),timeZone:J.string().optional().describe(\"User's timezone in IANA format.\"),userAgent:J.string().optional().describe(\"Host application identifier.\"),platform:J.union([J.literal(\"web\"),J.literal(\"desktop\"),J.literal(\"mobile\")]).optional().describe(\"Platform type for responsive design decisions.\"),deviceCapabilities:J.object({touch:J.boolean().optional().describe(\"Whether the device supports touch input.\"),hover:J.boolean().optional().describe(\"Whether the device supports hover interactions.\")}).optional().describe(\"Device input capabilities.\"),safeAreaInsets:J.object({top:J.number().describe(\"Top safe area inset in pixels.\"),right:J.number().describe(\"Right safe area inset in pixels.\"),bottom:J.number().describe(\"Bottom safe area inset in pixels.\"),left:J.number().describe(\"Left safe area inset in pixels.\")}).optional().describe(\"Mobile safe area boundaries in pixels.\")}).passthrough(),x=J.object({method:J.literal(\"ui/notifications/host-context-changed\"),params:g.describe(\"Partial context update containing only changed fields.\")}),AJ=J.object({method:J.literal(\"ui/update-model-context\"),params:J.object({content:J.array(u).optional().describe(\"Context content blocks (text, image, etc.).\"),structuredContent:J.record(J.string(),J.unknown().describe(\"Structured content for machine-readable context data.\")).optional().describe(\"Structured content for machine-readable context data.\")})}),kJ=J.object({method:J.literal(\"ui/initialize\"),params:J.object({appInfo:h.describe(\"App identification (name and version).\"),appCapabilities:i.describe(\"Features and capabilities this app provides.\"),protocolVersion:J.string().describe(\"Protocol version this app supports.\")})}),y=J.object({protocolVersion:J.string().describe('Negotiated protocol version string (e.g., \"2025-11-21\").'),hostInfo:h.describe(\"Host application identification and version.\"),hostCapabilities:l.describe(\"Features and capabilities provided by the host.\"),hostContext:g.describe(\"Rich context about the host environment.\")}).passthrough();function O(){let K=document.documentElement.getAttribute(\"data-theme\");if(K===\"dark\"||K===\"light\")return K;return document.documentElement.classList.contains(\"dark\")?\"dark\":\"light\"}function q(K){let Q=document.documentElement;Q.setAttribute(\"data-theme\",K),Q.style.colorScheme=K}function D(K,Q=document.documentElement){for(let[X,Y]of Object.entries(K))if(Y!==void 0)Q.style.setProperty(X,Y)}function I(K){if(document.getElementById(\"__mcp-host-fonts\"))return;let X=document.createElement(\"style\");X.id=\"__mcp-host-fonts\",X.textContent=K,document.head.appendChild(X)}var dK=\"ui/resourceUri\",uK=\"text/html;profile=mcp-app\";class f extends bJ{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;constructor(K,Q={},X={autoResize:!0}){super(X);this._appInfo=K;this._capabilities=Q;this.options=X;this.setRequestHandler(fJ,(Y)=>{return console.log(\"Received ping:\",Y.params),{}}),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(K){this.setNotificationHandler(v,(Q)=>K(Q.params))}set ontoolinputpartial(K){this.setNotificationHandler(A,(Q)=>K(Q.params))}set ontoolresult(K){this.setNotificationHandler(C,(Q)=>K(Q.params))}set ontoolcancelled(K){this.setNotificationHandler(k,(Q)=>K(Q.params))}set onhostcontextchanged(K){this.setNotificationHandler(x,(Q)=>{this._hostContext={...this._hostContext,...Q.params},K(Q.params)})}set onteardown(K){this.setRequestHandler(b,(Q,X)=>K(Q.params,X))}set oncalltool(K){this.setRequestHandler(SJ,(Q,X)=>K(Q.params,X))}set onlisttools(K){this.setRequestHandler(yJ,(Q,X)=>K(Q.params,X))}assertCapabilityForMethod(K){}assertRequestHandlerCapability(K){switch(K){case\"tools/call\":case\"tools/list\":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${K})`);return;case\"ping\":case\"ui/resource-teardown\":return;default:throw Error(`No handler for method ${K} registered`)}}assertNotificationCapability(K){}assertTaskCapability(K){throw Error(\"Tasks are not supported in MCP Apps\")}assertTaskHandlerCapability(K){throw Error(\"Task handlers are not supported in MCP Apps\")}async callServerTool(K,Q){if(typeof K===\"string\")throw Error(`callServerTool() expects an object as its first argument, but received a string (\"${K}\"). Did you mean: callServerTool({ name: \"${K}\", arguments: { ... } })?`);return await this.request({method:\"tools/call\",params:K},CJ,Q)}async readServerResource(K,Q){return await this.request({method:\"resources/read\",params:K},dJ,Q)}async listServerResources(K,Q){return await this.request({method:\"resources/list\",params:K},xJ,Q)}sendMessage(K,Q){return this.request({method:\"ui/message\",params:K},H,Q)}sendLog(K){return this.notification({method:\"notifications/message\",params:K})}updateModelContext(K,Q){return this.request({method:\"ui/update-model-context\",params:K},gJ,Q)}openLink(K,Q){return this.request({method:\"ui/open-link\",params:K},M,Q)}sendOpenLink=this.openLink;downloadFile(K,Q){return this.request({method:\"ui/download-file\",params:K},T,Q)}requestTeardown(K={}){return this.notification({method:\"ui/notifications/request-teardown\",params:K})}requestDisplayMode(K,Q){return this.request({method:\"ui/request-display-mode\",params:K},S,Q)}sendSizeChanged(K){return this.notification({method:\"ui/notifications/size-changed\",params:K})}setupSizeChangedNotifications(){let K=!1,Q=0,X=0,Y=()=>{if(K)return;K=!0,requestAnimationFrame(()=>{K=!1;let Z=document.documentElement,V=Z.style.width,E=Z.style.height;Z.style.width=\"fit-content\",Z.style.height=\"max-content\";let L=Z.getBoundingClientRect();Z.style.width=V,Z.style.height=E;let N=window.innerWidth-Z.clientWidth,B=Math.ceil(L.width+N),$=Math.ceil(L.height);if(B!==Q||$!==X)Q=B,X=$,this.sendSizeChanged({width:B,height:$})})};Y();let G=new ResizeObserver(Y);return G.observe(document.documentElement),G.observe(document.body),()=>G.disconnect()}async connect(K=new j(window.parent,window.parent),Q){if(this.transport)throw Error(\"App is already connected. Call close() before connecting again.\");await super.connect(K);try{let X=await this.request({method:\"ui/initialize\",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:z}},y,Q);if(X===void 0)throw Error(`Server sent invalid initialize result: ${X}`);if(this._hostCapabilities=X.hostCapabilities,this._hostInfo=X.hostInfo,this._hostContext=X.hostContext,await this.notification({method:\"ui/notifications/initialized\"}),this.options?.autoResize)this.setupSizeChangedNotifications()}catch(X){throw this.close(),X}}}function nK({appInfo:K,capabilities:Q,onAppCreated:X}){let[Y,G]=d(null),[Z,V]=d(!1),[E,L]=d(null);return uJ(()=>{let N=!0;async function B(){try{let $=new j(window.parent,window.parent),R=new f(K,Q);if(X?.(R),await R.connect($),N)G(R),V(!0),L(null)}catch($){if(N)G(null),V(!1),L($ instanceof Error?$:Error(\"Failed to connect\"))}}return B(),()=>{N=!1}},[]),{app:Y,isConnected:Z,error:E}}import{useEffect as hJ}from\"react\";function eK(K,Q){hJ(()=>{if(!K)return;return K.setupSizeChangedNotifications()},[K,Q])}import{useEffect as mJ,useState as cJ}from\"react\";function XQ(){let[K,Q]=cJ(O);return mJ(()=>{let X=new MutationObserver(()=>{Q(O())});return X.observe(document.documentElement,{attributes:!0,attributeFilter:[\"data-theme\",\"class\"],characterData:!1,childList:!1,subtree:!1}),()=>X.disconnect()},[]),K}import{useEffect as F,useRef as n}from\"react\";function rJ(K,Q){let X=n(!1);F(()=>{if(X.current)return;if(Q?.theme)q(Q.theme);if(Q?.styles?.variables)D(Q.styles.variables);if(Q?.theme||Q?.styles?.variables)X.current=!0},[Q]),F(()=>{if(!K)return;K.onhostcontextchanged=(Y)=>{if(Y.theme)q(Y.theme);if(Y.styles?.variables)D(Y.styles.variables)}},[K])}function lJ(K,Q){let X=n(!1);F(()=>{if(X.current)return;if(Q?.styles?.css?.fonts)I(Q.styles.css.fonts),X.current=!0},[Q]),F(()=>{if(!K)return;K.onhostcontextchanged=(Y)=>{if(Y.styles?.css?.fonts)I(Y.styles.css.fonts)}},[K])}function GQ(K,Q){rJ(K,Q),lJ(K,Q)}export{GQ as useHostStyles,rJ as useHostStyleVariables,lJ as useHostFonts,XQ as useDocumentTheme,eK as useAutoResize,nK as useApp,O as getDocumentTheme,D as applyHostStyleVariables,I as applyHostFonts,q as applyDocumentTheme,QJ as TOOL_RESULT_METHOD,U as TOOL_INPUT_PARTIAL_METHOD,KJ as TOOL_INPUT_METHOD,XJ as TOOL_CANCELLED_METHOD,JJ as SIZE_CHANGED_METHOD,e as SANDBOX_RESOURCE_READY_METHOD,t as SANDBOX_PROXY_READY_METHOD,dK as RESOURCE_URI_META_KEY,$J as RESOURCE_TEARDOWN_METHOD,uK as RESOURCE_MIME_TYPE,ZJ as REQUEST_TEARDOWN_METHOD,WJ as REQUEST_DISPLAY_MODE_METHOD,j as PostMessageTransport,o as OPEN_LINK_METHOD,AJ as McpUiUpdateModelContextRequestSchema,p as McpUiToolVisibilitySchema,C as McpUiToolResultNotificationSchema,MJ as McpUiToolMetaSchema,A as McpUiToolInputPartialNotificationSchema,v as McpUiToolInputNotificationSchema,k as McpUiToolCancelledNotificationSchema,m as McpUiThemeSchema,w as McpUiSupportedContentBlockModalitiesSchema,FJ as McpUiSizeChangedNotificationSchema,vJ as McpUiSandboxResourceReadyNotificationSchema,IJ as McpUiSandboxProxyReadyNotificationSchema,EJ as McpUiResourceTeardownResultSchema,b as McpUiResourceTeardownRequestSchema,_ as McpUiResourcePermissionsSchema,UJ as McpUiResourceMetaSchema,P as McpUiResourceCspSchema,RJ as McpUiRequestTeardownNotificationSchema,S as McpUiRequestDisplayModeResultSchema,wJ as McpUiRequestDisplayModeRequestSchema,M as McpUiOpenLinkResultSchema,DJ as McpUiOpenLinkRequestSchema,H as McpUiMessageResultSchema,HJ as McpUiMessageRequestSchema,zJ as McpUiInitializedNotificationSchema,y as McpUiInitializeResultSchema,kJ as McpUiInitializeRequestSchema,r as McpUiHostStylesSchema,c as McpUiHostCssSchema,g as McpUiHostContextSchema,x as McpUiHostContextChangedNotificationSchema,l as McpUiHostCapabilitiesSchema,T as McpUiDownloadFileResultSchema,TJ as McpUiDownloadFileRequestSchema,W as McpUiDisplayModeSchema,i as McpUiAppCapabilitiesSchema,s as MESSAGE_METHOD,z as LATEST_PROTOCOL_VERSION,GJ as INITIALIZE_METHOD,jJ as INITIALIZED_METHOD,YJ as HOST_CONTEXT_CHANGED_METHOD,a as DOWNLOAD_FILE_METHOD,f as App};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;AAAwb,IAAI,IAAE,cAAa,IAAE,gBAAe,IAAE,oBAAmB,IAAE,cAAa,IAAE,wCAAuC,IAAE,2CAA0C,KAAG,iCAAgC,KAAG,+BAA8B,IAAE,uCAAsC,KAAG,gCAA+B,KAAG,mCAAkC,KAAG,yCAAwC,KAAG,qCAAoC,KAAG,wBAAuB,KAAG,iBAAgB,KAAG,gCAA+B,KAAG;AAA0B,IAAM,IAAN,MAAO;CAAC;CAAY;CAAY;CAAgB,YAAY,IAAE,OAAO,QAAO,GAAE;AAAC,OAAK,cAAY;AAAE,OAAK,cAAY;A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