* chore: bump ext-apps to 1.1.2 Changes since 1.1.1: - feat: add ui/download-file method for host-mediated file downloads (#475) - pdf-server: robust path validation + folder/file root support (#497) - ci: auto-fix prettier formatting in pre-commit hook and CI (#498) * fix: sync local SDK build into node_modules for examples npm workspaces hoists example dependencies to the root node_modules, but installs the published registry copy of @modelcontextprotocol/ext-apps instead of linking to the local source. This causes type-check failures when examples use features not yet published to npm. Add scripts/link-self.mjs which copies the freshly-built dist/ and package.json into the hoisted node_modules copy after each SDK build, ensuring examples always type-check against the latest local types. See: https://github.com/npm/feedback/discussions/774 * Revert "fix: sync local SDK build into node_modules for examples" This reverts commit e3387e8434f3def030f5a223a70632092c929119.
146 lines
6.2 KiB
JSON
146 lines
6.2 KiB
JSON
{
|
|
"name": "@modelcontextprotocol/ext-apps",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/modelcontextprotocol/ext-apps"
|
|
},
|
|
"homepage": "https://github.com/modelcontextprotocol/ext-apps",
|
|
"version": "1.1.2",
|
|
"license": "MIT",
|
|
"description": "MCP Apps SDK — Enable MCP servers to display interactive user interfaces in conversational clients.",
|
|
"type": "module",
|
|
"main": "./dist/src/app.js",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/src/app.d.ts",
|
|
"default": "./dist/src/app.js"
|
|
},
|
|
"./app-with-deps": {
|
|
"types": "./dist/src/app.d.ts",
|
|
"default": "./dist/src/app-with-deps.js"
|
|
},
|
|
"./react": {
|
|
"types": "./dist/src/react/index.d.ts",
|
|
"default": "./dist/src/react/index.js"
|
|
},
|
|
"./react-with-deps": {
|
|
"types": "./dist/src/react/index.d.ts",
|
|
"default": "./dist/src/react/react-with-deps.js"
|
|
},
|
|
"./app-bridge": {
|
|
"types": "./dist/src/app-bridge.d.ts",
|
|
"default": "./dist/src/app-bridge.js"
|
|
},
|
|
"./server": {
|
|
"types": "./dist/src/server/index.d.ts",
|
|
"default": "./dist/src/server/index.js"
|
|
},
|
|
"./schema.json": "./dist/src/generated/schema.json"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"workspaces": [
|
|
"examples/*"
|
|
],
|
|
"scripts": {
|
|
"postinstall": "node scripts/setup-bun.mjs || echo 'setup-bun.mjs failed or not available'",
|
|
"start": "npm run examples:dev",
|
|
"generate:schemas": "tsx scripts/generate-schemas.ts && prettier --write \"src/generated/**/*\"",
|
|
"sync:snippets": "bun scripts/sync-snippets.ts",
|
|
"build": "npm run generate:schemas && npm run sync:snippets && node scripts/run-bun.mjs build.bun.ts && node scripts/link-self.mjs",
|
|
"prepack": "npm run build",
|
|
"build:all": "npm run examples:build",
|
|
"test": "bun test src",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:update": "playwright test --update-snapshots",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"test:e2e:docker": "docker run --rm -e EXAMPLE -v $(pwd):/work -w /work -it mcr.microsoft.com/playwright:v1.57.0-noble sh -c 'apt-get update -qq && apt-get install -qq -y python3-venv curl > /dev/null && curl -LsSf https://astral.sh/uv/install.sh | sh && export PATH=\"$HOME/.local/bin:$PATH\" && npm i -g bun && npm ci && npx playwright test'",
|
|
"test:e2e:docker:update": "npm run build:all && docker run --rm -e EXAMPLE -v $(pwd):/work -w /work -it mcr.microsoft.com/playwright:v1.57.0-noble sh -c 'apt-get update -qq && apt-get install -qq -y python3-venv curl > /dev/null && curl -LsSf https://astral.sh/uv/install.sh | sh && export PATH=\"$HOME/.local/bin:$PATH\" && npm i -g bun && npm ci && npx playwright test --update-snapshots'",
|
|
"preexamples:build": "npm run build",
|
|
"examples:build": "bun examples/run-all.ts build",
|
|
"examples:start": "NODE_ENV=development npm run build && bun examples/run-all.ts start",
|
|
"examples:dev": "NODE_ENV=development bun examples/run-all.ts dev",
|
|
"watch": "nodemon --watch src --ext ts,tsx --exec 'bun build.bun.ts'",
|
|
"prepare": "node scripts/setup-bun.mjs && npm run build && husky",
|
|
"docs": "typedoc",
|
|
"docs:watch": "typedoc --watch",
|
|
"generate:screenshots": "npm run build:all && docker run --rm -e EXAMPLE -v $(pwd):/work -w /work mcr.microsoft.com/playwright:v1.57.0-noble sh -c 'apt-get update -qq && apt-get install -qq -y python3-venv curl > /dev/null && curl -LsSf https://astral.sh/uv/install.sh | sh && export PATH=\"$HOME/.local/bin:$PATH\" && npm i -g bun && npm ci && npx playwright test tests/e2e/generate-grid-screenshots.spec.ts'",
|
|
"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",
|
|
"check:versions": "node scripts/check-versions.mjs",
|
|
"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/"
|
|
},
|
|
"author": "Olivier Chafik",
|
|
"devDependencies": {
|
|
"@boneskull/typedoc-plugin-mermaid": "^0.2.0",
|
|
"@modelcontextprotocol/sdk": "1.25.2",
|
|
"@playwright/test": "1.57.0",
|
|
"@types/bun": "^1.3.2",
|
|
"@types/react": "^19.2.2",
|
|
"@types/react-dom": "^19.2.2",
|
|
"@types/node": "20.19.27",
|
|
"caniuse-lite": "1.0.30001763",
|
|
"cheerio": "1.1.2",
|
|
"concurrently": "^9.2.1",
|
|
"cors": "^2.8.5",
|
|
"cross-env": "^10.1.0",
|
|
"electron-to-chromium": "1.5.267",
|
|
"esbuild": "^0.25.12",
|
|
"express": "^5.1.0",
|
|
"husky": "^9.1.7",
|
|
"nodemon": "^3.1.0",
|
|
"playwright": "1.57.0",
|
|
"playwright-core": "1.57.0",
|
|
"prettier": "^3.6.2",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"sharp": "^0.34.5",
|
|
"ts-to-zod": "^5.1.0",
|
|
"tsx": "^4.21.0",
|
|
"typedoc": "^0.28.14",
|
|
"typedoc-github-theme": "^0.4.0",
|
|
"typescript": "^5.9.3",
|
|
"zod": "^4.1.13"
|
|
},
|
|
"peerDependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
"zod": "^3.25.0 || ^4.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"react": {
|
|
"optional": true
|
|
},
|
|
"react-dom": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"optionalDependencies": {
|
|
"@oven/bun-darwin-aarch64": "^1.2.21",
|
|
"@oven/bun-darwin-x64": "^1.2.21",
|
|
"@oven/bun-darwin-x64-baseline": "^1.2.21",
|
|
"@oven/bun-linux-aarch64": "^1.2.21",
|
|
"@oven/bun-linux-aarch64-musl": "^1.2.21",
|
|
"@oven/bun-linux-x64": "^1.2.21",
|
|
"@oven/bun-linux-x64-baseline": "^1.2.21",
|
|
"@oven/bun-linux-x64-musl": "^1.2.21",
|
|
"@oven/bun-linux-x64-musl-baseline": "^1.2.21",
|
|
"@oven/bun-windows-x64": "^1.2.21",
|
|
"@oven/bun-windows-x64-baseline": "^1.2.21",
|
|
"@rollup/rollup-darwin-arm64": "^4.53.3",
|
|
"@rollup/rollup-darwin-x64": "^4.53.3",
|
|
"@rollup/rollup-linux-arm64-gnu": "^4.53.3",
|
|
"@rollup/rollup-linux-x64-gnu": "^4.53.3",
|
|
"@rollup/rollup-win32-arm64-msvc": "^4.53.3",
|
|
"@rollup/rollup-win32-x64-msvc": "^4.53.3"
|
|
},
|
|
"overrides": {
|
|
"seroval": "1.4.1",
|
|
"seroval-plugins": "1.4.2",
|
|
"solid-js": "1.9.10",
|
|
"@hono/node-server": "1.19.7",
|
|
"@types/node": "20.19.27"
|
|
}
|
|
}
|