remnote-mcp-server 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +3 -0
  3. package/dist/cli.d.ts +1 -0
  4. package/dist/cli.js +7 -2
  5. package/dist/cli.js.map +1 -1
  6. package/dist/config.d.ts +2 -0
  7. package/dist/config.js +26 -2
  8. package/dist/config.js.map +1 -1
  9. package/dist/daemon.js.map +1 -1
  10. package/dist/http-server.d.ts +2 -1
  11. package/dist/http-server.js +4 -2
  12. package/dist/http-server.js.map +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/media.d.ts +32 -0
  16. package/dist/media.js +184 -0
  17. package/dist/media.js.map +1 -0
  18. package/dist/remnote-cli/cli.js +4 -1
  19. package/dist/remnote-cli/cli.js.map +1 -1
  20. package/dist/remnote-cli/client/mcp-server-client.js +17 -0
  21. package/dist/remnote-cli/client/mcp-server-client.js.map +1 -1
  22. package/dist/remnote-cli/commands/create.js +2 -2
  23. package/dist/remnote-cli/commands/create.js.map +1 -1
  24. package/dist/remnote-cli/commands/journal.js +1 -1
  25. package/dist/remnote-cli/commands/journal.js.map +1 -1
  26. package/dist/remnote-cli/commands/media.d.ts +2 -0
  27. package/dist/remnote-cli/commands/media.js +62 -0
  28. package/dist/remnote-cli/commands/media.js.map +1 -0
  29. package/dist/remnote-cli/commands/read.js +12 -0
  30. package/dist/remnote-cli/commands/read.js.map +1 -1
  31. package/dist/remnote-cli/commands/search.js +3 -0
  32. package/dist/remnote-cli/commands/search.js.map +1 -1
  33. package/dist/remnote-cli/commands/update.js +1 -1
  34. package/dist/remnote-cli/commands/update.js.map +1 -1
  35. package/dist/remnote-cli/commands/write-actions.d.ts +1 -0
  36. package/dist/remnote-cli/commands/write-actions.js +52 -2
  37. package/dist/remnote-cli/commands/write-actions.js.map +1 -1
  38. package/dist/schemas/remnote-schemas.d.ts +34 -0
  39. package/dist/schemas/remnote-schemas.js +72 -5
  40. package/dist/schemas/remnote-schemas.js.map +1 -1
  41. package/dist/tools/index.d.ts +483 -1
  42. package/dist/tools/index.js +246 -21
  43. package/dist/tools/index.js.map +1 -1
  44. package/dist/types/bridge.d.ts +1 -0
  45. package/dist/websocket-server.d.ts +3 -0
  46. package/dist/websocket-server.js +12 -0
  47. package/dist/websocket-server.js.map +1 -1
  48. package/mcpb/remnote-local/manifest.json +11 -3
  49. package/mcpb/remnote-local/package.json +1 -1
  50. package/mcpb/remnote-local/remnote-local.mcpb +0 -0
  51. package/mcpb/remnote-local/server/fallback-tools.generated.js +125 -8
  52. package/package.json +4 -4
@@ -65,6 +65,11 @@ export declare const SEARCH_TOOL: {
65
65
  type: string;
66
66
  description: string;
67
67
  };
68
+ parentRemId: {
69
+ type: string;
70
+ minLength: number;
71
+ description: string;
72
+ };
68
73
  limit: {
69
74
  type: string;
70
75
  description: string;
@@ -922,6 +927,10 @@ export declare const READ_NOTE_TOOL: {
922
927
  type: string;
923
928
  description: string;
924
929
  };
930
+ includeMediaMetadata: {
931
+ type: string;
932
+ description: string;
933
+ };
925
934
  };
926
935
  required: string[];
927
936
  };
@@ -1142,7 +1151,141 @@ export declare const READ_NOTE_TOOL: {
1142
1151
  };
1143
1152
  };
1144
1153
  };
