@nest-mcp/manager 2.0.0-alpha.0 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,88 @@
1
1
  # @nest-mcp/manager
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 4ddbd56: First stable release of the 2.x line. The packages build on the v2 MCP TypeScript SDK, implement the `2026-07-28` protocol revision, target NestJS 12 and Node.js 22.13 or newer, and are ESM-only. From this release the line follows Semantic Versioning: no breaking changes to the public API within 2.x.
8
+
9
+ The 1.x line stays available under a `1` version range (`@nest-mcp/server@1`, `@nest-mcp/client@1`, `@nest-mcp/gateway@1`). 2.x has a different package layout and API, so moving to it is a migration rather than an in-place upgrade.
10
+
11
+ ### Minor Changes
12
+
13
+ - fea134c: Add `McpRuntimeOwnership`, a framework-neutral bounded coordinator for shared opaque runtime
14
+ generations. Cooperative final release, force-retirement fencing, manager-retirement barriers,
15
+ idempotent owner settlement, manager-close handling, aggregate cleanup failures, and key-free
16
+ snapshots and errors let hosts delete projection-ownership bookkeeping without moving durable state
17
+ or product policy into the SDK.
18
+ - fea134c: Add immediate bounded admission for concurrent isolated operations keyed by a host-owned connector identity. Preserve exclusive ordering across generations, cancellation, close-before-settlement, and quarantine after uncertain cleanup. Hosts must supply the same admission key to all isolated operations for a connector and explicitly authorize independent concurrency.
19
+ - fea134c: Add an explicit exclusive operation lease mode for non-pooled, close-before-settlement managed MCP
20
+ runtimes, including same-generation conflict fencing and retirement coverage. Shared catalog refresh
21
+ now waits for every parallel discovery request before releasing its lease, while exclusive refresh
22
+ serializes those requests for minimal OAuth providers. The public docs identify `refreshCatalog`
23
+ plus `digestMcpRuntimeCatalog` as the generic freshness/change boundary.
24
+ - fea134c: Add a published, framework-neutral manager for bounded dynamic MCP client generations, including
25
+ deterministic draining, cleanup quarantine, key-free state lifecycle subscriptions, catalog and
26
+ operation delegation, a lease-scoped client-runtime integration callback, and optional lifecycle
27
+ observation for every managed client runtime.
28
+
29
+ Expose a thin Nest adapter at `@nest-mcp/nestjs/manager` with synchronous and asynchronous module
30
+ configuration, provider-token generation resolvers and observers, an injectable manager service,
31
+ and deterministic module shutdown.
32
+
33
+ - fea134c: Publish `MCP_RUNTIME_PHASES` and `MCP_RUNTIME_PROTOCOL_ERAS` as frozen tuples that mirror the
34
+ `McpRuntimePhase` and `McpRuntimeProtocolEra` unions through a compile-time exhaustiveness fence,
35
+ together with `mcpRuntimeStateSnapshotSchema`, `mcpRuntimeProbeSnapshotSchema`, and
36
+ `mcpRuntimeCapabilitiesSnapshotSchema`. The validators implement Standard Schema v1 without adding
37
+ a runtime dependency: they accept exactly what the manager emits, reject unknown properties and
38
+ unpublished phases, eras, or state error codes, and return a frozen normalized snapshot so hosts
39
+ can validate persisted projections on the way back in.
40
+
41
+ Accept an `McpRuntimeToolCallOptions` object as the fourth `callTool` argument. A positional
42
+ `AbortSignal` stays source compatible as the cancellation-only form, and pinning `toolDefinition`
43
+ threads that exact definition to the managed client runtime so structured output is validated
44
+ against it instead of a cached `tools/list` view. `McpManagerService` from `@nest-mcp/nestjs/manager`
45
+ inherits the widened call surface.
46
+
47
+ - fea134c: Add opt-in bounded FIFO admission for exclusive operations with `exclusiveContention: "queue"`.
48
+ Concurrent callers each acquire fresh admitted transport material after prior cleanup, while the
49
+ existing exclusive default remains fail-fast. Queue waiting shares the request deadline, respects
50
+ caller cancellation, and is fenced by retirement, shutdown, and cleanup quarantine. Expose a global
51
+ `maxQueuedOperations` bound and key-free queue diagnostics.
52
+
53
+ Add `awaitCleanupOnCancel` to client lease acquisition. Exclusive manager operations select it so
54
+ cancellation during acquisition drains their abandoned material before a queued operation starts;
55
+ ordinary client acquisitions retain immediate, caller-local cancellation by default.
56
+
57
+ ### Patch Changes
58
+
59
+ - fea134c: Preserve the waiting caller's async context when a different caller releases capacity and wakes transport allocation. Tenant context and request-local diagnostics remain attached to the admitted caller.
60
+ - fea134c: Add opt-in bounded concurrent admission across process and connector capacity, nullable connector ceilings, fair FIFO scheduling across connector keys, and distinct queue-full and admission-timeout diagnostics. Reserve transports against the existing lease ledger and retain charges through cleanup; cancellation, retirement, and shutdown remove queued work without redispatch. Expose key-free admission timing and capacity notifications.
61
+ - fea134c: Expose an awaited admitted-generation onConnected hook with the immutable negotiated state so hosts can retain connection observations without extending runtime leases or probing twice.
62
+ - Updated dependencies [4ddbd56]
63
+ - Updated dependencies [fea134c]
64
+ - Updated dependencies [fea134c]
65
+ - Updated dependencies [fea134c]
66
+ - Updated dependencies [fea134c]
67
+ - Updated dependencies [fea134c]
68
+ - Updated dependencies [fea134c]
69
+ - Updated dependencies [fea134c]
70
+ - Updated dependencies [fea134c]
71
+ - Updated dependencies [fea134c]
72
+ - Updated dependencies [fea134c]
73
+ - Updated dependencies [fea134c]
74
+ - Updated dependencies [fea134c]
75
+ - Updated dependencies [fea134c]
76
+ - Updated dependencies [fea134c]
77
+ - Updated dependencies [fea134c]
78
+ - Updated dependencies [fea134c]
79
+ - Updated dependencies [fea134c]
80
+ - Updated dependencies [fea134c]
81
+ - Updated dependencies [fea134c]
82
+ - Updated dependencies [fea134c]
83
+ - @nest-mcp/core@2.0.0
84
+ - @nest-mcp/client@2.0.0
85
+
3
86
  ## 2.0.0-alpha.0
4
87
 
5
88
  ### Major Changes
package/dist/index.mjs CHANGED
@@ -99,7 +99,7 @@ const RUNTIME_STATE_ERROR_CODES = /* @__PURE__ */ new Set([
99
99
  //#region src/runtime-factory.ts
100
100
  const DEFAULT_CLIENT_INFO = Object.freeze({
101
101
  name: "@nest-mcp/manager",
102
- version: "2.0.0-alpha.0"
102
+ version: "2.0.0"
103
103
  });
104
104
  var ManagedRuntimeFactory = class {
105
105
  #generationResolver;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nest-mcp/manager",
3
- "version": "2.0.0-alpha.0",
3
+ "version": "2.0.0",
4
4
  "description": "Framework-neutral bounded lifecycle manager for dynamic MCP client runtime generations.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -42,8 +42,8 @@
42
42
  "./package.json": "./package.json"
43
43
  },
44
44
  "dependencies": {
45
- "@nest-mcp/client": "^2.0.0-alpha.0",
46
- "@nest-mcp/core": "^2.0.0-alpha.0"
45
+ "@nest-mcp/client": "^2.0.0",
46
+ "@nest-mcp/core": "^2.0.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@modelcontextprotocol/client": ">=2.0.0 <3.0.0"