@modelcontextprotocol/ext-apps 0.0.7 → 0.2.0
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 +2 -2
- package/dist/src/app-bridge.d.ts +341 -26
- package/dist/src/app-bridge.js +38 -25
- package/dist/src/app.d.ts +141 -10
- package/dist/src/app.js +38 -25
- package/dist/src/generated/schema.d.ts +708 -0
- package/dist/src/generated/schema.test.d.ts +33 -0
- package/dist/src/react/index.d.ts +4 -0
- package/dist/src/react/index.js +38 -25
- package/dist/src/react/useDocumentTheme.d.ts +46 -0
- package/dist/src/react/useHostStyles.d.ts +56 -0
- package/dist/src/server/index.d.ts +109 -0
- package/dist/src/server/index.js +42 -0
- package/dist/src/server/index.test.d.ts +1 -0
- package/dist/src/spec.types.d.ts +412 -0
- package/dist/src/styles.d.ts +89 -0
- package/dist/src/types.d.ts +28 -836
- package/package.json +55 -16
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
|
|
8
|
+
"version": "0.2.0",
|
|
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",
|
|
@@ -22,7 +22,12 @@
|
|
|
22
22
|
"./app-bridge": {
|
|
23
23
|
"types": "./dist/src/app-bridge.d.ts",
|
|
24
24
|
"default": "./dist/src/app-bridge.js"
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
|
+
"./server": {
|
|
27
|
+
"types": "./dist/src/server/index.d.ts",
|
|
28
|
+
"default": "./dist/src/server/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./schema.json": "./dist/src/generated/schema.json"
|
|
26
31
|
},
|
|
27
32
|
"files": [
|
|
28
33
|
"dist"
|
|
@@ -31,48 +36,82 @@
|
|
|
31
36
|
"examples/*"
|
|
32
37
|
],
|
|
33
38
|
"scripts": {
|
|
34
|
-
"
|
|
39
|
+
"postinstall": "node scripts/setup-bun.mjs || echo 'setup-bun.mjs failed or not available'",
|
|
40
|
+
"generate:schemas": "tsx scripts/generate-schemas.ts && prettier --write \"src/generated/**/*\"",
|
|
41
|
+
"build": "npm run generate:schemas && node scripts/run-bun.mjs build.bun.ts",
|
|
35
42
|
"prepack": "npm run build",
|
|
36
43
|
"build:all": "npm run build && npm run examples:build",
|
|
37
|
-
"test": "bun test",
|
|
44
|
+
"test": "bun test src",
|
|
45
|
+
"test:e2e": "playwright test",
|
|
46
|
+
"test:e2e:update": "playwright test --update-snapshots",
|
|
47
|
+
"test:e2e:ui": "playwright test --ui",
|
|
48
|
+
"test:e2e:docker": "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'",
|
|
49
|
+
"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'",
|
|
38
50
|
"examples:build": "bun examples/run-all.ts build",
|
|
39
51
|
"examples:start": "NODE_ENV=development npm run build && bun examples/run-all.ts start",
|
|
40
52
|
"examples:dev": "NODE_ENV=development bun examples/run-all.ts dev",
|
|
41
53
|
"watch": "nodemon --watch src --ext ts,tsx --exec 'bun build.bun.ts'",
|
|
42
|
-
"prepare": "npm run build && husky",
|
|
54
|
+
"prepare": "node scripts/setup-bun.mjs && npm run build && husky",
|
|
43
55
|
"docs": "typedoc",
|
|
44
56
|
"docs:watch": "typedoc --watch",
|
|
45
|
-
"prettier
|
|
46
|
-
"prettier": "
|
|
47
|
-
"prettier:fix": "yarn prettier:base-cmd \"$(pwd)/**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --write --list-different"
|
|
57
|
+
"prettier": "prettier -u \"**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --check",
|
|
58
|
+
"prettier:fix": "prettier -u \"**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --write"
|
|
48
59
|
},
|
|
49
60
|
"author": "Olivier Chafik",
|
|
50
61
|
"devDependencies": {
|
|
62
|
+
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
63
|
+
"@playwright/test": "^1.52.0",
|
|
51
64
|
"@types/bun": "^1.3.2",
|
|
52
|
-
"bun": "^1.3.2",
|
|
53
65
|
"@types/react": "^19.2.2",
|
|
54
66
|
"@types/react-dom": "^19.2.2",
|
|
55
67
|
"concurrently": "^9.2.1",
|
|
56
68
|
"cors": "^2.8.5",
|
|
69
|
+
"cross-env": "^10.1.0",
|
|
57
70
|
"esbuild": "^0.25.12",
|
|
58
71
|
"express": "^5.1.0",
|
|
59
72
|
"husky": "^9.1.7",
|
|
60
73
|
"nodemon": "^3.1.0",
|
|
61
|
-
"
|
|
74
|
+
"react": "^19.2.0",
|
|
75
|
+
"react-dom": "^19.2.0",
|
|
76
|
+
"ts-to-zod": "^5.1.0",
|
|
77
|
+
"tsx": "^4.21.0",
|
|
62
78
|
"typedoc": "^0.28.14",
|
|
63
|
-
"typescript": "^5.9.3"
|
|
79
|
+
"typescript": "^5.9.3",
|
|
80
|
+
"zod": "^4.1.13"
|
|
81
|
+
},
|
|
82
|
+
"peerDependencies": {
|
|
83
|
+
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
84
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
85
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
86
|
+
"zod": "^3.25.0 || ^4.0.0"
|
|
87
|
+
},
|
|
88
|
+
"peerDependenciesMeta": {
|
|
89
|
+
"react": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"react-dom": {
|
|
93
|
+
"optional": true
|
|
94
|
+
}
|
|
64
95
|
},
|
|
65
96
|
"dependencies": {
|
|
66
|
-
"
|
|
67
|
-
"react": "^19.2.0",
|
|
68
|
-
"react-dom": "^19.2.0",
|
|
69
|
-
"zod": "^3.25"
|
|
97
|
+
"prettier": "^3.6.2"
|
|
70
98
|
},
|
|
71
99
|
"optionalDependencies": {
|
|
100
|
+
"@oven/bun-darwin-aarch64": "^1.3.4",
|
|
101
|
+
"@oven/bun-darwin-x64": "^1.3.4",
|
|
102
|
+
"@oven/bun-darwin-x64-baseline": "^1.3.4",
|
|
103
|
+
"@oven/bun-linux-aarch64": "^1.3.4",
|
|
104
|
+
"@oven/bun-linux-aarch64-musl": "^1.3.4",
|
|
105
|
+
"@oven/bun-linux-x64": "^1.3.4",
|
|
106
|
+
"@oven/bun-linux-x64-baseline": "^1.3.4",
|
|
107
|
+
"@oven/bun-linux-x64-musl": "^1.3.4",
|
|
108
|
+
"@oven/bun-linux-x64-musl-baseline": "^1.3.4",
|
|
109
|
+
"@oven/bun-windows-x64": "^1.3.4",
|
|
110
|
+
"@oven/bun-windows-x64-baseline": "^1.3.4",
|
|
72
111
|
"@rollup/rollup-darwin-arm64": "^4.53.3",
|
|
73
112
|
"@rollup/rollup-darwin-x64": "^4.53.3",
|
|
74
|
-
"@rollup/rollup-linux-x64-gnu": "^4.53.3",
|
|
75
113
|
"@rollup/rollup-linux-arm64-gnu": "^4.53.3",
|
|
114
|
+
"@rollup/rollup-linux-x64-gnu": "^4.53.3",
|
|
76
115
|
"@rollup/rollup-win32-x64-msvc": "^4.53.3"
|
|
77
116
|
}
|
|
78
117
|
}
|