fastmcp 4.15.1 → 4.15.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/dist/FastMCP.cjs +2 -2
- package/dist/FastMCP.d.cts +8 -0
- package/dist/FastMCP.d.ts +8 -0
- package/dist/FastMCP.js +1 -1
- package/dist/{chunk-JI5H5LIK.js → chunk-4VIPI4GU.js} +16 -10
- package/dist/chunk-4VIPI4GU.js.map +1 -0
- package/dist/{chunk-MD6EC4EY.cjs → chunk-N6ZZF5YB.cjs} +56 -50
- package/dist/chunk-N6ZZF5YB.cjs.map +1 -0
- package/dist/examples/custom-routes.cjs +2 -2
- package/dist/examples/custom-routes.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-JI5H5LIK.js.map +0 -1
- package/dist/chunk-MD6EC4EY.cjs.map +0 -1
|
@@ -464,8 +464,20 @@ var FastMCPSession = class extends FastMCPSessionEventEmitter {
|
|
|
464
464
|
get server() {
|
|
465
465
|
return this.#server;
|
|
466
466
|
}
|
|
467
|
+
/**
|
|
468
|
+
* The HTTP session ID, or `undefined` for transports that do not have one.
|
|
469
|
+
*
|
|
470
|
+
* Resolved from the transport on every read rather than captured when the
|
|
471
|
+
* session connects: `StreamableHTTPServerTransport` assigns its `sessionId`
|
|
472
|
+
* while it handles `initialize`, which happens after `connect()` resolves.
|
|
473
|
+
* A value read at connect time is therefore still `undefined`.
|
|
474
|
+
*/
|
|
467
475
|
get sessionId() {
|
|
468
|
-
|
|
476
|
+
if (this.#sessionId !== void 0) {
|
|
477
|
+
return this.#sessionId;
|
|
478
|
+
}
|
|
479
|
+
const transport = this.#server.transport;
|
|
480
|
+
return typeof _optionalChain([transport, 'optionalAccess', _9 => _9.sessionId]) === "string" ? transport.sessionId : void 0;
|
|
469
481
|
}
|
|
470
482
|
set sessionId(value) {
|
|
471
483
|
this.#sessionId = value;
|
|
@@ -604,12 +616,6 @@ var FastMCPSession = class extends FastMCPSessionEventEmitter {
|
|
|
604
616
|
this.#connectionState = "connecting";
|
|
605
617
|
try {
|
|
606
618
|
await this.#server.connect(transport);
|
|
607
|
-
if ("sessionId" in transport) {
|
|
608
|
-
const transportWithSessionId = transport;
|
|
609
|
-
if (typeof transportWithSessionId.sessionId === "string") {
|
|
610
|
-
this.#sessionId = transportWithSessionId.sessionId;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
619
|
if (!this.#stateless) {
|
|
614
620
|
let attempt = 0;
|
|
615
621
|
const maxAttempts = 10;
|
|
@@ -628,10 +634,10 @@ var FastMCPSession = class extends FastMCPSessionEventEmitter {
|
|
|
628
634
|
);
|
|
629
635
|
}
|
|
630
636
|
}
|
|
631
|
-
if (_optionalChain([this, 'access',
|
|
637
|
+
if (_optionalChain([this, 'access', _10 => _10.#rootsConfig, 'optionalAccess', _11 => _11.enabled]) !== false && _optionalChain([this, 'access', _12 => _12.#clientCapabilities, 'optionalAccess', _13 => _13.roots, 'optionalAccess', _14 => _14.listChanged]) && typeof this.#server.listRoots === "function") {
|
|
632
638
|
try {
|
|
633
639
|
const roots = await this.#server.listRoots();
|
|
634
|
-
this.#roots = _optionalChain([roots, 'optionalAccess',
|
|
640
|
+
this.#roots = _optionalChain([roots, 'optionalAccess', _15 => _15.roots]) || [];
|
|
635
641
|
} catch (e) {
|
|
636
642
|
if (e instanceof _typesjs.McpError && e.code === _typesjs.ErrorCode.MethodNotFound) {
|
|
637
643
|
this.#logger.debug(
|
|
@@ -804,9 +810,9 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
804
810
|
},
|
|
805
811
|
elicit: (params, options) => this.#server.elicitInput(params, options),
|
|
806
812
|
log: this.#createLog(),
|
|
807
|
-
requestId: typeof _optionalChain([meta, 'optionalAccess',
|
|
813
|
+
requestId: typeof _optionalChain([meta, 'optionalAccess', _16 => _16.requestId]) === "string" ? meta.requestId : void 0,
|
|
808
814
|
session: this.#auth,
|
|
809
|
-
sessionId: this
|
|
815
|
+
sessionId: this.sessionId
|
|
810
816
|
};
|
|
811
817
|
}
|
|
812
818
|
#createLog() {
|
|
@@ -850,8 +856,8 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
850
856
|
};
|
|
851
857
|
}
|
|
852
858
|
#formatSchemaIssues(issues) {
|
|
853
|
-
return _optionalChain([this, 'access',
|
|
854
|
-
const path = _optionalChain([issue, 'access',
|
|
859
|
+
return _optionalChain([this, 'access', _17 => _17.#utils, 'optionalAccess', _18 => _18.formatInvalidParamsErrorMessage]) ? this.#utils.formatInvalidParamsErrorMessage(issues) : issues.map((issue) => {
|
|
860
|
+
const path = _optionalChain([issue, 'access', _19 => _19.path, 'optionalAccess', _20 => _20.join, 'call', _21 => _21(".")]) || "root";
|
|
855
861
|
return `${path}: ${issue.message}`;
|
|
856
862
|
}).join(", ");
|
|
857
863
|
}
|
|
@@ -882,7 +888,7 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
882
888
|
*/
|
|
883
889
|
#startStreamKeepalive(extra, toolName) {
|
|
884
890
|
const config = this.#streamKeepaliveConfig;
|
|
885
|
-
if (!_optionalChain([config, 'optionalAccess',
|
|
891
|
+
if (!_optionalChain([config, 'optionalAccess', _22 => _22.enabled])) {
|
|
886
892
|
return () => {
|
|
887
893
|
};
|
|
888
894
|
}
|
|
@@ -902,9 +908,9 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
902
908
|
);
|
|
903
909
|
});
|
|
904
910
|
}, intervalMs);
|
|
905
|
-
_optionalChain([timer, 'access',
|
|
911
|
+
_optionalChain([timer, 'access', _23 => _23.unref, 'optionalCall', _24 => _24()]);
|
|
906
912
|
const stop = () => clearInterval(timer);
|
|
907
|
-
_optionalChain([extra, 'access',
|
|
913
|
+
_optionalChain([extra, 'access', _25 => _25.signal, 'optionalAccess', _26 => _26.addEventListener, 'call', _27 => _27("abort", stop, { once: true })]);
|
|
908
914
|
return stop;
|
|
909
915
|
}
|
|
910
916
|
async #validateStructuredContent(tool, value, toolName) {
|
|
@@ -1105,7 +1111,7 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
1105
1111
|
result = await prompt.load(
|
|
1106
1112
|
args,
|
|
1107
1113
|
this.#auth,
|
|
1108
|
-
this.#createLoadContext(_optionalChain([request, 'access',
|
|
1114
|
+
this.#createLoadContext(_optionalChain([request, 'access', _28 => _28.params, 'optionalAccess', _29 => _29._meta]))
|
|
1109
1115
|
);
|
|
1110
1116
|
} catch (error) {
|
|
1111
1117
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
@@ -1170,7 +1176,7 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
1170
1176
|
const result = await resourceTemplate.load(
|
|
1171
1177
|
match,
|
|
1172
1178
|
this.#auth,
|
|
1173
|
-
this.#createLoadContext(_optionalChain([request, 'access',
|
|
1179
|
+
this.#createLoadContext(_optionalChain([request, 'access', _30 => _30.params, 'optionalAccess', _31 => _31._meta]))
|
|
1174
1180
|
);
|
|
1175
1181
|
const resources = Array.isArray(result) ? result : [result];
|
|
1176
1182
|
return {
|
|
@@ -1195,7 +1201,7 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
1195
1201
|
try {
|
|
1196
1202
|
maybeArrayResult = await resource.load(
|
|
1197
1203
|
this.#auth,
|
|
1198
|
-
this.#createLoadContext(_optionalChain([request, 'access',
|
|
1204
|
+
this.#createLoadContext(_optionalChain([request, 'access', _32 => _32.params, 'optionalAccess', _33 => _33._meta]))
|
|
1199
1205
|
);
|
|
1200
1206
|
} catch (error) {
|
|
1201
1207
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
@@ -1258,7 +1264,7 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
1258
1264
|
);
|
|
1259
1265
|
}
|
|
1260
1266
|
setupRootsHandlers() {
|
|
1261
|
-
if (_optionalChain([this, 'access',
|
|
1267
|
+
if (_optionalChain([this, 'access', _34 => _34.#rootsConfig, 'optionalAccess', _35 => _35.enabled]) === false) {
|
|
1262
1268
|
this.#logger.debug(
|
|
1263
1269
|
"[FastMCP debug] roots capability explicitly disabled via config"
|
|
1264
1270
|
);
|
|
@@ -1352,7 +1358,7 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
1352
1358
|
}
|
|
1353
1359
|
args = parsed.value;
|
|
1354
1360
|
}
|
|
1355
|
-
const progressToken = _optionalChain([request, 'access',
|
|
1361
|
+
const progressToken = _optionalChain([request, 'access', _36 => _36.params, 'optionalAccess', _37 => _37._meta, 'optionalAccess', _38 => _38.progressToken]);
|
|
1356
1362
|
let result;
|
|
1357
1363
|
try {
|
|
1358
1364
|
const reportProgress = async (progress) => {
|
|
@@ -1412,9 +1418,9 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
1412
1418
|
elicit: (params, options) => this.#server.elicitInput(params, options),
|
|
1413
1419
|
log,
|
|
1414
1420
|
reportProgress,
|
|
1415
|
-
requestId: typeof _optionalChain([request, 'access',
|
|
1421
|
+
requestId: typeof _optionalChain([request, 'access', _39 => _39.params, 'optionalAccess', _40 => _40._meta, 'optionalAccess', _41 => _41.requestId]) === "string" ? request.params._meta.requestId : void 0,
|
|
1416
1422
|
session: this.#auth,
|
|
1417
|
-
sessionId: this
|
|
1423
|
+
sessionId: this.sessionId,
|
|
1418
1424
|
streamContent
|
|
1419
1425
|
})
|
|
1420
1426
|
);
|
|
@@ -1528,7 +1534,7 @@ function normalizePath(path) {
|
|
|
1528
1534
|
return path.startsWith("/") ? path : `/${path}`;
|
|
1529
1535
|
}
|
|
1530
1536
|
function parseBasicAuthHeader(authHeader) {
|
|
1531
|
-
const basicMatch = _optionalChain([authHeader, 'optionalAccess',
|
|
1537
|
+
const basicMatch = _optionalChain([authHeader, 'optionalAccess', _42 => _42.match, 'call', _43 => _43(/^Basic\s+(.+)$/)]);
|
|
1532
1538
|
if (!basicMatch) return null;
|
|
1533
1539
|
try {
|
|
1534
1540
|
const credentials = Buffer.from(basicMatch[1], "base64").toString("utf-8");
|
|
@@ -2013,7 +2019,7 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2013
2019
|
enableJsonResponse: httpConfig.enableJsonResponse,
|
|
2014
2020
|
eventStore: httpConfig.eventStore,
|
|
2015
2021
|
host: httpConfig.host,
|
|
2016
|
-
..._optionalChain([this, 'access',
|
|
2022
|
+
..._optionalChain([this, 'access', _44 => _44.#options, 'access', _45 => _45.oauth, 'optionalAccess', _46 => _46.enabled]) && _optionalChain([this, 'access', _47 => _47.#options, 'access', _48 => _48.oauth, 'access', _49 => _49.protectedResource, 'optionalAccess', _50 => _50.resource]) ? {
|
|
2017
2023
|
oauth: {
|
|
2018
2024
|
protectedResource: {
|
|
2019
2025
|
resource: this.#options.oauth.protectedResource.resource
|
|
@@ -2062,7 +2068,7 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2062
2068
|
enableJsonResponse: httpConfig.enableJsonResponse,
|
|
2063
2069
|
eventStore: httpConfig.eventStore,
|
|
2064
2070
|
host: httpConfig.host,
|
|
2065
|
-
..._optionalChain([this, 'access',
|
|
2071
|
+
..._optionalChain([this, 'access', _51 => _51.#options, 'access', _52 => _52.oauth, 'optionalAccess', _53 => _53.enabled]) && _optionalChain([this, 'access', _54 => _54.#options, 'access', _55 => _55.oauth, 'access', _56 => _56.protectedResource, 'optionalAccess', _57 => _57.resource]) ? {
|
|
2066
2072
|
oauth: {
|
|
2067
2073
|
protectedResource: {
|
|
2068
2074
|
resource: this.#options.oauth.protectedResource.resource
|
|
@@ -2168,7 +2174,7 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2168
2174
|
*/
|
|
2169
2175
|
#createUnauthorizedResponse(message) {
|
|
2170
2176
|
const oauth = this.#options.oauth;
|
|
2171
|
-
const resource = _optionalChain([oauth, 'optionalAccess',
|
|
2177
|
+
const resource = _optionalChain([oauth, 'optionalAccess', _58 => _58.enabled]) ? _optionalChain([oauth, 'access', _59 => _59.protectedResource, 'optionalAccess', _60 => _60.resource]) : void 0;
|
|
2172
2178
|
const wwwAuthenticateParts = [
|
|
2173
2179
|
'error="invalid_token"',
|
|
2174
2180
|
`error_description="${message.replace(/"/g, '\\"')}"`
|
|
@@ -2280,7 +2286,7 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2280
2286
|
}
|
|
2281
2287
|
}
|
|
2282
2288
|
const oauthConfig = this.#options.oauth;
|
|
2283
|
-
if (_optionalChain([oauthConfig, 'optionalAccess',
|
|
2289
|
+
if (_optionalChain([oauthConfig, 'optionalAccess', _61 => _61.enabled]) && req.method === "GET") {
|
|
2284
2290
|
const url2 = new URL(req.url || "", `http://${host}`);
|
|
2285
2291
|
const authorizationServerMetadataPath = joinPaths(
|
|
2286
2292
|
"",
|
|
@@ -2314,8 +2320,8 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2314
2320
|
}
|
|
2315
2321
|
}
|
|
2316
2322
|
}
|
|
2317
|
-
const oauthProxy = _optionalChain([oauthConfig, 'optionalAccess',
|
|
2318
|
-
if (oauthProxy && _optionalChain([oauthConfig, 'optionalAccess',
|
|
2323
|
+
const oauthProxy = _optionalChain([oauthConfig, 'optionalAccess', _62 => _62.proxy]);
|
|
2324
|
+
if (oauthProxy && _optionalChain([oauthConfig, 'optionalAccess', _63 => _63.enabled])) {
|
|
2319
2325
|
const url2 = new URL(req.url || "", `http://${host}`);
|
|
2320
2326
|
const oauthPath = basePathRelativePath;
|
|
2321
2327
|
try {
|
|
@@ -2368,7 +2374,7 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2368
2374
|
const statusCode = error.statusCode || 400;
|
|
2369
2375
|
res.writeHead(statusCode, { "Content-Type": "application/json" }).end(
|
|
2370
2376
|
JSON.stringify(
|
|
2371
|
-
_optionalChain([error, 'access',
|
|
2377
|
+
_optionalChain([error, 'access', _64 => _64.toJSON, 'optionalCall', _65 => _65()]) || {
|
|
2372
2378
|
error: "invalid_request"
|
|
2373
2379
|
}
|
|
2374
2380
|
)
|
|
@@ -2395,7 +2401,7 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2395
2401
|
} catch (error) {
|
|
2396
2402
|
res.writeHead(400, { "Content-Type": "application/json" }).end(
|
|
2397
2403
|
JSON.stringify(
|
|
2398
|
-
_optionalChain([error, 'access',
|
|
2404
|
+
_optionalChain([error, 'access', _66 => _66.toJSON, 'optionalCall', _67 => _67()]) || {
|
|
2399
2405
|
error: "invalid_request"
|
|
2400
2406
|
}
|
|
2401
2407
|
)
|
|
@@ -2417,7 +2423,7 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2417
2423
|
} catch (error) {
|
|
2418
2424
|
res.writeHead(400, { "Content-Type": "application/json" }).end(
|
|
2419
2425
|
JSON.stringify(
|
|
2420
|
-
_optionalChain([error, 'access',
|
|
2426
|
+
_optionalChain([error, 'access', _68 => _68.toJSON, 'optionalCall', _69 => _69()]) || {
|
|
2421
2427
|
error: "server_error"
|
|
2422
2428
|
}
|
|
2423
2429
|
)
|
|
@@ -2486,7 +2492,7 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2486
2492
|
} catch (error) {
|
|
2487
2493
|
res.writeHead(400, { "Content-Type": "application/json" }).end(
|
|
2488
2494
|
JSON.stringify(
|
|
2489
|
-
_optionalChain([error, 'access',
|
|
2495
|
+
_optionalChain([error, 'access', _70 => _70.toJSON, 'optionalCall', _71 => _71()]) || {
|
|
2490
2496
|
error: "server_error"
|
|
2491
2497
|
}
|
|
2492
2498
|
)
|
|
@@ -2544,8 +2550,8 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2544
2550
|
const basicAuth = parseBasicAuthHeader(
|
|
2545
2551
|
req.headers.authorization
|
|
2546
2552
|
);
|
|
2547
|
-
const clientId = _optionalChain([basicAuth, 'optionalAccess',
|
|
2548
|
-
const clientSecret = _nullishCoalesce(_nullishCoalesce(_optionalChain([basicAuth, 'optionalAccess',
|
|
2553
|
+
const clientId = _optionalChain([basicAuth, 'optionalAccess', _72 => _72.clientId]) || params.get("client_id") || "";
|
|
2554
|
+
const clientSecret = _nullishCoalesce(_nullishCoalesce(_optionalChain([basicAuth, 'optionalAccess', _73 => _73.clientSecret]), () => ( params.get("client_secret"))), () => ( void 0));
|
|
2549
2555
|
let response;
|
|
2550
2556
|
if (grantType === "authorization_code") {
|
|
2551
2557
|
response = await oauthProxy.exchangeAuthorizationCode({
|
|
@@ -2575,7 +2581,7 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2575
2581
|
const statusCode = error.statusCode || 400;
|
|
2576
2582
|
res.writeHead(statusCode, { "Content-Type": "application/json" }).end(
|
|
2577
2583
|
JSON.stringify(
|
|
2578
|
-
_optionalChain([error, 'access',
|
|
2584
|
+
_optionalChain([error, 'access', _74 => _74.toJSON, 'optionalCall', _75 => _75()]) || {
|
|
2579
2585
|
error: "invalid_request"
|
|
2580
2586
|
}
|
|
2581
2587
|
)
|
|
@@ -2646,23 +2652,23 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2646
2652
|
const envBasePath = process.env.FASTMCP_BASE_PATH;
|
|
2647
2653
|
const envStateless = process.env.FASTMCP_STATELESS;
|
|
2648
2654
|
const envHost = process.env.FASTMCP_HOST;
|
|
2649
|
-
const transportType = _optionalChain([overrides, 'optionalAccess',
|
|
2655
|
+
const transportType = _optionalChain([overrides, 'optionalAccess', _76 => _76.transportType]) || (transportArg === "http-stream" ? "httpStream" : transportArg) || envTransport || "stdio";
|
|
2650
2656
|
if (transportType === "httpStream") {
|
|
2651
2657
|
const port = parseInt(
|
|
2652
|
-
_optionalChain([overrides, 'optionalAccess',
|
|
2658
|
+
_optionalChain([overrides, 'optionalAccess', _77 => _77.httpStream, 'optionalAccess', _78 => _78.port, 'optionalAccess', _79 => _79.toString, 'call', _80 => _80()]) || portArg || envPort || "8080"
|
|
2653
2659
|
);
|
|
2654
|
-
const host = _optionalChain([overrides, 'optionalAccess',
|
|
2655
|
-
const endpoint = _optionalChain([overrides, 'optionalAccess',
|
|
2660
|
+
const host = _optionalChain([overrides, 'optionalAccess', _81 => _81.httpStream, 'optionalAccess', _82 => _82.host]) || hostArg || envHost || "localhost";
|
|
2661
|
+
const endpoint = _optionalChain([overrides, 'optionalAccess', _83 => _83.httpStream, 'optionalAccess', _84 => _84.endpoint]) || endpointArg || envEndpoint || "/mcp";
|
|
2656
2662
|
const basePath = normalizeBasePath(
|
|
2657
|
-
_optionalChain([overrides, 'optionalAccess',
|
|
2663
|
+
_optionalChain([overrides, 'optionalAccess', _85 => _85.httpStream, 'optionalAccess', _86 => _86.basePath]) || basePathArg || envBasePath
|
|
2658
2664
|
);
|
|
2659
|
-
const enableJsonResponse = _optionalChain([overrides, 'optionalAccess',
|
|
2660
|
-
const stateless = _optionalChain([overrides, 'optionalAccess',
|
|
2661
|
-
const cors = _optionalChain([overrides, 'optionalAccess',
|
|
2662
|
-
const eventStore = _optionalChain([overrides, 'optionalAccess',
|
|
2663
|
-
const sslCa = _optionalChain([overrides, 'optionalAccess',
|
|
2664
|
-
const sslCert = _optionalChain([overrides, 'optionalAccess',
|
|
2665
|
-
const sslKey = _optionalChain([overrides, 'optionalAccess',
|
|
2665
|
+
const enableJsonResponse = _optionalChain([overrides, 'optionalAccess', _87 => _87.httpStream, 'optionalAccess', _88 => _88.enableJsonResponse]) || false;
|
|
2666
|
+
const stateless = _optionalChain([overrides, 'optionalAccess', _89 => _89.httpStream, 'optionalAccess', _90 => _90.stateless]) || statelessArg === "true" || envStateless === "true" || false;
|
|
2667
|
+
const cors = _optionalChain([overrides, 'optionalAccess', _91 => _91.httpStream, 'optionalAccess', _92 => _92.cors]);
|
|
2668
|
+
const eventStore = _optionalChain([overrides, 'optionalAccess', _93 => _93.httpStream, 'optionalAccess', _94 => _94.eventStore]);
|
|
2669
|
+
const sslCa = _optionalChain([overrides, 'optionalAccess', _95 => _95.httpStream, 'optionalAccess', _96 => _96.sslCa]);
|
|
2670
|
+
const sslCert = _optionalChain([overrides, 'optionalAccess', _97 => _97.httpStream, 'optionalAccess', _98 => _98.sslCert]);
|
|
2671
|
+
const sslKey = _optionalChain([overrides, 'optionalAccess', _99 => _99.httpStream, 'optionalAccess', _100 => _100.sslKey]);
|
|
2666
2672
|
return {
|
|
2667
2673
|
httpStream: {
|
|
2668
2674
|
basePath,
|
|
@@ -2761,4 +2767,4 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2761
2767
|
|
|
2762
2768
|
|
|
2763
2769
|
exports.DiscoveryDocumentCache = DiscoveryDocumentCache; exports.jsonSchemaAdapter = jsonSchemaAdapter; exports.MEDIA_FETCH_TIMEOUT_MS = MEDIA_FETCH_TIMEOUT_MS; exports.imageContent = imageContent; exports.audioContent = audioContent; exports.FastMCPError = FastMCPError; exports.SessionError = SessionError; exports.UnexpectedStateError = UnexpectedStateError; exports.UserError = UserError; exports.ServerState = ServerState; exports.FastMCPSession = FastMCPSession; exports.FastMCP = FastMCP;
|
|
2764
|
-
//# sourceMappingURL=chunk-
|
|
2770
|
+
//# sourceMappingURL=chunk-N6ZZF5YB.cjs.map
|