@togglhq/mcp 1.5.72 → 1.5.73

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 { n as runMcpCli } from "./src-CW6BCRCE.js";
2
+ import { n as runMcpCli } from "./src-D7Ze3NNZ.js";
3
3
  //#region src/cli.ts
4
4
  runMcpCli();
5
5
  //#endregion
package/build/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { n as runMcpCli, t as bootstrapServer } from "./src-CW6BCRCE.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-D7Ze3NNZ.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -14502,7 +14502,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
14502
14502
  inst.array = () => array$2(inst);
14503
14503
  inst.or = (arg) => union$2([inst, arg]);
14504
14504
  inst.and = (arg) => intersection(inst, arg);
14505
- inst.transform = (tx) => pipe$1(inst, transform$1(tx));
14505
+ inst.transform = (tx) => pipe$1(inst, transform$2(tx));
14506
14506
  inst.default = (def) => _default(inst, def);
14507
14507
  inst.prefault = (def) => prefault(inst, def);
14508
14508
  inst.catch = (params) => _catch(inst, params);
@@ -14949,7 +14949,7 @@ const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) =>
14949
14949
  return payload;
14950
14950
  };
14951
14951
  });
14952
- function transform$1(fn) {
14952
+ function transform$2(fn) {
14953
14953
  return new ZodTransform({
14954
14954
  type: "transform",
14955
14955
  transform: fn
@@ -15099,7 +15099,7 @@ function superRefine(fn) {
15099
15099
  return /* @__PURE__ */ _superRefine(fn);
15100
15100
  }
15101
15101
  function preprocess(fn, schema) {
15102
- return pipe$1(transform$1(fn), schema);
15102
+ return pipe$1(transform$2(fn), schema);
15103
15103
  }
15104
15104
  //#endregion
15105
15105
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
@@ -25624,6 +25624,27 @@ function regex(requirement, message$1) {
25624
25624
  };
25625
25625
  }
25626
25626
  /**
25627
+ * Creates a custom transformation action.
25628
+ *
25629
+ * @param operation The transformation operation.
25630
+ *
25631
+ * @returns A transform action.
25632
+ */
25633
+ /* @__NO_SIDE_EFFECTS__ */
25634
+ function transform$1(operation) {
25635
+ return {
25636
+ kind: "transformation",
25637
+ type: "transform",
25638
+ reference: transform$1,
25639
+ async: false,
25640
+ operation,
25641
+ "~run"(dataset) {
25642
+ dataset.value = this.operation(dataset.value);
25643
+ return dataset;
25644
+ }
25645
+ };
25646
+ }
25647
+ /**
25627
25648
  * Returns the fallback value of the schema.
25628
25649
  *
25629
25650
  * @param schema The schema to get it from.
@@ -31011,8 +31032,8 @@ function parseOptionalInt(value) {
31011
31032
  return Number.isFinite(n) ? n : void 0;
31012
31033
  }
31013
31034
  function toNumberArray(value) {
31014
- const n = parseOptionalInt(value);
31015
- return n === void 0 ? void 0 : [n];
31035
+ const parsed = (Array.isArray(value) ? value : [value]).map(parseOptionalInt).filter((parsedValue) => parsedValue !== void 0);
31036
+ return parsed.length > 0 ? parsed : void 0;
31016
31037
  }
31017
31038
  function validationErrorMessage(issues) {
31018
31039
  return issues.map((issue) => issue.message ?? "invalid").join("; ");
@@ -31210,16 +31231,17 @@ var FocusClient = class {
31210
31231
  const page = parseOptionalInt(params.page);
31211
31232
  const per_page = parseOptionalInt(params.per_page);
31212
31233
  const project_id = toNumberArray(params.project_id);
31234
+ const tag_id = toNumberArray(params.tag_id);
31213
31235
  const status_id = toNumberArray(params.status_id);
31214
31236
  const parent_task_id = toNumberArray(params.parent_task_id);
31215
31237
  const assigneeUserId = parseOptionalInt(params.assignee_user_id);
31216
31238
  const assignee_user_id = assigneeUserId === void 0 ? void 0 : [assigneeUserId];
31217
- const priorityValue = params.priority;
31218
- const priority = priorityValue === void 0 ? void 0 : [priorityValue];
31239
+ const priority = params.priority === void 0 ? void 0 : [params.priority];
31219
31240
  const response = await this.run("listTasks", () => getTasksClassic(this.http, this.organizationIdNum, this.workspaceIdNum, {
31220
31241
  page,
31221
31242
  per_page,
31222
31243
  project_id,
31244
+ tag_id,
31223
31245
  status_id,
31224
31246
  parent_task_id,
31225
31247
  name: typeof params.name === "string" ? params.name : void 0,
@@ -32618,11 +32640,12 @@ function createAuthenticatedClientProxy() {
32618
32640
  } });
32619
32641
  }
32620
32642
  //#endregion
32621
- //#region ../operations/build/safety-CP4kPImt.js
32643
+ //#region ../operations/build/safety-PA22Wppt.js
32622
32644
  const optionalNumber = /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2());
32623
32645
  const DATE_FIELD_RE = /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2}))?$/;
32624
32646
  const dateField = (description) => /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ regex(DATE_FIELD_RE, "must be YYYY-MM-DD or RFC3339 datetime (e.g. '2025-01-01' or '2025-01-01T00:00:00Z')"), /* @__PURE__ */ description$1(description));
32625
32647
  const apiDateTimeString = /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoTimestamp());
32648
+ const tagIdFilterSchema = /* @__PURE__ */ union$1([/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ transform$1((tagId) => [tagId])), /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()), /* @__PURE__ */ minLength$1(1))]);
32626
32649
  const timeBlockListSchema = /* @__PURE__ */ object$2({
32627
32650
  date_from: dateField("Range start — date-only (e.g. '2025-01-01') or RFC3339 datetime. Date-only is expanded to T00:00:00Z."),
32628
32651
  date_to: dateField("Range end — date-only (e.g. '2025-01-07') or RFC3339 datetime. Date-only is expanded to T23:59:59Z."),
@@ -32651,6 +32674,7 @@ const taskListSchema = /* @__PURE__ */ object$2({
32651
32674
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ description$1("Filter by task name (partial match)"))),
32652
32675
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by status ID"))),
32653
32676
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by project ID"))),
32677
+ tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(tagIdFilterSchema, /* @__PURE__ */ description$1("Filter by tag IDs"))),
32654
32678
  assignee_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by assignee user ID"))),
32655
32679
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ picklist$1([
32656
32680
  "none",
@@ -40590,7 +40614,7 @@ const generatedFocusOperations = [
40590
40614
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40591
40615
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40592
40616
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
40593
- tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
40617
+ tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
40594
40618
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
40595
40619
  }),
40596
40620
  execute: (input, { client }) => {
@@ -40656,7 +40680,7 @@ const generatedFocusOperations = [
40656
40680
  start_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40657
40681
  state: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40658
40682
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
40659
- tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
40683
+ tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
40660
40684
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
40661
40685
  time_block_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40662
40686
  time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -40699,7 +40723,7 @@ const generatedFocusOperations = [
40699
40723
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40700
40724
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40701
40725
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
40702
- tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
40726
+ tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
40703
40727
  task_id: /* @__PURE__ */ number$2(),
40704
40728
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
40705
40729
  }),
@@ -40740,7 +40764,7 @@ const generatedFocusOperations = [
40740
40764
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40741
40765
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40742
40766
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
40743
- tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
40767
+ tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
40744
40768
  task_id: /* @__PURE__ */ number$2(),
40745
40769
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
40746
40770
  }),
@@ -40798,7 +40822,7 @@ const generatedFocusOperations = [
40798
40822
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40799
40823
  start_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40800
40824
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
40801
- tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
40825
+ tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
40802
40826
  tasks_per_group: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
40803
40827
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
40804
40828
  }),
@@ -44990,7 +45014,7 @@ import_main.default.config({
44990
45014
  quiet: true,
44991
45015
  ignore: ["MISSING_ENV_FILE"]
44992
45016
  });
44993
- const packageVersion = "1.5.72";
45017
+ const packageVersion = "1.5.73";
44994
45018
  function resolvePublicUrls() {
44995
45019
  return {
44996
45020
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -45055,4 +45079,4 @@ function bootstrapServer(options = {}) {
45055
45079
  //#endregion
45056
45080
  export { runMcpCli as n, bootstrapServer as t };
45057
45081
 
45058
- //# sourceMappingURL=src-CW6BCRCE.js.map
45082
+ //# sourceMappingURL=src-D7Ze3NNZ.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.5.72",
3
+ "version": "1.5.73",
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",