@yumdee/mcp-studio-core 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,687 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Core schemas for MCP Studio
4
+ * These schemas define the contract for:
5
+ * - MCP session recording (every request/response/notification)
6
+ * - Server information and capabilities
7
+ * - Error handling across transports
8
+ */
9
+ export declare const HandshakeRequestSchema: z.ZodObject<{
10
+ jsonrpc: z.ZodLiteral<"2.0">;
11
+ id: z.ZodNumber;
12
+ method: z.ZodLiteral<"initialize">;
13
+ params: z.ZodObject<{
14
+ protocolVersion: z.ZodString;
15
+ capabilities: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
+ clientInfo: z.ZodObject<{
17
+ name: z.ZodString;
18
+ version: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ name: string;
21
+ version: string;
22
+ }, {
23
+ name: string;
24
+ version: string;
25
+ }>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ protocolVersion: string;
28
+ capabilities: Record<string, unknown>;
29
+ clientInfo: {
30
+ name: string;
31
+ version: string;
32
+ };
33
+ }, {
34
+ protocolVersion: string;
35
+ capabilities: Record<string, unknown>;
36
+ clientInfo: {
37
+ name: string;
38
+ version: string;
39
+ };
40
+ }>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ jsonrpc: "2.0";
43
+ params: {
44
+ protocolVersion: string;
45
+ capabilities: Record<string, unknown>;
46
+ clientInfo: {
47
+ name: string;
48
+ version: string;
49
+ };
50
+ };
51
+ id: number;
52
+ method: "initialize";
53
+ }, {
54
+ jsonrpc: "2.0";
55
+ params: {
56
+ protocolVersion: string;
57
+ capabilities: Record<string, unknown>;
58
+ clientInfo: {
59
+ name: string;
60
+ version: string;
61
+ };
62
+ };
63
+ id: number;
64
+ method: "initialize";
65
+ }>;
66
+ export declare const HandshakeResponseSchema: z.ZodObject<{
67
+ jsonrpc: z.ZodLiteral<"2.0">;
68
+ id: z.ZodNumber;
69
+ result: z.ZodObject<{
70
+ protocolVersion: z.ZodString;
71
+ capabilities: z.ZodRecord<z.ZodString, z.ZodUnknown>;
72
+ serverInfo: z.ZodObject<{
73
+ name: z.ZodString;
74
+ version: z.ZodString;
75
+ }, "strip", z.ZodTypeAny, {
76
+ name: string;
77
+ version: string;
78
+ }, {
79
+ name: string;
80
+ version: string;
81
+ }>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ protocolVersion: string;
84
+ capabilities: Record<string, unknown>;
85
+ serverInfo: {
86
+ name: string;
87
+ version: string;
88
+ };
89
+ }, {
90
+ protocolVersion: string;
91
+ capabilities: Record<string, unknown>;
92
+ serverInfo: {
93
+ name: string;
94
+ version: string;
95
+ };
96
+ }>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ jsonrpc: "2.0";
99
+ id: number;
100
+ result: {
101
+ protocolVersion: string;
102
+ capabilities: Record<string, unknown>;
103
+ serverInfo: {
104
+ name: string;
105
+ version: string;
106
+ };
107
+ };
108
+ }, {
109
+ jsonrpc: "2.0";
110
+ id: number;
111
+ result: {
112
+ protocolVersion: string;
113
+ capabilities: Record<string, unknown>;
114
+ serverInfo: {
115
+ name: string;
116
+ version: string;
117
+ };
118
+ };
119
+ }>;
120
+ export type HandshakeRequest = z.infer<typeof HandshakeRequestSchema>;
121
+ export type HandshakeResponse = z.infer<typeof HandshakeResponseSchema>;
122
+ export declare const McpRequestEventSchema: z.ZodObject<{
123
+ type: z.ZodLiteral<"request">;
124
+ timestamp: z.ZodString;
125
+ id: z.ZodNumber;
126
+ method: z.ZodString;
127
+ params: z.ZodOptional<z.ZodUnknown>;
128
+ sentAtMs: z.ZodNumber;
129
+ }, "strip", z.ZodTypeAny, {
130
+ type: "request";
131
+ id: number;
132
+ method: string;
133
+ timestamp: string;
134
+ sentAtMs: number;
135
+ params?: unknown;
136
+ }, {
137
+ type: "request";
138
+ id: number;
139
+ method: string;
140
+ timestamp: string;
141
+ sentAtMs: number;
142
+ params?: unknown;
143
+ }>;
144
+ export declare const McpResponseEventSchema: z.ZodObject<{
145
+ type: z.ZodLiteral<"response">;
146
+ timestamp: z.ZodString;
147
+ id: z.ZodNumber;
148
+ result: z.ZodOptional<z.ZodUnknown>;
149
+ error: z.ZodOptional<z.ZodObject<{
150
+ code: z.ZodNumber;
151
+ message: z.ZodString;
152
+ data: z.ZodOptional<z.ZodUnknown>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ code: number;
155
+ message: string;
156
+ data?: unknown;
157
+ }, {
158
+ code: number;
159
+ message: string;
160
+ data?: unknown;
161
+ }>>;
162
+ receivedAtMs: z.ZodNumber;
163
+ latencyMs: z.ZodNumber;
164
+ }, "strip", z.ZodTypeAny, {
165
+ type: "response";
166
+ id: number;
167
+ timestamp: string;
168
+ receivedAtMs: number;
169
+ latencyMs: number;
170
+ result?: unknown;
171
+ error?: {
172
+ code: number;
173
+ message: string;
174
+ data?: unknown;
175
+ } | undefined;
176
+ }, {
177
+ type: "response";
178
+ id: number;
179
+ timestamp: string;
180
+ receivedAtMs: number;
181
+ latencyMs: number;
182
+ result?: unknown;
183
+ error?: {
184
+ code: number;
185
+ message: string;
186
+ data?: unknown;
187
+ } | undefined;
188
+ }>;
189
+ export declare const McpNotificationEventSchema: z.ZodObject<{
190
+ type: z.ZodLiteral<"notification">;
191
+ timestamp: z.ZodString;
192
+ method: z.ZodString;
193
+ params: z.ZodOptional<z.ZodUnknown>;
194
+ sentAtMs: z.ZodNumber;
195
+ direction: z.ZodEnum<["client->server", "server->client"]>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ type: "notification";
198
+ method: string;
199
+ timestamp: string;
200
+ sentAtMs: number;
201
+ direction: "client->server" | "server->client";
202
+ params?: unknown;
203
+ }, {
204
+ type: "notification";
205
+ method: string;
206
+ timestamp: string;
207
+ sentAtMs: number;
208
+ direction: "client->server" | "server->client";
209
+ params?: unknown;
210
+ }>;
211
+ export declare const ErrorEventSchema: z.ZodObject<{
212
+ type: z.ZodLiteral<"error">;
213
+ timestamp: z.ZodString;
214
+ code: z.ZodString;
215
+ message: z.ZodString;
216
+ payload: z.ZodOptional<z.ZodUnknown>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ code: string;
219
+ message: string;
220
+ type: "error";
221
+ timestamp: string;
222
+ payload?: unknown;
223
+ }, {
224
+ code: string;
225
+ message: string;
226
+ type: "error";
227
+ timestamp: string;
228
+ payload?: unknown;
229
+ }>;
230
+ export type McpRequestEvent = z.infer<typeof McpRequestEventSchema>;
231
+ export type McpResponseEvent = z.infer<typeof McpResponseEventSchema>;
232
+ export type McpNotificationEvent = z.infer<typeof McpNotificationEventSchema>;
233
+ export type ErrorEvent = z.infer<typeof ErrorEventSchema>;
234
+ export declare const McpEventSchema: z.ZodUnion<[z.ZodObject<{
235
+ type: z.ZodLiteral<"request">;
236
+ timestamp: z.ZodString;
237
+ id: z.ZodNumber;
238
+ method: z.ZodString;
239
+ params: z.ZodOptional<z.ZodUnknown>;
240
+ sentAtMs: z.ZodNumber;
241
+ }, "strip", z.ZodTypeAny, {
242
+ type: "request";
243
+ id: number;
244
+ method: string;
245
+ timestamp: string;
246
+ sentAtMs: number;
247
+ params?: unknown;
248
+ }, {
249
+ type: "request";
250
+ id: number;
251
+ method: string;
252
+ timestamp: string;
253
+ sentAtMs: number;
254
+ params?: unknown;
255
+ }>, z.ZodObject<{
256
+ type: z.ZodLiteral<"response">;
257
+ timestamp: z.ZodString;
258
+ id: z.ZodNumber;
259
+ result: z.ZodOptional<z.ZodUnknown>;
260
+ error: z.ZodOptional<z.ZodObject<{
261
+ code: z.ZodNumber;
262
+ message: z.ZodString;
263
+ data: z.ZodOptional<z.ZodUnknown>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ code: number;
266
+ message: string;
267
+ data?: unknown;
268
+ }, {
269
+ code: number;
270
+ message: string;
271
+ data?: unknown;
272
+ }>>;
273
+ receivedAtMs: z.ZodNumber;
274
+ latencyMs: z.ZodNumber;
275
+ }, "strip", z.ZodTypeAny, {
276
+ type: "response";
277
+ id: number;
278
+ timestamp: string;
279
+ receivedAtMs: number;
280
+ latencyMs: number;
281
+ result?: unknown;
282
+ error?: {
283
+ code: number;
284
+ message: string;
285
+ data?: unknown;
286
+ } | undefined;
287
+ }, {
288
+ type: "response";
289
+ id: number;
290
+ timestamp: string;
291
+ receivedAtMs: number;
292
+ latencyMs: number;
293
+ result?: unknown;
294
+ error?: {
295
+ code: number;
296
+ message: string;
297
+ data?: unknown;
298
+ } | undefined;
299
+ }>, z.ZodObject<{
300
+ type: z.ZodLiteral<"notification">;
301
+ timestamp: z.ZodString;
302
+ method: z.ZodString;
303
+ params: z.ZodOptional<z.ZodUnknown>;
304
+ sentAtMs: z.ZodNumber;
305
+ direction: z.ZodEnum<["client->server", "server->client"]>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ type: "notification";
308
+ method: string;
309
+ timestamp: string;
310
+ sentAtMs: number;
311
+ direction: "client->server" | "server->client";
312
+ params?: unknown;
313
+ }, {
314
+ type: "notification";
315
+ method: string;
316
+ timestamp: string;
317
+ sentAtMs: number;
318
+ direction: "client->server" | "server->client";
319
+ params?: unknown;
320
+ }>, z.ZodObject<{
321
+ type: z.ZodLiteral<"error">;
322
+ timestamp: z.ZodString;
323
+ code: z.ZodString;
324
+ message: z.ZodString;
325
+ payload: z.ZodOptional<z.ZodUnknown>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ code: string;
328
+ message: string;
329
+ type: "error";
330
+ timestamp: string;
331
+ payload?: unknown;
332
+ }, {
333
+ code: string;
334
+ message: string;
335
+ type: "error";
336
+ timestamp: string;
337
+ payload?: unknown;
338
+ }>]>;
339
+ export type McpEvent = z.infer<typeof McpEventSchema>;
340
+ export declare const ServerInfoSchema: z.ZodObject<{
341
+ name: z.ZodString;
342
+ version: z.ZodString;
343
+ transport: z.ZodEnum<["stdio", "sse", "http"]>;
344
+ endpoint: z.ZodOptional<z.ZodString>;
345
+ command: z.ZodOptional<z.ZodString>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ name: string;
348
+ version: string;
349
+ transport: "stdio" | "sse" | "http";
350
+ endpoint?: string | undefined;
351
+ command?: string | undefined;
352
+ }, {
353
+ name: string;
354
+ version: string;
355
+ transport: "stdio" | "sse" | "http";
356
+ endpoint?: string | undefined;
357
+ command?: string | undefined;
358
+ }>;
359
+ export type ServerInfo = z.infer<typeof ServerInfoSchema>;
360
+ export declare const ToolDefinitionSchema: z.ZodObject<{
361
+ name: z.ZodString;
362
+ description: z.ZodOptional<z.ZodString>;
363
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ name: string;
366
+ description?: string | undefined;
367
+ inputSchema?: Record<string, unknown> | undefined;
368
+ }, {
369
+ name: string;
370
+ description?: string | undefined;
371
+ inputSchema?: Record<string, unknown> | undefined;
372
+ }>;
373
+ export declare const ResourceDefinitionSchema: z.ZodObject<{
374
+ uri: z.ZodString;
375
+ name: z.ZodOptional<z.ZodString>;
376
+ description: z.ZodOptional<z.ZodString>;
377
+ mimeType: z.ZodOptional<z.ZodString>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ uri: string;
380
+ name?: string | undefined;
381
+ description?: string | undefined;
382
+ mimeType?: string | undefined;
383
+ }, {
384
+ uri: string;
385
+ name?: string | undefined;
386
+ description?: string | undefined;
387
+ mimeType?: string | undefined;
388
+ }>;
389
+ export declare const PromptDefinitionSchema: z.ZodObject<{
390
+ name: z.ZodString;
391
+ description: z.ZodOptional<z.ZodString>;
392
+ arguments: z.ZodOptional<z.ZodArray<z.ZodObject<{
393
+ name: z.ZodString;
394
+ description: z.ZodOptional<z.ZodString>;
395
+ required: z.ZodOptional<z.ZodBoolean>;
396
+ }, "strip", z.ZodTypeAny, {
397
+ name: string;
398
+ description?: string | undefined;
399
+ required?: boolean | undefined;
400
+ }, {
401
+ name: string;
402
+ description?: string | undefined;
403
+ required?: boolean | undefined;
404
+ }>, "many">>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ name: string;
407
+ description?: string | undefined;
408
+ arguments?: {
409
+ name: string;
410
+ description?: string | undefined;
411
+ required?: boolean | undefined;
412
+ }[] | undefined;
413
+ }, {
414
+ name: string;
415
+ description?: string | undefined;
416
+ arguments?: {
417
+ name: string;
418
+ description?: string | undefined;
419
+ required?: boolean | undefined;
420
+ }[] | undefined;
421
+ }>;
422
+ export type ToolDefinition = z.infer<typeof ToolDefinitionSchema>;
423
+ export type ResourceDefinition = z.infer<typeof ResourceDefinitionSchema>;
424
+ export type PromptDefinition = z.infer<typeof PromptDefinitionSchema>;
425
+ export declare const McpSessionSchema: z.ZodObject<{
426
+ id: z.ZodString;
427
+ serverInfo: z.ZodObject<{
428
+ name: z.ZodString;
429
+ version: z.ZodString;
430
+ transport: z.ZodEnum<["stdio", "sse", "http"]>;
431
+ endpoint: z.ZodOptional<z.ZodString>;
432
+ command: z.ZodOptional<z.ZodString>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ name: string;
435
+ version: string;
436
+ transport: "stdio" | "sse" | "http";
437
+ endpoint?: string | undefined;
438
+ command?: string | undefined;
439
+ }, {
440
+ name: string;
441
+ version: string;
442
+ transport: "stdio" | "sse" | "http";
443
+ endpoint?: string | undefined;
444
+ command?: string | undefined;
445
+ }>;
446
+ clientInfo: z.ZodObject<{
447
+ name: z.ZodLiteral<"yumdee-mcp-studio">;
448
+ version: z.ZodString;
449
+ }, "strip", z.ZodTypeAny, {
450
+ name: "yumdee-mcp-studio";
451
+ version: string;
452
+ }, {
453
+ name: "yumdee-mcp-studio";
454
+ version: string;
455
+ }>;
456
+ startedAt: z.ZodString;
457
+ endedAt: z.ZodOptional<z.ZodString>;
458
+ events: z.ZodArray<z.ZodUnion<[z.ZodObject<{
459
+ type: z.ZodLiteral<"request">;
460
+ timestamp: z.ZodString;
461
+ id: z.ZodNumber;
462
+ method: z.ZodString;
463
+ params: z.ZodOptional<z.ZodUnknown>;
464
+ sentAtMs: z.ZodNumber;
465
+ }, "strip", z.ZodTypeAny, {
466
+ type: "request";
467
+ id: number;
468
+ method: string;
469
+ timestamp: string;
470
+ sentAtMs: number;
471
+ params?: unknown;
472
+ }, {
473
+ type: "request";
474
+ id: number;
475
+ method: string;
476
+ timestamp: string;
477
+ sentAtMs: number;
478
+ params?: unknown;
479
+ }>, z.ZodObject<{
480
+ type: z.ZodLiteral<"response">;
481
+ timestamp: z.ZodString;
482
+ id: z.ZodNumber;
483
+ result: z.ZodOptional<z.ZodUnknown>;
484
+ error: z.ZodOptional<z.ZodObject<{
485
+ code: z.ZodNumber;
486
+ message: z.ZodString;
487
+ data: z.ZodOptional<z.ZodUnknown>;
488
+ }, "strip", z.ZodTypeAny, {
489
+ code: number;
490
+ message: string;
491
+ data?: unknown;
492
+ }, {
493
+ code: number;
494
+ message: string;
495
+ data?: unknown;
496
+ }>>;
497
+ receivedAtMs: z.ZodNumber;
498
+ latencyMs: z.ZodNumber;
499
+ }, "strip", z.ZodTypeAny, {
500
+ type: "response";
501
+ id: number;
502
+ timestamp: string;
503
+ receivedAtMs: number;
504
+ latencyMs: number;
505
+ result?: unknown;
506
+ error?: {
507
+ code: number;
508
+ message: string;
509
+ data?: unknown;
510
+ } | undefined;
511
+ }, {
512
+ type: "response";
513
+ id: number;
514
+ timestamp: string;
515
+ receivedAtMs: number;
516
+ latencyMs: number;
517
+ result?: unknown;
518
+ error?: {
519
+ code: number;
520
+ message: string;
521
+ data?: unknown;
522
+ } | undefined;
523
+ }>, z.ZodObject<{
524
+ type: z.ZodLiteral<"notification">;
525
+ timestamp: z.ZodString;
526
+ method: z.ZodString;
527
+ params: z.ZodOptional<z.ZodUnknown>;
528
+ sentAtMs: z.ZodNumber;
529
+ direction: z.ZodEnum<["client->server", "server->client"]>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ type: "notification";
532
+ method: string;
533
+ timestamp: string;
534
+ sentAtMs: number;
535
+ direction: "client->server" | "server->client";
536
+ params?: unknown;
537
+ }, {
538
+ type: "notification";
539
+ method: string;
540
+ timestamp: string;
541
+ sentAtMs: number;
542
+ direction: "client->server" | "server->client";
543
+ params?: unknown;
544
+ }>, z.ZodObject<{
545
+ type: z.ZodLiteral<"error">;
546
+ timestamp: z.ZodString;
547
+ code: z.ZodString;
548
+ message: z.ZodString;
549
+ payload: z.ZodOptional<z.ZodUnknown>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ code: string;
552
+ message: string;
553
+ type: "error";
554
+ timestamp: string;
555
+ payload?: unknown;
556
+ }, {
557
+ code: string;
558
+ message: string;
559
+ type: "error";
560
+ timestamp: string;
561
+ payload?: unknown;
562
+ }>]>, "many">;
563
+ metadata: z.ZodOptional<z.ZodObject<{
564
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
565
+ notes: z.ZodOptional<z.ZodString>;
566
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
567
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
568
+ notes: z.ZodOptional<z.ZodString>;
569
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
570
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
571
+ notes: z.ZodOptional<z.ZodString>;
572
+ }, z.ZodTypeAny, "passthrough">>>;
573
+ }, "strip", z.ZodTypeAny, {
574
+ id: string;
575
+ clientInfo: {
576
+ name: "yumdee-mcp-studio";
577
+ version: string;
578
+ };
579
+ serverInfo: {
580
+ name: string;
581
+ version: string;
582
+ transport: "stdio" | "sse" | "http";
583
+ endpoint?: string | undefined;
584
+ command?: string | undefined;
585
+ };
586
+ startedAt: string;
587
+ events: ({
588
+ type: "request";
589
+ id: number;
590
+ method: string;
591
+ timestamp: string;
592
+ sentAtMs: number;
593
+ params?: unknown;
594
+ } | {
595
+ type: "response";
596
+ id: number;
597
+ timestamp: string;
598
+ receivedAtMs: number;
599
+ latencyMs: number;
600
+ result?: unknown;
601
+ error?: {
602
+ code: number;
603
+ message: string;
604
+ data?: unknown;
605
+ } | undefined;
606
+ } | {
607
+ type: "notification";
608
+ method: string;
609
+ timestamp: string;
610
+ sentAtMs: number;
611
+ direction: "client->server" | "server->client";
612
+ params?: unknown;
613
+ } | {
614
+ code: string;
615
+ message: string;
616
+ type: "error";
617
+ timestamp: string;
618
+ payload?: unknown;
619
+ })[];
620
+ endedAt?: string | undefined;
621
+ metadata?: z.objectOutputType<{
622
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
623
+ notes: z.ZodOptional<z.ZodString>;
624
+ }, z.ZodTypeAny, "passthrough"> | undefined;
625
+ }, {
626
+ id: string;
627
+ clientInfo: {
628
+ name: "yumdee-mcp-studio";
629
+ version: string;
630
+ };
631
+ serverInfo: {
632
+ name: string;
633
+ version: string;
634
+ transport: "stdio" | "sse" | "http";
635
+ endpoint?: string | undefined;
636
+ command?: string | undefined;
637
+ };
638
+ startedAt: string;
639
+ events: ({
640
+ type: "request";
641
+ id: number;
642
+ method: string;
643
+ timestamp: string;
644
+ sentAtMs: number;
645
+ params?: unknown;
646
+ } | {
647
+ type: "response";
648
+ id: number;
649
+ timestamp: string;
650
+ receivedAtMs: number;
651
+ latencyMs: number;
652
+ result?: unknown;
653
+ error?: {
654
+ code: number;
655
+ message: string;
656
+ data?: unknown;
657
+ } | undefined;
658
+ } | {
659
+ type: "notification";
660
+ method: string;
661
+ timestamp: string;
662
+ sentAtMs: number;
663
+ direction: "client->server" | "server->client";
664
+ params?: unknown;
665
+ } | {
666
+ code: string;
667
+ message: string;
668
+ type: "error";
669
+ timestamp: string;
670
+ payload?: unknown;
671
+ })[];
672
+ endedAt?: string | undefined;
673
+ metadata?: z.objectInputType<{
674
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
675
+ notes: z.ZodOptional<z.ZodString>;
676
+ }, z.ZodTypeAny, "passthrough"> | undefined;
677
+ }>;
678
+ export type McpSession = z.infer<typeof McpSessionSchema>;
679
+ /**
680
+ * Parse and validate a session from unknown data
681
+ */
682
+ export declare function parseSession(data: unknown): McpSession;
683
+ /**
684
+ * Parse and validate an event from unknown data
685
+ */
686
+ export declare function parseEvent(data: unknown): McpEvent;
687
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"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"}