kaiten-cli 0.3.3__py3-none-any.whl

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 (99) hide show
  1. kaiten_cli/__init__.py +5 -0
  2. kaiten_cli/__main__.py +9 -0
  3. kaiten_cli/agent_gateway.py +577 -0
  4. kaiten_cli/app.py +1636 -0
  5. kaiten_cli/completion.py +570 -0
  6. kaiten_cli/discovery.py +39 -0
  7. kaiten_cli/errors.py +79 -0
  8. kaiten_cli/i18n.py +92 -0
  9. kaiten_cli/locales/ru.json +2967 -0
  10. kaiten_cli/localized_click.py +160 -0
  11. kaiten_cli/models.py +202 -0
  12. kaiten_cli/profiles.py +316 -0
  13. kaiten_cli/registry/__init__.py +260 -0
  14. kaiten_cli/registry/addons.py +392 -0
  15. kaiten_cli/registry/audit_and_analytics.py +451 -0
  16. kaiten_cli/registry/automation_schema.py +44 -0
  17. kaiten_cli/registry/automation_schemas.json +7417 -0
  18. kaiten_cli/registry/automations.py +342 -0
  19. kaiten_cli/registry/base.py +62 -0
  20. kaiten_cli/registry/blockers.py +320 -0
  21. kaiten_cli/registry/boards.py +520 -0
  22. kaiten_cli/registry/card_relations.py +376 -0
  23. kaiten_cli/registry/card_types.py +363 -0
  24. kaiten_cli/registry/cards.py +1329 -0
  25. kaiten_cli/registry/charts.py +539 -0
  26. kaiten_cli/registry/checklists.py +600 -0
  27. kaiten_cli/registry/columns.py +558 -0
  28. kaiten_cli/registry/comments.py +224 -0
  29. kaiten_cli/registry/custom_directories.py +980 -0
  30. kaiten_cli/registry/custom_properties.py +1460 -0
  31. kaiten_cli/registry/dashboards.py +564 -0
  32. kaiten_cli/registry/documents.py +761 -0
  33. kaiten_cli/registry/external_links.py +128 -0
  34. kaiten_cli/registry/files.py +738 -0
  35. kaiten_cli/registry/github_addon.py +613 -0
  36. kaiten_cli/registry/iterations.py +397 -0
  37. kaiten_cli/registry/lanes.py +205 -0
  38. kaiten_cli/registry/live_contracts.py +361 -0
  39. kaiten_cli/registry/members.py +336 -0
  40. kaiten_cli/registry/module_docs.py +108 -0
  41. kaiten_cli/registry/projects.py +369 -0
  42. kaiten_cli/registry/query.py +129 -0
  43. kaiten_cli/registry/restrictions.py +249 -0
  44. kaiten_cli/registry/roles_and_groups.py +1102 -0
  45. kaiten_cli/registry/scim.py +263 -0
  46. kaiten_cli/registry/service_desk.py +1270 -0
  47. kaiten_cli/registry/snapshot.py +187 -0
  48. kaiten_cli/registry/spaces.py +272 -0
  49. kaiten_cli/registry/subscribers.py +168 -0
  50. kaiten_cli/registry/tags.py +193 -0
  51. kaiten_cli/registry/time_logs.py +353 -0
  52. kaiten_cli/registry/tree.py +352 -0
  53. kaiten_cli/registry/utilities.py +287 -0
  54. kaiten_cli/registry/webhooks.py +265 -0
  55. kaiten_cli/runtime/__init__.py +1 -0
  56. kaiten_cli/runtime/automation_validation.py +115 -0
  57. kaiten_cli/runtime/behaviors.py +787 -0
  58. kaiten_cli/runtime/cache.py +733 -0
  59. kaiten_cli/runtime/client.py +387 -0
  60. kaiten_cli/runtime/endpoints.py +59 -0
  61. kaiten_cli/runtime/executor.py +269 -0
  62. kaiten_cli/runtime/fs_security.py +168 -0
  63. kaiten_cli/runtime/input.py +310 -0
  64. kaiten_cli/runtime/output.py +59 -0
  65. kaiten_cli/runtime/public_validation.py +35 -0
  66. kaiten_cli/runtime/snapshot_build.py +527 -0
  67. kaiten_cli/runtime/snapshot_common.py +363 -0
  68. kaiten_cli/runtime/snapshot_query.py +306 -0
  69. kaiten_cli/runtime/snapshot_store.py +1192 -0
  70. kaiten_cli/runtime/snapshots.py +62 -0
  71. kaiten_cli/runtime/sqlite_errors.py +23 -0
  72. kaiten_cli/runtime/support/__init__.py +1 -0
  73. kaiten_cli/runtime/support/addons.py +953 -0
  74. kaiten_cli/runtime/support/audit.py +70 -0
  75. kaiten_cli/runtime/support/batch.py +234 -0
  76. kaiten_cli/runtime/support/card_move_url.py +213 -0
  77. kaiten_cli/runtime/support/cards.py +174 -0
  78. kaiten_cli/runtime/support/checklists.py +21 -0
  79. kaiten_cli/runtime/support/company_users.py +117 -0
  80. kaiten_cli/runtime/support/dashboards.py +35 -0
  81. kaiten_cli/runtime/support/documents.py +175 -0
  82. kaiten_cli/runtime/support/files.py +561 -0
  83. kaiten_cli/runtime/support/markdown_export.py +525 -0
  84. kaiten_cli/runtime/support/pagination.py +167 -0
  85. kaiten_cli/runtime/support/projects.py +66 -0
  86. kaiten_cli/runtime/support/relations.py +86 -0
  87. kaiten_cli/runtime/support/restrictions.py +62 -0
  88. kaiten_cli/runtime/support/spaces.py +20 -0
  89. kaiten_cli/runtime/support/time_logs.py +61 -0
  90. kaiten_cli/runtime/support/tree.py +140 -0
  91. kaiten_cli/runtime/support/tree_sharing.py +447 -0
  92. kaiten_cli/runtime/trace.py +500 -0
  93. kaiten_cli/runtime/transforms.py +128 -0
  94. kaiten_cli/schema_docs.py +22 -0
  95. kaiten_cli/update_check.py +519 -0
  96. kaiten_cli-0.3.3.dist-info/METADATA +1110 -0
  97. kaiten_cli-0.3.3.dist-info/RECORD +99 -0
  98. kaiten_cli-0.3.3.dist-info/WHEEL +4 -0
  99. kaiten_cli-0.3.3.dist-info/entry_points.txt +3 -0
