@frontmcp/sdk 1.13.0 → 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.
- package/auth/auth-ui/auth-ui.render.d.ts +5 -2
- package/auth/auth-ui/auth-ui.render.d.ts.map +1 -1
- package/auth/auth-ui/index.d.ts +1 -1
- package/auth/auth-ui/index.d.ts.map +1 -1
- package/auth/flows/oauth.authorize.flow.d.ts +1 -0
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
- package/auth/flows/oauth.callback.flow.d.ts.map +1 -1
- package/auth/flows/oauth.register.flow.d.ts +18 -1
- package/auth/flows/oauth.register.flow.d.ts.map +1 -1
- package/auth/flows/well-known.prm.flow.d.ts +4 -0
- package/auth/flows/well-known.prm.flow.d.ts.map +1 -1
- package/auth/instances/instance.local-primary-auth.d.ts +4 -3
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/auth/instances/instance.remote-primary-auth.d.ts.map +1 -1
- package/browser/auth/auth-ui/auth-ui.render.mjs +9 -8
- package/browser/auth/auth-ui/index.mjs +4 -2
- package/browser/auth/federated-steps.mjs +1 -1
- package/browser/auth/flows/oauth.authorize.flow.mjs +15 -8
- package/browser/auth/flows/oauth.callback.flow.mjs +10 -3
- package/browser/auth/flows/oauth.connect.flow.mjs +1 -1
- package/browser/auth/flows/oauth.provider-callback.flow.mjs +1 -1
- package/browser/auth/flows/oauth.register.flow.mjs +5 -1
- package/browser/auth/flows/well-known.prm.flow.mjs +22 -3
- package/browser/auth/instances/instance.local-primary-auth.mjs +20 -9
- package/browser/auth/instances/instance.remote-primary-auth.mjs +5 -0
- package/browser/common/decorators/http-route.decorator.mjs +9 -1
- package/browser/common/index.mjs +1 -1
- package/browser/common/metadata/index.mjs +1 -1
- package/browser/common/metadata/materialized.metadata.mjs +13 -0
- package/browser/common/metadata/resource.metadata.mjs +6 -5
- package/browser/common/tokens/resource.tokens.mjs +1 -0
- package/browser/common/types/options/http/schema.mjs +17 -1
- package/browser/common/types/options/transport/schema.mjs +11 -1
- package/browser/direct/direct-server.mjs +15 -11
- package/browser/elicitation/questions/ask-question.mjs +10 -7
- package/browser/errors/index.mjs +3 -1
- package/browser/errors/mcp.error.mjs +7 -0
- package/browser/errors/transport.errors.mjs +7 -1
- package/browser/event/event-scope.helper.mjs +4 -2
- package/browser/event/event-subscription-info.mjs +55 -0
- package/browser/event/event.registry.mjs +18 -0
- package/browser/event/flows/event-ended.flow.mjs +89 -0
- package/browser/event/flows/event-unsubscribe.flow.mjs +7 -1
- package/browser/event/poll/event-poll-leases.mjs +11 -0
- package/browser/event/stream/event-stream.mjs +4 -0
- package/browser/event/stream/event-streams.mjs +13 -0
- package/browser/event/subscription/event-subscription-termination.mjs +1 -0
- package/browser/event/subscription/event-subscriptions.mjs +18 -2
- package/browser/front-mcp/front-mcp.mjs +13 -0
- package/browser/http-route/flows/http.route.flow.mjs +71 -8
- package/browser/http-route/http-route.table.mjs +61 -15
- package/browser/http-route/people-session-store.mjs +47 -0
- package/browser/http-route/people-sign-in.routes.mjs +3 -2
- package/browser/http-route/sse-route.stream.mjs +19 -8
- package/browser/index.cjs +3074 -2024
- package/browser/index.mjs +24 -3
- package/browser/notification/notification.service.mjs +8 -1
- package/browser/resource/materialized/materialized-resource.context.mjs +3 -1
- package/browser/resource/materialized/materialized-resources.mjs +53 -27
- package/browser/resource/materialized/resource-store.mjs +269 -17
- package/browser/resource/resource.registry.mjs +31 -0
- package/browser/scope/http-scope.helper.mjs +2 -1
- package/browser/scope/scope.instance.mjs +9 -4
- package/browser/server/security/host-validation.mjs +4 -1
- package/browser/server/server.instance.mjs +22 -4
- package/browser/subsystems.mjs +21 -2
- package/browser/tool/flows/call-tool.flow.mjs +3 -3
- package/browser/tool/undeclared-arguments-message.mjs +10 -8
- package/browser/tool/undeclared-arguments.mjs +33 -0
- package/browser/transport/adapters/transport.sse.adapter.mjs +5 -2
- package/browser/transport/adapters/transport.streamable-http.adapter.mjs +3 -1
- package/browser/transport/bus/redis-transport-bus.mjs +27 -4
- package/browser/transport/flows/handle.mcp-20260728.flow.mjs +7 -2
- package/browser/transport/mcp-20260728/subscriptions.mjs +24 -4
- package/browser/transport/stream-keep-alive.mjs +70 -0
- package/browser/transport/transport.registry.mjs +27 -0
- package/browser/transport/web-standard-mcp.mjs +3 -1
- package/common/decorators/http-route.decorator.d.ts +2 -1
- package/common/decorators/http-route.decorator.d.ts.map +1 -1
- package/common/interfaces/http-route.interface.d.ts +9 -1
- package/common/interfaces/http-route.interface.d.ts.map +1 -1
- package/common/metadata/app.metadata.d.ts +8 -0
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +197 -0
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/http-route.metadata.d.ts +11 -3
- package/common/metadata/http-route.metadata.d.ts.map +1 -1
- package/common/metadata/materialized.metadata.d.ts +21 -0
- package/common/metadata/materialized.metadata.d.ts.map +1 -1
- package/common/metadata/resource.metadata.d.ts +8 -1
- package/common/metadata/resource.metadata.d.ts.map +1 -1
- package/common/tokens/resource.tokens.d.ts +1 -0
- package/common/tokens/resource.tokens.d.ts.map +1 -1
- package/common/types/options/auth/index.d.ts +1 -1
- package/common/types/options/auth/index.d.ts.map +1 -1
- package/common/types/options/http/index.d.ts +1 -1
- package/common/types/options/http/index.d.ts.map +1 -1
- package/common/types/options/http/interfaces.d.ts +41 -1
- package/common/types/options/http/interfaces.d.ts.map +1 -1
- package/common/types/options/http/schema.d.ts +12 -0
- package/common/types/options/http/schema.d.ts.map +1 -1
- package/common/types/options/transport/index.d.ts +1 -1
- package/common/types/options/transport/index.d.ts.map +1 -1
- package/common/types/options/transport/interfaces.d.ts +24 -0
- package/common/types/options/transport/interfaces.d.ts.map +1 -1
- package/common/types/options/transport/schema.d.ts +3 -0
- package/common/types/options/transport/schema.d.ts.map +1 -1
- package/direct/direct-server.d.ts +4 -2
- package/direct/direct-server.d.ts.map +1 -1
- package/direct/direct.types.d.ts +7 -0
- package/direct/direct.types.d.ts.map +1 -1
- package/elicitation/helpers/elicit.helper.d.ts +2 -5
- package/elicitation/helpers/elicit.helper.d.ts.map +1 -1
- package/elicitation/questions/ask-question.d.ts +3 -1
- package/elicitation/questions/ask-question.d.ts.map +1 -1
- package/elicitation/questions/question-scope.helper.d.ts +2 -0
- package/elicitation/questions/question-scope.helper.d.ts.map +1 -1
- package/errors/index.d.ts +1 -1
- package/errors/index.d.ts.map +1 -1
- package/errors/mcp.error.d.ts +4 -0
- package/errors/mcp.error.d.ts.map +1 -1
- package/errors/transport.errors.d.ts +4 -0
- package/errors/transport.errors.d.ts.map +1 -1
- package/esm/index.mjs +42 -42
- package/event/event-scope.helper.d.ts.map +1 -1
- package/event/event-subscription-info.d.ts +72 -0
- package/event/event-subscription-info.d.ts.map +1 -0
- package/event/event.registry.d.ts +7 -0
- package/event/event.registry.d.ts.map +1 -1
- package/event/flows/event-ended.flow.d.ts +56 -0
- package/event/flows/event-ended.flow.d.ts.map +1 -0
- package/event/flows/event-unsubscribe.flow.d.ts +4 -1
- package/event/flows/event-unsubscribe.flow.d.ts.map +1 -1
- package/event/index.d.ts +3 -1
- package/event/index.d.ts.map +1 -1
- package/event/poll/event-poll-leases.d.ts +3 -0
- package/event/poll/event-poll-leases.d.ts.map +1 -1
- package/event/stream/event-stream.d.ts +2 -0
- package/event/stream/event-stream.d.ts.map +1 -1
- package/event/stream/event-streams.d.ts +3 -0
- package/event/stream/event-streams.d.ts.map +1 -1
- package/event/subscription/event-subscription-termination.d.ts +4 -1
- package/event/subscription/event-subscription-termination.d.ts.map +1 -1
- package/event/subscription/event-subscriptions.d.ts +19 -1
- package/event/subscription/event-subscriptions.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/http-route/flows/http.route.flow.d.ts +12 -4
- package/http-route/flows/http.route.flow.d.ts.map +1 -1
- package/http-route/http-route.table.d.ts +10 -3
- package/http-route/http-route.table.d.ts.map +1 -1
- package/http-route/people-session-store.d.ts +24 -0
- package/http-route/people-session-store.d.ts.map +1 -0
- package/http-route/people-sign-in.routes.d.ts +2 -2
- package/http-route/people-sign-in.routes.d.ts.map +1 -1
- package/http-route/sse-route.stream.d.ts +6 -1
- package/http-route/sse-route.stream.d.ts.map +1 -1
- package/index.d.ts +16 -8
- package/index.d.ts.map +1 -1
- package/index.js +43 -43
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +10 -10
- package/resource/materialized/index.d.ts +1 -1
- package/resource/materialized/index.d.ts.map +1 -1
- package/resource/materialized/materialized-resource.context.d.ts +1 -0
- package/resource/materialized/materialized-resource.context.d.ts.map +1 -1
- package/resource/materialized/materialized-resources.d.ts +11 -5
- package/resource/materialized/materialized-resources.d.ts.map +1 -1
- package/resource/materialized/resource-store.d.ts +31 -1
- package/resource/materialized/resource-store.d.ts.map +1 -1
- package/resource/resource.registry.d.ts +11 -0
- package/resource/resource.registry.d.ts.map +1 -1
- package/scope/http-scope.helper.d.ts +1 -1
- package/scope/http-scope.helper.d.ts.map +1 -1
- package/scope/scope.instance.d.ts.map +1 -1
- package/server/adapters/polyfills/browser-express-host.d.ts +3 -0
- package/server/adapters/polyfills/browser-express-host.d.ts.map +1 -1
- package/server/adapters/polyfills/node-express-host.d.ts +1 -0
- package/server/adapters/polyfills/node-express-host.d.ts.map +1 -1
- package/server/adapters/user-content.listener.d.ts +26 -0
- package/server/adapters/user-content.listener.d.ts.map +1 -0
- package/server/security/host-validation.d.ts.map +1 -1
- package/server/server.instance.d.ts +1 -0
- package/server/server.instance.d.ts.map +1 -1
- package/subsystems.d.ts +1 -1
- package/subsystems.d.ts.map +1 -1
- package/tool/undeclared-arguments-message.d.ts +8 -5
- package/tool/undeclared-arguments-message.d.ts.map +1 -1
- package/tool/undeclared-arguments.d.ts +2 -0
- package/tool/undeclared-arguments.d.ts.map +1 -1
- package/transport/adapters/base-sse-transport.d.ts +4 -0
- package/transport/adapters/base-sse-transport.d.ts.map +1 -1
- package/transport/adapters/polyfills/browser-sse-transport.d.ts +1 -0
- package/transport/adapters/polyfills/browser-sse-transport.d.ts.map +1 -1
- package/transport/adapters/streamable-http-transport.d.ts +2 -0
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -1
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
- package/transport/bus/redis-transport-bus.d.ts +3 -3
- package/transport/bus/redis-transport-bus.d.ts.map +1 -1
- package/transport/flows/handle.mcp-20260728.flow.d.ts.map +1 -1
- package/transport/mcp-20260728/subscriptions.d.ts +2 -0
- package/transport/mcp-20260728/subscriptions.d.ts.map +1 -1
- package/transport/stream-keep-alive.d.ts +13 -0
- package/transport/stream-keep-alive.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +5 -0
- package/transport/transport.registry.d.ts.map +1 -1
- package/transport/transport.types.d.ts +1 -1
- package/transport/transport.types.d.ts.map +1 -1
- 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) {
|
|
@@ -4,6 +4,8 @@ import { isRelayedRequest, serializeRelayRequest } from "../relay/relay-http.mjs
|
|
|
4
4
|
var DEFAULT_BUS_PREFIX = "mcp:bus:";
|
|
5
5
|
var DEFAULT_BUS_TTL_SECONDS = 3600;
|
|
6
6
|
var DEFAULT_RETRY_AFTER_SECONDS = 30;
|
|
7
|
+
var RELEASE_TIMEOUT_MS = 5e3;
|
|
8
|
+
var RELEASE_POLL_MS = 25;
|
|
7
9
|
var ADVERTISE_LUA = `
|
|
8
10
|
redis.call('HSET', KEYS[1], 'nodeId', ARGV[1], 'channel', ARGV[2], 'type', ARGV[3], 'tokenHash', ARGV[4])
|
|
9
11
|
redis.call('EXPIRE', KEYS[1], ARGV[5])
|
|
@@ -121,9 +123,7 @@ var RedisTransportBus = class {
|
|
|
121
123
|
}
|
|
122
124
|
await this.relay.forward(location.nodeId, sessionId, serializeRelayRequest(request), response);
|
|
123
125
|
}
|
|
124
|
-
/**
|
|
125
|
-
* Destroy a session on a remote node via pub/sub relay.
|
|
126
|
-
*/
|
|
126
|
+
/** Destroy a session on the node that owns it, and wait (bounded) until that node has released it. */
|
|
127
127
|
async destroyRemote(key, reason) {
|
|
128
128
|
const entry = await this.readEntry(key.sessionId);
|
|
129
129
|
if (!entry || entry.nodeId === this.machineId) return;
|
|
@@ -134,11 +134,34 @@ var RedisTransportBus = class {
|
|
|
134
134
|
sourceNodeId: this.machineId,
|
|
135
135
|
timestamp: Date.now()
|
|
136
136
|
});
|
|
137
|
-
await this.redis.publish(entry.channel, message);
|
|
137
|
+
const receivers = await this.redis.publish(entry.channel, message);
|
|
138
138
|
this.logger?.info("[TransportBus] Sent destroy-remote", {
|
|
139
139
|
sessionId: key.sessionId.slice(0, 20),
|
|
140
140
|
targetNodeId: entry.nodeId
|
|
141
141
|
});
|
|
142
|
+
if (receivers > 0) await this.untilReleased(key.sessionId, entry.nodeId);
|
|
143
|
+
}
|
|
144
|
+
/** The owner revokes a session's entry only after it closed the session's transport, which ends its calls. */
|
|
145
|
+
async untilReleased(sessionId, ownerNodeId) {
|
|
146
|
+
let polling = true;
|
|
147
|
+
let timer;
|
|
148
|
+
const released = (async () => {
|
|
149
|
+
while (polling) {
|
|
150
|
+
await new Promise((resolve) => setTimeout(resolve, RELEASE_POLL_MS));
|
|
151
|
+
if ((await this.readEntry(sessionId))?.nodeId !== ownerNodeId) return true;
|
|
152
|
+
}
|
|
153
|
+
return false;
|
|
154
|
+
})();
|
|
155
|
+
const timedOut = new Promise((resolve) => timer = setTimeout(() => resolve(false), RELEASE_TIMEOUT_MS));
|
|
156
|
+
const releasedInTime = await Promise.race([released, timedOut]).finally(() => {
|
|
157
|
+
polling = false;
|
|
158
|
+
clearTimeout(timer);
|
|
159
|
+
});
|
|
160
|
+
if (releasedInTime) return;
|
|
161
|
+
this.logger?.warn("[TransportBus] The session owner did not release the session in time", {
|
|
162
|
+
sessionId: sessionId.slice(0, 20),
|
|
163
|
+
ownerNodeId
|
|
164
|
+
});
|
|
142
165
|
}
|
|
143
166
|
async readEntry(sessionId) {
|
|
144
167
|
const fields = await this.redis.hgetall(this.busKey(sessionId));
|
|
@@ -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:
|
|
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
|
-
},
|
|
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
|
-
|
|
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,6 +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
|
+
/** For each session, the handover reads that timed out and have not settled yet. */
|
|
120
|
+
silentHandoverReads = /* @__PURE__ */ new Map();
|
|
119
121
|
/**
|
|
120
122
|
* Redis key prefix under which session records are stored.
|
|
121
123
|
* The session store appends `session:` to the transport key prefix.
|
|
@@ -500,6 +502,28 @@ var TransportService = class {
|
|
|
500
502
|
await this.destroyLocalSession(sessionId, "the session was deleted");
|
|
501
503
|
return false;
|
|
502
504
|
}
|
|
505
|
+
/** A check, outside distributed mode, of whether a session held here was deleted through another instance. */
|
|
506
|
+
sessionEndCheck(sessionId) {
|
|
507
|
+
const store = this.sessionStore;
|
|
508
|
+
if (this.distributed || !store || !this.storedLocalSessions.has(sessionId)) return void 0;
|
|
509
|
+
return () => {
|
|
510
|
+
if (this.silentHandoverReads.has(sessionId)) return Promise.resolve(false);
|
|
511
|
+
const read = store.exists(sessionId);
|
|
512
|
+
return this.raceSessionCheckTimeout(read).then(
|
|
513
|
+
(stored) => !stored,
|
|
514
|
+
() => {
|
|
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);
|
|
522
|
+
return false;
|
|
523
|
+
}
|
|
524
|
+
);
|
|
525
|
+
};
|
|
526
|
+
}
|
|
503
527
|
/**
|
|
504
528
|
* Bound a session-store read made while serving a session held in memory. A store that accepts the
|
|
505
529
|
* connection but never answers (a paused Redis, a partition that does not reset TCP) would otherwise
|
|
@@ -515,6 +539,9 @@ var TransportService = class {
|
|
|
515
539
|
read = issueRead().finally(() => this.pendingSessionChecks.delete(key));
|
|
516
540
|
this.pendingSessionChecks.set(key, read);
|
|
517
541
|
}
|
|
542
|
+
return this.raceSessionCheckTimeout(read);
|
|
543
|
+
}
|
|
544
|
+
raceSessionCheckTimeout(read) {
|
|
518
545
|
const timeoutMs = this.sessionCheckTimeoutMs;
|
|
519
546
|
let timer;
|
|
520
547
|
const timedOut = new Promise((_resolve, reject) => {
|
|
@@ -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()`.
|
|
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;
|
|
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,KA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AAM,IAAI,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,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,iBAA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