@fitchmultz/pi-mcp-adapter 8.0.1 → 8.0.2
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.
- package/CHANGELOG.md +19 -1
- package/README.md +3 -3
- package/dist/app-bridge.bundle.js +13 -13
- package/dist/client-operations.d.ts +5 -0
- package/dist/client-operations.js +19 -0
- package/dist/commands.d.ts +1 -1
- package/dist/commands.js +3 -1
- package/dist/connection-runtime.d.ts +503 -0
- package/dist/connection-runtime.js +98 -0
- package/dist/direct-tools.js +1 -1
- package/dist/host-html-template.js +24 -12
- package/dist/index.js +36 -29
- package/dist/init.d.ts +1 -1
- package/dist/init.js +66 -38
- package/dist/lifecycle.d.ts +1 -1
- package/dist/lifecycle.js +1 -1
- package/dist/mcp-auth-flow.d.ts +2 -43
- package/dist/mcp-auth-flow.js +3 -138
- package/dist/mcp-callback-server.js +1 -1
- package/dist/mcp-code.d.ts +0 -1
- package/dist/mcp-code.js +20 -7
- package/dist/mcp-oauth-callback-config.d.ts +8 -0
- package/dist/mcp-oauth-callback-config.js +28 -0
- package/dist/mcp-oauth-provider.d.ts +1 -8
- package/dist/mcp-oauth-provider.js +2 -28
- package/dist/mcp-oauth-runtime.d.ts +83 -0
- package/dist/mcp-oauth-runtime.js +145 -0
- package/dist/mcp-output-guard.d.ts +1 -1
- package/dist/mcp-output-guard.js +5 -108
- package/dist/mcp-output-preview.d.ts +29 -0
- package/dist/mcp-output-preview.js +220 -0
- package/dist/mcp-panel.js +1 -2
- package/dist/mcp-script-worker.mjs +14 -2
- package/dist/metadata-cache.d.ts +1 -1
- package/dist/metadata-cache.js +56 -14
- package/dist/plain-result-reader.d.ts +7 -0
- package/dist/plain-result-reader.js +201 -0
- package/dist/prompts.js +1 -1
- package/dist/proxy-modes.d.ts +1 -1
- package/dist/proxy-modes.js +14 -5
- package/dist/public-types.d.ts +2 -0
- package/dist/public-types.js +2 -0
- package/dist/resource-tools.d.ts +0 -1
- package/dist/resource-tools.js +0 -13
- package/dist/server-manager.d.ts +4 -4
- package/dist/server-manager.js +25 -125
- package/dist/tool-loader.js +10 -4
- package/dist/tool-metadata.js +20 -3
- package/dist/tool-result-renderer.d.ts +1 -1
- package/dist/tool-result-renderer.js +10 -3
- package/dist/types.d.ts +1 -1
- package/dist/types.js +0 -3
- package/dist/ui-message-history.js +3 -2
- package/dist/ui-resource-handler.d.ts +2 -1
- package/dist/ui-resource-handler.js +4 -3
- package/dist/ui-server.js +2 -1
- package/dist/ui-session.js +2 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -7,14 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [8.0.2] - 2026-10-31
|
|
11
|
+
|
|
10
12
|
### Changed
|
|
11
13
|
|
|
12
|
-
-
|
|
14
|
+
- Link the READMEs to the exact runtime requirements and conformance referee details without pinning release versions in installation guidance.
|
|
15
|
+
- Batch metadata-cache writes across connected servers at startup and shutdown, reducing repeated disk work while preserving on-demand updates.
|
|
16
|
+
- Reuse search indexes after calls when live tool metadata is unchanged; rebuild them when descriptors change.
|
|
17
|
+
- Load the native MCP client SDK on first connection instead of at startup; cached discovery remains available without it.
|
|
18
|
+
- Index saved plain-text output once, then read only the requested page's sparse file window. Native UI history appends, including large events, index only the new text without rescanning the prefix. Keep exact UTF-16 totals, Unicode boundaries and private-directory checks; external edits and incomplete UTF-8 fall back to a fresh scan. The bounded in-memory index retains checkpoints, not output text.
|
|
19
|
+
- Reuse unchanged metadata-cache snapshots and derived tool descriptors across session tool synchronization. Each session and branch still restores its own selections and validates configuration, trust, and server identity.
|
|
20
|
+
- Load Zod and the command, panel, gateway, script and resource modules on first MCP use instead of at extension startup, so sessions that never use MCP skip them. Server initialization modules now load during session start, after cached tools and prompt commands register. Cached tool registration, schemas, commands and first-call behavior are unchanged. Internal types no longer load Zod; the published `./types` entry still exports the same values and types, including the Zod-backed UI stream schemas.
|
|
21
|
+
- Update Zod to 4.6.7 in the adapter and interactive visualizer, and rebuild the bundled MCP Apps bridge with it. Zod 4.6.6 rejects arrays, sets and maps over their declared size limit before checking each element ([GHSA-mrhx-c7xc-m3w5](https://github.com/advisories/GHSA-mrhx-c7xc-m3w5)).
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- Stop browser-host heartbeats when MCP App sessions complete, and tear down the app once on server or user completion.
|
|
26
|
+
- Mark `mcp_search` schema alternatives as objects so providers requiring explicit object types accept them.
|
|
27
|
+
- Bind cached plain-output page indexes to a SHA-256 digest of the actual file content, verified on every reuse, so a same-size in-place rewrite inside one filesystem timestamp grain can no longer serve stale checkpoints or UTF-16 totals. Verified native appends keep advancing the digest, preserving warm paging after appends; warm reads now cost one raw verification pass plus the sparse page window instead of the window alone.
|
|
28
|
+
- Stream large `mcp_script` output to its spill file while the script runs instead of holding every emitted value in the Pi process, and pause the script worker while the host catches up. Previously, large finite output could exhaust the host heap and abort Pi. The returned preview, saved file, ordering and images are unchanged. Pi processes already running when the adapter updates keep returning `mcp_script` output; one that ran `mcp_script` before the update keeps the earlier in-memory handling until it restarts.
|
|
29
|
+
- Prune recognized expired and future-dated metadata entries during cache saves while preserving configured servers, explicitly supplied entries, and unknown records. Keep fresh disk merges and atomic cache replacement.
|
|
13
30
|
|
|
14
31
|
## [8.0.1] - 2026-10-13
|
|
15
32
|
|
|
16
33
|
### Changed
|
|
17
34
|
|
|
35
|
+
- Rewrite the README around installation and everyday use, add a discovery/call-flow diagram, and move detailed configuration, migration, and maintainer guidance into linked docs.
|
|
18
36
|
- Refresh the MCP client, core, and server SDKs together to 2.3.1 in the adapter and interactive visualizer, and update smol-toml to 1.9.1. Keep native authentication, request lifetime, cancellation, streaming results and package discovery contracts.
|
|
19
37
|
- Calibrate the macOS large-history test timeout for its 10,000 real disk flushes, without reducing the workload or changing persistence assertions.
|
|
20
38
|
|
package/README.md
CHANGED
|
@@ -6,14 +6,14 @@ Connect [Pi](https://github.com/earendil-works/pi) to MCP servers for browsers,
|
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Check the [Pi and Node.js requirements](https://github.com/fitchmultz/pi-mcp-adapter/blob/main/docs/reference.md#requirements).
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
pi install npm:@fitchmultz/pi-mcp-adapter
|
|
13
13
|
pi
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Restart Pi if it was open during installation. Load only one adapter per Pi host. For
|
|
16
|
+
Restart Pi if it was open during installation. Load only one adapter per Pi host. For legacy adapter state, read the [upgrade guide](docs/migration.md) before you restart Pi.
|
|
17
17
|
|
|
18
18
|
For a Git install, run `pi install git:github.com/fitchmultz/pi-mcp-adapter`.
|
|
19
19
|
|
|
@@ -80,7 +80,7 @@ If App history cannot be saved, reload or exit discards unsaved messages. Retrie
|
|
|
80
80
|
## Documentation
|
|
81
81
|
|
|
82
82
|
- [Reference](docs/reference.md): all settings, tool actions, SDK integration, transport behavior, and limits.
|
|
83
|
-
- [Upgrade guide](docs/migration.md): API changes and
|
|
83
|
+
- [Upgrade guide](docs/migration.md): API changes and legacy state migration.
|
|
84
84
|
- [Development and releases](docs/development.md): local checks and maintainer procedures.
|
|
85
85
|
- [Changelog](CHANGELOG.md) · [Report an issue](https://github.com/fitchmultz/pi-mcp-adapter/issues)
|
|
86
86
|
|