@modelcontextprotocol/ext-apps
Advanced tools
@@ -41,3 +41,3 @@ import { type RequestOptions, Protocol, ProtocolOptions } from "@modelcontextprotocol/sdk/shared/protocol.js"; | ||
| */ | ||
| export declare const RESOURCE_MIME_TYPE = "text/html;profile=mcp"; | ||
| export declare const RESOURCE_MIME_TYPE = "text/html;profile=mcp-app"; | ||
| /** | ||
@@ -44,0 +44,0 @@ * Options for configuring App behavior. |
+11
-0
@@ -261,2 +261,9 @@ import { CallToolResult, ContentBlock, Implementation, RequestId, Tool } from "@modelcontextprotocol/sdk/types.js"; | ||
| sandbox?: string; | ||
| /** CSP configuration from resource metadata */ | ||
| csp?: { | ||
| /** Origins for network requests (fetch/XHR/WebSocket) */ | ||
| connectDomains?: string[]; | ||
| /** Origins for static resources (scripts, images, styles, fonts) */ | ||
| resourceDomains?: string[]; | ||
| }; | ||
| }; | ||
@@ -273,2 +280,6 @@ } | ||
| sandbox: z.ZodOptional<z.ZodString>; | ||
| csp: z.ZodOptional<z.ZodObject<{ | ||
| connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>; | ||
| resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>; | ||
| }, z.core.$strip>>; | ||
| }, z.core.$strip>; | ||
@@ -275,0 +286,0 @@ }, z.core.$strip>; |
+1
-1
@@ -8,3 +8,3 @@ { | ||
| "homepage": "https://github.com/modelcontextprotocol/ext-apps", | ||
| "version": "0.0.6", | ||
| "version": "0.0.7", | ||
| "license": "MIT", | ||
@@ -11,0 +11,0 @@ "description": "MCP Apps SDK — Enable MCP servers to display interactive user interfaces in conversational clients.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
821699
0.11%5188
0.25%5
25%