@nest-mcp/manager 2.0.0-alpha.0 → 2.1.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 +90 -0
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,95 @@
|
|
|
1
1
|
# @nest-mcp/manager
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @nest-mcp/client@2.1.0
|
|
8
|
+
- @nest-mcp/core@2.1.0
|
|
9
|
+
|
|
10
|
+
## 2.0.0
|
|
11
|
+
|
|
12
|
+
### Major Changes
|
|
13
|
+
|
|
14
|
+
- 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.
|
|
15
|
+
|
|
16
|
+
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.
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- fea134c: Add `McpRuntimeOwnership`, a framework-neutral bounded coordinator for shared opaque runtime
|
|
21
|
+
generations. Cooperative final release, force-retirement fencing, manager-retirement barriers,
|
|
22
|
+
idempotent owner settlement, manager-close handling, aggregate cleanup failures, and key-free
|
|
23
|
+
snapshots and errors let hosts delete projection-ownership bookkeeping without moving durable state
|
|
24
|
+
or product policy into the SDK.
|
|
25
|
+
- 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.
|
|
26
|
+
- fea134c: Add an explicit exclusive operation lease mode for non-pooled, close-before-settlement managed MCP
|
|
27
|
+
runtimes, including same-generation conflict fencing and retirement coverage. Shared catalog refresh
|
|
28
|
+
now waits for every parallel discovery request before releasing its lease, while exclusive refresh
|
|
29
|
+
serializes those requests for minimal OAuth providers. The public docs identify `refreshCatalog`
|
|
30
|
+
plus `digestMcpRuntimeCatalog` as the generic freshness/change boundary.
|
|
31
|
+
- fea134c: Add a published, framework-neutral manager for bounded dynamic MCP client generations, including
|
|
32
|
+
deterministic draining, cleanup quarantine, key-free state lifecycle subscriptions, catalog and
|
|
33
|
+
operation delegation, a lease-scoped client-runtime integration callback, and optional lifecycle
|
|
34
|
+
observation for every managed client runtime.
|
|
35
|
+
|
|
36
|
+
Expose a thin Nest adapter at `@nest-mcp/nestjs/manager` with synchronous and asynchronous module
|
|
37
|
+
configuration, provider-token generation resolvers and observers, an injectable manager service,
|
|
38
|
+
and deterministic module shutdown.
|
|
39
|
+
|
|
40
|
+
- fea134c: Publish `MCP_RUNTIME_PHASES` and `MCP_RUNTIME_PROTOCOL_ERAS` as frozen tuples that mirror the
|
|
41
|
+
`McpRuntimePhase` and `McpRuntimeProtocolEra` unions through a compile-time exhaustiveness fence,
|
|
42
|
+
together with `mcpRuntimeStateSnapshotSchema`, `mcpRuntimeProbeSnapshotSchema`, and
|
|
43
|
+
`mcpRuntimeCapabilitiesSnapshotSchema`. The validators implement Standard Schema v1 without adding
|
|
44
|
+
a runtime dependency: they accept exactly what the manager emits, reject unknown properties and
|
|
45
|
+
unpublished phases, eras, or state error codes, and return a frozen normalized snapshot so hosts
|
|
46
|
+
can validate persisted projections on the way back in.
|
|
47
|
+
|
|
48
|
+
Accept an `McpRuntimeToolCallOptions` object as the fourth `callTool` argument. A positional
|
|
49
|
+
`AbortSignal` stays source compatible as the cancellation-only form, and pinning `toolDefinition`
|
|
50
|
+
threads that exact definition to the managed client runtime so structured output is validated
|
|
51
|
+
against it instead of a cached `tools/list` view. `McpManagerService` from `@nest-mcp/nestjs/manager`
|
|
52
|
+
inherits the widened call surface.
|
|
53
|
+
|
|
54
|
+
- fea134c: Add opt-in bounded FIFO admission for exclusive operations with `exclusiveContention: "queue"`.
|
|
55
|
+
Concurrent callers each acquire fresh admitted transport material after prior cleanup, while the
|
|
56
|
+
existing exclusive default remains fail-fast. Queue waiting shares the request deadline, respects
|
|
57
|
+
caller cancellation, and is fenced by retirement, shutdown, and cleanup quarantine. Expose a global
|
|
58
|
+
`maxQueuedOperations` bound and key-free queue diagnostics.
|
|
59
|
+
|
|
60
|
+
Add `awaitCleanupOnCancel` to client lease acquisition. Exclusive manager operations select it so
|
|
61
|
+
cancellation during acquisition drains their abandoned material before a queued operation starts;
|
|
62
|
+
ordinary client acquisitions retain immediate, caller-local cancellation by default.
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- 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.
|
|
67
|
+
- 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.
|
|
68
|
+
- 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.
|
|
69
|
+
- Updated dependencies [4ddbd56]
|
|
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
|
+
- Updated dependencies [fea134c]
|
|
84
|
+
- Updated dependencies [fea134c]
|
|
85
|
+
- Updated dependencies [fea134c]
|
|
86
|
+
- Updated dependencies [fea134c]
|
|
87
|
+
- Updated dependencies [fea134c]
|
|
88
|
+
- Updated dependencies [fea134c]
|
|
89
|
+
- Updated dependencies [fea134c]
|
|
90
|
+
- @nest-mcp/core@2.0.0
|
|
91
|
+
- @nest-mcp/client@2.0.0
|
|
92
|
+
|
|
3
93
|
## 2.0.0-alpha.0
|
|
4
94
|
|
|
5
95
|
### 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.
|
|
102
|
+
version: "2.1.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.
|
|
3
|
+
"version": "2.1.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.
|
|
46
|
-
"@nest-mcp/core": "^2.
|
|
45
|
+
"@nest-mcp/client": "^2.1.0",
|
|
46
|
+
"@nest-mcp/core": "^2.1.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@modelcontextprotocol/client": ">=2.0.0 <3.0.0"
|