@modelcontextprotocol/ext-apps 1.1.2 → 1.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.
@@ -28,7 +28,7 @@ export type McpUiDisplayMode = "inline" | "fullscreen" | "pip";
28
28
  /**
29
29
  * @description CSS variable keys available to MCP apps for theming.
30
30
  */
31
- export type McpUiStyleVariableKey = "--color-background-primary" | "--color-background-secondary" | "--color-background-tertiary" | "--color-background-inverse" | "--color-background-ghost" | "--color-background-info" | "--color-background-danger" | "--color-background-success" | "--color-background-warning" | "--color-background-disabled" | "--color-text-primary" | "--color-text-secondary" | "--color-text-tertiary" | "--color-text-inverse" | "--color-text-ghost" | "--color-text-info" | "--color-text-danger" | "--color-text-success" | "--color-text-warning" | "--color-text-disabled" | "--color-text-ghost" | "--color-border-primary" | "--color-border-secondary" | "--color-border-tertiary" | "--color-border-inverse" | "--color-border-ghost" | "--color-border-info" | "--color-border-danger" | "--color-border-success" | "--color-border-warning" | "--color-border-disabled" | "--color-ring-primary" | "--color-ring-secondary" | "--color-ring-inverse" | "--color-ring-info" | "--color-ring-danger" | "--color-ring-success" | "--color-ring-warning" | "--font-sans" | "--font-mono" | "--font-weight-normal" | "--font-weight-medium" | "--font-weight-semibold" | "--font-weight-bold" | "--font-text-xs-size" | "--font-text-sm-size" | "--font-text-md-size" | "--font-text-lg-size" | "--font-heading-xs-size" | "--font-heading-sm-size" | "--font-heading-md-size" | "--font-heading-lg-size" | "--font-heading-xl-size" | "--font-heading-2xl-size" | "--font-heading-3xl-size" | "--font-text-xs-line-height" | "--font-text-sm-line-height" | "--font-text-md-line-height" | "--font-text-lg-line-height" | "--font-heading-xs-line-height" | "--font-heading-sm-line-height" | "--font-heading-md-line-height" | "--font-heading-lg-line-height" | "--font-heading-xl-line-height" | "--font-heading-2xl-line-height" | "--font-heading-3xl-line-height" | "--border-radius-xs" | "--border-radius-sm" | "--border-radius-md" | "--border-radius-lg" | "--border-radius-xl" | "--border-radius-full" | "--border-width-regular" | "--shadow-hairline" | "--shadow-sm" | "--shadow-md" | "--shadow-lg";
31
+ export type McpUiStyleVariableKey = "--color-background-primary" | "--color-background-secondary" | "--color-background-tertiary" | "--color-background-inverse" | "--color-background-ghost" | "--color-background-info" | "--color-background-danger" | "--color-background-success" | "--color-background-warning" | "--color-background-disabled" | "--color-text-primary" | "--color-text-secondary" | "--color-text-tertiary" | "--color-text-inverse" | "--color-text-ghost" | "--color-text-info" | "--color-text-danger" | "--color-text-success" | "--color-text-warning" | "--color-text-disabled" | "--color-border-primary" | "--color-border-secondary" | "--color-border-tertiary" | "--color-border-inverse" | "--color-border-ghost" | "--color-border-info" | "--color-border-danger" | "--color-border-success" | "--color-border-warning" | "--color-border-disabled" | "--color-ring-primary" | "--color-ring-secondary" | "--color-ring-inverse" | "--color-ring-info" | "--color-ring-danger" | "--color-ring-success" | "--color-ring-warning" | "--font-sans" | "--font-mono" | "--font-weight-normal" | "--font-weight-medium" | "--font-weight-semibold" | "--font-weight-bold" | "--font-text-xs-size" | "--font-text-sm-size" | "--font-text-md-size" | "--font-text-lg-size" | "--font-heading-xs-size" | "--font-heading-sm-size" | "--font-heading-md-size" | "--font-heading-lg-size" | "--font-heading-xl-size" | "--font-heading-2xl-size" | "--font-heading-3xl-size" | "--font-text-xs-line-height" | "--font-text-sm-line-height" | "--font-text-md-line-height" | "--font-text-lg-line-height" | "--font-heading-xs-line-height" | "--font-heading-sm-line-height" | "--font-heading-md-line-height" | "--font-heading-lg-line-height" | "--font-heading-xl-line-height" | "--font-heading-2xl-line-height" | "--font-heading-3xl-line-height" | "--border-radius-xs" | "--border-radius-sm" | "--border-radius-md" | "--border-radius-lg" | "--border-radius-xl" | "--border-radius-full" | "--border-width-regular" | "--shadow-hairline" | "--shadow-sm" | "--shadow-md" | "--shadow-lg";
32
32
  /**
33
33
  * @description Style variables for theming MCP apps.
34
34
  *
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": "1.1.2",
8
+ "version": "1.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",
@@ -44,7 +44,6 @@
44
44
  "examples/*"
45
45
  ],
46
46
  "scripts": {
47
- "postinstall": "node scripts/setup-bun.mjs || echo 'setup-bun.mjs failed or not available'",
48
47
  "start": "npm run examples:dev",
49
48
  "generate:schemas": "tsx scripts/generate-schemas.ts && prettier --write \"src/generated/**/*\"",