1154
+ media: {
1155
+ type: string;
1156
+ description: string;
1157
+ items: {
1158
+ type: string;
1159
+ properties: {
1160
+ mediaId: {
1161
+ type: string;
1162
+ };
1163
+ kind: {
1164
+ type: string;
1165
+ enum: string[];
1166
+ };
1167
+ field: {
1168
+ type: string;
1169
+ enum: string[];
1170
+ };
1171
+ elementIndex: {
1172
+ type: string;
1173
+ };
1174
+ imageIndex: {
1175
+ type: string;
1176
+ };
1177
+ imgId: {
1178
+ type: string;
1179
+ };
1180
+ title: {
1181
+ type: string;
1182
+ };
1183
+ dimensions: {
1184
+ type: string;
1185
+ properties: {
1186
+ width: {
1187
+ type: string;
1188
+ };
1189
+ height: {
1190
+ type: string;
1191
+ };
1192
+ };
1193
+ required: string[];
1194
+ };
1195
+ mimeType: {
1196
+ type: string;
1197
+ };
1198
+ source: {
1199
+ type: string;
1200
+ enum: string[];
1201
+ };
1202
+ };
1203
+ required: string[];
1204
+ };
1205
+ };
1206
+ };
1207
+ };
1208
+ };
1209
+ export declare const GET_MEDIA_TOOL: {
1210
+ name: string;
1211
+ description: string;
1212
+ inputSchema: {
1213
+ type: "object";
1214
+ properties: {
1215
+ remId: {
1216
+ type: string;
1217
+ description: string;
1218
+ };
1219
+ field: {
1220
+ type: string;
1221
+ enum: string[];
1222
+ description: string;
1223
+ };
1224
+ mediaId: {
1225
+ type: string;
1226
+ description: string;
1227
+ };
1228
+ maxInlineBytes: {
1229
+ type: string;
1230
+ description: string;
1231
+ };
1232
+ };
1233
+ required: string[];
1234
+ additionalProperties: boolean;
1235
+ };
1236
+ outputSchema: {
1237
+ type: "object";
1238
+ properties: {
1239
+ remId: {
1240
+ type: string;
1241
+ };
1242
+ mediaId: {
1243
+ type: string;
1244
+ };
1245
+ kind: {
1246
+ type: string;
1247
+ enum: string[];
1248
+ };
1249
+ field: {
1250
+ type: string;
1251
+ enum: string[];
1252
+ };
1253
+ elementIndex: {
1254
+ type: string;
1255
+ };
1256
+ imageIndex: {
1257
+ type: string;
1258
+ };
1259
+ imgId: {
1260
+ type: string;
1261
+ };
1262
+ title: {
1263
+ type: string;
1264
+ };
1265
+ dimensions: {
1266
+ type: string;
1267
+ properties: {
1268
+ width: {
1269
+ type: string;
1270
+ };
1271
+ height: {
1272
+ type: string;
1273
+ };
1274
+ };
1275
+ required: string[];
1276
+ };
1277
+ mimeType: {
1278
+ type: string;
1279
+ };
1280
+ source: {
1281
+ type: string;
1282
+ enum: string[];
1283
+ };
1284
+ sizeBytes: {
1285
+ type: string;
1286
+ };
1145
1287
  };
1288
+ required: string[];
1146
1289
  };
1147
1290
  };
1148
1291
  export declare const LIST_CHILDREN_TOOL: {
@@ -1926,6 +2069,98 @@ export declare const UPDATE_TAGS_TOOL: {
1926
2069
  required: string[];
1927
2070
  };
1928
2071
  };
