@modelcontextprotocol/ext-apps 0.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 +75 -0
- package/dist/src/app-bridge.d.ts +594 -0
- package/dist/src/app-bridge.js +29 -0
- package/dist/src/app-bridge.test.d.ts +1 -0
- package/dist/src/app.d.ts +620 -0
- package/dist/src/app.js +29 -0
- package/dist/src/message-transport.d.ts +129 -0
- package/dist/src/react/index.d.ts +34 -0
- package/dist/src/react/index.js +29 -0
- package/dist/src/react/useApp.d.ts +101 -0
- package/dist/src/react/useAutoResize.d.ts +51 -0
- package/dist/src/types.d.ts +838 -0
- package/package.json +83 -0
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"homepage": "https://github.com/modelcontextprotocol/ext-apps",
|
|
3
|
+
"name": "@modelcontextprotocol/ext-apps",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"description": "MCP Apps SDK — Enable MCP servers to display interactive user interfaces in conversational clients.",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/src/app.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/src/app.d.ts",
|
|
11
|
+
"default": "./dist/src/app.js"
|
|
12
|
+
},
|
|
13
|
+
"./react": {
|
|
14
|
+
"types": "./dist/src/react/index.d.ts",
|
|
15
|
+
"default": "./dist/src/react/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./app-bridge": {
|
|
18
|
+
"types": "./dist/src/app-bridge.d.ts",
|
|
19
|
+
"default": "./dist/src/app-bridge.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"workspaces": [
|
|
26
|
+
"examples/*"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "bun build.bun.ts",
|
|
30
|
+
"build:all": "npm run build && npm run examples:build",
|
|
31
|
+
"test": "bun test",
|
|
32
|
+
"examples:build": "find examples -maxdepth 1 -mindepth 1 -type d -exec printf '%s\\0' 'npm run --workspace={} build' ';' | xargs -0 concurrently --kill-others-on-fail",
|
|
33
|
+
"examples:start": "NODE_ENV=development npm run build && concurrently 'npm run examples:start:basic-host' 'npm run examples:start:basic-server-react' 'npm run examples:start:basic-server-vanillajs' 'npm run examples:start:budget-allocator-server' 'npm run examples:start:cohort-heatmap-server' 'npm run examples:start:customer-segmentation-server' 'npm run examples:start:scenario-modeler-server' 'npm run examples:start:system-monitor-server'",
|
|
34
|
+
"examples:start:basic-host": "npm run --workspace=examples/basic-host start",
|
|
35
|
+
"examples:start:basic-server-react": "PORT=3101 npm run --workspace=examples/basic-server-react start",
|
|
36
|
+
"examples:start:basic-server-vanillajs": "PORT=3102 npm run --workspace=examples/basic-server-vanillajs start",
|
|
37
|
+
"examples:start:budget-allocator-server": "PORT=3103 npm run --workspace=examples/budget-allocator-server start",
|
|
38
|
+
"examples:start:cohort-heatmap-server": "PORT=3104 npm run --workspace=examples/cohort-heatmap-server start",
|
|
39
|
+
"examples:start:customer-segmentation-server": "PORT=3105 npm run --workspace=examples/customer-segmentation-server start",
|
|
40
|
+
"examples:start:scenario-modeler-server": "PORT=3106 npm run --workspace=examples/scenario-modeler-server start",
|
|
41
|
+
"examples:start:system-monitor-server": "PORT=3107 npm run --workspace=examples/system-monitor-server start",
|
|
42
|
+
"watch": "nodemon --watch src --ext ts,tsx --exec 'bun build.bun.ts'",
|
|
43
|
+
"examples:dev": "NODE_ENV=development concurrently 'npm run watch' 'npm run examples:dev:basic-host' 'npm run examples:dev:basic-server-react'",
|
|
44
|
+
"examples:dev:basic-host": "npm run --workspace=examples/basic-host dev",
|
|
45
|
+
"examples:dev:basic-server-react": "npm run --workspace=examples/basic-server-react dev",
|
|
46
|
+
"examples:dev:basic-server-vanillajs": "npm run --workspace=examples/basic-server-vanillajs dev",
|
|
47
|
+
"prepare": "npm run build && husky",
|
|
48
|
+
"docs": "typedoc",
|
|
49
|
+
"docs:watch": "typedoc --watch",
|
|
50
|
+
"prettier:base-cmd": "prettier -u --ignore-path ./.gitignore --ignore-path ./.prettierignore",
|
|
51
|
+
"prettier": "yarn prettier:base-cmd \"$(pwd)/**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --check",
|
|
52
|
+
"prettier:fix": "yarn prettier:base-cmd \"$(pwd)/**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --write --list-different"
|
|
53
|
+
},
|
|
54
|
+
"author": "Olivier Chafik",
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/bun": "^1.3.2",
|
|
57
|
+
"@types/react": "^19.2.2",
|
|
58
|
+
"@types/react-dom": "^19.2.2",
|
|
59
|
+
"concurrently": "^9.2.1",
|
|
60
|
+
"cors": "^2.8.5",
|
|
61
|
+
"esbuild": "^0.25.12",
|
|
62
|
+
"express": "^5.1.0",
|
|
63
|
+
"husky": "^9.1.7",
|
|
64
|
+
"nodemon": "^3.1.0",
|
|
65
|
+
"prettier": "^3.6.2",
|
|
66
|
+
"typedoc": "^0.28.14",
|
|
67
|
+
"typescript": "^5.9.3"
|
|
68
|
+
},
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@modelcontextprotocol/sdk": "^1.23.0",
|
|
71
|
+
"bun": "^1.3.2",
|
|
72
|
+
"react": "^19.2.0",
|
|
73
|
+
"react-dom": "^19.2.0",
|
|
74
|
+
"zod": "^3.25"
|
|
75
|
+
},
|
|
76
|
+
"optionalDependencies": {
|
|
77
|
+
"@rollup/rollup-darwin-arm64": "^4.53.3",
|
|
78
|
+
"@rollup/rollup-darwin-x64": "^4.53.3",
|
|
79
|
+
"@rollup/rollup-linux-x64-gnu": "^4.53.3",
|
|
80
|
+
"@rollup/rollup-linux-arm64-gnu": "^4.53.3",
|
|
81
|
+
"@rollup/rollup-win32-x64-msvc": "^4.53.3"
|
|
82
|
+
}
|
|
83
|
+
}
|