@frontmcp/sdk 0.6.0 → 0.6.1
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/README.md +1 -0
- package/package.json +13 -6
- package/src/auth/session/index.d.ts +1 -0
- package/src/auth/session/index.js +3 -1
- package/src/auth/session/index.js.map +1 -1
- package/src/auth/session/vercel-kv-session.store.d.ts +96 -0
- package/src/auth/session/vercel-kv-session.store.js +216 -0
- package/src/auth/session/vercel-kv-session.store.js.map +1 -0
- package/src/common/decorators/front-mcp.decorator.js +14 -17
- package/src/common/decorators/front-mcp.decorator.js.map +1 -1
- package/src/common/metadata/front-mcp.metadata.d.ts +705 -23
- package/src/common/metadata/front-mcp.metadata.js +1 -0
- package/src/common/metadata/front-mcp.metadata.js.map +1 -1
- package/src/common/metadata/prompt.metadata.d.ts +4 -0
- package/src/common/metadata/resource.metadata.d.ts +8 -0
- package/src/common/metadata/tool-ui.metadata.d.ts +2 -2
- package/src/common/metadata/tool-ui.metadata.js +1 -1
- package/src/common/metadata/tool-ui.metadata.js.map +1 -1
- package/src/common/metadata/tool.metadata.d.ts +4 -0
- package/src/common/schemas/http-output.schema.d.ts +24 -6
- package/src/common/tokens/front-mcp.tokens.js +1 -0
- package/src/common/tokens/front-mcp.tokens.js.map +1 -1
- package/src/common/types/options/redis.options.d.ts +173 -5
- package/src/common/types/options/redis.options.js +157 -11
- package/src/common/types/options/redis.options.js.map +1 -1
- package/src/common/types/options/server-info.options.d.ts +4 -0
- package/src/common/types/options/transport.options.d.ts +68 -4
- package/src/common/utils/global-config.utils.d.ts +36 -0
- package/src/common/utils/global-config.utils.js +44 -0
- package/src/common/utils/global-config.utils.js.map +1 -0
- package/src/common/utils/index.d.ts +1 -0
- package/src/common/utils/index.js +1 -0
- package/src/common/utils/index.js.map +1 -1
- package/src/completion/flows/complete.flow.d.ts +6 -8
- package/src/errors/index.d.ts +1 -1
- package/src/errors/index.js +2 -1
- package/src/errors/index.js.map +1 -1
- package/src/errors/mcp.error.d.ts +9 -0
- package/src/errors/mcp.error.js +19 -1
- package/src/errors/mcp.error.js.map +1 -1
- package/src/front-mcp/front-mcp.providers.d.ts +208 -0
- package/src/front-mcp/index.d.ts +1 -0
- package/src/front-mcp/index.js +3 -0
- package/src/front-mcp/index.js.map +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +2 -1
- package/src/index.js.map +1 -1
- package/src/logging/flows/set-level.flow.d.ts +6 -8
- package/src/prompt/flows/get-prompt.flow.d.ts +14 -8
- package/src/prompt/flows/prompts-list.flow.d.ts +8 -7
- package/src/resource/flows/read-resource.flow.d.ts +8 -9
- package/src/resource/flows/resource-templates-list.flow.d.ts +8 -7
- package/src/resource/flows/resources-list.flow.d.ts +8 -7
- package/src/resource/flows/subscribe-resource.flow.d.ts +6 -8
- package/src/resource/flows/unsubscribe-resource.flow.d.ts +6 -8
- package/src/store/adapters/store.vercel-kv.adapter.d.ts +86 -0
- package/src/store/adapters/store.vercel-kv.adapter.js +155 -0
- package/src/store/adapters/store.vercel-kv.adapter.js.map +1 -0
- package/src/store/index.d.ts +2 -0
- package/src/store/index.js +2 -0
- package/src/store/index.js.map +1 -1
- package/src/store/store.factory.d.ts +86 -0
- package/src/store/store.factory.js +194 -0
- package/src/store/store.factory.js.map +1 -0
- package/src/tool/flows/call-tool.flow.d.ts +18 -9
- package/src/tool/flows/call-tool.flow.js +2 -2
- package/src/tool/flows/call-tool.flow.js.map +1 -1
- package/src/tool/flows/tools-list.flow.d.ts +9 -8
- package/src/tool/flows/tools-list.flow.js +2 -2
- package/src/tool/flows/tools-list.flow.js.map +1 -1
- package/src/tool/ui/index.d.ts +4 -4
- package/src/tool/ui/index.js +4 -4
- package/src/tool/ui/index.js.map +1 -1
- package/src/tool/ui/platform-adapters.d.ts +2 -2
- package/src/tool/ui/platform-adapters.js +3 -3
- package/src/tool/ui/platform-adapters.js.map +1 -1
- package/src/tool/ui/template-helpers.d.ts +5 -7
- package/src/tool/ui/template-helpers.js +9 -26
- package/src/tool/ui/template-helpers.js.map +1 -1
- package/src/tool/ui/ui-resource.handler.d.ts +1 -1
- package/src/tool/ui/ui-resource.handler.js +5 -5
- package/src/tool/ui/ui-resource.handler.js.map +1 -1
- package/src/transport/mcp-handlers/complete-request.handler.d.ts +4 -15
- package/src/transport/mcp-handlers/get-prompt-request.handler.d.ts +5 -15
- package/src/transport/mcp-handlers/index.d.ts +67 -195
- package/src/transport/mcp-handlers/list-prompts-request.handler.d.ts +5 -15
- package/src/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +5 -15
- package/src/transport/mcp-handlers/list-resources-request.handler.d.ts +5 -15
- package/src/transport/mcp-handlers/list-tools-request.handler.d.ts +5 -15
- package/src/transport/mcp-handlers/logging-set-level-request.handler.d.ts +3 -14
- package/src/transport/mcp-handlers/read-resource-request.handler.d.ts +4 -15
- package/src/transport/mcp-handlers/subscribe-request.handler.d.ts +3 -14
- package/src/transport/mcp-handlers/unsubscribe-request.handler.d.ts +3 -14
- package/src/transport/transport.registry.d.ts +5 -1
- package/src/transport/transport.registry.js +52 -23
- package/src/transport/transport.registry.js.map +1 -1
|
@@ -10,6 +10,7 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
10
10
|
src: string;
|
|
11
11
|
mimeType?: string | undefined;
|
|
12
12
|
sizes?: string[] | undefined;
|
|
13
|
+
theme?: "light" | "dark" | undefined;
|
|
13
14
|
}[] | undefined;
|
|
14
15
|
};
|
|
15
16
|
providers: import("../common").Type<unknown>[];
|
|
@@ -37,6 +38,7 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
37
38
|
enabled: boolean;
|
|
38
39
|
defaultTtlMs: number;
|
|
39
40
|
redis?: {
|
|
41
|
+
provider: "redis";
|
|
40
42
|
host: string;
|
|
41
43
|
port: number;
|
|
42
44
|
db: number;
|
|
@@ -44,6 +46,21 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
44
46
|
keyPrefix: string;
|
|
45
47
|
defaultTtlMs: number;
|
|
46
48
|
password?: string | undefined;
|
|
49
|
+
} | {
|
|
50
|
+
provider: "redis";
|
|
51
|
+
host: string;
|
|
52
|
+
port: number;
|
|
53
|
+
db: number;
|
|
54
|
+
tls: boolean;
|
|
55
|
+
keyPrefix: string;
|
|
56
|
+
defaultTtlMs: number;
|
|
57
|
+
password?: string | undefined;
|
|
58
|
+
} | {
|
|
59
|
+
provider: "vercel-kv";
|
|
60
|
+
keyPrefix: string;
|
|
61
|
+
defaultTtlMs: number;
|
|
62
|
+
url?: string | undefined;
|
|
63
|
+
token?: string | undefined;
|
|
47
64
|
} | undefined;
|
|
48
65
|
} | undefined;
|
|
49
66
|
};
|
|
@@ -54,6 +71,41 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
54
71
|
hostFactory?: any;
|
|
55
72
|
} | undefined;
|
|
56
73
|
redis?: {
|
|
74
|
+
provider: "redis";
|
|
75
|
+
host: string;
|
|
76
|
+
port: number;
|
|
77
|
+
db: number;
|
|
78
|
+
tls: boolean;
|
|
79
|
+
keyPrefix: string;
|
|
80
|
+
defaultTtlMs: number;
|
|
81
|
+
password?: string | undefined;
|
|
82
|
+
} | {
|
|
83
|
+
provider: "redis";
|
|
84
|
+
host: string;
|
|
85
|
+
port: number;
|
|
86
|
+
db: number;
|
|
87
|
+
tls: boolean;
|
|
88
|
+
keyPrefix: string;
|
|
89
|
+
defaultTtlMs: number;
|
|
90
|
+
password?: string | undefined;
|
|
91
|
+
} | {
|
|
92
|
+
provider: "vercel-kv";
|
|
93
|
+
keyPrefix: string;
|
|
94
|
+
defaultTtlMs: number;
|
|
95
|
+
url?: string | undefined;
|
|
96
|
+
token?: string | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
pubsub?: {
|
|
99
|
+
provider: "redis";
|
|
100
|
+
host: string;
|
|
101
|
+
port: number;
|
|
102
|
+
db: number;
|
|
103
|
+
tls: boolean;
|
|
104
|
+
keyPrefix: string;
|
|
105
|
+
defaultTtlMs: number;
|
|
106
|
+
password?: string | undefined;
|
|
107
|
+
} | {
|
|
108
|
+
provider: "redis";
|
|
57
109
|
host: string;
|
|
58
110
|
port: number;
|
|
59
111
|
db: number;
|
|
@@ -341,6 +393,7 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
341
393
|
src: string;
|
|
342
394
|
mimeType?: string | undefined;
|
|
343
395
|
sizes?: string[] | undefined;
|
|
396
|
+
theme?: "light" | "dark" | undefined;
|
|
344
397
|
}[] | undefined;
|
|
345
398
|
};
|
|
346
399
|
providers: import("../common").Type<unknown>[];
|
|
@@ -368,6 +421,7 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
368
421
|
enabled: boolean;
|
|
369
422
|
defaultTtlMs: number;
|
|
370
423
|
redis?: {
|
|
424
|
+
provider: "redis";
|
|
371
425
|
host: string;
|
|
372
426
|
port: number;
|
|
373
427
|
db: number;
|
|
@@ -375,6 +429,21 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
375
429
|
keyPrefix: string;
|
|
376
430
|
defaultTtlMs: number;
|
|
377
431
|
password?: string | undefined;
|
|
432
|
+
} | {
|
|
433
|
+
provider: "redis";
|
|
434
|
+
host: string;
|
|
435
|
+
port: number;
|
|
436
|
+
db: number;
|
|
437
|
+
tls: boolean;
|
|
438
|
+
keyPrefix: string;
|
|
439
|
+
defaultTtlMs: number;
|
|
440
|
+
password?: string | undefined;
|
|
441
|
+
} | {
|
|
442
|
+
provider: "vercel-kv";
|
|
443
|
+
keyPrefix: string;
|
|
444
|
+
defaultTtlMs: number;
|
|
445
|
+
url?: string | undefined;
|
|
446
|
+
token?: string | undefined;
|
|
378
447
|
} | undefined;
|
|
379
448
|
} | undefined;
|
|
380
449
|
};
|
|
@@ -385,6 +454,41 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
385
454
|
hostFactory?: any;
|
|
386
455
|
} | undefined;
|
|
387
456
|
redis?: {
|
|
457
|
+
provider: "redis";
|
|
458
|
+
host: string;
|
|
459
|
+
port: number;
|
|
460
|
+
db: number;
|
|
461
|
+
tls: boolean;
|
|
462
|
+
keyPrefix: string;
|
|
463
|
+
defaultTtlMs: number;
|
|
464
|
+
password?: string | undefined;
|
|
465
|
+
} | {
|
|
466
|
+
provider: "redis";
|
|
467
|
+
host: string;
|
|
468
|
+
port: number;
|
|
469
|
+
db: number;
|
|
470
|
+
tls: boolean;
|
|
471
|
+
keyPrefix: string;
|
|
472
|
+
defaultTtlMs: number;
|
|
473
|
+
password?: string | undefined;
|
|
474
|
+
} | {
|
|
475
|
+
provider: "vercel-kv";
|
|
476
|
+
keyPrefix: string;
|
|
477
|
+
defaultTtlMs: number;
|
|
478
|
+
url?: string | undefined;
|
|
479
|
+
token?: string | undefined;
|
|
480
|
+
} | undefined;
|
|
481
|
+
pubsub?: {
|
|
482
|
+
provider: "redis";
|
|
483
|
+
host: string;
|
|
484
|
+
port: number;
|
|
485
|
+
db: number;
|
|
486
|
+
tls: boolean;
|
|
487
|
+
keyPrefix: string;
|
|
488
|
+
defaultTtlMs: number;
|
|
489
|
+
password?: string | undefined;
|
|
490
|
+
} | {
|
|
491
|
+
provider: "redis";
|
|
388
492
|
host: string;
|
|
389
493
|
port: number;
|
|
390
494
|
db: number;
|
|
@@ -421,6 +525,7 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
421
525
|
src: string;
|
|
422
526
|
mimeType?: string | undefined;
|
|
423
527
|
sizes?: string[] | undefined;
|
|
528
|
+
theme?: "light" | "dark" | undefined;
|
|
424
529
|
}[] | undefined;
|
|
425
530
|
};
|
|
426
531
|
providers: import("../common").Type<unknown>[];
|
|
@@ -448,6 +553,7 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
448
553
|
enabled: boolean;
|
|
449
554
|
defaultTtlMs: number;
|
|
450
555
|
redis?: {
|
|
556
|
+
provider: "redis";
|
|
451
557
|
host: string;
|
|
452
558
|
port: number;
|
|
453
559
|
db: number;
|
|
@@ -455,6 +561,21 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
455
561
|
keyPrefix: string;
|
|
456
562
|
defaultTtlMs: number;
|
|
457
563
|
password?: string | undefined;
|
|
564
|
+
} | {
|
|
565
|
+
provider: "redis";
|
|
566
|
+
host: string;
|
|
567
|
+
port: number;
|
|
568
|
+
db: number;
|
|
569
|
+
tls: boolean;
|
|
570
|
+
keyPrefix: string;
|
|
571
|
+
defaultTtlMs: number;
|
|
572
|
+
password?: string | undefined;
|
|
573
|
+
} | {
|
|
574
|
+
provider: "vercel-kv";
|
|
575
|
+
keyPrefix: string;
|
|
576
|
+
defaultTtlMs: number;
|
|
577
|
+
url?: string | undefined;
|
|
578
|
+
token?: string | undefined;
|
|
458
579
|
} | undefined;
|
|
459
580
|
} | undefined;
|
|
460
581
|
};
|
|
@@ -465,6 +586,41 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
465
586
|
hostFactory?: any;
|
|
466
587
|
} | undefined;
|
|
467
588
|
redis?: {
|
|
589
|
+
provider: "redis";
|
|
590
|
+
host: string;
|
|
591
|
+
port: number;
|
|
592
|
+
db: number;
|
|
593
|
+
tls: boolean;
|
|
594
|
+
keyPrefix: string;
|
|
595
|
+
defaultTtlMs: number;
|
|
596
|
+
password?: string | undefined;
|
|
597
|
+
} | {
|
|
598
|
+
provider: "redis";
|
|
599
|
+
host: string;
|
|
600
|
+
port: number;
|
|
601
|
+
db: number;
|
|
602
|
+
tls: boolean;
|
|
603
|
+
keyPrefix: string;
|
|
604
|
+
defaultTtlMs: number;
|
|
605
|
+
password?: string | undefined;
|
|
606
|
+
} | {
|
|
607
|
+
provider: "vercel-kv";
|
|
608
|
+
keyPrefix: string;
|
|
609
|
+
defaultTtlMs: number;
|
|
610
|
+
url?: string | undefined;
|
|
611
|
+
token?: string | undefined;
|
|
612
|
+
} | undefined;
|
|
613
|
+
pubsub?: {
|
|
614
|
+
provider: "redis";
|
|
615
|
+
host: string;
|
|
616
|
+
port: number;
|
|
617
|
+
db: number;
|
|
618
|
+
tls: boolean;
|
|
619
|
+
keyPrefix: string;
|
|
620
|
+
defaultTtlMs: number;
|
|
621
|
+
password?: string | undefined;
|
|
622
|
+
} | {
|
|
623
|
+
provider: "redis";
|
|
468
624
|
host: string;
|
|
469
625
|
port: number;
|
|
470
626
|
db: number;
|
|
@@ -752,6 +908,7 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
752
908
|
src: string;
|
|
753
909
|
mimeType?: string | undefined;
|
|
754
910
|
sizes?: string[] | undefined;
|
|
911
|
+
theme?: "light" | "dark" | undefined;
|
|
755
912
|
}[] | undefined;
|
|
756
913
|
};
|
|
757
914
|
providers: import("../common").Type<unknown>[];
|
|
@@ -779,6 +936,7 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
779
936
|
enabled: boolean;
|
|
780
937
|
defaultTtlMs: number;
|
|
781
938
|
redis?: {
|
|
939
|
+
provider: "redis";
|
|
782
940
|
host: string;
|
|
783
941
|
port: number;
|
|
784
942
|
db: number;
|
|
@@ -786,6 +944,21 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
786
944
|
keyPrefix: string;
|
|
787
945
|
defaultTtlMs: number;
|
|
788
946
|
password?: string | undefined;
|
|
947
|
+
} | {
|
|
948
|
+
provider: "redis";
|
|
949
|
+
host: string;
|
|
950
|
+
port: number;
|
|
951
|
+
db: number;
|
|
952
|
+
tls: boolean;
|
|
953
|
+
keyPrefix: string;
|
|
954
|
+
defaultTtlMs: number;
|
|
955
|
+
password?: string | undefined;
|
|
956
|
+
} | {
|
|
957
|
+
provider: "vercel-kv";
|
|
958
|
+
keyPrefix: string;
|
|
959
|
+
defaultTtlMs: number;
|
|
960
|
+
url?: string | undefined;
|
|
961
|
+
token?: string | undefined;
|
|
789
962
|
} | undefined;
|
|
790
963
|
} | undefined;
|
|
791
964
|
};
|
|
@@ -796,6 +969,41 @@ export declare function createMcpGlobalProviders(metadata: FrontMcpConfigType):
|
|
|
796
969
|
hostFactory?: any;
|
|
797
970
|
} | undefined;
|
|
798
971
|
redis?: {
|
|
972
|
+
provider: "redis";
|
|
973
|
+
host: string;
|
|
974
|
+
port: number;
|
|
975
|
+
db: number;
|
|
976
|
+
tls: boolean;
|
|
977
|
+
keyPrefix: string;
|
|
978
|
+
defaultTtlMs: number;
|
|
979
|
+
password?: string | undefined;
|
|
980
|
+
} | {
|
|
981
|
+
provider: "redis";
|
|
982
|
+
host: string;
|
|
983
|
+
port: number;
|
|
984
|
+
db: number;
|
|
985
|
+
tls: boolean;
|
|
986
|
+
keyPrefix: string;
|
|
987
|
+
defaultTtlMs: number;
|
|
988
|
+
password?: string | undefined;
|
|
989
|
+
} | {
|
|
990
|
+
provider: "vercel-kv";
|
|
991
|
+
keyPrefix: string;
|
|
992
|
+
defaultTtlMs: number;
|
|
993
|
+
url?: string | undefined;
|
|
994
|
+
token?: string | undefined;
|
|
995
|
+
} | undefined;
|
|
996
|
+
pubsub?: {
|
|
997
|
+
provider: "redis";
|
|
998
|
+
host: string;
|
|
999
|
+
port: number;
|
|
1000
|
+
db: number;
|
|
1001
|
+
tls: boolean;
|
|
1002
|
+
keyPrefix: string;
|
|
1003
|
+
defaultTtlMs: number;
|
|
1004
|
+
password?: string | undefined;
|
|
1005
|
+
} | {
|
|
1006
|
+
provider: "redis";
|
|
799
1007
|
host: string;
|
|
800
1008
|
port: number;
|
|
801
1009
|
db: number;
|
package/src/front-mcp/index.d.ts
CHANGED
package/src/front-mcp/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FrontMcpConfig = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./front-mcp"), exports);
|
|
6
|
+
var front_mcp_tokens_1 = require("./front-mcp.tokens");
|
|
7
|
+
Object.defineProperty(exports, "FrontMcpConfig", { enumerable: true, get: function () { return front_mcp_tokens_1.FrontMcpConfig; } });
|
|
5
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/front-mcp/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/front-mcp/index.ts"],"names":[],"mappings":";;;;AAAA,sDAA4B;AAC5B,uDAAoD;AAA3C,kHAAA,cAAc,OAAA","sourcesContent":["export * from './front-mcp';\nexport { FrontMcpConfig } from './front-mcp.tokens';\n"]}
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
export { FrontMcpInstance } from './front-mcp';
|
|
2
|
+
export { FrontMcpInstance, FrontMcpConfig } from './front-mcp';
|
|
3
3
|
export { getServerlessHandler, getServerlessHandlerAsync, setServerlessHandler, setServerlessHandlerPromise, setServerlessHandlerError, } from './front-mcp/serverless-handler';
|
|
4
4
|
export * from './common';
|
|
5
5
|
export * from './errors';
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListResourceTemplatesHook = exports.ListResourcesHook = exports.ResourceHook = exports.HttpHook = exports.ListToolsHook = exports.ToolHook = exports.createChildSpanContext = exports.generateTraceContext = exports.parseTraceContext = exports.FrontMcpContextProvider = exports.FRONTMCP_CONTEXT = exports.ContextStorage = exports.FrontMcpContextStorage = exports.Context = exports.FrontMcpContext = exports.setServerlessHandlerError = exports.setServerlessHandlerPromise = exports.setServerlessHandler = exports.getServerlessHandlerAsync = exports.getServerlessHandler = exports.FrontMcpInstance = void 0;
|
|
3
|
+
exports.ListResourceTemplatesHook = exports.ListResourcesHook = exports.ResourceHook = exports.HttpHook = exports.ListToolsHook = exports.ToolHook = exports.createChildSpanContext = exports.generateTraceContext = exports.parseTraceContext = exports.FrontMcpContextProvider = exports.FRONTMCP_CONTEXT = exports.ContextStorage = exports.FrontMcpContextStorage = exports.Context = exports.FrontMcpContext = exports.setServerlessHandlerError = exports.setServerlessHandlerPromise = exports.setServerlessHandler = exports.getServerlessHandlerAsync = exports.getServerlessHandler = exports.FrontMcpConfig = exports.FrontMcpInstance = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
require("reflect-metadata");
|
|
6
6
|
const common_1 = require("./common");
|
|
7
7
|
var front_mcp_1 = require("./front-mcp");
|
|
8
8
|
Object.defineProperty(exports, "FrontMcpInstance", { enumerable: true, get: function () { return front_mcp_1.FrontMcpInstance; } });
|
|
9
|
+
Object.defineProperty(exports, "FrontMcpConfig", { enumerable: true, get: function () { return front_mcp_1.FrontMcpConfig; } });
|
|
9
10
|
var serverless_handler_1 = require("./front-mcp/serverless-handler");
|
|
10
11
|
Object.defineProperty(exports, "getServerlessHandler", { enumerable: true, get: function () { return serverless_handler_1.getServerlessHandler; } });
|
|
11
12
|
Object.defineProperty(exports, "getServerlessHandlerAsync", { enumerable: true, get: function () { return serverless_handler_1.getServerlessHandlerAsync; } });
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,4BAA0B;AAC1B,qCAAuC;AAEvC,yCAA+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,4BAA0B;AAC1B,qCAAuC;AAEvC,yCAA+D;AAAtD,6GAAA,gBAAgB,OAAA;AAAE,2GAAA,cAAc,OAAA;AACzC,qEAMwC;AALtC,0HAAA,oBAAoB,OAAA;AACpB,+HAAA,yBAAyB,OAAA;AACzB,0HAAA,oBAAoB,OAAA;AACpB,iIAAA,2BAA2B,OAAA;AAC3B,+HAAA,yBAAyB,OAAA;AAE3B,mDAAyB;AACzB,mDAAyB;AAKzB,wDAAwD;AACxD,qCAkBmB;AAjBjB,wCAAwC;AACxC,0GAAA,eAAe,OAAA;AACf,kGAAA,OAAO,OAAA;AAGP,iHAAA,sBAAsB,OAAA;AACtB,yGAAA,cAAc,OAAA;AACd,2GAAA,gBAAgB,OAAA;AAChB,kHAAA,uBAAuB,OAAA;AAMvB,4GAAA,iBAAiB,OAAA;AACjB,+GAAA,oBAAoB,OAAA;AACpB,iHAAA,sBAAsB,OAAA;AAMX,QAAA,QAAQ,GAAG,IAAA,oBAAW,EAAC,iBAAiB,CAAC,CAAC;AAC1C,QAAA,aAAa,GAAG,IAAA,oBAAW,EAAC,kBAAkB,CAAC,CAAC;AAChD,QAAA,QAAQ,GAAG,IAAA,oBAAW,EAAC,cAAc,CAAC,CAAC;AAEpD,iBAAiB;AACJ,QAAA,YAAY,GAAG,IAAA,oBAAW,EAAC,yBAAyB,CAAC,CAAC;AACtD,QAAA,iBAAiB,GAAG,IAAA,oBAAW,EAAC,0BAA0B,CAAC,CAAC;AAC5D,QAAA,yBAAyB,GAAG,IAAA,oBAAW,EAAC,mCAAmC,CAAC,CAAC","sourcesContent":["import 'reflect-metadata';\nimport { FlowHooksOf } from './common';\n\nexport { FrontMcpInstance, FrontMcpConfig } from './front-mcp';\nexport {\n getServerlessHandler,\n getServerlessHandlerAsync,\n setServerlessHandler,\n setServerlessHandlerPromise,\n setServerlessHandlerError,\n} from './front-mcp/serverless-handler';\nexport * from './common';\nexport * from './errors';\n\n// Re-export MCP types commonly needed\nexport type { GetPromptResult } from '@modelcontextprotocol/sdk/types.js';\n\n// Unified context for production-ready request handling\nexport {\n // Primary exports (new unified context)\n FrontMcpContext,\n Context,\n FrontMcpContextArgs,\n FrontMcpContextConfig,\n FrontMcpContextStorage,\n ContextStorage,\n FRONTMCP_CONTEXT,\n FrontMcpContextProvider,\n // Request metadata\n RequestMetadata,\n TransportAccessor,\n // Trace context\n TraceContext,\n parseTraceContext,\n generateTraceContext,\n createChildSpanContext,\n} from './context';\n\n// Tool change events for subscription\nexport { ToolChangeEvent, ToolChangeKind, ToolChangeScope } from './tool/tool.events';\n\nexport const ToolHook = FlowHooksOf('tools:call-tool');\nexport const ListToolsHook = FlowHooksOf('tools:list-tools');\nexport const HttpHook = FlowHooksOf('http:request');\n\n// Resource hooks\nexport const ResourceHook = FlowHooksOf('resources:read-resource');\nexport const ListResourcesHook = FlowHooksOf('resources:list-resources');\nexport const ListResourceTemplatesHook = FlowHooksOf('resources:list-resource-templates');\n"]}
|
|
@@ -4,15 +4,11 @@ declare const inputSchema: z.ZodObject<{
|
|
|
4
4
|
request: z.ZodObject<{
|
|
5
5
|
method: z.ZodLiteral<"logging/setLevel">;
|
|
6
6
|
params: z.ZodObject<{
|
|
7
|
-
task: z.ZodOptional<z.ZodObject<{
|
|
8
|
-
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
9
|
-
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
}, z.core.$loose>>;
|
|
11
7
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
12
8
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
13
9
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
14
10
|
taskId: z.ZodString;
|
|
15
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$strip>>;
|
|
16
12
|
}, z.core.$loose>>;
|
|
17
13
|
level: z.ZodEnum<{
|
|
18
14
|
error: "error";
|
|
@@ -24,15 +20,16 @@ declare const inputSchema: z.ZodObject<{
|
|
|
24
20
|
alert: "alert";
|
|
25
21
|
emergency: "emergency";
|
|
26
22
|
}>;
|
|
27
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$strip>;
|
|
28
24
|
}, z.core.$strip>;
|
|
29
25
|
ctx: z.ZodUnknown;
|
|
30
26
|
}, z.core.$strip>;
|
|
31
27
|
declare const outputSchema: z.ZodObject<{
|
|
32
28
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
33
30
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
34
31
|
taskId: z.ZodString;
|
|
35
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$strip>>;
|
|
36
33
|
}, z.core.$loose>>;
|
|
37
34
|
}, z.core.$strict>;
|
|
38
35
|
declare const stateSchema: z.ZodObject<{
|
|
@@ -51,9 +48,10 @@ declare const stateSchema: z.ZodObject<{
|
|
|
51
48
|
sessionId: z.ZodString;
|
|
52
49
|
output: z.ZodObject<{
|
|
53
50
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
54
52
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
55
53
|
taskId: z.ZodString;
|
|
56
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$strip>>;
|
|
57
55
|
}, z.core.$loose>>;
|
|
58
56
|
}, z.core.$strict>;
|
|
59
57
|
}, z.core.$strip>;
|
|
@@ -5,27 +5,24 @@ declare const inputSchema: z.ZodObject<{
|
|
|
5
5
|
request: z.ZodObject<{
|
|
6
6
|
method: z.ZodLiteral<"prompts/get">;
|
|
7
7
|
params: z.ZodObject<{
|
|
8
|
-
task: z.ZodOptional<z.ZodObject<{
|
|
9
|
-
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
10
|
-
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
}, z.core.$loose>>;
|
|
12
8
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
13
9
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
14
10
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
15
11
|
taskId: z.ZodString;
|
|
16
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$strip>>;
|
|
17
13
|
}, z.core.$loose>>;
|
|
18
14
|
name: z.ZodString;
|
|
19
15
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$strip>;
|
|
21
17
|
}, z.core.$strip>;
|
|
22
18
|
ctx: z.ZodAny;
|
|
23
19
|
}, z.core.$strip>;
|
|
24
20
|
declare const outputSchema: z.ZodObject<{
|
|
25
21
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
26
23
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
27
24
|
taskId: z.ZodString;
|
|
28
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$strip>>;
|
|
29
26
|
}, z.core.$loose>>;
|
|
30
27
|
description: z.ZodOptional<z.ZodString>;
|
|
31
28
|
messages: z.ZodArray<z.ZodObject<{
|
|
@@ -88,6 +85,10 @@ declare const outputSchema: z.ZodObject<{
|
|
|
88
85
|
src: z.ZodString;
|
|
89
86
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
90
87
|
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
88
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
89
|
+
light: "light";
|
|
90
|
+
dark: "dark";
|
|
91
|
+
}>>;
|
|
91
92
|
}, z.core.$strip>>>;
|
|
92
93
|
name: z.ZodString;
|
|
93
94
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -130,9 +131,10 @@ declare const stateSchema: z.ZodObject<{
|
|
|
130
131
|
rawOutput: z.ZodOptional<z.ZodAny>;
|
|
131
132
|
output: z.ZodObject<{
|
|
132
133
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
133
135
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
134
136
|
taskId: z.ZodString;
|
|
135
|
-
}, z.core.$
|
|
137
|
+
}, z.core.$strip>>;
|
|
136
138
|
}, z.core.$loose>>;
|
|
137
139
|
description: z.ZodOptional<z.ZodString>;
|
|
138
140
|
messages: z.ZodArray<z.ZodObject<{
|
|
@@ -195,6 +197,10 @@ declare const stateSchema: z.ZodObject<{
|
|
|
195
197
|
src: z.ZodString;
|
|
196
198
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
197
199
|
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
200
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
201
|
+
light: "light";
|
|
202
|
+
dark: "dark";
|
|
203
|
+
}>>;
|
|
198
204
|
}, z.core.$strip>>>;
|
|
199
205
|
name: z.ZodString;
|
|
200
206
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -4,27 +4,24 @@ import { z } from 'zod';
|
|
|
4
4
|
declare const inputSchema: z.ZodObject<{
|
|
5
5
|
request: z.ZodObject<{
|
|
6
6
|
params: z.ZodOptional<z.ZodObject<{
|
|
7
|
-
task: z.ZodOptional<z.ZodObject<{
|
|
8
|
-
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
9
|
-
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
}, z.core.$loose>>;
|
|
11
7
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
12
8
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
13
9
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
14
10
|
taskId: z.ZodString;
|
|
15
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$strip>>;
|
|
16
12
|
}, z.core.$loose>>;
|
|
17
13
|
cursor: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$strip>>;
|
|
19
15
|
method: z.ZodLiteral<"prompts/list">;
|
|
20
16
|
}, z.core.$strip>;
|
|
21
17
|
ctx: z.ZodUnknown;
|
|
22
18
|
}, z.core.$strip>;
|
|
23
19
|
declare const outputSchema: z.ZodObject<{
|
|
24
20
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
25
22
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
26
23
|
taskId: z.ZodString;
|
|
27
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$strip>>;
|
|
28
25
|
}, z.core.$loose>>;
|
|
29
26
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
30
27
|
prompts: z.ZodArray<z.ZodObject<{
|
|
@@ -39,6 +36,10 @@ declare const outputSchema: z.ZodObject<{
|
|
|
39
36
|
src: z.ZodString;
|
|
40
37
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
41
38
|
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
light: "light";
|
|
41
|
+
dark: "dark";
|
|
42
|
+
}>>;
|
|
42
43
|
}, z.core.$strip>>>;
|
|
43
44
|
name: z.ZodString;
|
|
44
45
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -5,26 +5,23 @@ declare const inputSchema: z.ZodObject<{
|
|
|
5
5
|
request: z.ZodObject<{
|
|
6
6
|
method: z.ZodLiteral<"resources/read">;
|
|
7
7
|
params: z.ZodObject<{
|
|
8
|
-
task: z.ZodOptional<z.ZodObject<{
|
|
9
|
-
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
10
|
-
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
}, z.core.$loose>>;
|
|
12
8
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
13
9
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
14
10
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
15
11
|
taskId: z.ZodString;
|
|
16
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$strip>>;
|
|
17
13
|
}, z.core.$loose>>;
|
|
18
14
|
uri: z.ZodString;
|
|
19
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$strip>;
|
|
20
16
|
}, z.core.$strip>;
|
|
21
17
|
ctx: z.ZodAny;
|
|
22
18
|
}, z.core.$strip>;
|
|
23
19
|
declare const outputSchema: z.ZodObject<{
|
|
24
20
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
25
22
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
26
23
|
taskId: z.ZodString;
|
|
27
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$strip>>;
|
|
28
25
|
}, z.core.$loose>>;
|
|
29
26
|
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
30
27
|
uri: z.ZodString;
|
|
@@ -49,9 +46,10 @@ declare const stateSchema: z.ZodObject<{
|
|
|
49
46
|
rawOutput: z.ZodOptional<z.ZodAny>;
|
|
50
47
|
output: z.ZodObject<{
|
|
51
48
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
52
50
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
53
51
|
taskId: z.ZodString;
|
|
54
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$strip>>;
|
|
55
53
|
}, z.core.$loose>>;
|
|
56
54
|
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
57
55
|
uri: z.ZodString;
|
|
@@ -70,9 +68,10 @@ declare const stateSchema: z.ZodObject<{
|
|
|
70
68
|
isUIResource: z.ZodDefault<z.ZodBoolean>;
|
|
71
69
|
uiResourceResult: z.ZodOptional<z.ZodObject<{
|
|
72
70
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
73
72
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
74
73
|
taskId: z.ZodString;
|
|
75
|
-
}, z.core.$
|
|
74
|
+
}, z.core.$strip>>;
|
|
76
75
|
}, z.core.$loose>>;
|
|
77
76
|
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
78
77
|
uri: z.ZodString;
|
|
@@ -4,27 +4,24 @@ import { z } from 'zod';
|
|
|
4
4
|
declare const inputSchema: z.ZodObject<{
|
|
5
5
|
request: z.ZodObject<{
|
|
6
6
|
params: z.ZodOptional<z.ZodObject<{
|
|
7
|
-
task: z.ZodOptional<z.ZodObject<{
|
|
8
|
-
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
9
|
-
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
}, z.core.$loose>>;
|
|
11
7
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
12
8
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
13
9
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
14
10
|
taskId: z.ZodString;
|
|
15
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$strip>>;
|
|
16
12
|
}, z.core.$loose>>;
|
|
17
13
|
cursor: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$strip>>;
|
|
19
15
|
method: z.ZodLiteral<"resources/templates/list">;
|
|
20
16
|
}, z.core.$strip>;
|
|
21
17
|
ctx: z.ZodUnknown;
|
|
22
18
|
}, z.core.$strip>;
|
|
23
19
|
declare const outputSchema: z.ZodObject<{
|
|
24
20
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
25
22
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
26
23
|
taskId: z.ZodString;
|
|
27
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$strip>>;
|
|
28
25
|
}, z.core.$loose>>;
|
|
29
26
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
30
27
|
resourceTemplates: z.ZodArray<z.ZodObject<{
|
|
@@ -44,6 +41,10 @@ declare const outputSchema: z.ZodObject<{
|
|
|
44
41
|
src: z.ZodString;
|
|
45
42
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
46
43
|
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
45
|
+
light: "light";
|
|
46
|
+
dark: "dark";
|
|
47
|
+
}>>;
|
|
47
48
|
}, z.core.$strip>>>;
|
|
48
49
|
name: z.ZodString;
|
|
49
50
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -4,27 +4,24 @@ import { z } from 'zod';
|
|
|
4
4
|
declare const inputSchema: z.ZodObject<{
|
|
5
5
|
request: z.ZodObject<{
|
|
6
6
|
params: z.ZodOptional<z.ZodObject<{
|
|
7
|
-
task: z.ZodOptional<z.ZodObject<{
|
|
8
|
-
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
9
|
-
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
}, z.core.$loose>>;
|
|
11
7
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
12
8
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
13
9
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
14
10
|
taskId: z.ZodString;
|
|
15
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$strip>>;
|
|
16
12
|
}, z.core.$loose>>;
|
|
17
13
|
cursor: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$strip>>;
|
|
19
15
|
method: z.ZodLiteral<"resources/list">;
|
|
20
16
|
}, z.core.$strip>;
|
|
21
17
|
ctx: z.ZodUnknown;
|
|
22
18
|
}, z.core.$strip>;
|
|
23
19
|
declare const outputSchema: z.ZodObject<{
|
|
24
20
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
25
22
|
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
26
23
|
taskId: z.ZodString;
|
|
27
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$strip>>;
|
|
28
25
|
}, z.core.$loose>>;
|
|
29
26
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
30
27
|
resources: z.ZodArray<z.ZodObject<{
|
|
@@ -44,6 +41,10 @@ declare const outputSchema: z.ZodObject<{
|
|
|
44
41
|
src: z.ZodString;
|
|
45
42
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
46
43
|
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
45
|
+
light: "light";
|
|
46
|
+
dark: "dark";
|
|
47
|
+
}>>;
|
|
47
48
|
}, z.core.$strip>>>;
|
|
48
49
|
name: z.ZodString;
|
|
49
50
|
title: z.ZodOptional<z.ZodString>;
|