@togglhq/mcp 1.13.56 → 1.13.57

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.
package/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as PUBLIC_SENTRY_PRIVACY_OPTIONS, c as initProductAnalytics, d as shutdownProductAnalytics, i as runMcpCli, l as resolveProductAnalyticsDistinctId, o as captureToolInvocation, s as getProductAnalyticsDistinctId, u as resolvePublicSentryDsn } from "./src-CsY8Ppky.js";
2
+ import { a as PUBLIC_SENTRY_PRIVACY_OPTIONS, c as initProductAnalytics, d as shutdownProductAnalytics, i as runMcpCli, l as resolveProductAnalyticsDistinctId, o as captureToolInvocation, s as getProductAnalyticsDistinctId, u as resolvePublicSentryDsn } from "./src-D-SQru59.js";
3
3
  import * as Sentry from "@sentry/node";
4
4
  //#region src/analytics-tool-metadata.ts
5
5
  /**
@@ -162,7 +162,7 @@ function wrapServerWithProductAnalytics(server) {
162
162
  }
163
163
  //#endregion
164
164
  //#region src/cli.ts
165
- const packageVersion = "1.13.56";
165
+ const packageVersion = "1.13.57";
166
166
  let sentryEnabled = false;
167
167
  let productAnalyticsEnabled = false;
168
168
  runMcpCli({
package/build/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-CsY8Ppky.js";
2
+ import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-D-SQru59.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -38139,26 +38139,33 @@ async function updateTask(httpClient, organization_id, workspace_id, task_id, da
38139
38139
  json: data
38140
38140
  }).json();
38141
38141
  }
38142
- async function deleteTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, outbound_sync, signal) {
38142
+ async function deleteTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, scope, outbound_sync, signal) {
38143
38143
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
38144
38144
  signal,
38145
38145
  searchParams: buildSearchParams$2({
38146
38146
  from_recurring_task_id,
38147
+ scope,
38147
38148
  outbound_sync
38148
38149
  })
38149
38150
  }).json();
38150
38151
  }
38151
- async function patchTask(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, signal) {
38152
+ async function patchTask(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, scope, signal) {
38152
38153
  return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
38153
38154
  signal,
38154
38155
  json: data,
38155
- searchParams: buildSearchParams$2({ from_recurring_task_id })
38156
+ searchParams: buildSearchParams$2({
38157
+ from_recurring_task_id,
38158
+ scope
38159
+ })
38156
38160
  }).json();
38157
38161
  }
38158
- async function archiveTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, signal) {
38162
+ async function archiveTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, scope, signal) {
38159
38163
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/archive`, {
38160
38164
  signal,
38161
- searchParams: buildSearchParams$2({ from_recurring_task_id })
38165
+ searchParams: buildSearchParams$2({
38166
+ from_recurring_task_id,
38167
+ scope
38168
+ })
38162
38169
  }).json();
38163
38170
  }
38164
38171
  async function getTaskWithChildrenClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, status_id, archived, source, team_id, assignee_user_id, tag_id, include_assignees } = {}, signal) {
@@ -38201,11 +38208,17 @@ async function getTaskWithParentsClassic(httpClient, organization_id, workspace_
38201
38208
  })
38202
38209
  }).json();
38203
38210
  }
38204
- async function restoreTask(httpClient, organization_id, workspace_id, task_id, signal) {
38205
- return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/restore`, { signal }).json();
38211
+ async function restoreTask(httpClient, organization_id, workspace_id, task_id, scope, signal) {
38212
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/restore`, {
38213
+ signal,
38214
+ searchParams: buildSearchParams$2({ scope })
38215
+ }).json();
38206
38216
  }
38207
- async function unarchiveTask(httpClient, organization_id, workspace_id, task_id, signal) {
38208
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/unarchive`, { signal }).json();
38217
+ async function unarchiveTask(httpClient, organization_id, workspace_id, task_id, scope, signal) {
38218
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/unarchive`, {
38219
+ signal,
38220
+ searchParams: buildSearchParams$2({ scope })
38221
+ }).json();
38209
38222
  }
38210
38223
  //#endregion
38211
38224
  //#region ../focus-queries/dist/time-entries/requests.ts
@@ -51482,6 +51495,11 @@ const generatedFocusOperations = [
51482
51495
  mcp: { entityTool: "tasks" },
51483
51496
  inputSchema: /* @__PURE__ */ looseObject({
51484
51497
  from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51498
+ scope: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
51499
+ "this",
51500
+ "following",
51501
+ "all"
51502
+ ])),
51485
51503
  task_id: /* @__PURE__ */ number$2()
