@modelcontextprotocol/ext-apps 0.0.6 → 0.0.7

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.
@@ -258,6 +258,13 @@ export interface McpUiSandboxResourceReadyNotification {
258
258
  html: string;
259
259
  /** Optional override for the inner iframe's sandbox attribute */
260
260
  sandbox?: string;
261
+ /** CSP configuration from resource metadata */
262
+ csp?: {
263
+ /** Origins for network requests (fetch/XHR/WebSocket) */
264
+ connectDomains?: string[];
265
+ /** Origins for static resources (scripts, images, styles, fonts) */
266
+ resourceDomains?: string[];
267
+ };
261
268
  };
262
269
  }
263
270
  /**
@@ -269,6 +276,10 @@ export declare const McpUiSandboxResourceReadyNotificationSchema: z.ZodObject<{
269
276
  params: z.ZodObject<{
270
277
  html: z.ZodString;
271
278
  sandbox: z.ZodOptional<z.ZodString>;
279
+ csp: z.ZodOptional<z.ZodObject<{
280
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
281
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
282
+ }, z.core.$strip>>;
272
283
  }, z.core.$strip>;
273
284
  }, z.core.$strip>;
274
285
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/modelcontextprotocol/ext-apps"
6
6
  },
7
7
  "homepage": "https://github.com/modelcontextprotocol/ext-apps",
8
- "version": "0.0.6",
8
+ "version": "0.0.7",
9
9
  "license": "MIT",
10
10
  "description": "MCP Apps SDK — Enable MCP servers to display interactive user interfaces in conversational clients.",
11
11
  "type": "module",