@frontmcp/sdk 1.13.1 → 1.13.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.
Files changed (197) hide show
  1. package/auth/auth-ui/auth-ui.render.d.ts +5 -2
  2. package/auth/auth-ui/auth-ui.render.d.ts.map +1 -1
  3. package/auth/auth-ui/index.d.ts +1 -1
  4. package/auth/auth-ui/index.d.ts.map +1 -1
  5. package/auth/flows/oauth.authorize.flow.d.ts +1 -0
  6. package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
  7. package/auth/flows/oauth.callback.flow.d.ts.map +1 -1
  8. package/auth/flows/oauth.register.flow.d.ts +18 -1
  9. package/auth/flows/oauth.register.flow.d.ts.map +1 -1
  10. package/auth/flows/well-known.prm.flow.d.ts +4 -0
  11. package/auth/flows/well-known.prm.flow.d.ts.map +1 -1
  12. package/auth/instances/instance.local-primary-auth.d.ts +4 -3
  13. package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
  14. package/auth/instances/instance.remote-primary-auth.d.ts.map +1 -1
  15. package/browser/auth/auth-ui/auth-ui.render.mjs +9 -8
  16. package/browser/auth/auth-ui/index.mjs +4 -2
  17. package/browser/auth/federated-steps.mjs +1 -1
  18. package/browser/auth/flows/oauth.authorize.flow.mjs +15 -8
  19. package/browser/auth/flows/oauth.callback.flow.mjs +10 -3
  20. package/browser/auth/flows/oauth.connect.flow.mjs +1 -1
  21. package/browser/auth/flows/oauth.provider-callback.flow.mjs +1 -1
  22. package/browser/auth/flows/oauth.register.flow.mjs +5 -1
  23. package/browser/auth/flows/well-known.prm.flow.mjs +22 -3
  24. package/browser/auth/instances/instance.local-primary-auth.mjs +20 -9
  25. package/browser/auth/instances/instance.remote-primary-auth.mjs +5 -0
  26. package/browser/common/decorators/http-route.decorator.mjs +9 -1
  27. package/browser/common/index.mjs +1 -1
  28. package/browser/common/metadata/index.mjs +1 -1
  29. package/browser/common/metadata/materialized.metadata.mjs +13 -0
  30. package/browser/common/metadata/resource.metadata.mjs +6 -5
  31. package/browser/common/tokens/resource.tokens.mjs +1 -0
  32. package/browser/common/types/options/http/schema.mjs +17 -1
  33. package/browser/common/types/options/transport/schema.mjs +11 -1
  34. package/browser/direct/direct-server.mjs +15 -11
  35. package/browser/errors/index.mjs +3 -1
  36. package/browser/errors/mcp.error.mjs +7 -0
  37. package/browser/errors/transport.errors.mjs +7 -1
  38. package/browser/event/event-scope.helper.mjs +4 -2
  39. package/browser/event/event-subscription-info.mjs +55 -0
  40. package/browser/event/event.registry.mjs +18 -0
  41. package/browser/event/flows/event-ended.flow.mjs +89 -0
  42. package/browser/event/flows/event-unsubscribe.flow.mjs +7 -1
  43. package/browser/event/poll/event-poll-leases.mjs +11 -0
  44. package/browser/event/stream/event-stream.mjs +4 -0
  45. package/browser/event/stream/event-streams.mjs +13 -0
  46. package/browser/event/subscription/event-subscription-termination.mjs +1 -0
  47. package/browser/event/subscription/event-subscriptions.mjs +18 -2
  48. package/browser/front-mcp/front-mcp.mjs +13 -0
  49. package/browser/http-route/flows/http.route.flow.mjs +71 -8
  50. package/browser/http-route/http-route.table.mjs +61 -15
  51. package/browser/http-route/people-session-store.mjs +47 -0
  52. package/browser/http-route/people-sign-in.routes.mjs +3 -2
  53. package/browser/http-route/sse-route.stream.mjs +19 -8
  54. package/browser/index.cjs +3011 -2017
  55. package/browser/index.mjs +24 -3
  56. package/browser/notification/notification.service.mjs +8 -1
  57. package/browser/resource/materialized/materialized-resource.context.mjs +3 -1
  58. package/browser/resource/materialized/materialized-resources.mjs +53 -27
  59. package/browser/resource/materialized/resource-store.mjs +269 -17
  60. package/browser/resource/resource.registry.mjs +31 -0
  61. package/browser/scope/http-scope.helper.mjs +2 -1
  62. package/browser/scope/scope.instance.mjs +2 -2
  63. package/browser/server/security/host-validation.mjs +4 -1
  64. package/browser/server/server.instance.mjs +22 -4
  65. package/browser/subsystems.mjs +21 -2
  66. package/browser/tool/flows/call-tool.flow.mjs +3 -3
  67. package/browser/tool/undeclared-arguments-message.mjs +10 -8
  68. package/browser/tool/undeclared-arguments.mjs +33 -0
  69. package/browser/transport/adapters/transport.sse.adapter.mjs +5 -2
  70. package/browser/transport/adapters/transport.streamable-http.adapter.mjs +3 -1
  71. package/browser/transport/flows/handle.mcp-20260728.flow.mjs +7 -2
  72. package/browser/transport/mcp-20260728/subscriptions.mjs +24 -4
  73. package/browser/transport/stream-keep-alive.mjs +70 -0
  74. package/browser/transport/transport.registry.mjs +9 -7
  75. package/browser/transport/web-standard-mcp.mjs +3 -1
  76. package/common/decorators/http-route.decorator.d.ts +2 -1
  77. package/common/decorators/http-route.decorator.d.ts.map +1 -1
  78. package/common/interfaces/http-route.interface.d.ts +9 -1
  79. package/common/interfaces/http-route.interface.d.ts.map +1 -1
  80. package/common/metadata/app.metadata.d.ts +8 -0
  81. package/common/metadata/app.metadata.d.ts.map +1 -1
  82. package/common/metadata/front-mcp.metadata.d.ts +197 -0
  83. package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
  84. package/common/metadata/http-route.metadata.d.ts +11 -3
  85. package/common/metadata/http-route.metadata.d.ts.map +1 -1
  86. package/common/metadata/materialized.metadata.d.ts +21 -0
  87. package/common/metadata/materialized.metadata.d.ts.map +1 -1
  88. package/common/metadata/resource.metadata.d.ts +8 -1
  89. package/common/metadata/resource.metadata.d.ts.map +1 -1
  90. package/common/tokens/resource.tokens.d.ts +1 -0
  91. package/common/tokens/resource.tokens.d.ts.map +1 -1
  92. package/common/types/options/auth/index.d.ts +1 -1
  93. package/common/types/options/auth/index.d.ts.map +1 -1
  94. package/common/types/options/http/index.d.ts +1 -1
  95. package/common/types/options/http/index.d.ts.map +1 -1
  96. package/common/types/options/http/interfaces.d.ts +41 -1
  97. package/common/types/options/http/interfaces.d.ts.map +1 -1
  98. package/common/types/options/http/schema.d.ts +12 -0
  99. package/common/types/options/http/schema.d.ts.map +1 -1
  100. package/common/types/options/transport/index.d.ts +1 -1
  101. package/common/types/options/transport/index.d.ts.map +1 -1
  102. package/common/types/options/transport/interfaces.d.ts +24 -0
  103. package/common/types/options/transport/interfaces.d.ts.map +1 -1
  104. package/common/types/options/transport/schema.d.ts +3 -0
  105. package/common/types/options/transport/schema.d.ts.map +1 -1
  106. package/direct/direct-server.d.ts +4 -2
  107. package/direct/direct-server.d.ts.map +1 -1
  108. package/direct/direct.types.d.ts +7 -0
  109. package/direct/direct.types.d.ts.map +1 -1
  110. package/errors/index.d.ts +1 -1
  111. package/errors/index.d.ts.map +1 -1
  112. package/errors/mcp.error.d.ts +4 -0
  113. package/errors/mcp.error.d.ts.map +1 -1
  114. package/errors/transport.errors.d.ts +4 -0
  115. package/errors/transport.errors.d.ts.map +1 -1
  116. package/esm/index.mjs +42 -42
  117. package/event/event-scope.helper.d.ts.map +1 -1
  118. package/event/event-subscription-info.d.ts +72 -0
  119. package/event/event-subscription-info.d.ts.map +1 -0
  120. package/event/event.registry.d.ts +7 -0
  121. package/event/event.registry.d.ts.map +1 -1
  122. package/event/flows/event-ended.flow.d.ts +56 -0
  123. package/event/flows/event-ended.flow.d.ts.map +1 -0
  124. package/event/flows/event-unsubscribe.flow.d.ts +4 -1
  125. package/event/flows/event-unsubscribe.flow.d.ts.map +1 -1
  126. package/event/index.d.ts +3 -1
  127. package/event/index.d.ts.map +1 -1
  128. package/event/poll/event-poll-leases.d.ts +3 -0
  129. package/event/poll/event-poll-leases.d.ts.map +1 -1
  130. package/event/stream/event-stream.d.ts +2 -0
  131. package/event/stream/event-stream.d.ts.map +1 -1
  132. package/event/stream/event-streams.d.ts +3 -0
  133. package/event/stream/event-streams.d.ts.map +1 -1
  134. package/event/subscription/event-subscription-termination.d.ts +4 -1
  135. package/event/subscription/event-subscription-termination.d.ts.map +1 -1
  136. package/event/subscription/event-subscriptions.d.ts +19 -1
  137. package/event/subscription/event-subscriptions.d.ts.map +1 -1
  138. package/front-mcp/front-mcp.d.ts.map +1 -1
  139. package/http-route/flows/http.route.flow.d.ts +12 -4
  140. package/http-route/flows/http.route.flow.d.ts.map +1 -1
  141. package/http-route/http-route.table.d.ts +10 -3
  142. package/http-route/http-route.table.d.ts.map +1 -1
  143. package/http-route/people-session-store.d.ts +24 -0
  144. package/http-route/people-session-store.d.ts.map +1 -0
  145. package/http-route/people-sign-in.routes.d.ts +2 -2
  146. package/http-route/people-sign-in.routes.d.ts.map +1 -1
  147. package/http-route/sse-route.stream.d.ts +6 -1
  148. package/http-route/sse-route.stream.d.ts.map +1 -1
  149. package/index.d.ts +16 -8
  150. package/index.d.ts.map +1 -1
  151. package/index.js +43 -43
  152. package/notification/notification.service.d.ts.map +1 -1
  153. package/package.json +10 -10
  154. package/resource/materialized/index.d.ts +1 -1
  155. package/resource/materialized/index.d.ts.map +1 -1
  156. package/resource/materialized/materialized-resource.context.d.ts +1 -0
  157. package/resource/materialized/materialized-resource.context.d.ts.map +1 -1
  158. package/resource/materialized/materialized-resources.d.ts +11 -5
  159. package/resource/materialized/materialized-resources.d.ts.map +1 -1
  160. package/resource/materialized/resource-store.d.ts +31 -1
  161. package/resource/materialized/resource-store.d.ts.map +1 -1
  162. package/resource/resource.registry.d.ts +11 -0
  163. package/resource/resource.registry.d.ts.map +1 -1
  164. package/scope/http-scope.helper.d.ts +1 -1
  165. package/scope/http-scope.helper.d.ts.map +1 -1
  166. package/scope/scope.instance.d.ts.map +1 -1
  167. package/server/adapters/polyfills/browser-express-host.d.ts +3 -0
  168. package/server/adapters/polyfills/browser-express-host.d.ts.map +1 -1
  169. package/server/adapters/polyfills/node-express-host.d.ts +1 -0
  170. package/server/adapters/polyfills/node-express-host.d.ts.map +1 -1
  171. package/server/adapters/user-content.listener.d.ts +26 -0
  172. package/server/adapters/user-content.listener.d.ts.map +1 -0
  173. package/server/security/host-validation.d.ts.map +1 -1
  174. package/server/server.instance.d.ts +1 -0
  175. package/server/server.instance.d.ts.map +1 -1
  176. package/subsystems.d.ts +1 -1
  177. package/subsystems.d.ts.map +1 -1
  178. package/tool/undeclared-arguments-message.d.ts +8 -5
  179. package/tool/undeclared-arguments-message.d.ts.map +1 -1
  180. package/tool/undeclared-arguments.d.ts +2 -0
  181. package/tool/undeclared-arguments.d.ts.map +1 -1
  182. package/transport/adapters/base-sse-transport.d.ts +4 -0
  183. package/transport/adapters/base-sse-transport.d.ts.map +1 -1
  184. package/transport/adapters/polyfills/browser-sse-transport.d.ts +1 -0
  185. package/transport/adapters/polyfills/browser-sse-transport.d.ts.map +1 -1
  186. package/transport/adapters/streamable-http-transport.d.ts +2 -0
  187. package/transport/adapters/streamable-http-transport.d.ts.map +1 -1
  188. package/transport/adapters/transport.sse.adapter.d.ts.map +1 -1
  189. package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
  190. package/transport/flows/handle.mcp-20260728.flow.d.ts.map +1 -1
  191. package/transport/mcp-20260728/subscriptions.d.ts +2 -0
  192. package/transport/mcp-20260728/subscriptions.d.ts.map +1 -1
  193. package/transport/stream-keep-alive.d.ts +13 -0
  194. package/transport/stream-keep-alive.d.ts.map +1 -0
  195. package/transport/transport.registry.d.ts +1 -1
  196. package/transport/transport.registry.d.ts.map +1 -1
  197. package/transport/web-standard-mcp.d.ts.map +1 -1
