linkshell-cli 0.5.29 → 0.5.31

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.
@@ -903,6 +903,23 @@ export declare const agentModeDescriptorSchema: z.ZodObject<{
903
903
  id: string;
904
904
  description?: string | undefined;
905
905
  }>;
906
+ export declare const agentMcpServerStatusSchema: z.ZodEnum<["pending", "connecting", "connected", "failed", "needs_auth", "disabled"]>;
907
+ export declare const agentMcpServerDescriptorSchema: z.ZodObject<{
908
+ name: z.ZodString;
909
+ status: z.ZodEnum<["pending", "connecting", "connected", "failed", "needs_auth", "disabled"]>;
910
+ error: z.ZodOptional<z.ZodString>;
911
+ toolCount: z.ZodOptional<z.ZodNumber>;
912
+ }, "strip", z.ZodTypeAny, {
913
+ name: string;
914
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
915
+ error?: string | undefined;
916
+ toolCount?: number | undefined;
917
+ }, {
918
+ name: string;
919
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
920
+ error?: string | undefined;
921
+ toolCount?: number | undefined;
922
+ }>;
906
923
  export declare const agentProviderCapabilitySchema: z.ZodObject<{
907
924
  id: z.ZodEnum<["codex", "claude", "custom"]>;
908
925
  label: z.ZodString;
@@ -980,6 +997,22 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
980
997
  }>, "many">>;
981
998
  currentMode: z.ZodOptional<z.ZodString>;
982
999
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1000
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1001
+ name: z.ZodString;
1002
+ status: z.ZodEnum<["pending", "connecting", "connected", "failed", "needs_auth", "disabled"]>;
1003
+ error: z.ZodOptional<z.ZodString>;
1004
+ toolCount: z.ZodOptional<z.ZodNumber>;
1005
+ }, "strip", z.ZodTypeAny, {
1006
+ name: string;
1007
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1008
+ error?: string | undefined;
1009
+ toolCount?: number | undefined;
1010
+ }, {
1011
+ name: string;
1012
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1013
+ error?: string | undefined;
1014
+ toolCount?: number | undefined;
1015
+ }>, "many">>;
983
1016
  }, "strip", z.ZodTypeAny, {
984
1017
  label: string;
985
1018
  enabled: boolean;
@@ -1017,6 +1050,12 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
1017
1050
  }[] | undefined;
1018
1051
  currentMode?: string | undefined;
1019
1052
  features?: Record<string, boolean> | undefined;
1053
+ mcpServers?: {
1054
+ name: string;
1055
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1056
+ error?: string | undefined;
1057
+ toolCount?: number | undefined;
1058
+ }[] | undefined;
1020
1059
  }, {
1021
1060
  label: string;
1022
1061
  enabled: boolean;
@@ -1054,6 +1093,12 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
1054
1093
  }[] | undefined;
1055
1094
  currentMode?: string | undefined;
1056
1095
  features?: Record<string, boolean> | undefined;
1096
+ mcpServers?: {
1097
+ name: string;
1098
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1099
+ error?: string | undefined;
1100
+ toolCount?: number | undefined;
1101
+ }[] | undefined;
1057
1102
  }>;
1058
1103
  export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1059
1104
  enabled: z.ZodBoolean;
@@ -1136,6 +1181,22 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1136
1181
  }>, "many">>;
1137
1182
  currentMode: z.ZodOptional<z.ZodString>;
1138
1183
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1184
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1185
+ name: z.ZodString;
1186
+ status: z.ZodEnum<["pending", "connecting", "connected", "failed", "needs_auth", "disabled"]>;
1187
+ error: z.ZodOptional<z.ZodString>;
1188
+ toolCount: z.ZodOptional<z.ZodNumber>;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ name: string;
1191
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1192
+ error?: string | undefined;
1193
+ toolCount?: number | undefined;
1194
+ }, {
1195
+ name: string;
1196
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1197
+ error?: string | undefined;
1198
+ toolCount?: number | undefined;
1199
+ }>, "many">>;
1139
1200
  }, "strip", z.ZodTypeAny, {
1140
1201
  label: string;
1141
1202
  enabled: boolean;
@@ -1173,6 +1234,12 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1173
1234
  }[] | undefined;
1174
1235
  currentMode?: string | undefined;
