@modelcontextprotocol/ext-apps 0.4.2 → 1.0.1
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/README.md +183 -3
- package/dist/src/app-bridge.js +7 -7
- package/dist/src/app-with-deps.js +6 -6
- package/dist/src/app.js +4 -4
- package/dist/src/generated/schema.d.ts +2 -2
- package/dist/src/react/index.js +4 -4
- package/dist/src/react/react-with-deps.js +4 -4
- package/dist/src/server/index.js +4 -4
- package/dist/src/spec.types.d.ts +4 -4
- package/package.json +2 -2
package/dist/src/spec.types.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - Use `@description` JSDoc tags to generate `.describe()` calls on schemas
|
|
8
8
|
* - Run `npm run generate:schemas` to regenerate schemas from these types
|
|
9
9
|
*
|
|
10
|
-
* @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/
|
|
10
|
+
* @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx
|
|
11
11
|
*/
|
|
12
12
|
import type { CallToolResult, ContentBlock, Implementation, RequestId, Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
13
13
|
/**
|
|
@@ -16,7 +16,7 @@ import type { CallToolResult, ContentBlock, Implementation, RequestId, Tool } fr
|
|
|
16
16
|
* The SDK automatically handles version negotiation during initialization.
|
|
17
17
|
* Apps and hosts don't need to manage protocol versions manually.
|
|
18
18
|
*/
|
|
19
|
-
export declare const LATEST_PROTOCOL_VERSION = "
|
|
19
|
+
export declare const LATEST_PROTOCOL_VERSION = "2026-01-26";
|
|
20
20
|
/**
|
|
21
21
|
* @description Color theme preference for the host environment.
|
|
22
22
|
*/
|
|
@@ -92,7 +92,7 @@ export interface McpUiMessageResult {
|
|
|
92
92
|
/**
|
|
93
93
|
* @description Notification that the sandbox proxy iframe is ready to receive content.
|
|
94
94
|
* @internal
|
|
95
|
-
* @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/
|
|
95
|
+
* @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx#sandbox-proxy
|
|
96
96
|
*/
|
|
97
97
|
export interface McpUiSandboxProxyReadyNotification {
|
|
98
98
|
method: "ui/notifications/sandbox-proxy-ready";
|
|
@@ -101,7 +101,7 @@ export interface McpUiSandboxProxyReadyNotification {
|
|
|
101
101
|
/**
|
|
102
102
|
* @description Notification containing HTML resource for the sandbox proxy to load.
|
|
103
103
|
* @internal
|
|
104
|
-
* @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/
|
|
104
|
+
* @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx#sandbox-proxy
|
|
105
105
|
*/
|
|
106
106
|
export interface McpUiSandboxResourceReadyNotification {
|
|
107
107
|
method: "ui/notifications/sandbox-resource-ready";
|
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.
|
|
8
|
+
"version": "1.0.1",
|
|
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",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"prettier": "prettier -u \"**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --check",
|
|
70
70
|
"prettier:fix": "prettier -u \"**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --write",
|
|
71
71
|
"check:versions": "node scripts/check-versions.mjs",
|
|
72
|
-
"update-lock:docker": "rm -rf node_modules package-lock.json && docker run --rm --platform linux/amd64 -v $(pwd):/work -w /work node:latest npm i --registry=https://registry.npmjs.org/ && rm -rf node_modules && npm i"
|
|
72
|
+
"update-lock:docker": "rm -rf node_modules package-lock.json examples/*/node_modules && docker run --rm --platform linux/amd64 -v $(pwd):/work -w /work -e HOME=/tmp node:latest npm i --registry=https://registry.npmjs.org/ --ignore-scripts && rm -rf node_modules examples/*/node_modules && npm i --registry=https://registry.npmjs.org/"
|
|
73
73
|
},
|
|
74
74
|
"author": "Olivier Chafik",
|
|
75
75
|
"devDependencies": {
|