@crewhaus/spec 0.5.3 → 0.5.5

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/index.d.ts CHANGED
@@ -5,27 +5,33 @@ declare const mcpServerConfigSchema: z.ZodDiscriminatedUnion<"transport", [z.Zod
5
5
  command: z.ZodString;
6
6
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
7
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8
+ required: z.ZodOptional<z.ZodBoolean>;
8
9
  }, "strict", z.ZodTypeAny, {
9
10
  transport: "stdio";
10
11
  command: string;
11
12
  args?: string[] | undefined;
12
13
  env?: Record<string, string> | undefined;
14
+ required?: boolean | undefined;
13
15
  }, {
14
16
  transport: "stdio";
15
17
  command: string;
16
18
  args?: string[] | undefined;
17
19
  env?: Record<string, string> | undefined;
20
+ required?: boolean | undefined;
18
21
  }>, z.ZodObject<{
19
22
  transport: z.ZodLiteral<"sse">;
20
23
  url: z.ZodString;
21
24
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
25
+ required: z.ZodOptional<z.ZodBoolean>;
22
26
  }, "strict", z.ZodTypeAny, {
23
27
  transport: "sse";
24
28
  url: string;
29
+ required?: boolean | undefined;
25
30
  headers?: Record<string, string> | undefined;
26
31
  }, {
27
32
  transport: "sse";
28
33
  url: string;
34
+ required?: boolean | undefined;
29
35
  headers?: Record<string, string> | undefined;
30
36
  }>]>;
31
37
  declare const subAgentDefinitionSchema: z.ZodObject<{
@@ -2437,27 +2443,33 @@ declare const cliSchema: z.ZodObject<{
2437
2443
  command: z.ZodString;
2438
2444
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2439
2445
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2446
+ required: z.ZodOptional<z.ZodBoolean>;
2440
2447
  }, "strict", z.ZodTypeAny, {
2441
2448
  transport: "stdio";
2442
2449
  command: string;
2443
2450
  args?: string[] | undefined;
2444
2451
  env?: Record<string, string> | undefined;
2452
+ required?: boolean | undefined;
2445
2453
  }, {
2446
2454
  transport: "stdio";
2447
2455
  command: string;
2448
2456
  args?: string[] | undefined;
2449
2457
  env?: Record<string, string> | undefined;
2458
+ required?: boolean | undefined;
2450
2459
  }>, z.ZodObject<{
2451
2460
  transport: z.ZodLiteral<"sse">;
2452
2461
  url: z.ZodString;
2453
2462
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2463
+ required: z.ZodOptional<z.ZodBoolean>;
2454
2464
  }, "strict", z.ZodTypeAny, {
2455
2465
  transport: "sse";
2456
2466
  url: string;
2467
+ required?: boolean | undefined;
2457
2468
  headers?: Record<string, string> | undefined;
2458
2469
  }, {
2459
2470
  transport: "sse";
2460
2471
  url: string;
2472
+ required?: boolean | undefined;
2461
2473
  headers?: Record<string, string> | undefined;
2462
2474
  }>]>>>;