1175
1236
  features?: Record<string, boolean> | undefined;
1237
+ mcpServers?: {
1238
+ name: string;
1239
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1240
+ error?: string | undefined;
1241
+ toolCount?: number | undefined;
1242
+ }[] | undefined;
1176
1243
  }, {
1177
1244
  label: string;
1178
1245
  enabled: boolean;
@@ -1210,6 +1277,12 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1210
1277
  }[] | undefined;
1211
1278
  currentMode?: string | undefined;
1212
1279
  features?: Record<string, boolean> | undefined;
1280
+ mcpServers?: {
1281
+ name: string;
1282
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1283
+ error?: string | undefined;
1284
+ toolCount?: number | undefined;
1285
+ }[] | undefined;
1213
1286
  }>, "many">>;
1214
1287
  protocolVersion: z.ZodOptional<z.ZodNumber>;
1215
1288
  error: z.ZodOptional<z.ZodString>;
@@ -1270,6 +1343,12 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1270
1343
  }[] | undefined;
1271
1344
  currentMode?: string | undefined;
1272
1345
  features?: Record<string, boolean> | undefined;
1346
+ mcpServers?: {
1347
+ name: string;
1348
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1349
+ error?: string | undefined;
1350
+ toolCount?: number | undefined;
1351
+ }[] | undefined;
1273
1352
  }[] | undefined;
1274
1353
  }, {
1275
1354
  enabled: boolean;
@@ -1318,6 +1397,12 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1318
1397
  }[] | undefined;
1319
1398
  currentMode?: string | undefined;
1320
1399
  features?: Record<string, boolean> | undefined;
1400
+ mcpServers?: {
1401
+ name: string;
1402
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1403
+ error?: string | undefined;
1404
+ toolCount?: number | undefined;
1405
+ }[] | undefined;
1321
1406
  }[] | undefined;
1322
1407
  supportsSessionList?: boolean | undefined;
1323
1408
  supportsSessionLoad?: boolean | undefined;
@@ -1657,6 +1742,22 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1657
1742
  }>, "many">>;
1658
1743
  currentMode: z.ZodOptional<z.ZodString>;
1659
1744
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1745
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1746
+ name: z.ZodString;
1747
+ status: z.ZodEnum<["pending", "connecting", "connected", "failed", "needs_auth", "disabled"]>;
1748
+ error: z.ZodOptional<z.ZodString>;
1749
+ toolCount: z.ZodOptional<z.ZodNumber>;
1750
+ }, "strip", z.ZodTypeAny, {
1751
+ name: string;
1752
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1753
+ error?: string | undefined;
1754
+ toolCount?: number | undefined;
1755
+ }, {
1756
+ name: string;
1757
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1758
+ error?: string | undefined;
1759
+ toolCount?: number | undefined;
1760
+ }>, "many">>;
1660
1761
  }, "strip", z.ZodTypeAny, {
1661
1762
  label: string;
1662
1763
  enabled: boolean;
@@ -1694,6 +1795,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1694
1795
  }[] | undefined;
1695
1796
  currentMode?: string | undefined;
1696
1797
  features?: Record<string, boolean> | undefined;
1798
+ mcpServers?: {
1799
+ name: string;
1800
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1801
+ error?: string | undefined;
1802
+ toolCount?: number | undefined;
1803
+ }[] | undefined;
1697
1804
  }, {
1698
1805
  label: string;
1699
1806
  enabled: boolean;
@@ -1731,6 +1838,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1731
1838
  }[] | undefined;
1732
1839
  currentMode?: string | undefined;
1733
1840
  features?: Record<string, boolean> | undefined;
1841
+ mcpServers?: {
1842
+ name: string;
1843
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1844
+ error?: string | undefined;
1845
+ toolCount?: number | undefined;
1846
+ }[] | undefined;
1734
1847
  }>, "many">>;
1735
1848
  protocolVersion: z.ZodOptional<z.ZodNumber>;
1736
1849
  error: z.ZodOptional<z.ZodString>;
@@ -1791,6 +1904,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1791
1904
  }[] | undefined;
1792
1905
  currentMode?: string | undefined;
1793
1906
  features?: Record<string, boolean> | undefined;
1907
+ mcpServers?: {
1908
+ name: string;
1909
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1910
+ error?: string | undefined;
1911
+ toolCount?: number | undefined;
1912
+ }[] | undefined;
1794
1913
  }[] | undefined;