@@ -0,0 +1,520 @@
1
+ """Board tool specs."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from kaiten_cli.models import ExampleSpec, OperationSpec, ResponsePolicy, RuntimeBehavior
6
+ from kaiten_cli.registry.base import make_tool
7
+ from kaiten_cli.runtime.behaviors import (
8
+ board_delete_force_request,
9
+ board_get_scoped_request,
10
+ board_place_existing_request,
11
+ )
12
+
13
+
14
+ TOOLS = (
15
+ make_tool(
16
+ canonical_name="boards.list",
17
+ mcp_alias="kaiten_list_boards",
18
+ description="List boards in a Kaiten space.",
19
+ input_schema={
20
+ "type": "object",
21
+ "properties": {
22
+ "space_id": {"type": "integer", "description": "Space ID"},
23
+ "fields": {
24
+ "type": "string",
25
+ "description": "Comma-separated field names to keep in the response. Example: 'id,title'",
26
+ },
27
+ "compact": {
28
+ "type": "boolean",
29
+ "description": "Return compact response without heavy fields (avatars, nested user objects)",
30
+ "default": False,
31
+ },
32
+ },
33
+ "required": ["space_id"],
34
+ },
35
+ operation=OperationSpec(
36
+ method="GET", path_template="/spaces/{space_id}/boards", path_fields=("space_id",)
37
+ ),
38
+ response_policy=ResponsePolicy(
39
+ compact_supported=True, fields_supported=True, result_kind="list"
40
+ ),
41
+ examples=(
42
+ ExampleSpec(
43
+ command="kaiten boards list --space-id 1 --compact",
44
+ description="List boards in a space.",
45
+ ),
46
+ ExampleSpec(
47
+ command="kaiten --json boards list --space-id 1 --fields id,title",
48
+ description="List boards with narrow fields.",
49
+ ),
50
+ ),
51
+ ),
52
+ make_tool(
53
+ canonical_name="boards.get",
54
+ mcp_alias="kaiten_get_board",
55
+ description=(
56
+ "Get a Kaiten board by ID, optionally through its space-scoped Public API route. "
57
+ "Returns board placement data, columns and lanes."
58
+ ),
59
+ input_schema={
60
+ "type": "object",
61
+ "properties": {
62
+ "board_id": {"type": "integer", "description": "Board ID"},
63
+ "space_id": {
64
+ "type": "integer",
65
+ "description": "Optional space ID. When provided, use the documented /spaces/{space_id}/boards/{board_id} route.",
66
+ },
67
+ },
68
+ "required": ["board_id"],
69
+ },
70
+ operation=OperationSpec(
71
+ method="GET", path_template="/boards/{board_id}", path_fields=("board_id",)
72
+ ),
73
+ runtime_behavior=RuntimeBehavior(request_shaper=board_get_scoped_request),
74
+ examples=(
75
+ ExampleSpec(command="kaiten boards get --board-id 10", description="Get a board."),
76
+ ExampleSpec(
77
+ command="kaiten --json boards get --space-id 1 --board-id 10",
78
+ description="Get a board through the space-scoped Public API route.",
79
+ ),
80
+ ),
81
+ usage_notes=(
82
+ "Without --space-id the command preserves the existing GET /boards/{board_id} behavior.",
83
+ "With --space-id it uses GET /spaces/{space_id}/boards/{board_id} from the current Public API documentation.",
84
+ "Cards are not part of this command's guaranteed response contract and disappear from both Public API routes on 2026-11-01.",
85
+ "Fetch active board cards with cards.list-all using board_id and condition=1; this command never performs that extra request implicitly.",
86
+ ),
87
+ ),
88
+ make_tool(
89
+ canonical_name="boards.create",
90
+ mcp_alias="kaiten_create_board",
91
+ description="Create a new board in a Kaiten space.",
92
+ input_schema={
93
+ "type": "object",
94
+ "properties": {
95
+ "space_id": {"type": "integer", "description": "Space ID"},
96
+ "title": {
97
+ "type": ["string", "number"],
98
+ "description": "Board title",
99
+ "x-documentation-alternatives": [
100
+ {
101
+ "type": "string",
102
+ "minLength": 1,
103
+ "maxLength": 128,
104
+ "description": "Title of the new board",
105
+ },
106
+ {"type": "number"},
107
+ ],
108
+ },
109
+ "description": {
110
+ "type": ["string", "null"],
111
+ "description": "Board description",
112
+ "x-documentation-alternatives": [
113
+ {"type": "string", "description": "Description"},
114
+ {"type": "null", "description": "Description"},
115
+ ],
116
+ },
117
+ "external_id": {
118
+ "type": ["string", "number", "null"],
119
+ "description": "External ID",
120
+ "x-documentation-alternatives": [
121
+ {
122
+ "type": ["number", "string"],
123
+ "maxLength": 1024,
124
+ "description": "Any external id you want to assign to board. Not exposed in web interface",
125
+ },
126
+ {
127
+ "type": "null",
128
+ "description": "Any external id you want to assign to board. Not exposed in web interface",
129
+ },
130
+ ],
131
+ },
132
+ "top": {"type": ["number", "integer"], "description": "Top position (px)"},
133
+ "left": {"type": ["number", "integer"], "description": "Left position (px)"},
134
+ "sort_order": {"type": "number", "description": "Sort order"},
135
+ "default_card_type_id": {
136
+ "type": "integer",
137
+ "description": "Default card type ID for new cards",
138
+ },
139
+ "columns": {
140
+ "type": "array",
141
+ "description": "Board columns.\nIf not passed, a default column will be created.\nIf an empty array is passed, an error will be returned.\nPreviously created boards without columns will not be included in responses, except for requests by ID, until they have at least one column and one track.",
142
+ "items": {
143
+ "type": "object",
144
+ "properties": {
145
+ "title": {
146
+ "type": "string",
147
+ "minLength": 0,
148
+ "maxLength": 128,
149
+ "description": "Title",
150
+ },
151
+ "sort_order": {
152
+ "type": "number",
153
+ "description": "Position",
154
+ "exclusiveMinimum": 0,
155
+ },
156
+ "type": {
157
+ "enum": [1, 2, 3],
158
+ "description": "1 - queue, 2 – in progress, 3 – done",
159
+ "type": "integer",
160
+ },
161
+ "wip_limit": {
162
+ "type": "integer",
163
+ "description": "Work in progress recommended limit for column",
164
+ },
165
+ "col_count": {"type": "integer", "description": "Width"},
166
+ "archive_after_days": {
167
+ "type": "integer",
168
+ "minimum": -1,
169
+ "description": "Days before automatic card archival; -1 disables auto-archive. Reducing the threshold also affects cards already in the column; eligible cards may be archived by the background job.",
170
+ },
171
+ "months_to_hide_cards": {
172
+ "type": ["integer", "null"],
173
+ "description": "[Deprecated] Hide cards not moved for the last N months",
174
+ },
175
+ "card_hide_after_days": {
176
+ "type": ["integer", "null"],
177
+ "description": "Hide cards not moved for the last N days",
178
+ },
179
+ "rules": {
180
+ "type": "integer",
181
+ "minimum": 0,
182
+ "description": "Bit mask for column rules. Rules: 1 - checklists must be checked, 2 - display FIFO order",
183
+ },
184
+ "external_id": {
185
+ "maxLength": 1024,
186
+ "description": "Any external id you want to assign to column. Not exposed in web interface",
187
+ "type": ["number", "string", "null"],
188
+ "x-documentation-alternatives": [
189
+ {
190
+ "type": ["number", "string"],
191
+ "maxLength": 1024,
192
+ "description": "Any external id you want to assign to column. Not exposed in web interface",
193
+ },
194
+ {
195
+ "type": "null",
196
+ "description": "Any external id you want to assign to column. Not exposed in web interface",
197
+ },
198
+ ],
199
+ },
200
+ "default_tags": {
201
+ "type": ["string", "null"],
202
+ "description": "Default tags",
203
+ },
204
+ },
205
+ "required": ["title", "type"],
206
+ },
207
+ },
208
+ "lanes": {
209
+ "type": "array",
210
+ "description": "Board lanes.\nIf not passed, a default lane will be created.\nIf an empty array is passed, an error will be returned and the board will not be created.\nPreviously created boards without lanes will not be included in responses, except for requests by ID, until they have at least one column and one lane.",
211
+ "items": {
212
+ "type": "object",
213
+ "properties": {
214
+ "title": {
215
+ "type": "string",
216
+ "minLength": 0,
217
+ "maxLength": 128,
218
+ "description": "Title",
219
+ },
220
+ "sort_order": {
221
+ "type": "number",
222
+ "description": "Position",
223
+ "exclusiveMinimum": 0,
224
+ },
225
+ "wip_limit": {
226
+ "type": "integer",
227
+ "description": "Work in progress recommended limit for lane",
228
+ },
229
+ "row_count": {"type": "integer", "description": "Height"},
230
+ "default_tags": {
231
+ "type": ["string", "null"],
232
+ "description": "Default tags",
233
+ },
234
+ },
235
+ "required": ["title"],
236
+ },
237
+ },
238
+ "first_image_is_cover": {
239
+ "type": "boolean",
240
+ "description": "Automatically mark first uploaded card's image as card's cover",
241
+ },
242
+ "reset_lane_spent_time": {
243
+ "type": "boolean",
244
+ "description": "Reset lane spent time when card changed lane",
245
+ },
246
+ "automove_cards": {
247
+ "type": "boolean",
248
+ "description": "Automatically move cards depending on their children state",
249
+ },
250
+ "backward_moves_enabled": {
251
+ "type": "boolean",
252
+ "description": "Allow automatic backward movement for summary boards",
253
+ },
254
+ "auto_assign_enabled": {
255
+ "type": "boolean",
256
+ "description": 'Automatically assign the author as a member (or responsible if the first member) when a card is moved to the column with type "in progress" or "done"',
257
+ },
258
+ },
259
+ "required": ["space_id", "title"],
260
+ },
261
+ operation=OperationSpec(
262
+ method="POST",
263
+ path_template="/spaces/{space_id}/boards",
264
+ path_fields=("space_id",),
265
+ body_fields=(
266
+ "title",
267
+ "description",
268
+ "external_id",
269
+ "top",
270
+ "left",
271
+ "sort_order",
272
+ "default_card_type_id",
273
+ "columns",
274
+ "lanes",
275
+ "first_image_is_cover",
276
+ "reset_lane_spent_time",
277
+ "automove_cards",
278
+ "backward_moves_enabled",
279
+ "auto_assign_enabled",
280
+ ),
281
+ ),
282
+ examples=(
283
+ ExampleSpec(
284
+ command='kaiten boards create --space-id 1 --title "Smoke"',
285
+ description="Create a board.",
286
+ ),
287
+ ),
288
+ ),
289
+ make_tool(
290
+ canonical_name="boards.update",
291
+ mcp_alias="kaiten_update_board",
292
+ description="Update a Kaiten board.",
293
+ input_schema={
294
+ "type": "object",
295
+ "properties": {
296
+ "space_id": {"type": "integer", "description": "Space ID"},
297
+ "board_id": {"type": "integer", "description": "Board ID"},
298
+ "title": {
299
+ "type": ["string", "number"],
300
+ "description": "New title",
301
+ "x-documentation-alternatives": [
302
+ {
303
+ "type": "string",
304
+ "minLength": 1,
305
+ "maxLength": 128,
306
+ "description": "Title of the new board",
307
+ },
308
+ {"type": "number"},
309
+ ],
310
+ },
311
+ "description": {
312
+ "type": ["string", "null"],
313
+ "description": "New description",
314
+ "x-documentation-alternatives": [
315
+ {"type": "string", "description": "Description"},
316
+ {"type": "null", "description": "Description"},
317
+ ],
318
+ },
319
+ "external_id": {
320
+ "type": ["string", "number", "null"],
321
+ "description": "External ID",
322
+ "x-documentation-alternatives": [
323
+ {
324
+ "type": ["number", "string"],
325
+ "maxLength": 1024,
326
+ "description": "Any external id you want to assign to board. Not exposed in web interface",
327
+ },
328
+ {
329
+ "type": "null",
330
+ "description": "Any external id you want to assign to board. Not exposed in web interface",
331
+ },
332
+ ],
333
+ },
334
+ "top": {"type": ["number", "integer"], "description": "Top position (px)"},
335
+ "left": {"type": ["number", "integer"], "description": "Left position (px)"},
336
+ "sort_order": {"type": "number", "description": "Sort order"},
337
+ "default_card_type_id": {
338
+ "type": "integer",
339
+ "description": "Default card type ID for new cards",
340
+ },
341
+ "type": {
342
+ "enum": [1, 5],
343
+ "description": "1 - place on space with coordinates (top, left), 5 - attach to space as sidebar",
344
+ "type": "integer",
345
+ },
346
+ "cell_wip_limits": {
347
+ "type": "array",
348
+ "description": "JSON containing wip limits rules for cells",
349
+ },
350
+ "default_tags": {"type": ["string", "null"], "description": "Default tags"},
351
+ "first_image_is_cover": {
352
+ "type": "boolean",
353
+ "description": "Automatically mark first uploaded card's image as card's cover",
354
+ },
355
+ "reset_lane_spent_time": {
356
+ "type": "boolean",
357
+ "description": "Reset lane spent time when card changed lane",
358
+ },
359
+ "automove_cards": {
360
+ "type": "boolean",
361
+ "description": "Automatically move cards depending on their children state",
362
+ },
363
+ "backward_moves_enabled": {
364
+ "type": "boolean",
365
+ "description": "Allow automatic backward movement for summary boards",
366
+ },
367
+ "move_parents_to_done": {
368
+ "type": "boolean",
369
+ "description": "Automatically move parent cards to done when their children cards on this board is done",
370
+ },
371
+ "hide_done_policies": {
372
+ "type": "boolean",
373
+ "description": "Hide done checklist policies",
374
+ },
375
+ "hide_done_policies_in_done_column": {
376
+ "type": "boolean",
377
+ "description": "Hide done checklist policies only in done column",
378
+ },
379
+ "move_from_space_id": {"type": "integer", "description": "Move board from space"},
380
+ "auto_assign_enabled": {
381
+ "type": "boolean",
382
+ "description": 'Automatically assign the author as a member (or responsible if the first member) when a card is moved to the column with type "in progress" or "done"',
383
+ },
384
+ "card_properties": {
385
+ "items": {
386
+ "type": "object",
387
+ "properties": {
388
+ "key": {"type": "string"},
389
+ "required": {"type": "boolean"},
390
+ "laneIds": {"type": ["array", "null"]},
391
+ "columnIds": {"type": ["array", "null"]},
392
+ "cardTypeIds": {"type": ["array", "null"]},
393
+ },
394
+ },
395
+ "description": "Suggested to fill card properties",
396
+ "type": ["array", "null"],
397
+ "x-documentation-alternatives": [
398
+ {
399
+ "type": "array",
400
+ "items": {
401
+ "type": "object",
402
+ "properties": {
403
+ "key": {"type": "string"},
404
+ "required": {"type": "boolean"},
405
+ "laneIds": {"oneOf": [{"type": "array"}, {"type": "null"}]},
406
+ "columnIds": {"oneOf": [{"type": "array"}, {"type": "null"}]},
407
+ "cardTypeIds": {"oneOf": [{"type": "array"}, {"type": "null"}]},
408
+ },
409
+ },
410
+ "description": "Suggested to fill card properties",
411
+ },
412
+ {"type": "null", "description": "Empty suggested to fill card properties"},
413
+ ],
414
+ },
415
+ },
416
+ "required": ["space_id", "board_id"],
417
+ },
418
+ operation=OperationSpec(
419
+ method="PATCH",
420
+ path_template="/spaces/{space_id}/boards/{board_id}",
421
+ path_fields=("space_id", "board_id"),
422
+ body_fields=(
423
+ "title",
424
+ "description",
425
+ "external_id",
426
+ "top",
427
+ "left",
428
+ "sort_order",
429
+ "default_card_type_id",
430
+ "type",
431
+ "cell_wip_limits",
432
+ "default_tags",
433
+ "first_image_is_cover",
434
+ "reset_lane_spent_time",
435
+ "automove_cards",
436
+ "backward_moves_enabled",
437
+ "move_parents_to_done",
438
+ "hide_done_policies",
439
+ "hide_done_policies_in_done_column",
440
+ "move_from_space_id",
441
+ "auto_assign_enabled",
442
+ "card_properties",
443
+ ),
444
+ ),
445
+ examples=(
446
+ ExampleSpec(
447
+ command='kaiten boards update --space-id 1 --board-id 10 --title "Updated"',
448
+ description="Update a board.",
449
+ ),
450
+ ),
451
+ ),
452
+ make_tool(
453
+ canonical_name="boards.place-existing",
454
+ mcp_alias="kaiten_place_existing_board",
455
+ description="Place an existing board into a target space without moving it from its current primary space.",
456
+ input_schema={
457
+ "type": "object",
458
+ "properties": {
459
+ "space_id": {"type": "integer", "description": "Target space ID"},
460
+ "board_id": {"type": "integer", "description": "Existing board ID"},
461
+ "top": {"type": "number", "description": "Top position (px). Defaults to 0."},
462
+ "left": {"type": "number", "description": "Left position (px). Defaults to 0."},
463
+ "sort_order": {"type": "number", "description": "Sort order"},
464
+ },
465
+ "required": ["space_id", "board_id"],
466
+ },
467
+ operation=OperationSpec(
468
+ method="PATCH",
469
+ path_template="/spaces/{space_id}/boards/{board_id}",
470
+ path_fields=("space_id", "board_id"),
471
+ body_fields=("top", "left", "sort_order"),
472
+ ),
473
+ runtime_behavior=RuntimeBehavior(request_shaper=board_place_existing_request),
474
+ examples=(
475
+ ExampleSpec(
476
+ command="kaiten --json boards place-existing --space-id 2 --board-id 10",
477
+ description="Show an existing board in another space without moving it.",
478
+ ),
479
+ ExampleSpec(
480
+ command="kaiten --json boards place-existing --space-id 2 --board-id 10 --top 0 --left 560 --sort-order 2",
481
+ description="Place an existing board at an explicit position.",
482
+ ),
483
+ ),
484
+ usage_notes=(
485
+ "This uses Kaiten's place-existing-board behavior and does not send move_from_space_id.",
486
+ "This command is intentionally separate from Kaiten's move_from_space_id board-move behavior.",
487
+ ),
488
+ ),
489
+ make_tool(
490
+ canonical_name="boards.delete",
491
+ mcp_alias="kaiten_delete_board",
492
+ description="Delete a Kaiten board.",
493
+ input_schema={
494
+ "type": "object",
495
+ "properties": {
496
+ "space_id": {"type": "integer", "description": "Space ID"},
497
+ "board_id": {"type": "integer", "description": "Board ID"},
498
+ "force": {
499
+ "type": "boolean",
500
+ "description": "Force deletion when the board contains child entities",
501
+ },
502
+ },
503
+ "required": ["space_id", "board_id"],
504
+ },
505
+ operation=OperationSpec(
506
+ method="DELETE",
507
+ path_template="/spaces/{space_id}/boards/{board_id}",
508
+ path_fields=("space_id", "board_id"),
509
+ query_fields=("force",),
510
+ body_fields=("force",),
511
+ ),
512
+ runtime_behavior=RuntimeBehavior(request_shaper=board_delete_force_request),
513
+ examples=(
514
+ ExampleSpec(
515
+ command="kaiten boards delete --space-id 1 --board-id 10 --force",
516
+ description="Delete a board.",
517
+ ),
518
+ ),
519
+ ),
520
+ )