@@ -2,6 +2,7 @@
2
2
  import { toJSONSchema } from "@frontmcp/lazy-zod";
3
3
  import { DEFAULT_ELICIT_TTL } from "../../elicitation/elicitation.types.mjs";
4
4
  import { ElicitationTimeoutError, InternalMcpError, InvalidInputError } from "../../errors/index.mjs";
5
+ import { streamHeartbeatMs } from "../stream-keep-alive.mjs";
5
6
  import { rpcRequest } from "../transport.error.mjs";
6
7
  import { LocalTransportAdapter } from "./transport.local.adapter.mjs";
7
8
  var RecreateableTransport;
@@ -30,7 +31,8 @@ var TransportSSEAdapter = class extends LocalTransportAdapter {
30
31
  this.logger.info(`new transport session: ${sessionId.slice(0, 40)}`);
31
32
  const SseTransport = sseTransportClass();
32
33
  const transport = new SseTransport(`${this.scope.fullPath}/message`, res, {
33
- sessionId
34
+ sessionId,
35
+ heartbeatMs: streamHeartbeatMs(this.scope.metadata.transport)
34
36
  });
35
37
  this.configureTransportHandlers(transport);
36
38
  return transport;
@@ -49,7 +51,8 @@ var TransportSSEAdapter = class extends LocalTransportAdapter {
49
51
  const SseTransport = sseTransportClass();
50
52
  const transport = new SseTransport(`${this.scope.fullPath}/message`, res, {
51
53
  sessionId,
52
- initialEventId: lastEventId
54
+ initialEventId: lastEventId,
55
+ heartbeatMs: streamHeartbeatMs(this.scope.metadata.transport)
53
56
  });
54
57
  this.configureTransportHandlers(transport);
55
58
  return transport;
@@ -2,6 +2,7 @@
2
2
  import { toJSONSchema } from "@frontmcp/lazy-zod";
3
3
  import { ElicitationTimeoutError, InternalMcpError } from "../../errors/index.mjs";
4
4
  import { createSessionScopedEventStore } from "../event-stores/session-scoped.event-store.mjs";
5
+ import { streamHeartbeatMs } from "../stream-keep-alive.mjs";
5
6
  import { rpcRequest } from "../transport.error.mjs";
6
7
  import { STATELESS_SESSION_ID } from "../transport.types.mjs";
7
8
  import { LocalTransportAdapter } from "./transport.local.adapter.mjs";
@@ -39,7 +40,8 @@ var TransportStreamableHttpAdapter = class extends LocalTransportAdapter {
39
40
  // When undefined: disabled to prevent priming events - Claude.ai's client doesn't handle them
40
41
  // The priming event has empty data with no `event:` type, which violates MCP spec
41
42
  // ("Event types MUST be message") and confuses some clients
42
- eventStore
43
+ eventStore,
44
+ keepAliveMs: streamHeartbeatMs(this.scope.metadata.transport)
43
45
  });
44
46
  }