1795
1914
  }, {
1796
1915
  enabled: boolean;
@@ -1839,6 +1958,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1839
1958
  }[] | undefined;
1840
1959
  currentMode?: string | undefined;
1841
1960
  features?: Record<string, boolean> | undefined;
1961
+ mcpServers?: {
1962
+ name: string;
1963
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
1964
+ error?: string | undefined;
1965
+ toolCount?: number | undefined;
1966
+ }[] | undefined;
1842
1967
  }[] | undefined;
1843
1968
  supportsSessionList?: boolean | undefined;
1844
1969
  supportsSessionLoad?: boolean | undefined;
@@ -2006,6 +2131,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
2006
2131
  }[] | undefined;
2007
2132
  currentMode?: string | undefined;
2008
2133
  features?: Record<string, boolean> | undefined;
2134
+ mcpServers?: {
2135
+ name: string;
2136
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
2137
+ error?: string | undefined;
2138
+ toolCount?: number | undefined;
2139
+ }[] | undefined;
2009
2140
  }[] | undefined;
2010
2141
  } | undefined;
2011
2142
  }, {
@@ -2059,6 +2190,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
2059
2190
  }[] | undefined;
2060
2191
  currentMode?: string | undefined;
2061
2192
  features?: Record<string, boolean> | undefined;
2193
+ mcpServers?: {
2194
+ name: string;
2195
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
2196
+ error?: string | undefined;
2197
+ toolCount?: number | undefined;
2198
+ }[] | undefined;
2062
2199
  }[] | undefined;
2063
2200
  supportsSessionList?: boolean | undefined;
2064
2201
  supportsSessionLoad?: boolean | undefined;
@@ -3150,6 +3287,22 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3150
3287
  }>, "many">>;
3151
3288
  currentMode: z.ZodOptional<z.ZodString>;
3152
3289
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
3290
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3291
+ name: z.ZodString;
3292
+ status: z.ZodEnum<["pending", "connecting", "connected", "failed", "needs_auth", "disabled"]>;
3293
+ error: z.ZodOptional<z.ZodString>;
3294
+ toolCount: z.ZodOptional<z.ZodNumber>;
3295
+ }, "strip", z.ZodTypeAny, {
3296
+ name: string;
3297
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
3298
+ error?: string | undefined;
3299
+ toolCount?: number | undefined;
3300
+ }, {
3301
+ name: string;
3302
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
3303
+ error?: string | undefined;
3304
+ toolCount?: number | undefined;
3305
+ }>, "many">>;
3153
3306
  }, "strip", z.ZodTypeAny, {
3154
3307
  label: string;
3155
3308
  enabled: boolean;
@@ -3187,6 +3340,12 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3187
3340
  }[] | undefined;
3188
3341
  currentMode?: string | undefined;
3189
3342
  features?: Record<string, boolean> | undefined;
3343
+ mcpServers?: {
3344
+ name: string;
3345
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
3346
+ error?: string | undefined;
3347
+ toolCount?: number | undefined;
3348
+ }[] | undefined;
3190
3349
  }, {
3191
3350
  label: string;
3192
3351
  enabled: boolean;
@@ -3224,6 +3383,12 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3224
3383
  }[] | undefined;
3225
3384
  currentMode?: string | undefined;
3226
3385
  features?: Record<string, boolean> | undefined;
3386
+ mcpServers?: {
3387
+ name: string;
3388
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
3389
+ error?: string | undefined;
3390
+ toolCount?: number | undefined;
3391
+ }[] | undefined;
3227
3392
  }>, "many">>;
3228
3393
  protocolVersion: z.ZodOptional<z.ZodNumber>;
3229
3394
  error: z.ZodOptional<z.ZodString>;
@@ -3287,6 +3452,12 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3287
3452
  }[] | undefined;
3288
3453
  currentMode?: string | undefined;
3289
3454
  features?: Record<string, boolean> | undefined;
3455
+ mcpServers?: {
3456
+ name: string;
3457
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
3458
+ error?: string | undefined;
3459
+ toolCount?: number | undefined;
3460
+ }[] | undefined;
3290
3461
  }[] | undefined;
