@kintone/mcp-server 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,638 @@
1
+ import { z } from "zod";
2
+ // Common schemas
3
+ const optionsSchema = z.record(z.string(), z.object({
4
+ label: z.string().describe("Display name of the option"),
5
+ index: z.string().describe("Display order of the option"),
6
+ }));
7
+ const userEntitySchema = z.object({
8
+ code: z.string().describe("Code of user/group/organization"),
9
+ type: z.enum(["USER", "GROUP", "ORGANIZATION"]).describe("Type of entity"),
10
+ });
11
+ // System fields
12
+ const recordNumberSchema = z.object({
13
+ type: z.literal("RECORD_NUMBER"),
14
+ code: z.string().describe("Field code"),
15
+ label: z.string().describe("Field label"),
16
+ noLabel: z
17
+ .boolean()
18
+ .optional()
19
+ .describe("Whether to hide the label (true: hide, false: show)"),
20
+ });
21
+ const creatorSchema = z.object({
22
+ type: z.literal("CREATOR"),
23
+ code: z.string().describe("Field code"),
24
+ label: z.string().describe("Field label"),
25
+ noLabel: z
26
+ .boolean()
27
+ .optional()
28
+ .describe("Whether to hide the label (true: hide, false: show)"),
29
+ });
30
+ const createdTimeSchema = z.object({
31
+ type: z.literal("CREATED_TIME"),
32
+ code: z.string().describe("Field code"),
33
+ label: z.string().describe("Field label"),
34
+ noLabel: z
35
+ .boolean()
36
+ .optional()
37
+ .describe("Whether to hide the label (true: hide, false: show)"),
38
+ });
39
+ const modifierSchema = z.object({
40
+ type: z.literal("MODIFIER"),
41
+ code: z.string().describe("Field code"),
42
+ label: z.string().describe("Field label"),
43
+ noLabel: z
44
+ .boolean()
45
+ .optional()
46
+ .describe("Whether to hide the label (true: hide, false: show)"),
47
+ });
48
+ const updatedTimeSchema = z.object({
49
+ type: z.literal("UPDATED_TIME"),
50
+ code: z.string().describe("Field code"),
51
+ label: z.string().describe("Field label"),
52
+ noLabel: z
53
+ .boolean()
54
+ .optional()
55
+ .describe("Whether to hide the label (true: hide, false: show)"),
56
+ });
57
+ const categorySchema = z.object({
58
+ type: z.literal("CATEGORY"),
59
+ code: z.string().describe("Field code"),
60
+ label: z.string().describe("Field label"),
61
+ enabled: z.boolean().optional().describe("Enable/disable setting"),
62
+ });
63
+ const statusSchema = z.object({
64
+ type: z.literal("STATUS"),
65
+ code: z.string().describe("Field code"),
66
+ label: z.string().describe("Field label"),
67
+ enabled: z.boolean().optional().describe("Enable/disable setting"),
68
+ });
69
+ const statusAssigneeSchema = z.object({
70
+ type: z.literal("STATUS_ASSIGNEE"),
71
+ code: z.string().describe("Field code"),
72
+ label: z.string().describe("Field label"),
73
+ enabled: z.boolean().optional().describe("Enable/disable setting"),
74
+ });
75
+ // Basic fields
76
+ const singleLineTextSchema = z.object({
77
+ type: z.literal("SINGLE_LINE_TEXT"),
78
+ code: z.string().describe("Field code"),
79
+ label: z.string().describe("Field label"),
80
+ noLabel: z
81
+ .boolean()
82
+ .optional()
83
+ .describe("Whether to hide the label (true: hide, false: show)"),
84
+ required: z
85
+ .boolean()
86
+ .optional()
87
+ .describe("Whether the field is required (true: required, false: optional)"),
88
+ defaultValue: z.string().optional().describe("Default value"),
89
+ unique: z
90
+ .boolean()
91
+ .optional()
92
+ .describe("Whether to prohibit duplicate values (true: prohibit, false: allow)"),
93
+ minLength: z.string().optional().describe("Minimum character length"),
94
+ maxLength: z.string().optional().describe("Maximum character length"),
95
+ expression: z.string().optional().describe("Auto-calculation formula"),
96
+ hideExpression: z
97
+ .boolean()
98
+ .optional()
99
+ .describe("Whether to hide the formula (true: hide, false: show)"),
100
+ });
101
+ const numberSchema = z.object({
102
+ type: z.literal("NUMBER"),
103
+ code: z.string().describe("Field code"),
104
+ label: z.string().describe("Field label"),
105
+ noLabel: z
106
+ .boolean()
107
+ .optional()
108
+ .describe("Whether to hide the label (true: hide, false: show)"),
109
+ required: z
110
+ .boolean()
111
+ .optional()
112
+ .describe("Whether the field is required (true: required, false: optional)"),
113
+ defaultValue: z.string().optional().describe("Default value"),
114
+ unique: z
115
+ .boolean()
116
+ .optional()
117
+ .describe("Whether to prohibit duplicate values (true: prohibit, false: allow)"),
118
+ minValue: z.string().optional().describe("Minimum value"),
119
+ maxValue: z.string().optional().describe("Maximum value"),
120
+ digit: z
121
+ .boolean()
122
+ .optional()
123
+ .describe("Whether to display digit separators (true: show, false: hide)"),
124
+ displayScale: z
125
+ .string()
126
+ .optional()
127
+ .describe("Number of decimal places to display"),
128
+ unit: z.string().optional().describe("Unit symbol"),
129
+ unitPosition: z
130
+ .enum(["BEFORE", "AFTER"])
131
+ .optional()
132
+ .describe("Position of unit (BEFORE: before field, AFTER: after field)"),
133
+ });
134
+ const calcSchema = z.object({
135
+ type: z.literal("CALC"),
136
+ code: z.string().describe("Field code"),
137
+ label: z.string().describe("Field label"),
138
+ noLabel: z
139
+ .boolean()
140
+ .optional()
141
+ .describe("Whether to hide the label (true: hide, false: show)"),
142
+ required: z
143
+ .boolean()
144
+ .optional()
145
+ .describe("Whether the field is required (true: required, false: optional)"),
146
+ expression: z.string().optional().describe("Auto-calculation formula"),
147
+ hideExpression: z
148
+ .boolean()
149
+ .optional()
150
+ .describe("Whether to hide the formula (true: hide, false: show)"),
151
+ format: z
152
+ .enum([
153
+ "NUMBER",
154
+ "NUMBER_DIGIT",
155
+ "DATETIME",
156
+ "DATE",
157
+ "TIME",
158
+ "HOUR_MINUTE",
159
+ "DAY_HOUR_MINUTE",
160
+ ])
161
+ .optional()
162
+ .describe("Display format of calculation result"),
163
+ displayScale: z
164
+ .string()
165
+ .optional()
166
+ .describe("Number of decimal places to display"),
167
+ unit: z.string().optional().describe("Unit symbol"),
168
+ unitPosition: z
169
+ .enum(["BEFORE", "AFTER"])
170
+ .optional()
171
+ .describe("Position of unit (BEFORE: before field, AFTER: after field)"),
172
+ });
173
+ const multiLineTextSchema = z.object({
174
+ type: z.literal("MULTI_LINE_TEXT"),
175
+ code: z.string().describe("Field code"),
176
+ label: z.string().describe("Field label"),
177
+ noLabel: z
178
+ .boolean()
179
+ .optional()
180
+ .describe("Whether to hide the label (true: hide, false: show)"),
181
+ required: z
182
+ .boolean()
183
+ .optional()
184
+ .describe("Whether the field is required (true: required, false: optional)"),
185
+ defaultValue: z.string().optional().describe("Default value"),
186
+ });
187
+ const richTextSchema = z.object({
188
+ type: z.literal("RICH_TEXT"),
189
+ code: z.string().describe("Field code"),
190
+ label: z.string().describe("Field label"),
191
+ noLabel: z
192
+ .boolean()
193
+ .optional()
194
+ .describe("Whether to hide the label (true: hide, false: show)"),
195
+ required: z
196
+ .boolean()
197
+ .optional()
198
+ .describe("Whether the field is required (true: required, false: optional)"),
199
+ defaultValue: z.string().optional().describe("Default value"),
200
+ });
201
+ const linkSchema = z.object({
202
+ type: z.literal("LINK"),
203
+ code: z.string().describe("Field code"),
204
+ label: z.string().describe("Field label"),
205
+ noLabel: z
206
+ .boolean()
207
+ .optional()
208
+ .describe("Whether to hide the label (true: hide, false: show)"),
209
+ required: z
210
+ .boolean()
211
+ .optional()
212
+ .describe("Whether the field is required (true: required, false: optional)"),
213
+ defaultValue: z.string().optional().describe("Default value"),
214
+ unique: z
215
+ .boolean()
216
+ .optional()
217
+ .describe("Whether to prohibit duplicate values (true: prohibit, false: allow)"),
218
+ minLength: z.string().optional().describe("Minimum character length"),
219
+ maxLength: z.string().optional().describe("Maximum character length"),
220
+ protocol: z
221
+ .enum(["WEB", "CALL", "MAIL"])
222
+ .optional()
223
+ .describe("Link protocol (WEB: http/https, CALL: tel, MAIL: mailto)"),
224
+ });
225
+ // Selection fields
226
+ const checkboxSchema = z.object({
227
+ type: z.literal("CHECK_BOX"),
228
+ code: z.string().describe("Field code"),
229
+ label: z.string().describe("Field label"),
230
+ noLabel: z
231
+ .boolean()
232
+ .optional()
233
+ .describe("Whether to hide the label (true: hide, false: show)"),
234
+ required: z
235
+ .boolean()
236
+ .optional()
237
+ .describe("Whether the field is required (true: required, false: optional)"),
238
+ defaultValue: z
239
+ .array(z.string())
240
+ .optional()
241
+ .describe("Array of default values"),
242
+ options: optionsSchema.optional().describe("Options configuration"),
243
+ align: z
244
+ .enum(["HORIZONTAL", "VERTICAL"])
245
+ .optional()
246
+ .describe("Alignment of options (HORIZONTAL: horizontal, VERTICAL: vertical)"),
247
+ });
248
+ const radioButtonSchema = z.object({
249
+ type: z.literal("RADIO_BUTTON"),
250
+ code: z.string().describe("Field code"),
251
+ label: z.string().describe("Field label"),
252
+ noLabel: z
253
+ .boolean()
254
+ .optional()
255
+ .describe("Whether to hide the label (true: hide, false: show)"),
256
+ required: z
257
+ .boolean()
258
+ .optional()
259
+ .describe("Whether the field is required (true: required, false: optional)"),
260
+ defaultValue: z.string().optional().describe("Default value"),
261
+ options: optionsSchema.optional().describe("Options configuration"),
262
+ align: z
263
+ .enum(["HORIZONTAL", "VERTICAL"])
264
+ .optional()
265
+ .describe("Alignment of options (HORIZONTAL: horizontal, VERTICAL: vertical)"),
266
+ });
267
+ const dropdownSchema = z.object({
268
+ type: z.literal("DROP_DOWN"),
269
+ code: z.string().describe("Field code"),
270
+ label: z.string().describe("Field label"),
271
+ noLabel: z
272
+ .boolean()
273
+ .optional()
274
+ .describe("Whether to hide the label (true: hide, false: show)"),
275
+ required: z
276
+ .boolean()
277
+ .optional()
278
+ .describe("Whether the field is required (true: required, false: optional)"),
279
+ defaultValue: z.string().optional().describe("Default value"),
280
+ options: optionsSchema.optional().describe("Options configuration"),
281
+ });
282
+ const multiSelectSchema = z.object({
283
+ type: z.literal("MULTI_SELECT"),
284
+ code: z.string().describe("Field code"),
285
+ label: z.string().describe("Field label"),
286
+ noLabel: z
287
+ .boolean()
288
+ .optional()
289
+ .describe("Whether to hide the label (true: hide, false: show)"),
290
+ required: z
291
+ .boolean()
292
+ .optional()
293
+ .describe("Whether the field is required (true: required, false: optional)"),
294
+ defaultValue: z
295
+ .array(z.string())
296
+ .optional()
297
+ .describe("Array of default values"),
298
+ options: optionsSchema.optional().describe("Options configuration"),
299
+ });
300
+ // File and date fields
301
+ const fileSchema = z.object({
302
+ type: z.literal("FILE"),
303
+ code: z.string().describe("Field code"),
304
+ label: z.string().describe("Field label"),
305
+ noLabel: z
306
+ .boolean()
307
+ .optional()
308
+ .describe("Whether to hide the label (true: hide, false: show)"),
309
+ required: z
310
+ .boolean()
311
+ .optional()
312
+ .describe("Whether the field is required (true: required, false: optional)"),
313
+ thumbnailSize: z
314
+ .enum(["50", "150", "250", "500"])
315
+ .optional()
316
+ .describe("Thumbnail size (pixels)"),
317
+ });
318
+ const dateSchema = z.object({
319
+ type: z.literal("DATE"),
320
+ code: z.string().describe("Field code"),
321
+ label: z.string().describe("Field label"),
322
+ noLabel: z
323
+ .boolean()
324
+ .optional()
325
+ .describe("Whether to hide the label (true: hide, false: show)"),
326
+ required: z
327
+ .boolean()
328
+ .optional()
329
+ .describe("Whether the field is required (true: required, false: optional)"),
330
+ defaultValue: z
331
+ .string()
332
+ .optional()
333
+ .describe("Default value (YYYY-MM-DD format)"),
334
+ unique: z
335
+ .boolean()
336
+ .optional()
337
+ .describe("Whether to prohibit duplicate values (true: prohibit, false: allow)"),
338
+ defaultNowValue: z
339
+ .boolean()
340
+ .optional()
341
+ .describe("Whether to automatically set the current date (true: auto-set, false: manual)"),
342
+ });
343
+ const timeSchema = z.object({
344
+ type: z.literal("TIME"),
345
+ code: z.string().describe("Field code"),
346
+ label: z.string().describe("Field label"),
347
+ noLabel: z
348
+ .boolean()
349
+ .optional()
350
+ .describe("Whether to hide the label (true: hide, false: show)"),
351
+ required: z
352
+ .boolean()
353
+ .optional()
354
+ .describe("Whether the field is required (true: required, false: optional)"),
355
+ defaultValue: z.string().optional().describe("Default value (HH:MM format)"),
356
+ defaultNowValue: z
357
+ .boolean()
358
+ .optional()
359
+ .describe("Whether to automatically set the current time (true: auto-set, false: manual)"),
360
+ });
361
+ const datetimeSchema = z.object({
362
+ type: z.literal("DATETIME"),
363
+ code: z.string().describe("Field code"),
364
+ label: z.string().describe("Field label"),
365
+ noLabel: z
366
+ .boolean()
367
+ .optional()
368
+ .describe("Whether to hide the label (true: hide, false: show)"),
369
+ required: z
370
+ .boolean()
371
+ .optional()
372
+ .describe("Whether the field is required (true: required, false: optional)"),
373
+ defaultValue: z
374
+ .string()
375
+ .optional()
376
+ .describe("Default value (YYYY-MM-DDTHH:MM:SSZ format)"),
377
+ unique: z
378
+ .boolean()
379
+ .optional()
380
+ .describe("Whether to prohibit duplicate values (true: prohibit, false: allow)"),
381
+ defaultNowValue: z
382
+ .boolean()
383
+ .optional()
384
+ .describe("Whether to automatically set the current datetime (true: auto-set, false: manual)"),
385
+ });
386
+ // User and organization selection fields
387
+ const userSelectSchema = z.object({
388
+ type: z.literal("USER_SELECT"),
389
+ code: z.string().describe("Field code"),
390
+ label: z.string().describe("Field label"),
391
+ noLabel: z
392
+ .boolean()
393
+ .optional()
394
+ .describe("Whether to hide the label (true: hide, false: show)"),
395
+ required: z
396
+ .boolean()
397
+ .optional()
398
+ .describe("Whether the field is required (true: required, false: optional)"),
399
+ defaultValue: z
400
+ .array(z.union([
401
+ userEntitySchema,
402
+ z.object({
403
+ code: z
404
+ .literal("LOGINUSER()")
405
+ .describe("Function representing the logged-in user"),
406
+ type: z.literal("FUNCTION").describe("Function type"),
407
+ }),
408
+ ]))
409
+ .optional()
410
+ .describe("Array of default users/groups/organizations, or LOGINUSER() function"),
411
+ entities: z
412
+ .array(userEntitySchema)
413
+ .optional()
414
+ .describe("List of selectable users/groups/organizations"),
415
+ });
416
+ const organizationSelectSchema = z.object({
417
+ type: z.literal("ORGANIZATION_SELECT"),
418
+ code: z.string().describe("Field code"),
419
+ label: z.string().describe("Field label"),
420
+ noLabel: z
421
+ .boolean()
422
+ .optional()
423
+ .describe("Whether to hide the label (true: hide, false: show)"),
424
+ required: z
425
+ .boolean()
426
+ .optional()
427
+ .describe("Whether the field is required (true: required, false: optional)"),
428
+ defaultValue: z
429
+ .array(z.union([
430
+ z.object({
431
+ code: z.string().describe("Organization code"),
432
+ type: z.literal("ORGANIZATION").describe("Organization type"),
433
+ }),
434
+ z.object({
435
+ code: z
436
+ .literal("PRIMARY_ORGANIZATION()")
437
+ .describe("Function representing the primary organization of the logged-in user"),
438
+ type: z.literal("FUNCTION").describe("Function type"),
439
+ }),
440
+ ]))
441
+ .optional()
442
+ .describe("Array of default organizations, or PRIMARY_ORGANIZATION() function"),
443
+ entities: z
444
+ .array(z.object({
445
+ code: z.string().describe("Organization code"),
446
+ type: z.literal("ORGANIZATION").describe("Organization type"),
447
+ }))
448
+ .optional()
449
+ .describe("List of selectable organizations"),
450
+ });
451
+ const groupSelectSchema = z.object({
452
+ type: z.literal("GROUP_SELECT"),
453
+ code: z.string().describe("Field code"),
454
+ label: z.string().describe("Field label"),
455
+ noLabel: z
456
+ .boolean()
457
+ .optional()
458
+ .describe("Whether to hide the label (true: hide, false: show)"),
459
+ required: z
460
+ .boolean()
461
+ .optional()
462
+ .describe("Whether the field is required (true: required, false: optional)"),
463
+ defaultValue: z
464
+ .array(z.object({
465
+ code: z.string().describe("Group code"),
466
+ type: z.literal("GROUP").describe("Group type"),
467
+ }))
468
+ .optional()
469
+ .describe("Array of default groups"),
470
+ entities: z
471
+ .array(z.object({
472
+ code: z.string().describe("Group code"),
473
+ type: z.literal("GROUP").describe("Group type"),
474
+ }))
475
+ .optional()
476
+ .describe("List of selectable groups"),
477
+ });
478
+ // Layout fields
479
+ const groupSchema = z.object({
480
+ type: z.literal("GROUP"),
481
+ code: z.string().describe("Field code"),
482
+ label: z.string().describe("Field label"),
483
+ noLabel: z
484
+ .boolean()
485
+ .optional()
486
+ .describe("Whether to hide the label (true: hide, false: show)"),
487
+ openGroup: z
488
+ .boolean()
489
+ .optional()
490
+ .describe("Whether to display the group in an open state (true: open, false: closed)"),
491
+ });
492
+ // Related record fields
493
+ const referenceTableSchema = z.object({
494
+ type: z.literal("REFERENCE_TABLE"),
495
+ code: z.string().describe("Field code"),
496
+ label: z.string().describe("Field label"),
497
+ noLabel: z
498
+ .boolean()
499
+ .optional()
500
+ .describe("Whether to hide the label (true: hide, false: show)"),
501
+ referenceTable: z
502
+ .object({
503
+ relatedApp: z.object({
504
+ app: z.string().describe("App ID of the related app"),
505
+ code: z
506
+ .string()
507
+ .describe("Field code of the related records list field in this app"),
508
+ }),
509
+ condition: z
510
+ .object({
511
+ field: z.string().describe("Field code in this app"),
512
+ relatedField: z.string().describe("Field code in the related app"),
513
+ })
514
+ .describe("Condition for filtering related records"),
515
+ filterCond: z.string().describe("Query for filtering related records"),
516
+ displayFields: z
517
+ .array(z.string())
518
+ .describe("Array of field codes to display"),
519
+ sort: z.string().describe("Sort condition"),
520
+ size: z
521
+ .enum(["5", "10", "20", "30", "40", "50"])
522
+ .describe("Number of records to display"),
523
+ })
524
+ .optional()
525
+ .describe("Related records list configuration"),
526
+ });
527
+ const lookupSchema = z.object({
528
+ type: z.enum(["NUMBER", "SINGLE_LINE_TEXT"]).describe("Type of lookup field"),
529
+ code: z.string().describe("Field code"),
530
+ label: z.string().describe("Field label"),
531
+ noLabel: z
532
+ .boolean()
533
+ .optional()
534
+ .describe("Whether to hide the label (true: hide, false: show)"),
535
+ required: z
536
+ .boolean()
537
+ .optional()
538
+ .describe("Whether the field is required (true: required, false: optional)"),
539
+ lookup: z
540
+ .object({
541
+ relatedApp: z
542
+ .object({
543
+ app: z.string().describe("App ID of the referenced app"),
544
+ code: z.string().describe("Field code in the referenced app"),
545
+ })
546
+ .describe("Referenced app configuration"),
547
+ relatedKeyField: z
548
+ .string()
549
+ .describe("Field code of the key field in the referenced app"),
550
+ fieldMappings: z
551
+ .array(z.object({
552
+ field: z.string().describe("Field code in this app"),
553
+ relatedField: z
554
+ .string()
555
+ .describe("Field code in the referenced app"),
556
+ }))
557
+ .describe("Configuration of field copy source and destination"),
558
+ lookupPickerFields: z
559
+ .array(z.string())
560
+ .describe("Array of field codes to display in the lookup picker of the referenced app"),
561
+ filterCond: z
562
+ .string()
563
+ .describe("Query for filtering records in the referenced app"),
564
+ sort: z.string().describe("Sort condition"),
565
+ })
566
+ .optional()
567
+ .describe("Lookup configuration"),
568
+ });
569
+ // Fields available in subtables
570
+ const inSubtableFieldSchema = z.union([
571
+ lookupSchema,
572
+ singleLineTextSchema,
573
+ numberSchema,
574
+ calcSchema,
575
+ multiLineTextSchema,
576
+ richTextSchema,
577
+ linkSchema,
578
+ checkboxSchema,
579
+ radioButtonSchema,
580
+ dropdownSchema,
581
+ multiSelectSchema,
582
+ fileSchema,
583
+ dateSchema,
584
+ timeSchema,
585
+ datetimeSchema,
586
+ userSelectSchema,
587
+ organizationSelectSchema,
588
+ groupSelectSchema,
589
+ ]);
590
+ const subtableSchema = z.object({
591
+ type: z.literal("SUBTABLE"),
592
+ code: z.string().describe("Field code"),
593
+ label: z.string().describe("Field label"),
594
+ noLabel: z
595
+ .boolean()
596
+ .optional()
597
+ .describe("Whether to hide the label (true: hide, false: show)"),
598
+ fields: z
599
+ .record(z.string(), inSubtableFieldSchema)
600
+ .optional()
601
+ .describe("Configuration of fields within the subtable"),
602
+ });
603
+ // Union of all field types
604
+ const fieldPropertySchema = z.union([
605
+ recordNumberSchema,
606
+ creatorSchema,
607
+ createdTimeSchema,
608
+ modifierSchema,
609
+ updatedTimeSchema,
610
+ categorySchema,
611
+ statusSchema,
612
+ statusAssigneeSchema,
613
+ lookupSchema,
614
+ singleLineTextSchema,
615
+ numberSchema,
616
+ calcSchema,
617
+ multiLineTextSchema,
618
+ richTextSchema,
619
+ linkSchema,
620
+ checkboxSchema,
621
+ radioButtonSchema,
622
+ dropdownSchema,
623
+ multiSelectSchema,
624
+ fileSchema,
625
+ dateSchema,
626
+ timeSchema,
627
+ datetimeSchema,
628
+ userSelectSchema,
629
+ organizationSelectSchema,
630
+ groupSelectSchema,
631
+ groupSchema,
632
+ referenceTableSchema,
633
+ subtableSchema,
634
+ ]);
635
+ // Schema for PropertiesForParameter
636
+ export const propertiesForParameterSchema = z
637
+ .record(z.string().describe("Field code"), fieldPropertySchema)
638
+ .describe("Object containing field configuration information. Keys are field codes, values are field properties");
@@ -1,7 +1,7 @@
1
1
  const filterRules = [
2
2
  {
3
3
  condition: (condition) => condition.isApiTokenAuth,
4
- excludeTools: ["kintone-get-apps"],
4
+ excludeTools: ["kintone-get-apps", "kintone-add-app"],
5
5
  },
6
6
  ];