45
47
  async initialize(req, res) {
@@ -46,6 +46,7 @@ import {
46
46
  validate20260728Request
47
47
  } from "../mcp-20260728/index.mjs";
48
48
  import { mcpRequestSurface } from "../mcp-handlers/mcp-surface.mjs";
49
+ import { streamHeartbeatMs, withKeepAlive } from "../stream-keep-alive.mjs";
49
50
  var plan = {
50
51
  pre: ["parseInput", "validate", "router"],
51
52
  execute: ["handleNotification", "handleSubscriptions", "handleEventStream", "handleMessage"],
@@ -274,7 +275,8 @@ var HandleMcp20260728Flow = class extends FlowBase {
274
275
  mayReceiveUpdate: (uri, watchedUri) => listenerMayReceive(
275
276
  () => hasExpiredCaller({ caller: sessionCallerOf(listenerAuthInfo) }),
276
277
  () => mayRead(this.scope.resources.findResourceForUri(uri) ? uri : watchedUri)
277
- )
278
+ ),
279
+ keepAliveMs: streamHeartbeatMs(this.scope.metadata.transport)
278
280
  });
279
281
  this.log.info("handleSubscriptions: stream opened", {
280
282
  subscriptionId: body["id"],
@@ -444,7 +446,10 @@ var HandleMcp20260728Flow = class extends FlowBase {
444
446
  this.respond({
445
447
  kind: "sse",
446
448
  status: 200,
447
- stream: streamMessageResponse(dispatchOptions, sink, body["id"], this.buildContextRunner()),
449
+ stream: withKeepAlive(
450
+ streamMessageResponse(dispatchOptions, sink, body["id"], this.buildContextRunner()),
451
+ stdio ? 0 : streamHeartbeatMs(this.scope.metadata.transport)
452
+ ),
448
453
  contentType: "text/event-stream",
449
454
  disposition: "inline",
450
455
  headers: {
@@ -2,11 +2,11 @@
2
2
  import { MCP_20260728_META, SUBSCRIPTIONS_ACKNOWLEDGED_METHOD } from "@frontmcp/protocol";
3
3
  import { CHANNEL_NOTIFICATION_METHOD } from "../../channel/channel.utils.mjs";
4
4
  import { announcesListChangeNow } from "../../surface/list-change-batch.mjs";
5
+ import { DEFAULT_STREAM_HEARTBEAT_MS } from "../stream-keep-alive.mjs";
5
6
  async function listenerMayReceive(isExpired, mayRead) {
6
7
  if (isExpired()) return false;
7
8
  return await mayRead() && !isExpired();
8
9
  }
9
- var KEEPALIVE_INTERVAL_MS = 15e3;
10
10
  function resolveAcknowledgedFilter(scope, requested) {
11
11
  const acknowledged = {};
12
12
  if (requested.toolsListChanged && scope.tools.getCapabilities().tools?.listChanged) {
@@ -33,6 +33,7 @@ data: ${JSON.stringify(message)}
33
33
  var KEEPALIVE_FRAME = encoder.encode(":\n\n");
34
34
  function createSubscriptionStream(options) {
35
35
  const { scope, subscriptionId, requested, channels, signal, mayReceiveUpdate } = options;
36
+ const keepAliveMs = options.keepAliveMs ?? DEFAULT_STREAM_HEARTBEAT_MS;
36
37
  const acknowledged = resolveAcknowledgedFilter(scope, requested);
37
38
  const queue = [];
38
39
  let notify;
@@ -53,6 +54,10 @@ function createSubscriptionStream(options) {
53
54
  unsubscribes.push(scope.prompts.subscribe({}, () => pushListChanged("prompts")));
54
55
  }
55
56
  const watchedUris = new Set(acknowledged.resourceSubscriptions ?? []);
57
+ for (const uri of watchedUris) scope.resources.watchUri(uri);
58
+ unsubscribes.push(() => {
59
+ for (const uri of watchedUris) scope.resources.unwatchUri(uri);
60
+ });
56
61
  if (acknowledged.resourcesListChanged || watchedUris.size > 0) {
57
62
  unsubscribes.push(
58
63
  scope.resources.subscribe({}, (event) => {
@@ -119,10 +124,10 @@ function createSubscriptionStream(options) {
119
124
  }
120
125
  if (closed || signal?.aborted) break;
121
126
  const woke = await new Promise((resolve) => {
122
- const timer = setTimeout(() => {
127
+ const timer = keepAliveMs > 0 ? setTimeout(() => {
123
128
  notify = void 0;
124
129
  resolve(false);
125
- }, KEEPALIVE_INTERVAL_MS);
130
+ }, keepAliveMs) : void 0;
126
131
  notify = () => {
127
132
  clearTimeout(timer);
128
133
  notify = void 0;
@@ -135,7 +140,22 @@ function createSubscriptionStream(options) {
135
140
  cleanup();
136
141
  }
137
142
  }
138
- return { acknowledged, stream: generate() };
143
+ const frames = generate();
144
+ const stream = {
145
+ next: () => frames.next(),
146
+ return: (value) => {
147
+ cleanup();
148
+ return frames.return(value);
149
+ },
150
+ throw: (error) => {
151
+ cleanup();
152
+ return frames.throw(error);
153
+ },
154
+ [Symbol.asyncIterator]() {
155
+ return this;
156
+ }
157
+ };
158
+ return { acknowledged, stream };
139
159
  }
140
160
  export {
141
161
  createSubscriptionStream,
@@ -0,0 +1,70 @@
1
+ // libs/sdk/src/transport/stream-keep-alive.ts
2
+ var DEFAULT_STREAM_HEARTBEAT_MS = 15e3;
3
+ var KEEP_ALIVE_COMMENT = ": keep-alive\n\n";
4
+ var KEEP_ALIVE_FRAME = new TextEncoder().encode(KEEP_ALIVE_COMMENT);
5
+ function streamHeartbeatMs(transport) {
6
+ const configured = transport?.sse?.heartbeatMs;
7
+ if (configured === void 0) return DEFAULT_STREAM_HEARTBEAT_MS;
8
+ return configured === false ? 0 : configured;
9
+ }
10
+ function withKeepAlive(frames, idleMs) {
11
+ if (idleMs <= 0) return frames;
12
+ return {
13
+ [Symbol.asyncIterator]() {
14
+ const source = frames[Symbol.asyncIterator]();
15
+ let reading = false;
16
+ let read;
17
+ let wake;
18
+ let timer;
19
+ let ended = false;
20
+ return {
21
+ next: async () => {
22
+ if (ended) return { value: void 0, done: true };
23
+ if (!reading) {
24
+ reading = true;
25
+ void source.next().then(
26
+ (result) => {
27
+ read = { result };
28
+ wake?.();
29
+ },
30
+ (error) => {
31
+ read = { error };
32
+ wake?.();
33
+ }
34
+ );
35
+ }
36
+ if (!read) {
37
+ await new Promise((resolve) => {
38
+ wake = resolve;
39
+ timer = setTimeout(resolve, idleMs);
40
+ timer.unref?.();
41
+ });
42
+ wake = void 0;
43
+ clearTimeout(timer);
44
+ }
45
+ if (ended) return { value: void 0, done: true };
46
+ if (!read) return { value: KEEP_ALIVE_FRAME, done: false };
47
+ const settled = read;
48
+ read = void 0;
49
+ reading = false;
50
+ if ("error" in settled) throw settled.error;
51
+ if (settled.result.done) ended = true;
52
+ return settled.result;
53
+ },
54
+ return: async () => {
55
+ ended = true;
56
+ clearTimeout(timer);
57
+ wake?.();
58
+ await source.return?.();
59
+ return { value: void 0, done: true };
60
+ }
61
+ };
62
+ }
63
+ };
64
+ }
65
+ export {
66
+ DEFAULT_STREAM_HEARTBEAT_MS,
67
+ KEEP_ALIVE_COMMENT,
68
+ streamHeartbeatMs,
69
+ withKeepAlive
70
+ };
@@ -116,8 +116,8 @@ var TransportService = class {
116
116
  sessionCheckTimeoutMs;
117
117
  /** Session-store reads of the per-request check that have not settled yet, by read and session. */
118
118
  pendingSessionChecks = /* @__PURE__ */ new Map();
119
- /** Sessions whose handover read timed out and has not settled yet. */
120
- silentHandoverReads = /* @__PURE__ */ new Set();
119
+ /** For each session, the handover reads that timed out and have not settled yet. */
120
+ silentHandoverReads = /* @__PURE__ */ new Map();
121
121
  /**
122
122
  * Redis key prefix under which session records are stored.
123
123
  * The session store appends `session:` to the transport key prefix.
@@ -512,11 +512,13 @@ var TransportService = class {
512
512
  return this.raceSessionCheckTimeout(read).then(
513
513
  (stored) => !stored,
514
514
  () => {
515
- this.silentHandoverReads.add(sessionId);
516
- read.then(
517
- () => this.silentHandoverReads.delete(sessionId),
518
- () => this.silentHandoverReads.delete(sessionId)
519
- );
515
+ this.silentHandoverReads.set(sessionId, (this.silentHandoverReads.get(sessionId) ?? 0) + 1);
516
+ const settled = () => {
517
+ const outstanding = (this.silentHandoverReads.get(sessionId) ?? 1) - 1;
518
+ if (outstanding > 0) this.silentHandoverReads.set(sessionId, outstanding);
519
+ else this.silentHandoverReads.delete(sessionId);
520
+ };
521
+ read.then(settled, settled);
520
522
  return false;
521
523
  }
522
524
  );
@@ -5,6 +5,7 @@ import { composeCallerInstructions } from "../skill/skill-instructions.helper.mj
5
5
  import { mcpTransportBodyLimit } from "./body-limit.mjs";
6
6
  import { buildScopedServerOptions } from "./build-scoped-server-options.mjs";
7
7
  import { createMcpServer } from "./mcp-server.factory.mjs";
8
+ import { streamHeartbeatMs } from "./stream-keep-alive.mjs";
8
9
  var STATELESS_METHODS = ["POST", "DELETE"];
9
10
  async function wireServer(scope, serverOptions, sessionId, sessionIdGenerator, enableJsonResponse) {
10
11
  const { createMcpHandlers, registerMcpHandler } = await import("./mcp-handlers/index.mjs");
@@ -22,7 +23,8 @@ async function wireServer(scope, serverOptions, sessionId, sessionIdGenerator, e
22
23
  const transport = new WebStandardStreamableHTTPServerTransport({
23
24
  sessionIdGenerator,
24
25
  enableJsonResponse,
25
- maxRequestBodySize: mcpTransportBodyLimit(scope.metadata.http?.bodyLimit)
26
+ maxRequestBodySize: mcpTransportBodyLimit(scope.metadata.http?.bodyLimit),
27
+ keepAliveMs: streamHeartbeatMs(scope.metadata.transport)
26
28
  });
27
29
  await mcpServer.connect(transport);
28
30
  return { mcpServer, transport };
@@ -3,7 +3,8 @@ import { type HttpRouteType } from '../interfaces/http-route.interface';
3
3
  import { type HttpRouteMetadata } from '../metadata/http-route.metadata';
4
4
  /**
5
5
  * Marks a class as an HTTP route of its app, served beside the MCP endpoint through the hookable `http:route` flow:
6
- * the IP filter, a same-origin check on mutations, people auth, then `handle()`. List it in `@App({ routes })`.
6
+ * the IP filter, a same-origin check on mutations, people or bearer auth, the route's `authorities`, then `handle()`.
7
+ * List it in `@App({ routes })`.
7
8
  */
8
9
  export declare function HttpRoute(metadata: HttpRouteMetadata): (target: HttpRouteType) => void;
9
10
  //# sourceMappingURL=http-route.decorator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"http-route.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/http-route.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAK1B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAIL,KAAK,iBAAiB,EAEvB,MAAM,iCAAiC,CAAC;AAkCzC;;;GAGG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,iBAAiB,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAYtF"}
1
+ {"version":3,"file":"http-route.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/http-route.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAM1B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAIL,KAAK,iBAAiB,EAEvB,MAAM,iCAAiC,CAAC;AA6CzC;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,iBAAiB,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAYtF"}
@@ -17,7 +17,8 @@ export interface HttpRouteCtorArgs extends ExecutionContextBaseArgs {
17
17
  /** An `@HttpRoute` class: listed in `@App({ routes })`. */
18
18
  export type HttpRouteType = abstract new (args: HttpRouteCtorArgs) => HttpRouteInterface;
19
19
  /**
20
- * The base of an `@HttpRoute` class. `this.get()` resolves the providers of the route's app, the ones its tools get.
20
+ * The base of an `@HttpRoute` class. `this.get()` resolves the providers of the route's app, the ones its tools get. On
21
+ * an `auth: 'bearer'` route, `this.auth` is the caller the server's auth verified, as in a tool.
21
22
  *
22
23
  * @example
23
24
  * ```typescript
@@ -27,6 +28,13 @@ export type HttpRouteType = abstract new (args: HttpRouteCtorArgs) => HttpRouteI
27
28
  * return this.get(BoardService).find(this.params['id']);
28
29
  * }
29
30
  * }
31
+ *
32
+ * @HttpRoute({ method: 'GET', path: '/projects/:projectId', auth: 'bearer', authorities: 'projectMember' })
33
+ * export class ProjectApi extends HttpRouteContext {
34
+ * async handle() {
35
+ * return this.get(Projects).find(this.params['projectId'], this.auth.user.sub);
36
+ * }
37
+ * }
30
38
  * ```
31
39
  */
32
40
  export declare abstract class HttpRouteContext extends ExecutionContextBase<HttpRouteResult> implements HttpRouteInterface {
@@ -1 +1 @@
1
- {"version":3,"file":"http-route.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/http-route.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,KAAK,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACpG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,OAAO,EAAE,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAEpH,MAAM,WAAW,kBAAkB;IACjC,MAAM,IAAI,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AAC,CAAC;CACtD;AAED,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;IACjE,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,2DAA2D;AAC3D,MAAM,MAAM,aAAa,GAAG,QAAQ,MAAM,IAAI,EAAE,iBAAiB,KAAK,kBAAkB,CAAC;AAEzF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,8BAAsB,gBAAiB,SAAQ,oBAAoB,CAAC,eAAe,CAAE,YAAW,kBAAkB;IAChH,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,yGAAyG;IACzG,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;gBAEpB,IAAI,EAAE,iBAAiB;IAMnC,iEAAiE;IACjE,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEnC;IAED,QAAQ,CAAC,MAAM,IAAI,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;CAC9D"}
@@ -198,6 +198,10 @@ export declare const frontMcpLocalAppMetadataSchema: import("@frontmcp/lazy-zod"
198
198
  expectedAudience: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodUnion<readonly [import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodString>]>>;
199
199
  requireAudience: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
200
200
  audienceFromRequestHost: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
201
+ resourceMetadata: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodObject<{
202
+ clientId: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodUnion<readonly [import("@frontmcp/lazy-zod").ZodLiteral<true>, import("@frontmcp/lazy-zod").ZodString]>>;
203
+ audience: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodUnion<readonly [import("@frontmcp/lazy-zod").ZodLiteral<true>, import("@frontmcp/lazy-zod").ZodString]>>;
204
+ }, import("zod/v4/core").$strip>>;
201
205
  requiredScopes: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodString>>;
202
206
  allowAnonymous: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
203
207
  anonymousScopes: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodString>>;
@@ -1070,6 +1074,10 @@ export declare const frontMcpRemoteAppMetadataSchema: import("@frontmcp/lazy-zod
1070
1074
  expectedAudience: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodUnion<readonly [import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodString>]>>;
1071
1075
  requireAudience: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
1072
1076
  audienceFromRequestHost: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
1077
+ resourceMetadata: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodObject<{
1078
+ clientId: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodUnion<readonly [import("@frontmcp/lazy-zod").ZodLiteral<true>, import("@frontmcp/lazy-zod").ZodString]>>;
1079
+ audience: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodUnion<readonly [import("@frontmcp/lazy-zod").ZodLiteral<true>, import("@frontmcp/lazy-zod").ZodString]>>;
1080
+ }, import("zod/v4/core").$strip>>;
1073
1081
  requiredScopes: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodString>>;
1074
1082
  allowAnonymous: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
1075
1083
  anonymousScopes: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"app.metadata.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/app.metadata.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,CAAC,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,aAAa,EACb,OAAO,EACP,UAAU,EACV,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,YAAY,EACb,MAAM,eAAe,CAAC;AAgBvB,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,UAAU,CAAC;AACnE,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAG5D;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,WAAW,CAAC,E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AS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,GAAG,iBAAiB,CAAC;IACzC;;;OAGG;IACH,UAAU,CAAC,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvD,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,iGAAiG;IACjG,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,GAAG,iBAAiB,CAAC;IACzC,2FAA2F;IAC3F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B"}
1
+ {"version":3,"file":"app.metadata.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/app.metadata.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,CAAC,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,aAAa,EACb,OAAO,EACP,UAAU,EACV,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,YAAY,EACb,MAAM,eAAe,CAAC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