3291
3462
  }, {
3292
3463
  enabled: boolean;
@@ -3335,6 +3506,12 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3335
3506
  }[] | undefined;
3336
3507
  currentMode?: string | undefined;
3337
3508
  features?: Record<string, boolean> | undefined;
3509
+ mcpServers?: {
3510
+ name: string;
3511
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
3512
+ error?: string | undefined;
3513
+ toolCount?: number | undefined;
3514
+ }[] | undefined;
3338
3515
  }[] | undefined;
3339
3516
  supportsSessionList?: boolean | undefined;
3340
3517
  supportsSessionLoad?: boolean | undefined;
@@ -3351,6 +3528,8 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3351
3528
  permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
3352
3529
  collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
3353
3530
  title: z.ZodOptional<z.ZodString>;
3531
+ forkFromConversationId: z.ZodOptional<z.ZodString>;
3532
+ forkFromTurnId: z.ZodOptional<z.ZodString>;
3354
3533
  }, "strip", z.ZodTypeAny, {
3355
3534
  provider?: "claude" | "codex" | "custom" | undefined;
3356
3535
  title?: string | undefined;
@@ -3361,6 +3540,8 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3361
3540
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3362
3541
  conversationId?: string | undefined;
3363
3542
  collaborationMode?: "default" | "plan" | undefined;
3543
+ forkFromConversationId?: string | undefined;
3544
+ forkFromTurnId?: string | undefined;
3364
3545
  }, {
3365
3546
  provider?: "claude" | "codex" | "custom" | undefined;
3366
3547
  title?: string | undefined;
@@ -3371,6 +3552,8 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3371
3552
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3372
3553
  conversationId?: string | undefined;
3373
3554
  collaborationMode?: "default" | "plan" | undefined;
3555
+ forkFromConversationId?: string | undefined;
3556
+ forkFromTurnId?: string | undefined;
3374
3557
  }>;
3375
3558
  export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3376
3559
  conversation: z.ZodObject<{
@@ -9600,6 +9783,22 @@ export declare const protocolMessageSchemas: {
9600
9783
  }>, "many">>;
9601
9784
  currentMode: z.ZodOptional<z.ZodString>;
9602
9785
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
9786
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
9787
+ name: z.ZodString;
9788
+ status: z.ZodEnum<["pending", "connecting", "connected", "failed", "needs_auth", "disabled"]>;
9789
+ error: z.ZodOptional<z.ZodString>;
9790
+ toolCount: z.ZodOptional<z.ZodNumber>;
9791
+ }, "strip", z.ZodTypeAny, {
9792
+ name: string;
9793
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
9794
+ error?: string | undefined;
9795
+ toolCount?: number | undefined;
9796
+ }, {
9797
+ name: string;
9798
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
9799
+ error?: string | undefined;
9800
+ toolCount?: number | undefined;
9801
+ }>, "many">>;
9603
9802
  }, "strip", z.ZodTypeAny, {
9604
9803
  label: string;
9605
9804
  enabled: boolean;
@@ -9637,6 +9836,12 @@ export declare const protocolMessageSchemas: {
9637
9836
  }[] | undefined;
9638
9837
  currentMode?: string | undefined;
9639
9838
  features?: Record<string, boolean> | undefined;
9839
+ mcpServers?: {
9840
+ name: string;
9841
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
9842
+ error?: string | undefined;
9843
+ toolCount?: number | undefined;
9844
+ }[] | undefined;
9640
9845
  }, {
9641
9846
  label: string;
9642
9847
  enabled: boolean;
@@ -9674,6 +9879,12 @@ export declare const protocolMessageSchemas: {
9674
9879
  }[] | undefined;
9675
9880
  currentMode?: string | undefined;
9676
9881
  features?: Record<string, boolean> | undefined;
9882
+ mcpServers?: {
9883
+ name: string;
9884
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
9885
+ error?: string | undefined;
9886
+ toolCount?: number | undefined;
9887
+ }[] | undefined;
9677
9888
  }>, "many">>;
9678
9889
  protocolVersion: z.ZodOptional<z.ZodNumber>;
9679
9890
  error: z.ZodOptional<z.ZodString>;
@@ -9734,6 +9945,12 @@ export declare const protocolMessageSchemas: {
9734
9945
  }[] | undefined;
9735
9946
  currentMode?: string | undefined;