2463
2475
  permissions: z.ZodOptional<z.ZodObject<{
@@ -3660,9 +3672,11 @@ declare const cliSchema: z.ZodObject<{
3660
3672
  command: string;
3661
3673
  args?: string[] | undefined;
3662
3674
  env?: Record<string, string> | undefined;
3675
+ required?: boolean | undefined;
3663
3676
  } | {
3664
3677
  transport: "sse";
3665
3678
  url: string;
3679
+ required?: boolean | undefined;
3666
3680
  headers?: Record<string, string> | undefined;
3667
3681
  }> | undefined;
3668
3682
  compaction?: {
@@ -3996,9 +4010,11 @@ declare const cliSchema: z.ZodObject<{
3996
4010
  command: string;
3997
4011
  args?: string[] | undefined;
3998
4012
  env?: Record<string, string> | undefined;
4013
+ required?: boolean | undefined;
3999
4014
  } | {
4000
4015
  transport: "sse";
4001
4016
  url: string;
4017
+ required?: boolean | undefined;
4002
4018
  headers?: Record<string, string> | undefined;
4003
4019
  }> | undefined;
4004
4020
  compaction?: {
@@ -5626,27 +5642,33 @@ declare const workflowSchema: z.ZodObject<{
5626
5642
  command: z.ZodString;
5627
5643
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5628
5644
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5645
+ required: z.ZodOptional<z.ZodBoolean>;
5629
5646
  }, "strict", z.ZodTypeAny, {
5630
5647
  transport: "stdio";
5631
5648
  command: string;
5632
5649
  args?: string[] | undefined;
5633
5650
  env?: Record<string, string> | undefined;
5651
+ required?: boolean | undefined;
5634
5652
  }, {
5635
5653
  transport: "stdio";
5636
5654
  command: string;
5637
5655
  args?: string[] | undefined;
5638
5656
  env?: Record<string, string> | undefined;
5657
+ required?: boolean | undefined;
5639
5658
  }>, z.ZodObject<{
5640
5659
  transport: z.ZodLiteral<"sse">;
5641
5660
  url: z.ZodString;
5642
5661
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5662
+ required: z.ZodOptional<z.ZodBoolean>;
5643
5663
  }, "strict", z.ZodTypeAny, {
5644
5664
  transport: "sse";
5645
5665
  url: string;
5666
+ required?: boolean | undefined;
5646
5667
  headers?: Record<string, string> | undefined;
5647
5668
  }, {
5648
5669
  transport: "sse";
5649
5670
  url: string;
5671
+ required?: boolean | undefined;
5650
5672
  headers?: Record<string, string> | undefined;
5651
5673
  }>]>>>;
5652
5674
  permissions: z.ZodOptional<z.ZodObject<{
@@ -6077,9 +6099,11 @@ declare const workflowSchema: z.ZodObject<{
6077
6099
  command: string;
6078
6100
  args?: string[] | undefined;
6079
6101
  env?: Record<string, string> | undefined;
6102
+ required?: boolean | undefined;
6080
6103
  } | {
6081
6104
  transport: "sse";
6082
6105
  url: string;
6106
+ required?: boolean | undefined;
6083
6107
  headers?: Record<string, string> | undefined;
6084
6108
  }> | undefined;
6085
6109
  compaction?: {
@@ -6253,9 +6277,11 @@ declare const workflowSchema: z.ZodObject<{
6253
6277
  command: string;
6254
6278
  args?: string[] | undefined;
6255
6279
  env?: Record<string, string> | undefined;
6280
+ required?: boolean | undefined;
6256
6281
  } | {
6257
6282
  transport: "sse";
6258
6283
  url: string;
6284
+ required?: boolean | undefined;
6259
6285
  headers?: Record<string, string> | undefined;
6260
6286
  }> | undefined;
6261
6287
  compaction?: {
@@ -7708,27 +7734,33 @@ declare const channelSchema: z.ZodObject<{
7708
7734
  command: z.ZodString;
7709
7735
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7710
7736
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7737
+ required: z.ZodOptional<z.ZodBoolean>;
7711
7738
  }, "strict", z.ZodTypeAny, {
7712
7739
  transport: "stdio";
7713
7740
  command: string;
7714
7741
  args?: string[] | undefined;
7715
7742
  env?: Record<string, string> | undefined;
7743
+ required?: boolean | undefined;
7716
7744
  }, {
7717
7745
  transport: "stdio";
7718
7746
  command: string;
7719
7747
  args?: string[] | undefined;
7720
7748
  env?: Record<string, string> | undefined;
7749
+ required?: boolean | undefined;
7721
7750
  }>, z.ZodObject<{
7722
7751
  transport: z.ZodLiteral<"sse">;
7723
7752
  url: z.ZodString;
7724
7753
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7754
+ required: z.ZodOptional<z.ZodBoolean>;
7725
7755
  }, "strict", z.ZodTypeAny, {
7726
7756
  transport: "sse";
7727
7757
  url: string;
7758
+ required?: boolean | undefined;
7728
7759
  headers?: Record<string, string> | undefined;
7729
7760
  }, {
7730
7761
  transport: "sse";
7731
7762
  url: string;
7763
+ required?: boolean | undefined;
7732
7764
  headers?: Record<string, string> | undefined;
7733
7765
  }>]>>>;
7734
7766
  permissions: z.ZodOptional<z.ZodObject<{
@@ -8923,9 +8955,11 @@ declare const channelSchema: z.ZodObject<{
8923
8955
  command: string;
8924
8956
  args?: string[] | undefined;
8925
8957
  env?: Record<string, string> | undefined;
8958
+ required?: boolean | undefined;
8926
8959
  } | {
8927
8960
  transport: "sse";
8928
8961
  url: string;
8962
+ required?: boolean | undefined;
8929
8963
  headers?: Record<string, string> | undefined;
8930
8964
  }> | undefined;
8931
8965
  compaction?: {
@@ -9293,9 +9327,11 @@ declare const channelSchema: z.ZodObject<{
9293
9327
  command: string;
9294
9328
  args?: string[] | undefined;
9295
9329
  env?: Record<string, string> | undefined;
9330
+ required?: boolean | undefined;
9296
9331
  } | {
9297
9332
  transport: "sse";
9298
9333
  url: string;
9334
+ required?: boolean | undefined;
9299
9335
  headers?: Record<string, string> | undefined;
9300
9336
  }> | undefined;
9301
9337
  compaction?: {
@@ -14304,27 +14340,33 @@ declare const crewSchema: z.ZodObject<{
14304
14340
  command: z.ZodString;
14305
14341
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14306
14342
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14343
+ required: z.ZodOptional<z.ZodBoolean>;
14307
14344
  }, "strict", z.ZodTypeAny, {
14308
14345
  transport: "stdio";
14309
14346
  command: string;
14310
14347
  args?: string[] | undefined;
14311
14348
  env?: Record<string, string> | undefined;
14349
+ required?: boolean | undefined;
14312
14350
  }, {
14313
14351
  transport: "stdio";
14314
14352
  command: string;
14315
14353
  args?: string[] | undefined;
14316
14354
  env?: Record<string, string> | undefined;
14355
+ required?: boolean | undefined;
14317
14356
  }>, z.ZodObject<{
14318
14357
  transport: z.ZodLiteral<"sse">;
14319
14358
  url: z.ZodString;
14320
14359
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14360
+ required: z.ZodOptional<z.ZodBoolean>;
14321
14361
  }, "strict", z.ZodTypeAny, {
14322
14362
  transport: "sse";
14323
14363
  url: string;
14364
+ required?: boolean | undefined;
14324
14365
  headers?: Record<string, string> | undefined;
14325
14366
  }, {
14326
14367
  transport: "sse";
14327
14368
  url: string;
14369
+ required?: boolean | undefined;
14328
14370
  headers?: Record<string, string> | undefined;
14329
14371
  }>]>>>;
14330
14372
  permissions: z.ZodOptional<z.ZodObject<{
@@ -15250,9 +15292,11 @@ declare const crewSchema: z.ZodObject<{
15250
15292
  command: string;
15251
15293
  args?: string[] | undefined;
15252
15294
  env?: Record<string, string> | undefined;
15295
+ required?: boolean | undefined;
15253
15296
  } | {
15254
15297
  transport: "sse";
15255
15298
  url: string;
15299
+ required?: boolean | undefined;
15256
15300
  headers?: Record<string, string> | undefined;
15257
15301
  }> | undefined;
15258
15302
  compaction?: {
@@ -15528,9 +15572,11 @@ declare const crewSchema: z.ZodObject<{
15528
15572
  command: string;
15529
15573
  args?: string[] | undefined;
15530
15574
  env?: Record<string, string> | undefined;
15575
+ required?: boolean | undefined;
15531
15576
  } | {
15532
15577
  transport: "sse";
15533
15578
  url: string;
15579
+ required?: boolean | undefined;
15534
15580
  headers?: Record<string, string> | undefined;
15535
15581
  }> | undefined;
15536
15582
  compaction?: {
@@ -15978,27 +16024,33 @@ declare const researchSchema: z.ZodObject<{
15978
16024
  command: z.ZodString;
15979
16025
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15980
16026
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16027
+ required: z.ZodOptional<z.ZodBoolean>;
15981
16028
  }, "strict", z.ZodTypeAny, {
15982
16029
  transport: "stdio";
15983
16030
  command: string;
15984
16031
  args?: string[] | undefined;
15985
16032
  env?: Record<string, string> | undefined;
16033
+ required?: boolean | undefined;
15986
16034
  }, {
15987
16035
  transport: "stdio";
15988
16036
  command: string;
15989
16037
  args?: string[] | undefined;
15990
16038
  env?: Record<string, string> | undefined;
16039
+ required?: boolean | undefined;
15991
16040
  }>, z.ZodObject<{
15992
16041
  transport: z.ZodLiteral<"sse">;
15993
16042
  url: z.ZodString;
15994
16043
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16044
+ required: z.ZodOptional<z.ZodBoolean>;
15995
16045
  }, "strict", z.ZodTypeAny, {
15996
16046
  transport: "sse";
15997
16047
  url: string;
16048
+ required?: boolean | undefined;
15998
16049
  headers?: Record<string, string> | undefined;
15999
16050
  }, {
16000
16051
  transport: "sse";
16001
16052
  url: string;
16053
+ required?: boolean | undefined;
16002
16054
  headers?: Record<string, string> | undefined;
16003
16055
  }>]>>>;
16004
16056
  permissions: z.ZodOptional<z.ZodObject<{
@@ -16644,9 +16696,11 @@ declare const researchSchema: z.ZodObject<{
16644
16696
  command: string;
16645
16697
  args?: string[] | undefined;
16646
16698
  env?: Record<string, string> | undefined;
16699
+ required?: boolean | undefined;
16647
16700
  } | {
16648
16701
  transport: "sse";
16649
16702
  url: string;
16703
+ required?: boolean | undefined;
16650
16704
  headers?: Record<string, string> | undefined;
16651
16705
  }> | undefined;
16652
16706
  compaction?: {
@@ -16837,9 +16891,11 @@ declare const researchSchema: z.ZodObject<{
16837
16891
  command: string;
16838
16892
  args?: string[] | undefined;
16839
16893
  env?: Record<string, string> | undefined;
16894
+ required?: boolean | undefined;
16840
16895
  } | {
16841
16896
  transport: "sse";
16842
16897
  url: string;
16898
+ required?: boolean | undefined;
16843
16899
  headers?: Record<string, string> | undefined;
16844
16900
  }> | undefined;
16845
16901
  compaction?: {
@@ -17271,27 +17327,33 @@ declare const batchSchema: z.ZodObject<{
17271
17327
  command: z.ZodString;
17272
17328
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17273
17329
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
17330
+ required: z.ZodOptional<z.ZodBoolean>;
17274
17331
  }, "strict", z.ZodTypeAny, {
17275
17332
  transport: "stdio";
17276
17333
  command: string;
17277
17334
  args?: string[] | undefined;
17278
17335
  env?: Record<string, string> | undefined;
17336
+ required?: boolean | undefined;
17279
17337
  }, {
17280
17338
  transport: "stdio";
17281
17339
  command: string;
17282
17340
  args?: string[] | undefined;
17283
17341
  env?: Record<string, string> | undefined;
17342
+ required?: boolean | undefined;
17284
17343
  }>, z.ZodObject<{
17285
17344
  transport: z.ZodLiteral<"sse">;
17286
17345
  url: z.ZodString;
17287
17346
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
17347
+ required: z.ZodOptional<z.ZodBoolean>;
17288
17348
  }, "strict", z.ZodTypeAny, {
17289
17349
  transport: "sse";
17290
17350
  url: string;
17351
+ required?: boolean | undefined;
17291
17352
  headers?: Record<string, string> | undefined;
17292
17353
  }, {
17293
17354
  transport: "sse";
17294
17355
  url: string;
17356
+ required?: boolean | undefined;
17295
17357
  headers?: Record<string, string> | undefined;
17296
17358
  }>]>>>;
17297
17359
  permissions: z.ZodOptional<z.ZodObject<{
@@ -17734,9 +17796,11 @@ declare const batchSchema: z.ZodObject<{
17734
17796
  command: string;
17735
17797
  args?: string[] | undefined;
17736
17798
  env?: Record<string, string> | undefined;
17799
+ required?: boolean | undefined;
17737
17800
  } | {
17738
17801
  transport: "sse";
17739
17802
  url: string;
17803
+ required?: boolean | undefined;
17740
17804
  headers?: Record<string, string> | undefined;
17741
17805
  }> | undefined;
17742
17806
  compaction?: {
@@ -17897,9 +17961,11 @@ declare const batchSchema: z.ZodObject<{
17897
17961
  command: string;
17898
17962
  args?: string[] | undefined;
17899
17963
  env?: Record<string, string> | undefined;
17964
+ required?: boolean | undefined;
17900
17965
  } | {
17901
17966
  transport: "sse";
17902
17967
  url: string;
17968
+ required?: boolean | undefined;
17903
17969
  headers?: Record<string, string> | undefined;
17904
17970
  }> | undefined;
17905
17971
  compaction?: {
@@ -18077,27 +18143,33 @@ declare const voiceSchema: z.ZodObject<{
18077
18143
  command: z.ZodString;
18078
18144
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18079
18145
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18146
+ required: z.ZodOptional<z.ZodBoolean>;
18080
18147
  }, "strict", z.ZodTypeAny, {
18081
18148
  transport: "stdio";
18082
18149
  command: string;
18083
18150
  args?: string[] | undefined;
18084
18151
  env?: Record<string, string> | undefined;
18152
+ required?: boolean | undefined;
18085
18153
  }, {
18086
18154
  transport: "stdio";
18087
18155
  command: string;
18088
18156
  args?: string[] | undefined;
18089
18157
  env?: Record<string, string> | undefined;
18158
+ required?: boolean | undefined;
18090
18159
  }>, z.ZodObject<{
18091
18160
  transport: z.ZodLiteral<"sse">;
18092
18161
  url: z.ZodString;
18093
18162
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18163
+ required: z.ZodOptional<z.ZodBoolean>;
18094
18164
  }, "strict", z.ZodTypeAny, {
18095
18165
  transport: "sse";
18096
18166
  url: string;
18167
+ required?: boolean | undefined;
18097
18168
  headers?: Record<string, string> | undefined;
18098
18169
  }, {
18099
18170
  transport: "sse";
18100
18171
  url: string;
18172
+ required?: boolean | undefined;
18101
18173
  headers?: Record<string, string> | undefined;
18102
18174
  }>]>>>;
18103
18175
  permissions: z.ZodOptional<z.ZodObject<{
@@ -18267,9 +18339,11 @@ declare const voiceSchema: z.ZodObject<{
18267
18339
  command: string;
18268
18340
  args?: string[] | undefined;
18269
18341
  env?: Record<string, string> | undefined;
18342
+ required?: boolean | undefined;
18270
18343
  } | {
18271
18344
  transport: "sse";
18272
18345
  url: string;
18346
+ required?: boolean | undefined;
18273
18347
  headers?: Record<string, string> | undefined;
18274
18348
  }> | undefined;
18275
18349
  compaction?: {
@@ -18329,9 +18403,11 @@ declare const voiceSchema: z.ZodObject<{
18329
18403
  command: string;
18330
18404
  args?: string[] | undefined;
18331
18405
  env?: Record<string, string> | undefined;
18406
+ required?: boolean | undefined;
18332
18407
  } | {
18333
18408
  transport: "sse";
18334
18409
  url: string;
18410
+ required?: boolean | undefined;
18335
18411
  headers?: Record<string, string> | undefined;
18336
18412
  }> | undefined;
18337
18413
  compaction?: {
@@ -18725,27 +18801,33 @@ declare const browserSchema: z.ZodObject<{
18725
18801
  command: z.ZodString;
18726
18802
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18727
18803
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18804
+ required: z.ZodOptional<z.ZodBoolean>;
18728
18805
  }, "strict", z.ZodTypeAny, {
18729
18806
  transport: "stdio";
18730
18807
  command: string;
18731
18808
  args?: string[] | undefined;
18732
18809
  env?: Record<string, string> | undefined;
18810
+ required?: boolean | undefined;
18733
18811
  }, {
18734
18812
  transport: "stdio";
18735
18813
  command: string;
18736
18814
  args?: string[] | undefined;
18737
18815
  env?: Record<string, string> | undefined;
18816
+ required?: boolean | undefined;
18738
18817
  }>, z.ZodObject<{
18739
18818
  transport: z.ZodLiteral<"sse">;
18740
18819
  url: z.ZodString;
18741
18820
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18821
+ required: z.ZodOptional<z.ZodBoolean>;
18742
18822
  }, "strict", z.ZodTypeAny, {
18743
18823
  transport: "sse";
18744
18824
  url: string;
18825
+ required?: boolean | undefined;
18745
18826
  headers?: Record<string, string> | undefined;
18746
18827
  }, {
18747
18828
  transport: "sse";
18748
18829
  url: string;
18830
+ required?: boolean | undefined;
18749
18831
  headers?: Record<string, string> | undefined;
18750
18832
  }>]>>>;
18751
18833
  permissions: z.ZodOptional<z.ZodObject<{
@@ -19042,9 +19124,11 @@ declare const browserSchema: z.ZodObject<{
19042
19124
  command: string;
19043
19125
  args?: string[] | undefined;
19044
19126
  env?: Record<string, string> | undefined;
19127
+ required?: boolean | undefined;
19045
19128
  } | {
19046
19129
  transport: "sse";
19047
19130
  url: string;
19131
+ required?: boolean | undefined;
19048
19132
  headers?: Record<string, string> | undefined;
19049
19133
  }> | undefined;
19050
19134
  compaction?: {
@@ -19152,9 +19236,11 @@ declare const browserSchema: z.ZodObject<{
19152
19236
  command: string;
19153
19237
  args?: string[] | undefined;
19154
19238
  env?: Record<string, string> | undefined;
19239
+ required?: boolean | undefined;
19155
19240
  } | {
19156
19241
  transport: "sse";
19157
19242
  url: string;
19243
+ required?: boolean | undefined;
19158
19244
  headers?: Record<string, string> | undefined;
19159
19245
  }> | undefined;
19160
19246
  compaction?: {
@@ -19571,27 +19657,33 @@ declare const onchainSchema: z.ZodObject<{
19571
19657
  command: z.ZodString;
19572
19658
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19573
19659
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
19660
+ required: z.ZodOptional<z.ZodBoolean>;
19574
19661
  }, "strict", z.ZodTypeAny, {
19575
19662
  transport: "stdio";
19576
19663
  command: string;
19577
19664
  args?: string[] | undefined;
19578
19665
  env?: Record<string, string> | undefined;
19666
+ required?: boolean | undefined;
19579
19667
  }, {
19580
19668
  transport: "stdio";
19581
19669
  command: string;
19582
19670
  args?: string[] | undefined;
19583
19671
  env?: Record<string, string> | undefined;
19672
+ required?: boolean | undefined;
19584
19673
  }>, z.ZodObject<{
19585
19674
  transport: z.ZodLiteral<"sse">;
19586
19675
  url: z.ZodString;
19587
19676
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
19677
+ required: z.ZodOptional<z.ZodBoolean>;
19588
19678
  }, "strict", z.ZodTypeAny, {
19589
19679
  transport: "sse";
19590
19680
  url: string;
19681
+ required?: boolean | undefined;
19591
19682
  headers?: Record<string, string> | undefined;
19592
19683
  }, {
19593
19684
  transport: "sse";
19594
19685
  url: string;
19686
+ required?: boolean | undefined;
19595
19687
  headers?: Record<string, string> | undefined;
19596
19688
  }>]>>>;
19597
19689
  permissions: z.ZodOptional<z.ZodObject<{
@@ -19781,9 +19873,11 @@ declare const onchainSchema: z.ZodObject<{
19781
19873
  command: string;
19782
19874
  args?: string[] | undefined;
19783
19875
  env?: Record<string, string> | undefined;
19876
+ required?: boolean | undefined;
19784
19877
  } | {
19785
19878
  transport: "sse";
19786
19879
  url: string;
19880
+ required?: boolean | undefined;
19787
19881
  headers?: Record<string, string> | undefined;
19788
19882
  }> | undefined;
19789
19883
  compaction?: {
@@ -19855,9 +19949,11 @@ declare const onchainSchema: z.ZodObject<{
19855
19949
  command: string;
19856
19950
  args?: string[] | undefined;
19857
19951
  env?: Record<string, string> | undefined;
19952
+ required?: boolean | undefined;
19858
19953
  } | {
19859
19954
  transport: "sse";
19860
19955
  url: string;
19956
+ required?: boolean | undefined;
19861
19957
  headers?: Record<string, string> | undefined;
19862
19958
  }> | undefined;
19863
19959
  compaction?: {
@@ -20066,27 +20162,33 @@ declare const onchainGameSchema: z.ZodObject<{
20066
20162
  command: z.ZodString;
20067
20163
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20068
20164
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20165
+ required: z.ZodOptional<z.ZodBoolean>;
20069
20166
  }, "strict", z.ZodTypeAny, {
20070
20167
  transport: "stdio";
20071
20168
  command: string;
20072
20169
  args?: string[] | undefined;
20073
20170
  env?: Record<string, string> | undefined;
20171
+ required?: boolean | undefined;
20074
20172
  }, {
20075
20173
  transport: "stdio";
20076
20174
  command: string;
20077
20175
  args?: string[] | undefined;
20078
20176
  env?: Record<string, string> | undefined;
20177
+ required?: boolean | undefined;
20079
20178
  }>, z.ZodObject<{
20080
20179
  transport: z.ZodLiteral<"sse">;
20081
20180
  url: z.ZodString;
20082
20181
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20182
+ required: z.ZodOptional<z.ZodBoolean>;
20083
20183
  }, "strict", z.ZodTypeAny, {
20084
20184
  transport: "sse";
20085
20185
  url: string;
20186
+ required?: boolean | undefined;
20086
20187
  headers?: Record<string, string> | undefined;
20087
20188
  }, {
20088
20189
  transport: "sse";
20089
20190
  url: string;
20191
+ required?: boolean | undefined;
20090
20192
  headers?: Record<string, string> | undefined;
20091
20193
  }>]>>>;
20092
20194
  permissions: z.ZodOptional<z.ZodObject<{
@@ -20266,9 +20368,11 @@ declare const onchainGameSchema: z.ZodObject<{
20266
20368
  command: string;
20267
20369
  args?: string[] | undefined;
20268
20370
  env?: Record<string, string> | undefined;
20371
+ required?: boolean | undefined;
20269
20372
  } | {
20270
20373
  transport: "sse";
20271
20374
  url: string;
20375
+ required?: boolean | undefined;
20272
20376
  headers?: Record<string, string> | undefined;
20273
20377
  }> | undefined;
20274
20378
  compaction?: {
@@ -20344,9 +20448,11 @@ declare const onchainGameSchema: z.ZodObject<{
20344
20448
  command: string;
20345
20449
  args?: string[] | undefined;
20346
20450
  env?: Record<string, string> | undefined;
20451
+ required?: boolean | undefined;
20347
20452
  } | {
20348
20453
  transport: "sse";
20349
20454
  url: string;
20455
+ required?: boolean | undefined;
20350
20456
  headers?: Record<string, string> | undefined;
20351
20457
  }> | undefined;
20352
20458
  compaction?: {
@@ -20938,27 +21044,33 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
20938
21044
  command: z.ZodString;
20939
21045
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20940
21046
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21047
+ required: z.ZodOptional<z.ZodBoolean>;
20941
21048
  }, "strict", z.ZodTypeAny, {
20942
21049
  transport: "stdio";
20943
21050
  command: string;
20944
21051
  args?: string[] | undefined;
20945
21052
  env?: Record<string, string> | undefined;
21053
+ required?: boolean | undefined;
20946
21054
  }, {
20947
21055
  transport: "stdio";
20948
21056
  command: string;
20949
21057
  args?: string[] | undefined;
20950
21058
  env?: Record<string, string> | undefined;
21059
+ required?: boolean | undefined;
20951
21060
  }>, z.ZodObject<{
20952
21061
  transport: z.ZodLiteral<"sse">;
20953
21062
  url: z.ZodString;
20954
21063
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21064
+ required: z.ZodOptional<z.ZodBoolean>;
20955
21065
  }, "strict", z.ZodTypeAny, {
20956
21066
  transport: "sse";
20957
21067
  url: string;
21068
+ required?: boolean | undefined;
20958
21069
  headers?: Record<string, string> | undefined;
20959
21070
  }, {
20960
21071
  transport: "sse";
20961
21072
  url: string;
21073
+ required?: boolean | undefined;
20962
21074
  headers?: Record<string, string> | undefined;
20963
21075
  }>]>>>;
20964
21076
  permissions: z.ZodOptional<z.ZodObject<{
@@ -22161,9 +22273,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
22161
22273
  command: string;
22162
22274
  args?: string[] | undefined;
22163
22275
  env?: Record<string, string> | undefined;
22276
+ required?: boolean | undefined;
22164
22277
  } | {
22165
22278
  transport: "sse";
22166
22279
  url: string;
22280
+ required?: boolean | undefined;
22167
22281
  headers?: Record<string, string> | undefined;
22168
22282
  }> | undefined;
22169
22283
  compaction?: {
@@ -22497,9 +22611,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
22497
22611
  command: string;
22498
22612
  args?: string[] | undefined;
22499
22613
  env?: Record<string, string> | undefined;
22614
+ required?: boolean | undefined;
22500
22615
  } | {
22501
22616
  transport: "sse";
22502
22617
  url: string;
22618
+ required?: boolean | undefined;
22503
22619
  headers?: Record<string, string> | undefined;
22504
22620
  }> | undefined;
22505
22621
  compaction?: {
@@ -23187,27 +23303,33 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
23187
23303
  command: z.ZodString;
23188
23304
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23189
23305
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23306
+ required: z.ZodOptional<z.ZodBoolean>;
23190
23307
  }, "strict", z.ZodTypeAny, {
23191
23308
  transport: "stdio";
23192
23309
  command: string;
23193
23310
  args?: string[] | undefined;
23194
23311
  env?: Record<string, string> | undefined;
23312
+ required?: boolean | undefined;
23195
23313
  }, {
23196
23314
  transport: "stdio";
23197
23315
  command: string;
23198
23316
  args?: string[] | undefined;
23199
23317
  env?: Record<string, string> | undefined;
23318
+ required?: boolean | undefined;
23200
23319
  }>, z.ZodObject<{
23201
23320
  transport: z.ZodLiteral<"sse">;
23202
23321
  url: z.ZodString;
23203
23322
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23323
+ required: z.ZodOptional<z.ZodBoolean>;
23204
23324
  }, "strict", z.ZodTypeAny, {
23205
23325
  transport: "sse";
23206
23326
  url: string;
23327
+ required?: boolean | undefined;
23207
23328
  headers?: Record<string, string> | undefined;
23208
23329
  }, {
23209
23330
  transport: "sse";
23210
23331
  url: string;
23332
+ required?: boolean | undefined;
23211
23333
  headers?: Record<string, string> | undefined;
23212
23334
  }>]>>>;
23213
23335
  permissions: z.ZodOptional<z.ZodObject<{
@@ -23638,9 +23760,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
23638
23760
  command: string;
23639
23761
  args?: string[] | undefined;
23640
23762
  env?: Record<string, string> | undefined;
23763
+ required?: boolean | undefined;
23641
23764
  } | {
23642
23765
  transport: "sse";
23643
23766
  url: string;
23767
+ required?: boolean | undefined;
23644
23768
  headers?: Record<string, string> | undefined;
23645
23769
  }> | undefined;
23646
23770
  compaction?: {
@@ -23814,9 +23938,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
23814
23938
  command: string;
23815
23939
  args?: string[] | undefined;
23816
23940
  env?: Record<string, string> | undefined;
23941
+ required?: boolean | undefined;
23817
23942
  } | {
23818
23943
  transport: "sse";
23819
23944
  url: string;
23945
+ required?: boolean | undefined;
23820
23946
  headers?: Record<string, string> | undefined;
23821
23947
  }> | undefined;
23822
23948
  compaction?: {
@@ -24646,27 +24772,33 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
24646
24772
  command: z.ZodString;
24647
24773
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24648
24774
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
24775
+ required: z.ZodOptional<z.ZodBoolean>;
24649
24776
  }, "strict", z.ZodTypeAny, {
24650
24777
  transport: "stdio";
24651
24778
  command: string;
24652
24779
  args?: string[] | undefined;
24653
24780
  env?: Record<string, string> | undefined;
24781
+ required?: boolean | undefined;
24654
24782
  }, {
24655
24783
  transport: "stdio";
24656
24784
  command: string;
24657
24785
  args?: string[] | undefined;
24658
24786
  env?: Record<string, string> | undefined;
24787
+ required?: boolean | undefined;
24659
24788
  }>, z.ZodObject<{
24660
24789
  transport: z.ZodLiteral<"sse">;
24661
24790
  url: z.ZodString;
24662
24791
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
24792
+ required: z.ZodOptional<z.ZodBoolean>;
24663
24793
  }, "strict", z.ZodTypeAny, {
24664
24794
  transport: "sse";
24665
24795
  url: string;
24796
+ required?: boolean | undefined;
24666
24797
  headers?: Record<string, string> | undefined;
24667
24798
  }, {
24668
24799
  transport: "sse";
24669
24800
  url: string;
24801
+ required?: boolean | undefined;
24670
24802
  headers?: Record<string, string> | undefined;
24671
24803
  }>]>>>;
24672
24804
  permissions: z.ZodOptional<z.ZodObject<{
@@ -25861,9 +25993,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
25861
25993
  command: string;
25862
25994
  args?: string[] | undefined;
25863
25995
  env?: Record<string, string> | undefined;
25996
+ required?: boolean | undefined;
25864
25997
  } | {
25865
25998
  transport: "sse";
25866
25999
  url: string;
26000
+ required?: boolean | undefined;
25867
26001
  headers?: Record<string, string> | undefined;
25868
26002
  }> | undefined;
25869
26003
  compaction?: {
@@ -26231,9 +26365,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
26231
26365
  command: string;
26232
26366
  args?: string[] | undefined;
26233
26367
  env?: Record<string, string> | undefined;
26368
+ required?: boolean | undefined;
26234
26369
  } | {
26235
26370
  transport: "sse";
26236
26371
  url: string;
26372
+ required?: boolean | undefined;
26237
26373
  headers?: Record<string, string> | undefined;
26238
26374
  }> | undefined;
26239
26375
  compaction?: {
@@ -30305,27 +30441,33 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
30305
30441
  command: z.ZodString;
30306
30442
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30307
30443
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30444
+ required: z.ZodOptional<z.ZodBoolean>;
30308
30445
  }, "strict", z.ZodTypeAny, {
30309
30446
  transport: "stdio";
30310
30447
  command: string;
30311
30448
  args?: string[] | undefined;
30312
30449
  env?: Record<string, string> | undefined;
30450
+ required?: boolean | undefined;
30313
30451
  }, {
30314
30452
  transport: "stdio";
30315
30453
  command: string;
30316
30454
  args?: string[] | undefined;
30317
30455
  env?: Record<string, string> | undefined;
30456
+ required?: boolean | undefined;
30318
30457
  }>, z.ZodObject<{
30319
30458
  transport: z.ZodLiteral<"sse">;
30320
30459
  url: z.ZodString;
30321
30460
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30461
+ required: z.ZodOptional<z.ZodBoolean>;
30322
30462
  }, "strict", z.ZodTypeAny, {
30323
30463
  transport: "sse";
30324
30464
  url: string;
30465
+ required?: boolean | undefined;
30325
30466
  headers?: Record<string, string> | undefined;
30326
30467
  }, {
30327
30468
  transport: "sse";
30328
30469
  url: string;
30470
+ required?: boolean | undefined;
30329
30471
  headers?: Record<string, string> | undefined;
30330
30472
  }>]>>>;
30331
30473
  permissions: z.ZodOptional<z.ZodObject<{
@@ -31251,9 +31393,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
31251
31393
  command: string;
31252
31394
  args?: string[] | undefined;
31253
31395
  env?: Record<string, string> | undefined;
31396
+ required?: boolean | undefined;
31254
31397
  } | {
31255
31398
  transport: "sse";
31256
31399
  url: string;
31400
+ required?: boolean | undefined;
31257
31401
  headers?: Record<string, string> | undefined;
31258
31402
  }> | undefined;
31259
31403
  compaction?: {
@@ -31529,9 +31673,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
31529
31673
  command: string;
31530
31674
  args?: string[] | undefined;
31531
31675
  env?: Record<string, string> | undefined;
31676
+ required?: boolean | undefined;
31532
31677
  } | {
31533
31678
  transport: "sse";
31534
31679
  url: string;
31680
+ required?: boolean | undefined;
31535
31681
  headers?: Record<string, string> | undefined;
31536
31682
  }> | undefined;
31537
31683
  compaction?: {
@@ -31965,27 +32111,33 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
31965
32111
  command: z.ZodString;
31966
32112
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31967
32113
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32114
+ required: z.ZodOptional<z.ZodBoolean>;
31968
32115
  }, "strict", z.ZodTypeAny, {
31969
32116
  transport: "stdio";
31970
32117
  command: string;
31971
32118
  args?: string[] | undefined;
31972
32119
  env?: Record<string, string> | undefined;
32120
+ required?: boolean | undefined;
31973
32121
  }, {
31974
32122
  transport: "stdio";
31975
32123
  command: string;
31976
32124
  args?: string[] | undefined;
31977
32125
  env?: Record<string, string> | undefined;
32126
+ required?: boolean | undefined;
31978
32127
  }>, z.ZodObject<{
31979
32128
  transport: z.ZodLiteral<"sse">;
31980
32129
  url: z.ZodString;
31981
32130
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32131
+ required: z.ZodOptional<z.ZodBoolean>;
31982
32132
  }, "strict", z.ZodTypeAny, {
31983
32133
  transport: "sse";
31984
32134
  url: string;
32135
+ required?: boolean | undefined;
31985
32136
  headers?: Record<string, string> | undefined;
31986
32137
  }, {
31987
32138
  transport: "sse";
31988
32139
  url: string;
32140
+ required?: boolean | undefined;
31989
32141
  headers?: Record<string, string> | undefined;
31990
32142
  }>]>>>;
31991
32143
  permissions: z.ZodOptional<z.ZodObject<{
@@ -32631,9 +32783,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
32631
32783
  command: string;
32632
32784
  args?: string[] | undefined;
32633
32785
  env?: Record<string, string> | undefined;
32786
+ required?: boolean | undefined;
32634
32787
  } | {
32635
32788
  transport: "sse";
32636
32789
  url: string;
32790
+ required?: boolean | undefined;
32637
32791
  headers?: Record<string, string> | undefined;
32638
32792
  }> | undefined;
32639
32793
  compaction?: {
@@ -32824,9 +32978,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
32824
32978
  command: string;
32825
32979
  args?: string[] | undefined;
32826
32980
  env?: Record<string, string> | undefined;
32981
+ required?: boolean | undefined;
32827
32982
  } | {
32828
32983
  transport: "sse";
32829
32984
  url: string;
32985
+ required?: boolean | undefined;
32830
32986
  headers?: Record<string, string> | undefined;
32831
32987
  }> | undefined;
32832
32988
  compaction?: {
@@ -33238,27 +33394,33 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
33238
33394
  command: z.ZodString;
33239
33395
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
33240
33396
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
33397
+ required: z.ZodOptional<z.ZodBoolean>;
33241
33398
  }, "strict", z.ZodTypeAny, {
33242
33399
  transport: "stdio";
33243
33400
  command: string;
33244
33401
  args?: string[] | undefined;
33245
33402
  env?: Record<string, string> | undefined;
33403
+ required?: boolean | undefined;
33246
33404
  }, {
33247
33405
  transport: "stdio";
33248
33406
  command: string;
33249
33407
  args?: string[] | undefined;
33250
33408
  env?: Record<string, string> | undefined;
33409
+ required?: boolean | undefined;
33251
33410
  }>, z.ZodObject<{
33252
33411
  transport: z.ZodLiteral<"sse">;
33253
33412
  url: z.ZodString;
33254
33413
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
33414
+ required: z.ZodOptional<z.ZodBoolean>;
33255
33415
  }, "strict", z.ZodTypeAny, {
33256
33416
  transport: "sse";
33257
33417
  url: string;
33418
+ required?: boolean | undefined;
33258
33419
  headers?: Record<string, string> | undefined;
33259
33420
  }, {
33260
33421
  transport: "sse";
33261
33422
  url: string;
33423
+ required?: boolean | undefined;
33262
33424
  headers?: Record<string, string> | undefined;
33263
33425
  }>]>>>;
33264
33426
  permissions: z.ZodOptional<z.ZodObject<{
@@ -33701,9 +33863,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
33701
33863
  command: string;
33702
33864
  args?: string[] | undefined;
33703
33865
  env?: Record<string, string> | undefined;
33866
+ required?: boolean | undefined;
33704
33867
  } | {
33705
33868
  transport: "sse";
33706
33869
  url: string;
33870
+ required?: boolean | undefined;
33707
33871
  headers?: Record<string, string> | undefined;
33708
33872
  }> | undefined;
33709
33873
  compaction?: {
@@ -33864,9 +34028,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
33864
34028
  command: string;
33865
34029
  args?: string[] | undefined;
33866
34030
  env?: Record<string, string> | undefined;
34031
+ required?: boolean | undefined;
33867
34032
  } | {
33868
34033
  transport: "sse";
33869
34034
  url: string;
34035
+ required?: boolean | undefined;
33870
34036
  headers?: Record<string, string> | undefined;
33871
34037
  }> | undefined;
33872
34038
  compaction?: {
@@ -34017,27 +34183,33 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
34017
34183
  command: z.ZodString;
34018
34184
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34019
34185
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34186
+ required: z.ZodOptional<z.ZodBoolean>;
34020
34187
  }, "strict", z.ZodTypeAny, {
34021
34188
  transport: "stdio";
34022
34189
  command: string;
34023
34190
  args?: string[] | undefined;
34024
34191
  env?: Record<string, string> | undefined;
34192
+ required?: boolean | undefined;
34025
34193
  }, {
34026
34194
  transport: "stdio";
34027
34195
  command: string;
34028
34196
  args?: string[] | undefined;
34029
34197
  env?: Record<string, string> | undefined;
34198
+ required?: boolean | undefined;
34030
34199
  }>, z.ZodObject<{
34031
34200
  transport: z.ZodLiteral<"sse">;
34032
34201
  url: z.ZodString;
34033
34202
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34203
+ required: z.ZodOptional<z.ZodBoolean>;
34034
34204
  }, "strict", z.ZodTypeAny, {
34035
34205
  transport: "sse";
34036
34206
  url: string;
34207
+ required?: boolean | undefined;
34037
34208
  headers?: Record<string, string> | undefined;
34038
34209
  }, {
34039
34210
  transport: "sse";
34040
34211
  url: string;
34212
+ required?: boolean | undefined;
34041
34213
  headers?: Record<string, string> | undefined;
34042
34214
  }>]>>>;
34043
34215
  permissions: z.ZodOptional<z.ZodObject<{
@@ -34207,9 +34379,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
34207
34379
  command: string;
34208
34380
  args?: string[] | undefined;
34209
34381
  env?: Record<string, string> | undefined;
34382
+ required?: boolean | undefined;
34210
34383
  } | {
34211
34384
  transport: "sse";
34212
34385
  url: string;
34386
+ required?: boolean | undefined;
34213
34387
  headers?: Record<string, string> | undefined;
34214
34388
  }> | undefined;
34215
34389
  compaction?: {
@@ -34269,9 +34443,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
34269
34443
  command: string;
34270
34444
  args?: string[] | undefined;
34271
34445
  env?: Record<string, string> | undefined;
34446
+ required?: boolean | undefined;
34272
34447
  } | {
34273
34448
  transport: "sse";
34274
34449
  url: string;
34450
+ required?: boolean | undefined;
34275
34451
  headers?: Record<string, string> | undefined;
34276
34452
  }> | undefined;
34277
34453
  compaction?: {
@@ -34618,27 +34794,33 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
34618
34794
  command: z.ZodString;
34619
34795
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34620
34796
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34797
+ required: z.ZodOptional<z.ZodBoolean>;
34621
34798
  }, "strict", z.ZodTypeAny, {
34622
34799
  transport: "stdio";
34623
34800
  command: string;
34624
34801
  args?: string[] | undefined;
34625
34802
  env?: Record<string, string> | undefined;
34803
+ required?: boolean | undefined;
34626
34804
  }, {
34627
34805
  transport: "stdio";
34628
34806
  command: string;
34629
34807
  args?: string[] | undefined;
34630
34808
  env?: Record<string, string> | undefined;
34809
+ required?: boolean | undefined;
34631
34810
  }>, z.ZodObject<{
34632
34811
  transport: z.ZodLiteral<"sse">;
34633
34812
  url: z.ZodString;
34634
34813
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34814
+ required: z.ZodOptional<z.ZodBoolean>;
34635
34815
  }, "strict", z.ZodTypeAny, {
34636
34816
  transport: "sse";
34637
34817
  url: string;
34818
+ required?: boolean | undefined;
34638
34819
  headers?: Record<string, string> | undefined;
34639
34820
  }, {
34640
34821
  transport: "sse";
34641
34822
  url: string;
34823
+ required?: boolean | undefined;
34642
34824
  headers?: Record<string, string> | undefined;
34643
34825
  }>]>>>;
34644
34826
  permissions: z.ZodOptional<z.ZodObject<{
@@ -34935,9 +35117,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
34935
35117
  command: string;
34936
35118
  args?: string[] | undefined;
34937
35119
  env?: Record<string, string> | undefined;
35120
+ required?: boolean | undefined;
34938
35121
  } | {
34939
35122
  transport: "sse";
34940
35123
  url: string;
35124
+ required?: boolean | undefined;
34941
35125
  headers?: Record<string, string> | undefined;
34942
35126
  }> | undefined;
34943
35127
  compaction?: {
@@ -35045,9 +35229,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
35045
35229
  command: string;
35046
35230
  args?: string[] | undefined;
35047
35231
  env?: Record<string, string> | undefined;
35232
+ required?: boolean | undefined;
35048
35233
  } | {
35049
35234
  transport: "sse";
35050
35235
  url: string;
35236
+ required?: boolean | undefined;
35051
35237
  headers?: Record<string, string> | undefined;
35052
35238
  }> | undefined;
35053
35239
  compaction?: {
@@ -35401,27 +35587,33 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
35401
35587
  command: z.ZodString;
35402
35588
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35403
35589
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
35590
+ required: z.ZodOptional<z.ZodBoolean>;
35404
35591
  }, "strict", z.ZodTypeAny, {
35405
35592
  transport: "stdio";
35406
35593
  command: string;
35407
35594
  args?: string[] | undefined;
35408
35595
  env?: Record<string, string> | undefined;
35596
+ required?: boolean | undefined;
35409
35597
  }, {
35410
35598
  transport: "stdio";
35411
35599
  command: string;
35412
35600
  args?: string[] | undefined;
35413
35601
  env?: Record<string, string> | undefined;
35602
+ required?: boolean | undefined;
35414
35603
  }>, z.ZodObject<{
35415
35604
  transport: z.ZodLiteral<"sse">;
35416
35605
  url: z.ZodString;
35417
35606
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
35607
+ required: z.ZodOptional<z.ZodBoolean>;
35418
35608
  }, "strict", z.ZodTypeAny, {
35419
35609
  transport: "sse";
35420
35610
  url: string;
35611
+ required?: boolean | undefined;
35421
35612
  headers?: Record<string, string> | undefined;
35422
35613
  }, {
35423
35614
  transport: "sse";
35424
35615
  url: string;
35616
+ required?: boolean | undefined;
35425
35617
  headers?: Record<string, string> | undefined;
35426
35618
  }>]>>>;
35427
35619
  permissions: z.ZodOptional<z.ZodObject<{
@@ -35611,9 +35803,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
35611
35803
  command: string;
35612
35804
  args?: string[] | undefined;
35613
35805
  env?: Record<string, string> | undefined;
35806
+ required?: boolean | undefined;
35614
35807
  } | {
35615
35808
  transport: "sse";
35616
35809
  url: string;
35810
+ required?: boolean | undefined;
35617
35811
  headers?: Record<string, string> | undefined;
35618
35812
  }> | undefined;
35619
35813
  compaction?: {
@@ -35685,9 +35879,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
35685
35879
  command: string;
35686
35880
  args?: string[] | undefined;
35687
35881
  env?: Record<string, string> | undefined;
35882
+ required?: boolean | undefined;
35688
35883
  } | {
35689
35884
  transport: "sse";
35690
35885
  url: string;
35886
+ required?: boolean | undefined;
35691
35887
  headers?: Record<string, string> | undefined;
35692
35888
  }> | undefined;
35693
35889
  compaction?: {
@@ -35889,27 +36085,33 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
35889
36085
  command: z.ZodString;
35890
36086
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35891
36087
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36088
+ required: z.ZodOptional<z.ZodBoolean>;
35892
36089
  }, "strict", z.ZodTypeAny, {
35893
36090
  transport: "stdio";
35894
36091
  command: string;
35895
36092
  args?: string[] | undefined;
35896
36093
  env?: Record<string, string> | undefined;
36094
+ required?: boolean | undefined;
35897
36095
  }, {
35898
36096
  transport: "stdio";
35899
36097
  command: string;
35900
36098
  args?: string[] | undefined;
35901
36099
  env?: Record<string, string> | undefined;
36100
+ required?: boolean | undefined;
35902
36101
  }>, z.ZodObject<{
35903
36102
  transport: z.ZodLiteral<"sse">;
35904
36103
  url: z.ZodString;
35905
36104
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36105
+ required: z.ZodOptional<z.ZodBoolean>;
35906
36106
  }, "strict", z.ZodTypeAny, {
35907
36107
  transport: "sse";
35908
36108
  url: string;
36109
+ required?: boolean | undefined;
35909
36110
  headers?: Record<string, string> | undefined;
35910
36111
  }, {
35911
36112
  transport: "sse";
35912
36113
  url: string;
36114
+ required?: boolean | undefined;
35913
36115
  headers?: Record<string, string> | undefined;
35914
36116
  }>]>>>;
35915
36117
  permissions: z.ZodOptional<z.ZodObject<{
@@ -36089,9 +36291,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
36089
36291
  command: string;
36090
36292
  args?: string[] | undefined;
36091
36293
  env?: Record<string, string> | undefined;
36294
+ required?: boolean | undefined;
36092
36295
  } | {
36093
36296
  transport: "sse";
36094
36297
  url: string;
36298
+ required?: boolean | undefined;
36095
36299
  headers?: Record<string, string> | undefined;
36096
36300
  }> | undefined;
36097
36301
  compaction?: {
@@ -36167,9 +36371,11 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
36167
36371
  command: string;
36168
36372
  args?: string[] | undefined;
36169
36373
  env?: Record<string, string> | undefined;
36374
+ required?: boolean | undefined;
36170
36375
  } | {
36171
36376
  transport: "sse";
36172
36377
  url: string;
36378
+ required?: boolean | undefined;
36173
36379
  headers?: Record<string, string> | undefined;
36174
36380
  }> | undefined;
36175
36381
  compaction?: {
package/dist/index.js CHANGED
@@ -84,12 +84,25 @@ const permissionsBlock = z
84
84
  // MCP servers block (Section 9). Discriminated on `transport` so unknown
85
85
  // configs surface as a clear "Invalid literal value" error rather than a
86
86
  // confusing union-of-rejections.
87
+ /**
88
+ * #406 — `required: false` marks a server this harness can run WITHOUT.
89
+ *
90
+ * Default (absent or true) keeps the fail-fast contract: a peer that cannot
91
+ * connect at boot exits the daemon, because an agent whose instructions
92
+ * assume a tool behaves worse when it silently vanishes than when it refuses
93
+ * to start. `required: false` is the opt-out for genuinely optional peers —
94
+ * an A2A neighbour that may boot after us, a nice-to-have enrichment server:
95
+ * a failed initial connect warns, the daemon serves, and the connection
96
+ * retries in the background, registering the peer's tools when it lands.
97
+ */
98
+ const mcpRequiredField = z.boolean().optional();
87
99
  const stdioMcpConfig = z
88
100
  .object({
89
101
  transport: z.literal("stdio"),
90
102
  command: z.string().min(1),
91
103
  args: z.array(z.string()).optional(),
92
104
  env: z.record(z.string()).optional(),
105
+ required: mcpRequiredField,
93
106
  })
94
107
  .strict();
95
108
  const sseMcpConfig = z
@@ -97,6 +110,7 @@ const sseMcpConfig = z
97
110
  transport: z.literal("sse"),
98
111
  url: z.string().url(),
99
112
  headers: z.record(z.string()).optional(),
113
+ required: mcpRequiredField,
100
114
  })
101
115
  .strict();
102
116
  const mcpServerConfigSchema = z.discriminatedUnion("transport", [stdioMcpConfig, sseMcpConfig]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/spec",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "type": "module",
5
5
  "description": "User-facing spec schema (Zod) + YAML parser",
6
6
  "main": "dist/index.js",
@@ -15,7 +15,7 @@
15
15
  "test": "bun test src"
16
16
  },
17
17
  "dependencies": {
18
- "@crewhaus/errors": "0.5.3",
18
+ "@crewhaus/errors": "0.5.5",
19
19
  "yaml": "^2.6.0",
20
20
  "zod": "^3.23.8",
21
21
  "zod-to-json-schema": "^3.23.5"