7
7
  export function shouldEnableTool(toolName, condition) {
@@ -6,10 +6,17 @@ import { getApp } from "./kintone/app/get-app.js";
6
6
  import { getApps } from "./kintone/app/get-apps.js";
7
7
  import { getFormFields } from "./kintone/app/get-form-fields.js";
8
8
  import { getFormLayout } from "./kintone/app/get-form-layout.js";
9
+ import { updateFormFields } from "./kintone/app/update-form-fields.js";
10
+ import { updateFormLayout } from "./kintone/app/update-form-layout.js";
11
+ import { deleteFormFields } from "./kintone/app/delete-form-fields.js";
9
12
  import { getProcessManagement } from "./kintone/app/get-process-management.js";
10
13
  import { getAppDeployStatus } from "./kintone/app/get-app-deploy-status.js";
11
14
  import { getGeneralSettings } from "./kintone/app/get-general-settings.js";
15
+ import { addFormFields } from "./kintone/app/add-form-fields.js";
12
16
  import { updateStatuses } from "./kintone/record/update-statuses.js";
17
+ import { addApp } from "./kintone/app/add-app.js";
18
+ import { deployApp } from "./kintone/app/deploy-app.js";
19
+ import { updateGeneralSettings } from "./kintone/app/update-general-settings.js";
13
20
  import { downloadFile } from "./kintone/file/download-file.js";
14
21
  export { createToolCallback } from "./factory.js";
15
22
  export const tools = [
@@ -17,13 +24,20 @@ export const tools = [
17
24
  getApps,
18
25
  getFormFields,
19
26
  getFormLayout,
27
+ updateFormFields,
28
+ updateFormLayout,
29
+ deleteFormFields,
20
30
  getProcessManagement,
21
31
  getAppDeployStatus,
22
32
  getGeneralSettings,
33
+ addFormFields,
23
34
  updateStatuses,
24
35
  addRecords,
25
36
  deleteRecords,
26
37
  getRecords,
27
38
  updateRecords,
39
+ addApp,
40
+ deployApp,
41
+ updateGeneralSettings,
28
42
  downloadFile,
29
43
  ];