@nestr/mcp 0.1.31 → 0.1.33

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.
@@ -378,6 +378,19 @@ export declare const schemas: {
378
378
  }, {
379
379
  nestIds: string[];
380
380
  }>;
381
+ reorderInboxItem: z.ZodObject<{
382
+ nestId: z.ZodString;
383
+ position: z.ZodEnum<["before", "after"]>;
384
+ relatedNestId: z.ZodString;
385
+ }, "strip", z.ZodTypeAny, {
386
+ nestId: string;
387
+ position: "before" | "after";
388
+ relatedNestId: string;
389
+ }, {
390
+ nestId: string;
391
+ position: "before" | "after";
392
+ relatedNestId: string;
393
+ }>;
381
394
  listPersonalLabels: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
382
395
  createPersonalLabel: z.ZodObject<{
383
396
  title: z.ZodString;
@@ -472,10 +485,10 @@ export declare const toolDefinitions: ({
472
485
  to?: undefined;
473
486
  completedAfter?: undefined;
474
487
  nestIds?: undefined;
475
- color?: undefined;
476
- icon?: undefined;
477
488
  position?: undefined;
478
489
  relatedNestId?: undefined;
490
+ color?: undefined;
491
+ icon?: undefined;
479
492
  };
480
493
  required?: undefined;
481
494
  };
@@ -526,10 +539,10 @@ export declare const toolDefinitions: ({
526
539
  to?: undefined;
527
540
  completedAfter?: undefined;
528
541
  nestIds?: undefined;
529
- color?: undefined;
530
- icon?: undefined;
531
542
  position?: undefined;
532
543
  relatedNestId?: undefined;
544
+ color?: undefined;
545
+ icon?: undefined;
533
546
  };
534
547
  required: string[];
535
548
  };
@@ -603,10 +616,10 @@ export declare const toolDefinitions: ({
603
616
  to?: undefined;
604
617
  completedAfter?: undefined;
605
618
  nestIds?: undefined;
606
- color?: undefined;
607
- icon?: undefined;
608
619
  position?: undefined;
609
620
  relatedNestId?: undefined;
621
+ color?: undefined;
622
+ icon?: undefined;
610
623
  };
611
624
  required: string[];
612
625
  };
@@ -666,19 +679,16 @@ export declare const toolDefinitions: ({
666
679
  to?: undefined;
667
680
  completedAfter?: undefined;
668
681
  nestIds?: undefined;
669
- color?: undefined;
670
- icon?: undefined;
671
682
  position?: undefined;
672
683
  relatedNestId?: undefined;
684
+ color?: undefined;
685
+ icon?: undefined;
673
686
  };
674
687
  required: string[];
675
688
  };
676
689
  _meta: {
677
690
  ui: {
678
691
  resourceUri: string;
679
- csp: {
680
- "img-src": string[];
681
- };
682
692
  };
683
693
  };
684
694
  } | {
@@ -730,10 +740,10 @@ export declare const toolDefinitions: ({
730
740
  to?: undefined;
731
741
  completedAfter?: undefined;
732
742
  nestIds?: undefined;
733
- color?: undefined;
734
- icon?: undefined;
735
743
  position?: undefined;
736
744
  relatedNestId?: undefined;
745
+ color?: undefined;
746
+ icon?: undefined;
737
747
  };
738
748
  required: string[];
739
749
  };
@@ -790,19 +800,16 @@ export declare const toolDefinitions: ({
790
800
  to?: undefined;
791
801
  completedAfter?: undefined;
792
802
  nestIds?: undefined;
793
- color?: undefined;
794
- icon?: undefined;
795
803
  position?: undefined;
796
804
  relatedNestId?: undefined;
805
+ color?: undefined;
806
+ icon?: undefined;
797
807
  };
798
808
  required: string[];
799
809
  };
800
810
  _meta: {
801
811
  ui: {
802
812
  resourceUri: string;
803
- csp: {
804
- "img-src": string[];
805
- };
806
813
  };
807
814
  };
808
815
  } | {
@@ -869,10 +876,10 @@ export declare const toolDefinitions: ({
869
876
  to?: undefined;
870
877
  completedAfter?: undefined;
871
878
  nestIds?: undefined;
872
- color?: undefined;
873
- icon?: undefined;
874
879
  position?: undefined;
875
880
  relatedNestId?: undefined;
881
+ color?: undefined;
882
+ icon?: undefined;
876
883
  };
877
884
  required: string[];
878
885
  };
@@ -956,10 +963,10 @@ export declare const toolDefinitions: ({
956
963
  to?: undefined;
957
964
  completedAfter?: undefined;
958
965
  nestIds?: undefined;
959
- color?: undefined;
960
- icon?: undefined;
961
966
  position?: undefined;
962
967
  relatedNestId?: undefined;
968
+ color?: undefined;
969
+ icon?: undefined;
963
970
  };
964
971
  required: string[];
965
972
  };
@@ -1007,10 +1014,10 @@ export declare const toolDefinitions: ({
1007
1014
  to?: undefined;
1008
1015
  completedAfter?: undefined;
1009
1016
  nestIds?: undefined;
1010
- color?: undefined;
1011
- icon?: undefined;
1012
1017
  position?: undefined;
1013
1018
  relatedNestId?: undefined;
1019
+ color?: undefined;
1020
+ icon?: undefined;
1014
1021
  };
1015
1022
  required: string[];
1016
1023
  };
@@ -1061,10 +1068,10 @@ export declare const toolDefinitions: ({
1061
1068
  to?: undefined;
1062
1069
  completedAfter?: undefined;
1063
1070
  nestIds?: undefined;
1064
- color?: undefined;
1065
- icon?: undefined;
1066
1071
  position?: undefined;
1067
1072
  relatedNestId?: undefined;
1073
+ color?: undefined;
1074
+ icon?: undefined;
1068
1075
  };
1069
1076
  required: string[];
1070
1077
  };
@@ -1121,10 +1128,10 @@ export declare const toolDefinitions: ({
1121
1128
  to?: undefined;
1122
1129
  completedAfter?: undefined;
1123
1130
  nestIds?: undefined;
1124
- color?: undefined;
1125
- icon?: undefined;
1126
1131
  position?: undefined;
1127
1132
  relatedNestId?: undefined;
1133
+ color?: undefined;
1134
+ icon?: undefined;
1128
1135
  };
1129
1136
  required: string[];
1130
1137
  };
@@ -1184,10 +1191,10 @@ export declare const toolDefinitions: ({
1184
1191
  to?: undefined;
1185
1192
  completedAfter?: undefined;
1186
1193
  nestIds?: undefined;
1187
- color?: undefined;
1188
- icon?: undefined;
1189
1194
  position?: undefined;
1190
1195
  relatedNestId?: undefined;
1196
+ color?: undefined;
1197
+ icon?: undefined;
1191
1198
  };
1192
1199
  required: string[];
1193
1200
  };
@@ -1238,10 +1245,10 @@ export declare const toolDefinitions: ({
1238
1245
  to?: undefined;
1239
1246
  completedAfter?: undefined;
1240
1247
  nestIds?: undefined;
1241
- color?: undefined;
1242
- icon?: undefined;
1243
1248
  position?: undefined;
1244
1249
  relatedNestId?: undefined;
1250
+ color?: undefined;
1251
+ icon?: undefined;
1245
1252
  };
1246
1253
  required: string[];
1247
1254
  };
@@ -1298,10 +1305,10 @@ export declare const toolDefinitions: ({
1298
1305
  to?: undefined;
1299
1306
  completedAfter?: undefined;
1300
1307
  nestIds?: undefined;
1301
- color?: undefined;
1302
- icon?: undefined;
1303
1308
  position?: undefined;
1304
1309
  relatedNestId?: undefined;
1310
+ color?: undefined;
1311
+ icon?: undefined;
1305
1312
  };
1306
1313
  required: string[];
1307
1314
  };
@@ -1358,19 +1365,16 @@ export declare const toolDefinitions: ({
1358
1365
  to?: undefined;
1359
1366
  completedAfter?: undefined;
1360
1367
  nestIds?: undefined;
1361
- color?: undefined;
1362
- icon?: undefined;
1363
1368
  position?: undefined;
1364
1369
  relatedNestId?: undefined;
1370
+ color?: undefined;
1371
+ icon?: undefined;
1365
1372
  };
1366
1373
  required: string[];
1367
1374
  };
1368
1375
  _meta: {
1369
1376
  ui: {
1370
1377
  resourceUri: string;
1371
- csp: {
1372
- "img-src": string[];
1373
- };
1374
1378
  };
1375
1379
  };
1376
1380
  } | {
@@ -1419,10 +1423,10 @@ export declare const toolDefinitions: ({
1419
1423
  to?: undefined;
1420
1424
  completedAfter?: undefined;
1421
1425
  nestIds?: undefined;
1422
- color?: undefined;
1423
- icon?: undefined;
1424
1426
  position?: undefined;
1425
1427
  relatedNestId?: undefined;
1428
+ color?: undefined;
1429
+ icon?: undefined;
1426
1430
  };
1427
1431
  required: string[];
1428
1432
  };
@@ -1476,10 +1480,10 @@ export declare const toolDefinitions: ({
1476
1480
  to?: undefined;
1477
1481
  completedAfter?: undefined;
1478
1482
  nestIds?: undefined;
1479
- color?: undefined;
1480
- icon?: undefined;
1481
1483
  position?: undefined;
1482
1484
  relatedNestId?: undefined;
1485
+ color?: undefined;
1486
+ icon?: undefined;
1483
1487
  };
1484
1488
  required: string[];
1485
1489
  };
@@ -1530,10 +1534,10 @@ export declare const toolDefinitions: ({
1530
1534
  to?: undefined;
1531
1535
  completedAfter?: undefined;
1532
1536
  nestIds?: undefined;
1533
- color?: undefined;
1534
- icon?: undefined;
1535
1537
  position?: undefined;
1536
1538
  relatedNestId?: undefined;
1539
+ color?: undefined;
1540
+ icon?: undefined;
1537
1541
  };
1538
1542
  required: string[];
1539
1543
  };
@@ -1584,10 +1588,10 @@ export declare const toolDefinitions: ({
1584
1588
  to?: undefined;
1585
1589
  completedAfter?: undefined;
1586
1590
  nestIds?: undefined;
1587
- color?: undefined;
1588
- icon?: undefined;
1589
1591
  position?: undefined;
1590
1592
  relatedNestId?: undefined;
1593
+ color?: undefined;
1594
+ icon?: undefined;
1591
1595
  };
1592
1596
  required: string[];
1593
1597
  };
@@ -1647,10 +1651,10 @@ export declare const toolDefinitions: ({
1647
1651
  labelId?: undefined;
1648
1652
  completedAfter?: undefined;
1649
1653
  nestIds?: undefined;
1650
- color?: undefined;
1651
- icon?: undefined;
1652
1654
  position?: undefined;
1653
1655
  relatedNestId?: undefined;
1656
+ color?: undefined;
1657
+ icon?: undefined;
1654
1658
  };
1655
1659
  required: string[];
1656
1660
  };
@@ -1698,10 +1702,10 @@ export declare const toolDefinitions: ({
1698
1702
  to?: undefined;
1699
1703
  completedAfter?: undefined;
1700
1704
  nestIds?: undefined;
1701
- color?: undefined;
1702
- icon?: undefined;
1703
1705
  position?: undefined;
1704
1706
  relatedNestId?: undefined;
1707
+ color?: undefined;
1708
+ icon?: undefined;
1705
1709
  };
1706
1710
  required: string[];
1707
1711
  };
@@ -1752,19 +1756,16 @@ export declare const toolDefinitions: ({
1752
1756
  from?: undefined;
1753
1757
  to?: undefined;
1754
1758
  nestIds?: undefined;
1755
- color?: undefined;
1756
- icon?: undefined;
1757
1759
  position?: undefined;
1758
1760
  relatedNestId?: undefined;
1761
+ color?: undefined;
1762
+ icon?: undefined;
1759
1763
  };
1760
1764
  required?: undefined;
1761
1765
  };
1762
1766
  _meta: {
1763
1767
  ui: {
1764
1768
  resourceUri: string;
1765
- csp: {
1766
- "img-src": string[];
1767
- };
1768
1769
  };
1769
1770
  };
1770
1771
  } | {
@@ -1813,10 +1814,10 @@ export declare const toolDefinitions: ({
1813
1814
  to?: undefined;
1814
1815
  completedAfter?: undefined;
1815
1816
  nestIds?: undefined;
1816
- color?: undefined;
1817
- icon?: undefined;
1818
1817
  position?: undefined;
1819
1818
  relatedNestId?: undefined;
1819
+ color?: undefined;
1820
+ icon?: undefined;
1820
1821
  };
1821
1822
  required: string[];
1822
1823
  };
@@ -1867,10 +1868,10 @@ export declare const toolDefinitions: ({
1867
1868
  to?: undefined;
1868
1869
  completedAfter?: undefined;
1869
1870
  nestIds?: undefined;
1870
- color?: undefined;
1871
- icon?: undefined;
1872
1871
  position?: undefined;
1873
1872
  relatedNestId?: undefined;
1873
+ color?: undefined;
1874
+ icon?: undefined;
1874
1875
  };
1875
1876
  required: string[];
1876
1877
  };
@@ -1930,10 +1931,10 @@ export declare const toolDefinitions: ({
1930
1931
  to?: undefined;
1931
1932
  completedAfter?: undefined;
1932
1933
  nestIds?: undefined;
1933
- color?: undefined;
1934
- icon?: undefined;
1935
1934
  position?: undefined;
1936
1935
  relatedNestId?: undefined;
1936
+ color?: undefined;
1937
+ icon?: undefined;
1937
1938
  };
1938
1939
  required: string[];
1939
1940
  };
@@ -1984,10 +1985,10 @@ export declare const toolDefinitions: ({
1984
1985
  from?: undefined;
1985
1986
  to?: undefined;
1986
1987
  completedAfter?: undefined;
1987
- color?: undefined;
1988
- icon?: undefined;
1989
1988
  position?: undefined;
1990
1989
  relatedNestId?: undefined;
1990
+ color?: undefined;
1991
+ icon?: undefined;
1991
1992
  };
1992
1993
  required: string[];
1993
1994
  };
@@ -1998,6 +1999,19 @@ export declare const toolDefinitions: ({
1998
1999
  inputSchema: {
1999
2000
  type: "object";
2000
2001
  properties: {
2002
+ nestId: {
2003
+ type: string;
2004
+ description: string;
2005
+ };
2006
+ position: {
2007
+ type: string;
2008
+ enum: string[];
2009
+ description: string;
2010
+ };
2011
+ relatedNestId: {
2012
+ type: string;
2013
+ description: string;
2014
+ };
2001
2015
  search?: undefined;
2002
2016
  limit?: undefined;
2003
2017
  page?: undefined;
@@ -2011,7 +2025,6 @@ export declare const toolDefinitions: ({
2011
2025
  apps?: undefined;
2012
2026
  layout?: undefined;
2013
2027
  query?: undefined;
2014
- nestId?: undefined;
2015
2028
  fieldsMetaData?: undefined;
2016
2029
  parentId?: undefined;
2017
2030
  description?: undefined;
@@ -2034,10 +2047,8 @@ export declare const toolDefinitions: ({
2034
2047
  nestIds?: undefined;
2035
2048
  color?: undefined;
2036
2049
  icon?: undefined;
2037
- position?: undefined;
2038
- relatedNestId?: undefined;
2039
2050
  };
2040
- required?: undefined;
2051
+ required: string[];
2041
2052
  };
2042
2053
  _meta?: undefined;
2043
2054
  } | {
@@ -2046,27 +2057,12 @@ export declare const toolDefinitions: ({
2046
2057
  inputSchema: {
2047
2058
  type: "object";
2048
2059
  properties: {
2049
- title: {
2050
- type: string;
2051
- description: string;
2052
- };
2053
- description: {
2054
- type: string;
2055
- description: string;
2056
- };
2057
- color: {
2058
- type: string;
2059
- description: string;
2060
- };
2061
- icon: {
2062
- type: string;
2063
- description: string;
2064
- };
2065
2060
  search?: undefined;
2066
2061
  limit?: undefined;
2067
2062
  page?: undefined;
2068
2063
  stripDescription?: undefined;
2069
2064
  workspaceId?: undefined;
2065
+ title?: undefined;
2070
2066
  purpose?: undefined;
2071
2067
  type?: undefined;
2072
2068
  governance?: undefined;
@@ -2077,6 +2073,7 @@ export declare const toolDefinitions: ({
2077
2073
  nestId?: undefined;
2078
2074
  fieldsMetaData?: undefined;
2079
2075
  parentId?: undefined;
2076
+ description?: undefined;
2080
2077
  labels?: undefined;
2081
2078
  users?: undefined;
2082
2079
  fields?: undefined;
@@ -2096,8 +2093,10 @@ export declare const toolDefinitions: ({
2096
2093
  nestIds?: undefined;
2097
2094
  position?: undefined;
2098
2095
  relatedNestId?: undefined;
2096
+ color?: undefined;
2097
+ icon?: undefined;
2099
2098
  };
2100
- required: string[];
2099
+ required?: undefined;
2101
2100
  };
2102
2101
  _meta?: undefined;
2103
2102
  } | {
@@ -2106,16 +2105,19 @@ export declare const toolDefinitions: ({
2106
2105
  inputSchema: {
2107
2106
  type: "object";
2108
2107
  properties: {
2109
- nestId: {
2108
+ title: {
2110
2109
  type: string;
2111
2110
  description: string;
2112
2111
  };
2113
- position: {
2112
+ description: {
2114
2113
  type: string;
2115
- enum: string[];
2116
2114
  description: string;
2117
2115
  };
2118
- relatedNestId: {
2116
+ color: {
2117
+ type: string;
2118
+ description: string;
2119
+ };
2120
+ icon: {
2119
2121
  type: string;
2120
2122
  description: string;
2121
2123
  };
@@ -2124,7 +2126,6 @@ export declare const toolDefinitions: ({
2124
2126
  page?: undefined;
2125
2127
  stripDescription?: undefined;
2126
2128
  workspaceId?: undefined;
2127
- title?: undefined;
2128
2129
  purpose?: undefined;
2129
2130
  type?: undefined;
2130
2131
  governance?: undefined;
@@ -2132,9 +2133,9 @@ export declare const toolDefinitions: ({
2132
2133
  apps?: undefined;
2133
2134
  layout?: undefined;
2134
2135
  query?: undefined;
2136
+ nestId?: undefined;
2135
2137
  fieldsMetaData?: undefined;
2136
2138
  parentId?: undefined;
2137
- description?: undefined;
2138
2139
  labels?: undefined;
2139
2140
  users?: undefined;
2140
2141
  fields?: undefined;
@@ -2152,8 +2153,8 @@ export declare const toolDefinitions: ({
2152
2153
  to?: undefined;
2153
2154
  completedAfter?: undefined;
2154
2155
  nestIds?: undefined;
2155
- color?: undefined;
2156
- icon?: undefined;
2156
+ position?: undefined;
2157
+ relatedNestId?: undefined;
2157
2158
  };
2158
2159
  required: string[];
2159
2160
  };
@@ -2207,10 +2208,10 @@ export declare const toolDefinitions: ({
2207
2208
  from?: undefined;
2208
2209
  to?: undefined;
2209
2210
  completedAfter?: undefined;
2210
- color?: undefined;
2211
- icon?: undefined;
2212
2211
  position?: undefined;
2213
2212
  relatedNestId?: undefined;
2213
+ color?: undefined;
2214
+ icon?: undefined;
2214
2215
  };
2215
2216
  required: string[];
2216
2217
  };
@@ -2258,19 +2259,16 @@ export declare const toolDefinitions: ({
2258
2259
  to?: undefined;
2259
2260
  completedAfter?: undefined;
2260
2261
  nestIds?: undefined;
2261
- color?: undefined;
2262
- icon?: undefined;
2263
2262
  position?: undefined;
2264
2263
  relatedNestId?: undefined;
2264
+ color?: undefined;
2265
+ icon?: undefined;
2265
2266
  };
2266
2267
  required?: undefined;
2267
2268
  };
2268
2269
  _meta: {
2269
2270
  ui: {
2270
2271
  resourceUri: string;
2271
- csp: {
2272
- "img-src": string[];
2273
- };
2274
2272
  };
2275
2273
  };
2276
2274
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAiB,KAAK,WAAW,EAAkC,MAAM,kBAAkB,CAAC;AA+DnG,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuMnB,CAAC;AAGF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+gB3B,CAAC;AAGF,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAuBF,wBAAsB,cAAc,CAClC,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,UAAU,CAAC,CAcrB"}
@@ -8,16 +8,26 @@ import { appResources } from "../apps/index.js";
8
8
  // MCP Apps UI metadata for tools that can render in the completable list app.
9
9
  // IMPORTANT: Only use for completable items (tasks, projects, todos, inbox items).
10
10
  // Do NOT use for structural nests like roles, circles, metrics, policies, etc.
11
- const completableListUi = {
12
- ui: {
13
- resourceUri: appResources.completableList.uri,
14
- csp: { "img-src": ["https://mcp.nestr.io"] },
15
- },
16
- };
11
+ const completableListUi = { ui: { resourceUri: appResources.completableList.uri } };
12
+ // Wrap a compacted response with title and source for the completable list app
13
+ function completableResponse(data, source, title) {
14
+ // Extract items array from different response shapes
15
+ let items;
16
+ if (Array.isArray(data)) {
17
+ items = data;
18
+ }
19
+ else if (data && typeof data === "object" && "data" in data && Array.isArray(data.data)) {
20
+ items = data.data;
21
+ }
22
+ else {
23
+ items = [];
24
+ }
25
+ return { title, source, items };
26
+ }
17
27
  // Fields to keep for compact list responses (reduces token usage)
18
28
  const COMPACT_FIELDS = {
19
- // Common fields for all nests
20
- base: ["_id", "title", "purpose"],
29
+ // Common fields for all nests (includes fields needed by the completable list app)
30
+ base: ["_id", "title", "purpose", "completed", "labels", "path", "parentId", "ancestors", "description", "due"],
21
31
  // Additional fields for roles
22
32
  role: ["accountabilities", "domains"],
23
33
  // Additional fields for users
@@ -201,6 +211,11 @@ export const schemas = {
201
211
  reorderInbox: z.object({
202
212
  nestIds: z.array(z.string()).describe("Array of inbox item IDs in the desired order"),
203
213
  }),
214
+ reorderInboxItem: z.object({
215
+ nestId: z.string().describe("ID of the inbox item to reorder"),
216
+ position: z.enum(["before", "after"]).describe("Position relative to the reference item"),
217
+ relatedNestId: z.string().describe("ID of the reference inbox item to position relative to"),
218
+ }),
204
219
  // Personal labels (require OAuth token)
205
220
  listPersonalLabels: z.object({}),
206
221
  createPersonalLabel: z.object({
@@ -670,6 +685,19 @@ Requires user-scoped authentication (OAuth token or personal API key with user s
670
685
  required: ["nestIds"],
671
686
  },
672
687
  },
688
+ {
689
+ name: "nestr_reorder_inbox_item",
690
+ description: "Reorder a single inbox item by positioning it before or after another inbox item. Requires OAuth token.",
691
+ inputSchema: {
692
+ type: "object",
693
+ properties: {
694
+ nestId: { type: "string", description: "ID of the inbox item to reorder" },
695
+ position: { type: "string", enum: ["before", "after"], description: "Position relative to the reference item" },
696
+ relatedNestId: { type: "string", description: "ID of the reference inbox item to position relative to" },
697
+ },
698
+ required: ["nestId", "position", "relatedNestId"],
699
+ },
700
+ },
673
701
  // Personal labels (require OAuth token - user's own labels, not workspace labels)
674
702
  {
675
703
  name: "nestr_list_personal_labels",
@@ -806,7 +834,7 @@ async function _handleToolCall(client, name, args) {
806
834
  case "nestr_search": {
807
835
  const parsed = schemas.search.parse(args);
808
836
  const results = await client.searchWorkspace(parsed.workspaceId, parsed.query, { limit: parsed.limit, page: parsed.page, cleanText: true });
809
- return formatResult(compactResponse(results));
837
+ return formatResult(completableResponse(compactResponse(results), "search", `Search: ${parsed.query}`));
810
838
  }
811
839
  case "nestr_get_nest": {
812
840
  const parsed = schemas.getNest.parse(args);
@@ -823,7 +851,7 @@ async function _handleToolCall(client, name, args) {
823
851
  page: parsed.page,
824
852
  cleanText: true,
825
853
  });
826
- return formatResult(compactResponse(children));
854
+ return formatResult(completableResponse(compactResponse(children), "children", "Sub-items"));
827
855
  }
828
856
  case "nestr_create_nest": {
829
857
  const parsed = schemas.createNest.parse(args);
@@ -918,7 +946,7 @@ async function _handleToolCall(client, name, args) {
918
946
  page: parsed.page,
919
947
  cleanText: true,
920
948
  });
921
- return formatResult(compactResponse(projects));
949
+ return formatResult(completableResponse(compactResponse(projects), "projects", "Projects"));
922
950
  }
923
951
  case "nestr_get_comments": {
924
952
  const parsed = schemas.getComments.parse(args);
@@ -962,7 +990,7 @@ async function _handleToolCall(client, name, args) {
962
990
  const items = await client.listInbox({
963
991
  completedAfter: parsed.completedAfter,
964
992
  });
965
- return formatResult(compactResponse(items));
993
+ return formatResult(completableResponse(compactResponse(items), "inbox", "Inbox"));
966
994
  }
967
995
  case "nestr_create_inbox_item": {
968
996
  const parsed = schemas.createInboxItem.parse(args);
@@ -992,6 +1020,11 @@ async function _handleToolCall(client, name, args) {
992
1020
  const result = await client.reorderInbox(parsed.nestIds);
993
1021
  return formatResult({ message: "Inbox items reordered successfully", items: result });
994
1022
  }
1023
+ case "nestr_reorder_inbox_item": {
1024
+ const parsed = schemas.reorderInboxItem.parse(args);
1025
+ const result = await client.reorderInboxItem(parsed.nestId, parsed.position, parsed.relatedNestId);
1026
+ return formatResult({ message: "Inbox item reordered successfully", nest: result });
1027
+ }
995
1028
  // Personal labels (require OAuth token)
996
1029
  case "nestr_list_personal_labels": {
997
1030
  schemas.listPersonalLabels.parse(args);
@@ -1023,7 +1056,7 @@ async function _handleToolCall(client, name, args) {
1023
1056
  case "nestr_get_daily_plan": {
1024
1057
  schemas.getDailyPlan.parse(args);
1025
1058
  const items = await client.getDailyPlan();
1026
- return formatResult(compactResponse(items));
1059
+ return formatResult(completableResponse(compactResponse(items), "daily-plan", "Daily Plan"));
1027
1060
  }
1028
1061
  default:
1029
1062
  return formatError({