50
49
  "sync:snippets": "bun scripts/sync-snippets.ts",
@@ -62,7 +61,7 @@
62
61
  "examples:start": "NODE_ENV=development npm run build && bun examples/run-all.ts start",
63
62
  "examples:dev": "NODE_ENV=development bun examples/run-all.ts dev",
64
63
  "watch": "nodemon --watch src --ext ts,tsx --exec 'bun build.bun.ts'",
65
- "prepare": "node scripts/setup-bun.mjs && npm run build && husky",
64
+ "prepare": "npm run build && husky",
66
65
  "docs": "typedoc",
67
66
  "docs:watch": "typedoc --watch",
68
67
  "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'",
@@ -101,6 +100,7 @@
101
100
  "typedoc": "^0.28.14",
102
101
  "typedoc-github-theme": "^0.4.0",
103
102
  "typescript": "^5.9.3",
103
+ "bun": "^1.2.21",
104
104
  "zod": "^4.1.13"
105
105
  },
106
106
  "peerDependencies": {
@@ -117,25 +117,6 @@
117
117
  "optional": true
118
118
  }
119
119
  },
120
- "optionalDependencies": {
121
- "@oven/bun-darwin-aarch64": "^1.2.21",
122
- "@oven/bun-darwin-x64": "^1.2.21",
123
- "@oven/bun-darwin-x64-baseline": "^1.2.21",
124
- "@oven/bun-linux-aarch64": "^1.2.21",
125
- "@oven/bun-linux-aarch64-musl": "^1.2.21",
126
- "@oven/bun-linux-x64": "^1.2.21",
127
- "@oven/bun-linux-x64-baseline": "^1.2.21",
128
- "@oven/bun-linux-x64-musl": "^1.2.21",
129
- "@oven/bun-linux-x64-musl-baseline": "^1.2.21",
130
- "@oven/bun-windows-x64": "^1.2.21",
131
- "@oven/bun-windows-x64-baseline": "^1.2.21",
132
- "@rollup/rollup-darwin-arm64": "^4.53.3",
133
- "@rollup/rollup-darwin-x64": "^4.53.3",
134
- "@rollup/rollup-linux-arm64-gnu": "^4.53.3",
135
- "@rollup/rollup-linux-x64-gnu": "^4.53.3",
136
- "@rollup/rollup-win32-arm64-msvc": "^4.53.3",
137
- "@rollup/rollup-win32-x64-msvc": "^4.53.3"
138
- },
139
120
  "overrides": {
140
121
  "seroval": "1.4.1",
141
122
  "seroval-plugins": "1.4.2",