Repository navigation
Releases
v2.1.0
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.registerTooland WebMCP, the SDK now bridges them in both directions: tools registered withApp.registerTool()are mirrored intodocument.modelContextwhen the document provides one, and tools the page registers ondocument.modelContextare served over the Appstools/list/tools/callchannel (the SDK declares thetoolscapability on the View's behalf and relaystoolchangeasnotifications/tools/list_changed). No new wire messages, no host-side API changes. The whole bridge is a per-App opt-out:webMcpBridge: false(defaulttrue, also exposed throughuseApp). 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 oflabel; the loosez.recordannotation 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-mediatedinteract(stamp requireslabel, note/freetext requirecontent, image requiresimageUrlorimageData; 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
What's Changed
Patch release: example improvements and a dependency refresh. No changes to the @modelcontextprotocol/ext-apps library API.
Examples
- pdf-server: single
interactapp 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 oneinteractapp tool mirroring the server-sideinteract(anactionenum plus flat parameters, with an optionalcommandsbatch sharing the same contract:content[i]percommands[i], a failed step's slot starts withERROR, noisErroron multi-step batches). The per-action tools remain available behind a new--split-app-toolsCLI flag.get-document-infois renamedget_document_info. In #830 - map-server:
get-screenshotapp tool — capture the current map view as a PNG, with an optionalmaxDimension(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-jsoverride 1.9.15 → 1.9.17 (seroval advisories) with thebasic-server-solidpin 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
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-solidnow depends onsolid-js1.9.15 instead of the exact 1.9.10, which pulled inseroval1.3 (open advisories, fixed in 1.5.3). The rootoverridesthat pinnedserovalare removed, and the lockfile is refreshed withnpm audit fix(patch and minor updates only,npm auditreports 0 vulnerabilities). by @ochafik in #793@modelcontextprotocol/server-pdfnow depends on the exact@cantoo/pdf-lib2.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
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-pdfnow depends on the exactpdfjs-dist5.4.530 instead of^5.0.0. The range let a fresh install resolvepdfjs-dist5.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
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
distdirectory fromimport.meta.filename/import.meta.dirname, which only exist from Node 20.11, so on Node 18 and 20.0 to 20.10 the module threwTypeError: Cannot read properties of undefined (reading 'endsWith')at load, before the server could answerinitialize. All 21 affected servers and the quickstart now derive the path fromimport.meta.urlwithfileURLToPath. No behaviour change on Node 20.11+. Affected the published@modelcontextprotocol/server-pdf1.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.Errorlib to its consumer projects.@modelcontextprotocol/client2.1.0's typings referenceErrorOptions, so a project compiling withskipLibCheck: falseand alibolder than ES2022 needs the same. #788
Packaging
repository.urluses the canonicalgit+https://github.com/modelcontextprotocol/ext-apps.gitform in all manifests, which removes the"repository.url" was normalizedwarning from every publish job. by @ochafik in #773
Full Changelog: v2.0.0...v2.0.1
v2.0.0
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@^1is replaced by@modelcontextprotocol/client@^2.0.0(required:AppandAppBridgeextend itsProtocol),@modelcontextprotocol/server@^2.0.0(optional, only for the./serverhelpers), andzod@^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
registerAppToolstill work as a deprecated overload; wrap them inz.object({...})to move off it. - Handler context. Custom handlers receive the SDK 2.x
BaseContext:extra.signalis nowextra.mcpReq.signal,extra.requestIdisextra.mcpReq.id. setRequestHandler/setNotificationHandlerare keyed by method name. The 2.x form issetRequestHandler("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/progressornotifications/cancelledthrowsalready registered, aspingand theon*-owned methods did in 1.x. ProtocolWithEventsis removed.AppRequest,AppNotificationandAppResultremain as deprecated type aliases.- Errors. Remote JSON-RPC errors are
ProtocolError(numericcode); local failures areSdkError(stringcode). Host-side wire deltas: a handler-thrown-32002reaches the View as-32602, invalid params onui/*methods go from-32603to-32602, and theMCP error N:message prefix is gone. schema.jsonfollows the 2.0 core schemas:structuredContentis any JSON value, result_metadocumentsio.modelcontextprotocol/serverInfo,toolInfo.tool.outputSchemais a loose object, and a recursive JSON-value definition is added.
SDK
- Migrate to SDK v2 with the official
Protocoland isolated role peers by @tonxxd, building on @khandrew1's #710 and @felixweinberger's #712, in #720 - SDK 2.0 fixups: regenerated lockfile,
^2.0.0peers, restored double-registration guard, deprecated raw-shaperegisterAppTooloverload, migration guide, wire-compat tests, MCPB build in #768 - Fix: explicit
.jsextensions 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.objectschemas,extra.mcpReq.*) in #720 server-pdfnow advertises JSON Schema 2020-12 on every tool'sinputSchema/outputSchema, which fixes #765 for clients with a strict 2020-12 validator
Docs
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 rootoverridesundici7.28.0:cheerioin wiki-explorer-servernanoid,postcss: vitebrace-expansion: nodemon (dev)hono/@hono/node-server(GHSA-frvp-7c67-39w9):@modelcontextprotocol/nodein the examples' servers; same advisory as the 1.7.5 residual, still unreachable (onlygetRequestListener/serveare 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
What's Changed
SDK
- Preserve
experimentalcapability settings during initialization.McpUiHostCapabilities.experimentalandMcpUiAppCapabilities.experimentalare now typedRecord<string, object>instead of{}, and the generated schema no longer strips their contents, by @victor-openai in #721
Specification
- Add missing
HostCapabilitiesfields by @hydrosquall in #653 - Sync
object-srcwithdefault-srcby @domfarolino in #715
Examples
Docs
- API Docs link for
ext-apps/serverin #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:
shell-quote1.9.0 (GHSA-w7jw-789q-3m8p, GHSA-395f-4hp3-45gv)@babel/core7.29.7 (GHSA-4x5r-pxfx-6jf8)sharp^0.35.3 (GHSA-f88m-g3jw-g9cj; libvips CVE-2026-33327 / 33328 / 35590 / 35591) — devDependency, screenshot tooling onlybrace-expansion1.1.16 / 2.1.2,fast-uri3.1.4,hono4.12.31,linkify-it5.0.2,markdown-it14.3.0,body-parser2.3.0, plus other transitives
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
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
vitestdevDependency from basic-host systeminformationbumped 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
What's Changed
- Add lazy-auth-server example by @mel-anthropic in #679
Full Changelog: v1.7.2...v1.7.3