@modelcontextprotocol/ext-apps
Advanced tools
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
@@ -7,3 +7,3 @@ /** | ||
| import { RESOURCE_URI_META_KEY, RESOURCE_MIME_TYPE, McpUiResourceMeta, McpUiToolMeta } from "../app.js"; | ||
| import type { McpServer, ResourceMetadata, ToolCallback, ReadResourceCallback } from "@modelcontextprotocol/sdk/server/mcp.js"; | ||
| import type { McpServer, RegisteredTool, ResourceMetadata, ToolCallback, ReadResourceCallback } from "@modelcontextprotocol/sdk/server/mcp.js"; | ||
| import type { AnySchema, ZodRawShapeCompat } from "@modelcontextprotocol/sdk/server/zod-compat.js"; | ||
@@ -20,2 +20,3 @@ import type { ToolAnnotations } from "@modelcontextprotocol/sdk/types.js"; | ||
| inputSchema?: ZodRawShapeCompat | AnySchema; | ||
| outputSchema?: ZodRawShapeCompat | AnySchema; | ||
| annotations?: ToolAnnotations; | ||
@@ -81,5 +82,6 @@ _meta?: Record<string, unknown>; | ||
| */ | ||
| export declare function registerAppTool<TInputSchema extends ZodRawShapeCompat | AnySchema | undefined = undefined>(server: Pick<McpServer, "registerTool">, name: string, config: Omit<McpUiAppToolConfig, "inputSchema"> & { | ||
| inputSchema?: TInputSchema; | ||
| }, handler: ToolCallback<TInputSchema>): void; | ||
| export declare function registerAppTool<OutputArgs extends ZodRawShapeCompat | AnySchema, InputArgs extends undefined | ZodRawShapeCompat | AnySchema = undefined>(server: Pick<McpServer, "registerTool">, name: string, config: McpUiAppToolConfig & { | ||
| inputSchema?: InputArgs; | ||
| outputSchema?: OutputArgs; | ||
| }, cb: ToolCallback<InputArgs>): RegisteredTool; | ||
| /** | ||
@@ -86,0 +88,0 @@ * Register an app resource with the MCP server. |
+13
-3
@@ -8,3 +8,3 @@ { | ||
| "homepage": "https://github.com/modelcontextprotocol/ext-apps", | ||
| "version": "0.3.0", | ||
| "version": "0.3.1", | ||
| "license": "MIT", | ||
@@ -19,2 +19,6 @@ "description": "MCP Apps SDK — Enable MCP servers to display interactive user interfaces in conversational clients.", | ||
| }, | ||
| "./app-with-deps": { | ||
| "types": "./dist/src/app.d.ts", | ||
| "default": "./dist/src/app-with-deps.js" | ||
| }, | ||
| "./react": { | ||
@@ -24,2 +28,6 @@ "types": "./dist/src/react/index.d.ts", | ||
| }, | ||
| "./react-with-deps": { | ||
| "types": "./dist/src/react/index.d.ts", | ||
| "default": "./dist/src/react/react-with-deps.js" | ||
| }, | ||
| "./app-bridge": { | ||
@@ -47,3 +55,3 @@ "types": "./dist/src/app-bridge.d.ts", | ||
| "prepack": "npm run build", | ||
| "build:all": "npm run build && npm run examples:build", | ||
| "build:all": "npm run examples:build", | ||
| "test": "bun test src", | ||
@@ -55,2 +63,3 @@ "test:e2e": "playwright test", | ||
| "test:e2e:docker:update": "docker run --rm -v $(pwd):/work -w /work -it mcr.microsoft.com/playwright:v1.57.0-noble sh -c 'npm i -g bun && npm ci && npx playwright test --update-snapshots'", | ||
| "preexamples:build": "npm run build", | ||
| "examples:build": "bun examples/run-all.ts build", | ||
@@ -64,3 +73,4 @@ "examples:start": "NODE_ENV=development npm run build && bun examples/run-all.ts start", | ||
| "prettier": "prettier -u \"**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --check", | ||
| "prettier:fix": "prettier -u \"**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --write" | ||
| "prettier:fix": "prettier -u \"**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --write", | ||
| "check:versions": "node scripts/check-versions.mjs" | ||
| }, | ||
@@ -67,0 +77,0 @@ "author": "Olivier Chafik", |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
1951693
45.2%25
8.7%10665
28.65%7
40%76
40.74%21
40%