@taiga-ai/mcp-server 0.38.0-dev.1206 → 0.38.0-dev.1210

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 (2) hide show
  1. package/dist/index.js +30 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -24102,6 +24102,10 @@ var TaigaClient = class {
24102
24102
  async updateBacklogItem(itemId, body) {
24103
24103
  return this.request("PATCH", `/backlog/${seg(itemId)}`, body);
24104
24104
  }
24105
+ /** Deletes an initiative as the web does: its runs stop and the pull request it waits on closes (PRO-4983). */
24106
+ async deleteBacklogItem(itemId) {
24107
+ return this.request("DELETE", `/backlog/${seg(itemId)}`);
24108
+ }
24105
24109
  async getFactory(id) {
24106
24110
  return this.request("GET", `/factories/${seg(id)}`);
24107
24111
  }
@@ -37196,6 +37200,7 @@ const TOOLSET_OF = {
37196
37200
  taiga_queue_initiative: "operate",
37197
37201
  taiga_move_initiative: "operate",
37198
37202
  taiga_update_initiative: "operate",
37203
+ taiga_delete_initiative: "operate",
37199
37204
  taiga_review_plan: "operate",
37200
37205
  taiga_plan_again: "operate",
37201
37206
  taiga_resume_initiative: "operate",
@@ -37284,6 +37289,7 @@ const DELIVERY_TOOLS = /* @__PURE__ */ new Set([
37284
37289
  "taiga_queue_initiative",
37285
37290
  "taiga_move_initiative",
37286
37291
  "taiga_update_initiative",
37292
+ "taiga_delete_initiative",
37287
37293
  "taiga_review_plan",
37288
37294
  "taiga_plan_again",
37289
37295
  "taiga_resume_initiative",
@@ -41651,6 +41657,7 @@ function registerBacklogTools(server, client) {
41651
41657
  if (may("backlog:read")) registerBacklogReads(server, client);
41652
41658
  if (may("backlog:write")) registerMove(server, client);
41653
41659
  if (may("backlog:write")) registerEdit(server, client);
41660
+ if (may("backlog:write")) registerDelete(server, client);
41654
41661
  if (may("products:write")) registerRequest(server, client);
41655
41662
  if (may("backlog:write") && may("products:write")) registerQueue(server, client);
41656
41663
  if (may("products:write")) registerResume(server, client);
@@ -41814,7 +41821,7 @@ function registerRequest(server, client) {
41814
41821
  function registerMove(server, client) {
41815
41822
  server.registerTool("taiga_move_initiative", {
41816
41823
  title: "Move initiative on the board",
41817
- description: "Move an initiative to another board column, take it off the line, or reorder it. Moving it out of Build stops its plan or run; moving it to backlog, todo or canceled closes the pull request it waits on. state build is Start now, from queue, todo or backlog: the initiative is planned at once against main as it is now and built alongside the current work; parallel builds in one repository can conflict, so say that when you ask. It is refused, with the API's message, for done, canceled, archived, plan and build initiatives, and when the line is stopped or there is no buildable repository. archived: true archives it in place (never from Build): pass its current column as state, or it moves too. To change its title, description or criteria, edit it with taiga_update_initiative; do not cancel it and request a new one.",
41824
+ description: "Move an initiative to another board column, take it off the line, or reorder it. Moving it out of Build stops its plan or run; moving it to backlog, todo or canceled closes the pull request it waits on. state build is Start now, from queue, todo or backlog: the initiative is planned at once against main as it is now and built alongside the current work; parallel builds in one repository can conflict, so say that when you ask. It is refused, with the API's message, for done, canceled, archived, plan and build initiatives, and when the line is stopped or there is no buildable repository. archived: true archives it in place (never from Build): pass its current column as state, or it moves too. To change its title, description or criteria, edit it with taiga_update_initiative; do not cancel it and request a new one. canceled keeps the card and its history; taiga_delete_initiative removes it.",
41818
41825
  inputSchema: object({
41819
41826
  initiativeId,
41820
41827
  state: _enum(USER_DROP_STATES).describe("The column to move into"),
@@ -41931,6 +41938,27 @@ function registerEdit(server, client) {
41931
41938
  return outcome(item);
41932
41939
  }));
41933
41940
  }
41941
+ /**
41942
+ * Deleting an initiative, as the web's Delete does (PRO-4983). The route stops
41943
+ * the runs building it and closes its open pull requests, so it is paid work
41944
+ * asked first (PAID_WORK); canceled is the move that keeps the card and its
41945
+ * history. It does not stop a plan being written (PRO-4993), so the
41946
+ * description promises only the run.
41947
+ */
41948
+ function registerDelete(server, client) {
41949
+ server.registerTool("taiga_delete_initiative", {
41950
+ title: "Delete initiative",
41951
+ description: "Delete an initiative: it leaves the board and every list and read, and cannot be brought back. A run building it stops, and its open pull requests are closed unmerged; one its forge will not let Taiga close stays open. Use it for a duplicate or a mistake; to keep the card and its history, move it to canceled with taiga_move_initiative instead. Name the initiative to the person, and what it stops, when you ask. When the forge does not answer, nothing is deleted and the refusal says to try again.",
41952
+ inputSchema: object({ initiativeId }),
41953
+ annotations: OPERATE
41954
+ }, (params) => runTool(async () => {
41955
+ await client.deleteBacklogItem(params.initiativeId);
41956
+ return toolResult({
41957
+ id: params.initiativeId,
41958
+ deleted: true
41959
+ });
41960
+ }));
41961
+ }
41934
41962
  /** The two halves of the Build station, where Plan again is offered. */
41935
41963
  const BUILD_STATION = /* @__PURE__ */ new Set(["plan", "build"]);
41936
41964
  function registerPlanAgain(server, client) {
@@ -59787,6 +59815,7 @@ function writeNotice(name, annotations) {
59787
59815
  */
59788
59816
  const PAID_WORK = /* @__PURE__ */ new Set([
59789
59817
  "taiga_add_knowledge",
59818
+ "taiga_delete_initiative",
59790
59819
  "taiga_finish_discovery",
59791
59820
  "taiga_fix_finding",
59792
59821
  "taiga_fix_policy_violation",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.38.0-dev.1206",
3
+ "version": "0.38.0-dev.1210",
4
4
  "description": "Taiga for AI coding assistants: read products, policies, initiatives and runs, and operate the line, over MCP",
5
5
  "mcpName": "ga.tai/mcp-server",
6
6
  "license": "UNLICENSED",