9736
9947
  features?: Record<string, boolean> | undefined;
9948
+ mcpServers?: {
9949
+ name: string;
9950
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
9951
+ error?: string | undefined;
9952
+ toolCount?: number | undefined;
9953
+ }[] | undefined;
9737
9954
  }[] | undefined;
9738
9955
  }, {
9739
9956
  enabled: boolean;
@@ -9782,6 +9999,12 @@ export declare const protocolMessageSchemas: {
9782
9999
  }[] | undefined;
9783
10000
  currentMode?: string | undefined;
9784
10001
  features?: Record<string, boolean> | undefined;
10002
+ mcpServers?: {
10003
+ name: string;
10004
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10005
+ error?: string | undefined;
10006
+ toolCount?: number | undefined;
10007
+ }[] | undefined;
9785
10008
  }[] | undefined;
9786
10009
  supportsSessionList?: boolean | undefined;
9787
10010
  supportsSessionLoad?: boolean | undefined;
@@ -10120,6 +10343,22 @@ export declare const protocolMessageSchemas: {
10120
10343
  }>, "many">>;
10121
10344
  currentMode: z.ZodOptional<z.ZodString>;
10122
10345
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
10346
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
10347
+ name: z.ZodString;
10348
+ status: z.ZodEnum<["pending", "connecting", "connected", "failed", "needs_auth", "disabled"]>;
10349
+ error: z.ZodOptional<z.ZodString>;
10350
+ toolCount: z.ZodOptional<z.ZodNumber>;
10351
+ }, "strip", z.ZodTypeAny, {
10352
+ name: string;
10353
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10354
+ error?: string | undefined;
10355
+ toolCount?: number | undefined;
10356
+ }, {
10357
+ name: string;
10358
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10359
+ error?: string | undefined;
10360
+ toolCount?: number | undefined;
10361
+ }>, "many">>;
10123
10362
  }, "strip", z.ZodTypeAny, {
10124
10363
  label: string;
10125
10364
  enabled: boolean;
@@ -10157,6 +10396,12 @@ export declare const protocolMessageSchemas: {
10157
10396
  }[] | undefined;
10158
10397
  currentMode?: string | undefined;
10159
10398
  features?: Record<string, boolean> | undefined;
10399
+ mcpServers?: {
10400
+ name: string;
10401
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10402
+ error?: string | undefined;
10403
+ toolCount?: number | undefined;
10404
+ }[] | undefined;
10160
10405
  }, {
10161
10406
  label: string;
10162
10407
  enabled: boolean;
@@ -10194,6 +10439,12 @@ export declare const protocolMessageSchemas: {
10194
10439
  }[] | undefined;
10195
10440
  currentMode?: string | undefined;
10196
10441
  features?: Record<string, boolean> | undefined;
10442
+ mcpServers?: {
10443
+ name: string;
10444
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10445
+ error?: string | undefined;
10446
+ toolCount?: number | undefined;
10447
+ }[] | undefined;
10197
10448
  }>, "many">>;
10198
10449
  protocolVersion: z.ZodOptional<z.ZodNumber>;
10199
10450
  error: z.ZodOptional<z.ZodString>;
@@ -10254,6 +10505,12 @@ export declare const protocolMessageSchemas: {
10254
10505
  }[] | undefined;
10255
10506
  currentMode?: string | undefined;
10256
10507
  features?: Record<string, boolean> | undefined;
10508
+ mcpServers?: {
10509
+ name: string;
10510
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10511
+ error?: string | undefined;
10512
+ toolCount?: number | undefined;
10513
+ }[] | undefined;
10257
10514
  }[] | undefined;
10258
10515
  }, {
10259
10516
  enabled: boolean;
@@ -10302,6 +10559,12 @@ export declare const protocolMessageSchemas: {
10302
10559
  }[] | undefined;
10303
10560
  currentMode?: string | undefined;
10304
10561
  features?: Record<string, boolean> | undefined;
10562
+ mcpServers?: {
10563
+ name: string;
10564
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10565
+ error?: string | undefined;
10566
+ toolCount?: number | undefined;
10567
+ }[] | undefined;
10305
10568
  }[] | undefined;
10306
10569
  supportsSessionList?: boolean | undefined;
10307
10570
  supportsSessionLoad?: boolean | undefined;
