Skip to content

Releases

v2.1.0

Choose a tag to compare

@ochafik ochafik released this 10 Nov 22:53
ea3e9d0

What's Changed

Minor release: the SDK gains WebMCP interoperability, and the pdf-server example gets strict annotation validation.

Features

  • WebMCP interoperability — instead of choosing between App.registerTool and WebMCP, the SDK now bridges them in both directions: tools registered with App.registerTool() are mirrored into document.modelContext when the document provides one, and tools the page registers on document.modelContext are served over the Apps tools/list / tools/call channel (the SDK declares the tools capability on the View's behalf and relays toolchange as notifications/tools/list_changed). No new wire messages, no host-side API changes. The whole bridge is a per-App opt-out: webMcpBridge: false (default true, also exposed through useApp). The draft spec's "Relation to WebMCP" section becomes a normative "WebMCP Interoperability" section with the WebMCP ↔ MCP mapping table. In #829

Bug Fixes

  • pdf-server: annotations validated with per-type schemas — stamps often rendered as the literal text "undefined" when sent with content (note/freetext's field) instead of label; the loose z.record annotation shape let that through on both tool surfaces. Annotations are now validated against strict per-type schemas shared by the view's app tools and the server-mediated interact (stamp requires label, note/freetext require content, image requires imageUrl or imageData; unknown keys are errors), with render/save fallbacks for annotations persisted before validation. In #832

Specification (draft)

  • Double sandboxed iframes no longer required — the draft spec now allows any framing architecture that meets a set of general security criteria, with non-normative guidance on sandboxing strategies. In #717

Full Changelog: v2.0.4...v2.1.0

v2.0.4

Choose a tag to compare

@ochafik ochafik released this 27 Oct 07:12
7af9a75

What's Changed

Patch release: example improvements and a dependency refresh. No changes to the @modelcontextprotocol/ext-apps library API.

Examples

  • pdf-server: single interact app tool by default — the viewer's thirteen per-action app tools (navigate, search, add_annotations, ...) meant one approval card each on hosts that ask the user to approve app tools separately. They are folded into one interact app tool mirroring the server-side interact (an action enum plus flat parameters, with an optional commands batch sharing the same contract: content[i] per commands[i], a failed step's slot starts with ERROR, no isError on multi-step batches). The per-action tools remain available behind a new --split-app-tools CLI flag. get-document-info is renamed get_document_info. In #830
  • map-server: get-screenshot app tool — capture the current map view as a PNG, with an optional maxDimension (64–2048, default 1024). In #821

Bug Fixes

  • pdf-server: saved page restored on tool-result re-delivery — the viewer persisted the current page to localStorage but discarded it on restore because of a bounds check against structuredContent.pageCount, a field the server stopped sending; reopened conversations now come back on the page the user left. In #828

Security

  • Dependency refresh clearing the open npm audit findings — solid-js override 1.9.15 → 1.9.17 (seroval advisories) with the basic-server-solid pin matched to it, sharp ^0.35.3 → ^0.35.5 (librsvg CVE-2026-96889), and in-range lockfile refreshes of the other flagged transitives (shell-quote, proxy-addr, body-parser, zod, source-map-js, ip-address, hono, vite, @vue/server-renderer and the solid toolchain companions). Generated schemas regenerated for zod 4.6.6. In #827

Full Changelog: v2.0.3...v2.0.4

v2.0.3

Choose a tag to compare

@ochafik ochafik released this 25 Sep 15:58
82221c0

What's Changed

Patch release. No changes to the @modelcontextprotocol/ext-apps library itself; the fixes are in the example packages, so that a fresh install of each published package resolves a dependency tree that passes vulnerability and supply-chain scans.

Security

  • @modelcontextprotocol/server-basic-solid now depends on solid-js 1.9.15 instead of the exact 1.9.10, which pulled in seroval 1.3 (open advisories, fixed in 1.5.3). The root overrides that pinned seroval are removed, and the lockfile is refreshed with npm audit fix (patch and minor updates only, npm audit reports 0 vulnerabilities). by @ochafik in #793
  • @modelcontextprotocol/server-pdf now depends on the exact @cantoo/pdf-lib 2.6.5 instead of ^2.6.5. The range resolved to 2.11.x, which the repository never tests and which added dependencies with open-ended ranges (culori, node-html-better-parser) that supply-chain scanners flag. by @ochafik in #792

2.0.2 already pinned pdfjs-dist to 5.4.530 for server-pdf (#789).

Full Changelog: v2.0.2...v2.0.3

v2.0.2

Choose a tag to compare

@ochafik ochafik released this 25 Sep 14:06

What's Changed

Patch release. No changes to the @modelcontextprotocol/ext-apps library itself; the fix is in the @modelcontextprotocol/server-pdf example package.

Security

  • @modelcontextprotocol/server-pdf now depends on the exact pdfjs-dist 5.4.530 instead of ^5.0.0. The range let a fresh install resolve pdfjs-dist 5.6.83 or later (currently 5.7.284), which is affected by GHSA-hq66-cqwq-w95j (arbitrary JavaScript execution when opening a crafted PDF). 5.4.530 is outside the affected range and is the version the repository already tests against. Node support is unchanged. by @ochafik in #789

Full Changelog: v2.0.1...v2.0.2

v2.0.1

Choose a tag to compare

@ochafik ochafik released this 24 Sep 10:01

What's Changed

Patch release. No changes to the @modelcontextprotocol/ext-apps library itself; the fixes are in the example servers, which are published as their own packages (including @modelcontextprotocol/server-pdf).

Bug fixes

  • Example servers no longer crash at startup on Node older than 20.11. They computed their dist directory from import.meta.filename / import.meta.dirname, which only exist from Node 20.11, so on Node 18 and 20.0 to 20.10 the module threw TypeError: Cannot read properties of undefined (reading 'endsWith') at load, before the server could answer initialize. All 21 affected servers and the quickstart now derive the path from import.meta.url with fileURLToPath. No behaviour change on Node 20.11+. Affected the published @modelcontextprotocol/server-pdf 1.7.5 and 2.0.0. by @ochafik in #787
  • engines.node: ">=20" is now declared on the 21 published example packages, matching the root package and the README.

CI

  • The build now also runs the pdf-server MCPB bundle on Node 20.0.0, so this regression fails the build. #787
  • The dependency isolation check adds the ES2022.Error lib to its consumer projects. @modelcontextprotocol/client 2.1.0's typings reference ErrorOptions, so a project compiling with skipLibCheck: false and a lib older than ES2022 needs the same. #788

Packaging

  • repository.url uses the canonical git+https://github.com/modelcontextprotocol/ext-apps.git form in all manifests, which removes the "repository.url" was normalized warning from every publish job. by @ochafik in #773

Full Changelog: v2.0.0...v2.0.1

v2.0.0

Choose a tag to compare

@ochafik ochafik released this 08 Sep 18:18
352f6ce

What's Changed

ext-apps 2.0 moves to the MCP TypeScript SDK 2.0 split packages. The MCP Apps wire protocol is unchanged: 2.x Views run in 1.x hosts and 2.x hosts render 1.x Views (covered by a test that runs the published 1.7.5 against this release in both directions). What breaks is dependencies and the TypeScript API; see the migration guide.

Breaking changes

  • Peer dependencies. @modelcontextprotocol/sdk@^1 is replaced by @modelcontextprotocol/client@^2.0.0 (required: App and AppBridge extend its Protocol), @modelcontextprotocol/server@^2.0.0 (optional, only for the ./server helpers), and zod@^4.2.0. Node.js 20+.
  • zod 3 is no longer supported. SDK 2.0 requires zod 4.2+ (the release that added Standard JSON Schema output); the 1.x fallback for zod 3.25 is gone. Raw zod shapes in registerAppTool still work as a deprecated overload; wrap them in z.object({...}) to move off it.
  • Handler context. Custom handlers receive the SDK 2.x BaseContext: extra.signal is now extra.mcpReq.signal, extra.requestId is extra.mcpReq.id.
  • setRequestHandler / setNotificationHandler are keyed by method name. The 2.x form is setRequestHandler("method", { params }, (params, ctx) => …). The 1.x (Schema, handler) form still works as a deprecated overload with a one-time warning (#769) and goes away in 3.0.
  • The double-registration guard now covers the SDK's own handlers. Registering a handler for notifications/progress or notifications/cancelled throws already registered, as ping and the on*-owned methods did in 1.x.
  • ProtocolWithEvents is removed. AppRequest, AppNotification and AppResult remain as deprecated type aliases.
  • Errors. Remote JSON-RPC errors are ProtocolError (numeric code); local failures are SdkError (string code). Host-side wire deltas: a handler-thrown -32002 reaches the View as -32602, invalid params on ui/* methods go from -32603 to -32602, and the MCP error N: message prefix is gone.
  • schema.json follows the 2.0 core schemas: structuredContent is any JSON value, result _meta documents io.modelcontextprotocol/serverInfo, toolInfo.tool.outputSchema is a loose object, and a recursive JSON-value definition is added.

SDK

  • Migrate to SDK v2 with the official Protocol and isolated role peers by @tonxxd, building on @khandrew1's #710 and @felixweinberger's #712, in #720
  • SDK 2.0 fixups: regenerated lockfile, ^2.0.0 peers, restored double-registration guard, deprecated raw-shape registerAppTool overload, migration guide, wire-compat tests, MCPB build in #768
  • Fix: explicit .js extensions on relative imports so published declarations resolve under NodeNext / Node16 (#704) by @ken-jo in #705
  • Keep the 1.x handler registration forms as deprecated overloads in #769
  • Cross-version interop test against the published ext-apps 1.7.5 in #770

Examples

  • All examples migrated to the split SDK packages (NodeStreamableHTTPServerTransport, z.object schemas, extra.mcpReq.*) in #720
  • server-pdf now advertises JSON Schema 2020-12 on every tool's inputSchema / outputSchema, which fixes #765 for clients with a strict 2020-12 validator

Docs

  • Add Alpic Playground to supported clients by @qchuchu in #729

Security

npm audit reports 10 findings (2 critical, 4 high, 4 moderate), all in example workspaces or build tooling, none reachable from the published package, whose only runtime dependency is @standard-schema/spec:

  • seroval / solid-js (GHSA-mv8w-475r-vwqw): the Solid example's vite plugin, pinned by a root overrides
  • undici 7.28.0: cheerio in wiki-explorer-server
  • nanoid, postcss: vite
  • brace-expansion: nodemon (dev)
  • hono / @hono/node-server (GHSA-frvp-7c67-39w9): @modelcontextprotocol/node in the examples' servers; same advisory as the 1.7.5 residual, still unreachable (only getRequestListener / serve are imported)
  • qs: express 5 in examples; fflate: @types/three (dev)

All have non-major fixes available and will be picked up in a follow-up, kept off this release to keep the version diff clean.

Full Changelog: v1.7.5...v2.0.0

v1.7.5

Choose a tag to compare

@ochafik ochafik released this 23 Jul 11:26
92f46a5

What's Changed

SDK

  • Preserve experimental capability settings during initialization. McpUiHostCapabilities.experimental and McpUiAppCapabilities.experimental are now typed Record<string, object> instead of {}, and the generated schema no longer strips their contents, by @victor-openai in #721

Specification

Examples

  • lazy-auth-server: usable on mobile in #714
  • map-server: fix README and code of conduct links in #657

Docs

  • API Docs link for ext-apps/server in #697
  • Add mcp-use inspector badge to supported clients by @pietrozullo in #650

Security

npm audit goes from 15 findings (2 critical, 7 high, 4 moderate, 2 low) to 3 in #725:

The 3 remaining are all the same advisory (GHSA-frvp-7c67-39w9, path traversal in @hono/node-server's serve-static on Windows), reached through @modelcontextprotocol/sdk's ^1.19.9 pin. It needs an upstream SDK bump, and is not reachable from this SDK, which imports only getRequestListener and serve from that package.

Full Changelog: v1.7.4...v1.7.5

v1.7.4

Choose a tag to compare

@ochafik ochafik released this 05 Jun 12:07
ca1d298

What's Changed

No SDK API changes in this release.

Examples

  • lazy-auth-server: require PKCE and bind redirect_uri in token exchange (#681)
  • lazy-auth-server: support mounting under a base path of a host Express app (#683)

Security

npm audit now reports 0 vulnerabilities:

  • Removed unused vitest devDependency from basic-host
  • systeminformation bumped to 5.31.6+ in system-monitor-server (GHSA-hvx9-hwr7-wjj9)
  • Transitive dependency updates: devalue 5.8.1, fast-uri 3.1.2, hono 4.12.23, ip-address 10.2.0, express-rate-limit 8.5.2, postcss 8.5.15, qs 6.15.2, svelte 5.56.1 (#685)

Full Changelog: v1.7.3...v1.7.4

1.7.3

Choose a tag to compare

@ochafik ochafik released this 01 Jun 11:11
7d4434e

What's Changed

Full Changelog: v1.7.2...v1.7.3

1.7.2

Choose a tag to compare

@ochafik ochafik released this 15 May 18:01
9a37ad7

What's Changed

  • chore(pdf-server): switch to maintained @cantoo/pdf-lib fork by @ochafik in #651
  • chore: bump example transitives to latest patches by @ochafik in #658
  • chore: bump ext-apps to 1.7.2 by @ochafik in #660

Full Changelog: v1.7.1...v1.7.2