2072
+ export declare const SET_PROPERTY_TOOL: {
2073
+ name: string;
2074
+ description: string;
2075
+ inputSchema: {
2076
+ type: "object";
2077
+ properties: {
2078
+ remId: {
2079
+ type: string;
2080
+ description: string;
2081
+ };
2082
+ tagRemId: {
2083
+ type: string;
2084
+ description: string;
2085
+ };
2086
+ propertyRemId: {
2087
+ type: string;
2088
+ description: string;
2089
+ };
2090
+ value: {
2091
+ oneOf: ({
2092
+ type: string;
2093
+ properties: {
2094
+ kind: {
2095
+ type: string;
2096
+ const: string;
2097
+ };
2098
+ text: {
2099
+ type: string;
2100
+ description: string;
2101
+ };
2102
+ remId?: undefined;
2103
+ };
2104
+ required: string[];
2105
+ additionalProperties: boolean;
2106
+ } | {
2107
+ type: string;
2108
+ properties: {
2109
+ kind: {
2110
+ type: string;
2111
+ const: string;
2112
+ };
2113
+ remId: {
2114
+ type: string;
2115
+ description: string;
2116
+ };
2117
+ text?: undefined;
2118
+ };
2119
+ required: string[];
2120
+ additionalProperties: boolean;
2121
+ } | {
2122
+ type: string;
2123
+ properties: {
2124
+ kind: {
2125
+ type: string;
2126
+ const: string;
2127
+ };
2128
+ text?: undefined;
2129
+ remId?: undefined;
2130
+ };
2131
+ required: string[];
2132
+ additionalProperties: boolean;
2133
+ })[];
2134
+ description: string;
2135
+ };
2136
+ };
2137
+ required: string[];
2138
+ additionalProperties: boolean;
2139
+ };
2140
+ outputSchema: {
2141
+ type: "object";
2142
+ properties: {
2143
+ remId: {
2144
+ type: string;
2145
+ description: string;
2146
+ };
2147
+ tagRemId: {
2148
+ type: string;
2149
+ description: string;
2150
+ };
2151
+ propertyRemId: {
2152
+ type: string;
2153
+ description: string;
2154
+ };
2155
+ valueKind: {
2156
+ type: string;
2157
+ enum: string[];
2158
+ description: string;
2159
+ };
2160
+ };
2161
+ required: string[];
2162
+ };
2163
+ };
1929
2164
  export declare const APPEND_JOURNAL_TOOL: {
1930
2165
  name: string;
1931
2166
  description: string;
@@ -1994,6 +2229,13 @@ export declare const STATUS_TOOL: {
1994
2229
  type: string;
1995
2230
  description: string;
1996
2231
  };
2232
+ capabilities: {
2233
+ type: string;
2234
+ items: {
2235
+ type: string;
2236
+ };
2237
+ description: string;
2238
+ };
1997
2239
  version_warning: {
1998
2240
  type: string;
1999
2241
  description: string;
@@ -2279,6 +2521,11 @@ export declare const ALL_TOOLS: readonly [{
2279
2521
  type: string;
2280
2522
  description: string;
2281
2523
  };
2524
+ parentRemId: {
2525
+ type: string;
2526
+ minLength: number;
2527
+ description: string;
2528
+ };
2282
2529
  limit: {
2283
2530
  type: string;
2284
2531
  description: string;
@@ -3134,6 +3381,10 @@ export declare const ALL_TOOLS: readonly [{
3134
3381
  type: string;
3135
3382
  description: string;
3136
3383
  };
3384
+ includeMediaMetadata: {
3385
+ type: string;
3386
+ description: string;
3387
+ };
3137
3388
  };
3138
3389
  required: string[];
3139
3390
  };
@@ -3354,7 +3605,140 @@ export declare const ALL_TOOLS: readonly [{
3354
3605
  };
3355
3606
  };
3356
3607
  };
3608
+ media: {
3609
+ type: string;
3610
+ description: string;
3611
+ items: {
3612
+ type: string;
3613
+ properties: {
3614
+ mediaId: {
3615
+ type: string;
3616
+ };
3617
+ kind: {
3618
+ type: string;
3619
+ enum: string[];
3620
+ };
3621
+ field: {
3622
+ type: string;
3623
+ enum: string[];
3624
+ };
3625
+ elementIndex: {
3626
+ type: string;
3627
+ };
3628
+ imageIndex: {
3629
+ type: string;
3630
+ };
3631
+ imgId: {
3632
+ type: string;
3633
+ };
3634
+ title: {
3635
+ type: string;
3636
+ };
3637
+ dimensions: {
3638
+ type: string;
3639
+ properties: {
3640
+ width: {
3641
+ type: string;
3642
+ };
3643
+ height: {
3644
+ type: string;
3645
+ };
3646
+ };
3647
+ required: string[];
3648
+ };
3649
+ mimeType: {
3650
+ type: string;
3651
+ };
3652
+ source: {
3653
+ type: string;
3654
+ enum: string[];
3655
+ };
3656
+ };
3657
+ required: string[];
3658
+ };
3659
+ };
3660
+ };
3661
+ };
3662
+ }, {
3663
+ name: string;
3664
+ description: string;
3665
+ inputSchema: {
3666
+ type: "object";
3667
+ properties: {
3668
+ remId: {
3669
+ type: string;
3670
+ description: string;
3671
+ };
3672
+ field: {
3673
+ type: string;
3674
+ enum: string[];
3675
+ description: string;
3676
+ };
3677
+ mediaId: {
3678
+ type: string;
3679
+ description: string;
3680
+ };
3681
+ maxInlineBytes: {
3682
+ type: string;
3683
+ description: string;
3684
+ };
3685
+ };
3686
+ required: string[];
3687
+ additionalProperties: boolean;
3688
+ };
3689
+ outputSchema: {
3690
+ type: "object";
3691
+ properties: {
3692
+ remId: {
3693
+ type: string;
3694
+ };
3695
+ mediaId: {
3696
+ type: string;
3697
+ };
3698
+ kind: {
3699
+ type: string;
3700
+ enum: string[];
3701
+ };
3702
+ field: {
3703
+ type: string;
3704
+ enum: string[];
3705
+ };
3706
+ elementIndex: {
3707
+ type: string;
3708
+ };
3709
+ imageIndex: {
3710
+ type: string;
3711
+ };
3712
+ imgId: {
3713
+ type: string;
3714
+ };
3715
+ title: {
3716
+ type: string;
3717
+ };
3718
+ dimensions: {
3719
+ type: string;
3720
+ properties: {
3721
+ width: {
3722
+ type: string;
3723
+ };
3724
+ height: {
3725
+ type: string;
3726
+ };
3727
+ };
3728
+ required: string[];
3729
+ };
3730
+ mimeType: {
3731
+ type: string;
3732
+ };
3733
+ source: {
3734
+ type: string;
3735
+ enum: string[];
3736
+ };
3737
+ sizeBytes: {
3738
+ type: string;
3739
+ };
3357
3740
  };
3741
+ required: string[];
3358
3742
  };
3359
3743
  }, {
3360
3744
  name: string;
@@ -4130,6 +4514,97 @@ export declare const ALL_TOOLS: readonly [{
4130
4514
  };
4131
4515
  required: string[];
4132
4516
  };
4517
+ }, {
4518
+ name: string;
4519
+ description: string;
4520
+ inputSchema: {
4521
+ type: "object";
4522
+ properties: {
4523
+ remId: {
4524
+ type: string;
4525
+ description: string;
4526
+ };
4527
+ tagRemId: {
4528
+ type: string;
4529
+ description: string;
4530
+ };
4531
+ propertyRemId: {
4532
+ type: string;
4533
+ description: string;
4534
+ };
4535
+ value: {
4536
+ oneOf: ({
4537
+ type: string;
4538
+ properties: {
4539
+ kind: {
4540
+ type: string;
4541
+ const: string;
4542
+ };
4543
+ text: {
4544
+ type: string;
4545
+ description: string;
4546
+ };
4547
+ remId?: undefined;
4548
+ };
4549
+ required: string[];
4550
+ additionalProperties: boolean;
4551
+ } | {
4552
+ type: string;
4553
+ properties: {
4554
+ kind: {
4555
+ type: string;
4556
+ const: string;
4557
+ };
4558
+ remId: {
4559
+ type: string;
4560
+ description: string;
4561
+ };
4562
+ text?: undefined;
4563
+ };
4564
+ required: string[];
4565
+ additionalProperties: boolean;
4566
+ } | {
4567
+ type: string;
4568
+ properties: {
4569
+ kind: {
4570
+ type: string;
4571
+ const: string;
4572
+ };
4573
+ text?: undefined;
4574
+ remId?: undefined;
4575
+ };
4576
+ required: string[];
4577
+ additionalProperties: boolean;
4578
+ })[];
4579
+ description: string;
4580
+ };
4581
+ };
4582
+ required: string[];
4583
+ additionalProperties: boolean;
4584
+ };
4585
+ outputSchema: {
4586
+ type: "object";
4587
+ properties: {
4588
+ remId: {
4589
+ type: string;
4590
+ description: string;
4591
+ };
4592
+ tagRemId: {
4593
+ type: string;
4594
+ description: string;
4595
+ };
4596
+ propertyRemId: {
4597
+ type: string;
4598
+ description: string;
4599
+ };
4600
+ valueKind: {
4601
+ type: string;
4602
+ enum: string[];
4603
+ description: string;
4604
+ };
4605
+ };
4606
+ required: string[];
4607
+ };
4133
4608
  }, {
4134
4609
  name: string;
4135
4610
  description: string;
@@ -4296,6 +4771,13 @@ export declare const ALL_TOOLS: readonly [{
4296
4771
  type: string;
4297
4772
  description: string;
4298
4773
  };
4774
+ capabilities: {
4775
+ type: string;
4776
+ items: {
4777
+ type: string;
4778
+ };
4779
+ description: string;
4780
+ };
4299
4781
  version_warning: {
4300
4782
  type: string;
4301
4783
  description: string;
@@ -4417,4 +4899,4 @@ export declare const ALL_TOOLS: readonly [{
4417
4899
  required: string[];
4418
4900
  };
4419
4901
  }];
4420
- export declare function registerAllTools(server: Server, wsServer: WebSocketServer, logger: Logger): void;
4902
+ export declare function registerAllTools(server: Server, wsServer: WebSocketServer, logger: Logger, mediaRoots?: string[]): void;