@@ -10469,6 +10732,12 @@ export declare const protocolMessageSchemas: {
10469
10732
  }[] | undefined;
10470
10733
  currentMode?: string | undefined;
10471
10734
  features?: Record<string, boolean> | undefined;
10735
+ mcpServers?: {
10736
+ name: string;
10737
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10738
+ error?: string | undefined;
10739
+ toolCount?: number | undefined;
10740
+ }[] | undefined;
10472
10741
  }[] | undefined;
10473
10742
  } | undefined;
10474
10743
  }, {
@@ -10522,6 +10791,12 @@ export declare const protocolMessageSchemas: {
10522
10791
  }[] | undefined;
10523
10792
  currentMode?: string | undefined;
10524
10793
  features?: Record<string, boolean> | undefined;
10794
+ mcpServers?: {
10795
+ name: string;
10796
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10797
+ error?: string | undefined;
10798
+ toolCount?: number | undefined;
10799
+ }[] | undefined;
10525
10800
  }[] | undefined;
10526
10801
  supportsSessionList?: boolean | undefined;
10527
10802
  supportsSessionLoad?: boolean | undefined;
@@ -10636,6 +10911,22 @@ export declare const protocolMessageSchemas: {
10636
10911
  }>, "many">>;
10637
10912
  currentMode: z.ZodOptional<z.ZodString>;
10638
10913
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
10914
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
10915
+ name: z.ZodString;
10916
+ status: z.ZodEnum<["pending", "connecting", "connected", "failed", "needs_auth", "disabled"]>;
10917
+ error: z.ZodOptional<z.ZodString>;
10918
+ toolCount: z.ZodOptional<z.ZodNumber>;
10919
+ }, "strip", z.ZodTypeAny, {
10920
+ name: string;
10921
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10922
+ error?: string | undefined;
10923
+ toolCount?: number | undefined;
10924
+ }, {
10925
+ name: string;
10926
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10927
+ error?: string | undefined;
10928
+ toolCount?: number | undefined;
10929
+ }>, "many">>;
10639
10930
  }, "strip", z.ZodTypeAny, {
10640
10931
  label: string;
10641
10932
  enabled: boolean;
@@ -10673,6 +10964,12 @@ export declare const protocolMessageSchemas: {
10673
10964
  }[] | undefined;
10674
10965
  currentMode?: string | undefined;
10675
10966
  features?: Record<string, boolean> | undefined;
10967
+ mcpServers?: {
10968
+ name: string;
10969
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
10970
+ error?: string | undefined;
10971
+ toolCount?: number | undefined;
10972
+ }[] | undefined;
10676
10973
  }, {
10677
10974
  label: string;
10678
10975
  enabled: boolean;
@@ -10710,6 +11007,12 @@ export declare const protocolMessageSchemas: {
10710
11007
  }[] | undefined;
10711
11008
  currentMode?: string | undefined;
10712
11009
  features?: Record<string, boolean> | undefined;
11010
+ mcpServers?: {
11011
+ name: string;
11012
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
11013
+ error?: string | undefined;
11014
+ toolCount?: number | undefined;
11015
+ }[] | undefined;
10713
11016
  }>, "many">>;
10714
11017
  protocolVersion: z.ZodOptional<z.ZodNumber>;
10715
11018
  error: z.ZodOptional<z.ZodString>;
@@ -10773,6 +11076,12 @@ export declare const protocolMessageSchemas: {
10773
11076
  }[] | undefined;
10774
11077
  currentMode?: string | undefined;
10775
11078
  features?: Record<string, boolean> | undefined;
11079
+ mcpServers?: {
11080
+ name: string;
11081
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
11082
+ error?: string | undefined;
11083
+ toolCount?: number | undefined;
11084
+ }[] | undefined;
10776
11085
  }[] | undefined;
10777
11086
  }, {
10778
11087
  enabled: boolean;
@@ -10821,6 +11130,12 @@ export declare const protocolMessageSchemas: {
10821
11130
  }[] | undefined;
10822
11131
  currentMode?: string | undefined;
10823
11132
  features?: Record<string, boolean> | undefined;
11133
+ mcpServers?: {
11134
+ name: string;
11135
+ status: "disabled" | "pending" | "failed" | "connecting" | "connected" | "needs_auth";
11136
+ error?: string | undefined;
11137
+ toolCount?: number | undefined;
11138
+ }[] | undefined;
10824
11139
  }[] | undefined;
