* ci: automate release process with workflow-driven version bumps and PR flow Adds a Release workflow that bumps all package versions, generates release notes, and opens a PR. Merging the PR auto-tags and creates the GitHub Release, which triggers npm-publish. Also adds `npm run bump` for local use and a release.yml config for categorized auto-generated notes. * ci: simplify release workflow and flatten npm-publish approval chain - Drop auto-generated RELEASES.md prepending (notes are written manually in PR) - Flatten npm-publish job dependencies so all publish jobs wait for approval together instead of sequentially, reducing 3 approval clicks to 1 - Remove Release environment from publish-mcpb (only needs GH_TOKEN) - Use --generate-notes for GitHub Release creation * fix: address review findings in release automation - release.yml: use RELEASE_TOKEN PAT for gh release create so the release:published event triggers npm-publish (GITHUB_TOKEN events don't cascade to other workflows) - release.yml: checkout merge_commit_sha in tag job instead of ref:main to avoid tagging later commits - release.yml: checkout ref:main in prepare job so dispatching from a feature branch doesn't pollute the release PR - release.yml: constrain preid to type:choice[beta] to match npm-publish.yml's tag detection - release.yml: drop -f on push so re-runs fail loudly instead of clobbering manual RELEASES.md edits; drop pr-edit fallback - release.yml: ensure release label exists before gh pr create - release.yml: make tag push idempotent for re-runs after partial failure - bump-version.mjs: update workspace dependency ranges so major bumps don't leave examples pointing at the old major - bump-version.mjs: run npm install --package-lock-only so npm ci on the release PR doesn't fail on lockfile mismatch - npm-publish.yml: add npm-tag detection to publish-examples so beta example releases don't overwrite latest - .github/release.yml: use [bot] suffix in author excludes so dependabot PRs are actually filtered from release notes - CONTRIBUTING.md: document RELEASE_TOKEN setup; fix npm run -- syntax * style: auto-fix prettier formatting * build: add npm run bump; parallel npm-publish approval - scripts/bump-version.mjs (+ npm run bump): bumps root and all workspace package versions, updates examples' ^X.Y.0 dependency range on the root package (matters on major bumps), and refreshes package-lock so npm ci accepts the release PR. - npm-publish.yml: all publish jobs now depend directly on [build, test] instead of chaining, so they enter "waiting for approval" together and a single Review-deployments click approves the lot. Prerelease versions (any X.Y.Z-…) publish under --tag beta so they don't take latest. - CONTRIBUTING.md: release steps now use npm run bump. Dropped from the original change: the workflow_dispatch release.yml (required a long-lived PAT to cascade events), label-based .github/release.yml auto-notes (PRs aren't labeled today), and the release-X.Y npm-tag for non-main branches (no backport branches yet). --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
133 lines
5.5 KiB
JSON
133 lines
5.5 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.6.0",
|
|
"license": "MIT",
|
|
"description": "MCP Apps SDK — Enable MCP servers to display interactive user interfaces in conversational clients.",
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"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": {
|
|
"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 examples",
|
|
"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": "npm run build && husky",
|
|
"docs": "typedoc",
|
|
"docs:watch": "typedoc --watch",
|
|
"generate:screenshots": "npm run build:all && docker run --rm -e EXAMPLE -e GENERATE_SCREENSHOTS=1 -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",
|
|
"bump": "node scripts/bump-version.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.29.0",
|
|
"@playwright/test": "1.57.0",
|
|
"@types/bun": "^1.3.2",
|
|
"@types/node": "20.19.27",
|
|
"@types/react": "^19.2.2",
|
|
"@types/react-dom": "^19.2.2",
|
|
"bun": "^1.2.21",
|
|
"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.29.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
|
|
}
|
|
},
|
|
"overrides": {
|
|
"seroval": "1.4.1",
|
|
"seroval-plugins": "1.4.2",
|
|
"solid-js": "1.9.10",
|
|
"@types/node": "20.19.27"
|
|
},
|
|
"dependencies": {
|
|
"@standard-schema/spec": "^1.1.0"
|
|
}
|
|
}
|