51486
51504
  }),
51487
51505
  execute: (input, { client }) => {
@@ -51492,6 +51510,7 @@ const generatedFocusOperations = [
51492
51510
  client.workspaceIdNumber,
51493
51511
  data.task_id,
51494
51512
  data.from_recurring_task_id,
51513
+ data.scope,
51495
51514
  void 0
51496
51515
  ]));
51497
51516
  }
@@ -52658,7 +52677,14 @@ const generatedFocusOperations = [
52658
52677
  interactive: "default"
52659
52678
  },
52660
52679
  mcp: { entityTool: "tasks" },
52661
- inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
52680
+ inputSchema: /* @__PURE__ */ looseObject({
52681
+ scope: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
52682
+ "this",
52683
+ "following",
52684
+ "all"
52685
+ ])),
52686
+ task_id: /* @__PURE__ */ number$2()
52687
+ }),
52662
52688
  execute: (input, { client }) => {
52663
52689
  const data = input;
52664
52690
  return client.runGeneratedRequest("restoreTask", () => callGeneratedRequest(restoreTask, [
@@ -52666,6 +52692,7 @@ const generatedFocusOperations = [
52666
52692
  client.organizationId,
52667
52693
  client.workspaceIdNumber,
52668
52694
  data.task_id,
52695
+ data.scope,
52669
52696
  void 0
52670
52697
  ]));
52671
52698
  }
@@ -52739,7 +52766,14 @@ const generatedFocusOperations = [
52739
52766
  interactive: "default"
52740
52767
  },
52741
52768
  mcp: { entityTool: "tasks" },
52742
- inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
52769
+ inputSchema: /* @__PURE__ */ looseObject({
52770
+ scope: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
52771
+ "this",
52772
+ "following",
52773
+ "all"
52774
+ ])),
52775
+ task_id: /* @__PURE__ */ number$2()
52776
+ }),
52743
52777
  execute: (input, { client }) => {
52744
52778
  const data = input;
52745
52779
  return client.runGeneratedRequest("unarchiveTask", () => callGeneratedRequest(unarchiveTask, [
@@ -52747,6 +52781,7 @@ const generatedFocusOperations = [
52747
52781
  client.organizationId,
52748
52782
  client.workspaceIdNumber,
52749
52783
  data.task_id,
52784
+ data.scope,
52750
52785
  void 0
52751
52786
  ]));
52752
52787
  }
@@ -57337,7 +57372,7 @@ function registerWorkspaceTools(server) {
57337
57372
  //#region src/package-version.ts
57338
57373
  function mcpPackageVersion() {
57339
57374
  try {
57340
- return "1.13.56";
57375
+ return "1.13.57";
57341
57376
  } catch {
57342
57377
  return "unknown";
57343
57378
  }
@@ -57518,7 +57553,7 @@ import_main.default.config({
57518
57553
  quiet: true,
57519
57554
  ignore: ["MISSING_ENV_FILE"]
57520
57555
  });
57521
- const packageVersion = "1.13.56";
57556
+ const packageVersion = "1.13.57";
57522
57557
  const MCP_CACHE_TTL_MS = 300 * 1e3;
57523
57558
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
57524
57559
  function resolvePublicUrls() {
@@ -57638,4 +57673,4 @@ function bootstrapServer(options = {}) {
57638
57673
  //#endregion
57639
57674
  export { PUBLIC_SENTRY_PRIVACY_OPTIONS as a, initProductAnalytics as c, shutdownProductAnalytics as d, runMcpCli as i, resolveProductAnalyticsDistinctId as l, MCP_MAX_TOOL_INPUT_ELEMENTS as n, captureToolInvocation as o, bootstrapServer as r, getProductAnalyticsDistinctId as s, MCP_CACHE_TTL_MS as t, resolvePublicSentryDsn as u };
57640
57675
 
57641
- //# sourceMappingURL=src-CsY8Ppky.js.map
57676
+ //# sourceMappingURL=src-D-SQru59.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.13.56",
3
+ "version": "1.13.57",
4
4
  "description": "Toggl 2.0 MCP server for Claude Code, Claude Desktop, and other MCP clients.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",