10825
11140
  supportsSessionList?: boolean | undefined;
10826
11141
  supportsSessionLoad?: boolean | undefined;
@@ -10837,6 +11152,8 @@ export declare const protocolMessageSchemas: {
10837
11152
  permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
10838
11153
  collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
10839
11154
  title: z.ZodOptional<z.ZodString>;
11155
+ forkFromConversationId: z.ZodOptional<z.ZodString>;
11156
+ forkFromTurnId: z.ZodOptional<z.ZodString>;
10840
11157
  }, "strip", z.ZodTypeAny, {
10841
11158
  provider?: "claude" | "codex" | "custom" | undefined;
10842
11159
  title?: string | undefined;
@@ -10847,6 +11164,8 @@ export declare const protocolMessageSchemas: {
10847
11164
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10848
11165
  conversationId?: string | undefined;
10849
11166
  collaborationMode?: "default" | "plan" | undefined;
11167
+ forkFromConversationId?: string | undefined;
11168
+ forkFromTurnId?: string | undefined;
10850
11169
  }, {
10851
11170
  provider?: "claude" | "codex" | "custom" | undefined;
10852
11171
  title?: string | undefined;
@@ -10857,6 +11176,8 @@ export declare const protocolMessageSchemas: {
10857
11176
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10858
11177
  conversationId?: string | undefined;
10859
11178
  collaborationMode?: "default" | "plan" | undefined;
11179
+ forkFromConversationId?: string | undefined;
11180
+ forkFromTurnId?: string | undefined;
10860
11181
  }>;
10861
11182
  readonly "agent.v2.conversation.opened": z.ZodObject<{
10862
11183
  conversation: z.ZodObject<{
@@ -402,6 +402,22 @@ export const agentModeDescriptorSchema = z.object({
402
402
  title: z.string().min(1),
403
403
  description: z.string().optional(),
404
404
  });
405
+ // MCP server connection status, surfaced in the console so users see whether a
406
+ // configured MCP server actually came up (parity with Claude Code / Codex).
407
+ export const agentMcpServerStatusSchema = z.enum([
408
+ "pending", // known from config, not yet connected
409
+ "connecting", // handshake in progress
410
+ "connected", // ready, tools available
411
+ "failed", // startup/connection error (see error)
412
+ "needs_auth", // OAuth / auth required before use
413
+ "disabled", // configured but intentionally turned off
414
+ ]);
415
+ export const agentMcpServerDescriptorSchema = z.object({
416
+ name: z.string().min(1),
417
+ status: agentMcpServerStatusSchema,
418
+ error: z.string().optional(), // failure detail, shown on hover
419
+ toolCount: z.number().int().optional(), // tools exposed once connected
420
+ });
405
421
  export const agentProviderCapabilitySchema = z.object({
406
422
  id: agentProviderSchema,
407
423
  label: z.string().min(1),
@@ -419,6 +435,7 @@ export const agentProviderCapabilitySchema = z.object({
419
435
  modes: z.array(agentModeDescriptorSchema).optional(),
420
436
  currentMode: z.string().optional(),
421
437
  features: z.record(z.boolean()).optional(),
438
+ mcpServers: z.array(agentMcpServerDescriptorSchema).optional(),
422
439
  });
423
440
  export const agentCapabilitiesPayloadSchema = z.object({
424
441
  enabled: z.boolean(),
@@ -644,6 +661,11 @@ export const agentV2ConversationOpenPayloadSchema = z.object({
644
661
  permissionMode: agentPermissionModeSchema.optional(),
645
662
  collaborationMode: agentCollaborationModeSchema.optional(),
646
663
  title: z.string().optional(),
664
+ // Fork: create a NEW conversation seeded from an existing one's transcript,
665
+ // truncated at forkFromTurnId (omitted → full clone from the end). Claude only
666
+ // in v1 — the CLI falls back to a plain new conversation for other providers.
667
+ forkFromConversationId: z.string().optional(),
668
+ forkFromTurnId: z.string().optional(),
647
669
  });
648
670
  export const agentV2ConversationOpenedPayloadSchema = z.object({
649
671
  conversation: agentV2ConversationSchema,