@togglhq/mcp 1.5.53 → 1.5.55

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-DTZxuEgp.js";
2
+ import { n as runMcpCli } from "./src-C74dx5hl.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-DTZxuEgp.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-C74dx5hl.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -28347,6 +28347,31 @@ function getFallback(schema, dataset, config$1) {
28347
28347
  return typeof schema.fallback === "function" ? schema.fallback(dataset, config$1) : schema.fallback;
28348
28348
  }
28349
28349
  /**
28350
+ * Returns a fallback value as output if the input does not match the schema.
28351
+ *
28352
+ * @param schema The schema to catch.
28353
+ * @param fallback The fallback value.
28354
+ *
28355
+ * @returns The passed schema.
28356
+ */
28357
+ /* @__NO_SIDE_EFFECTS__ */
28358
+ function fallback(schema, fallback$1) {
28359
+ return {
28360
+ ...schema,
28361
+ fallback: fallback$1,
28362
+ get "~standard"() {
28363
+ return /* @__PURE__ */ _getStandardProps(this);
28364
+ },
28365
+ "~run"(dataset, config$1) {
28366
+ const outputDataset = schema["~run"](dataset, config$1);
28367
+ return outputDataset.issues ? {
28368
+ typed: true,
28369
+ value: /* @__PURE__ */ getFallback(this, outputDataset, config$1)
28370
+ } : outputDataset;
28371
+ }
28372
+ };
28373
+ }
28374
+ /**
28350
28375
  * Returns the default value of the schema.
28351
28376
  *
28352
28377
  * @param schema The schema to get it from.
@@ -28917,6 +28942,7 @@ const TagLiteSchema = /* @__PURE__ */ object({
28917
28942
  color: /* @__PURE__ */ optional(/* @__PURE__ */ string())
28918
28943
  });
28919
28944
  const TaskSchema = /* @__PURE__ */ object({
28945
+ allocation_unit: /* @__PURE__ */ picklist(["percent", "flat"]),
28920
28946
  created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
28921
28947
  estimate_type: /* @__PURE__ */ picklist(["daily", "total"]),
28922
28948
  id: /* @__PURE__ */ number(),
@@ -28967,6 +28993,7 @@ const TaskSchema = /* @__PURE__ */ object({
28967
28993
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
28968
28994
  });
28969
28995
  const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
28996
+ allocation_unit: /* @__PURE__ */ picklist(["percent", "flat"]),
28970
28997
  created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
28971
28998
  estimate_type: /* @__PURE__ */ picklist(["daily", "total"]),
28972
28999
  id: /* @__PURE__ */ number(),
@@ -29505,6 +29532,7 @@ const TagPayloadSchema = /* @__PURE__ */ object({
29505
29532
  const TaskBulkArchivePayloadSchema = /* @__PURE__ */ object({ task_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
29506
29533
  const TaskCreatePayloadSchema = /* @__PURE__ */ object({
29507
29534
  name: /* @__PURE__ */ string(),
29535
+ allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ fallback(/* @__PURE__ */ picklist(["percent", "flat"]), "flat")),
29508
29536
  assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
29509
29537
  auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
29510
29538
  billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -29544,6 +29572,7 @@ const TaskBulkDuplicatePayloadSchema = /* @__PURE__ */ object({
29544
29572
  const TaskBulkRestorePayloadSchema = /* @__PURE__ */ object({ task_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
29545
29573
  const TaskBulkUnarchivePayloadSchema = /* @__PURE__ */ object({ task_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
29546
29574
  const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
29575
+ allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ picklist(["percent", "flat"]))),
29547
29576
  assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
29548
29577
  auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
29549
29578
  billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -29578,6 +29607,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
29578
29607
  });
29579
29608
  const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
29580
29609
  id: /* @__PURE__ */ number(),
29610
+ allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ picklist(["percent", "flat"]))),
29581
29611
  assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
29582
29612
  auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
29583
29613
  billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -35606,6 +35636,7 @@ const generatedFocusOperations = [
35606
35636
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
35607
35637
  task: /* @__PURE__ */ looseObject({
35608
35638
  name: /* @__PURE__ */ string$1(),
35639
+ allocation_unit: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["percent", "flat"])),
35609
35640
  auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
35610
35641
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
35611
35642
  color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
@@ -35634,6 +35665,7 @@ const generatedFocusOperations = [
35634
35665
  }),
35635
35666
  subtasks: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
35636
35667
  name: /* @__PURE__ */ string$1(),
35668
+ allocation_unit: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["percent", "flat"])),
35637
35669
  auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
35638
35670
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
35639
35671
  color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
@@ -40046,7 +40078,12 @@ const generatedFocusOperations = [
40046
40078
  "project.tasks",
40047
40079
  "project.board",
40048
40080
  "project.timeline",
40049
- "projects"
40081
+ "projects",
40082
+ "reports.summary",
40083
+ "reports.detailed",
40084
+ "reports.utilization",
40085
+ "reports.workload",
40086
+ "reports.profitability"
40050
40087
  ]),
40051
40088
  icon_name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
40052
40089
  }) }),
@@ -45785,7 +45822,7 @@ import_main.default.config({
45785
45822
  quiet: true,
45786
45823
  ignore: ["MISSING_ENV_FILE"]
45787
45824
  });
45788
- const packageVersion = "1.5.53";
45825
+ const packageVersion = "1.5.55";
45789
45826
  function resolvePublicUrls() {
45790
45827
  return {
45791
45828
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -45850,4 +45887,4 @@ function bootstrapServer(options = {}) {
45850
45887
  //#endregion
45851
45888
  export { runMcpCli as n, bootstrapServer as t };
45852
45889
 
45853
- //# sourceMappingURL=src-DTZxuEgp.js.map
45890
+ //# sourceMappingURL=src-C74dx5hl.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.5.53",
3
+ "version": "1.5.55",
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",