@togglhq/mcp 1.13.34 → 1.13.36

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-C4BF2NNj.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-CO-yo5gD.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.34";
165
+ const packageVersion = "1.13.36";
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-C4BF2NNj.js";
2
+ import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-CO-yo5gD.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -38436,7 +38436,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38436
38436
  ]))
38437
38437
  });
38438
38438
  //#endregion
38439
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.228_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3208477b37bc6a784131b780db085724/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38439
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.232_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_dc87205933b6794f17b241e0d8ab80bb/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38440
38440
  async function getInvitations(httpClient, signal) {
38441
38441
  return (await httpClient.get(`invitations`, { signal })).json();
38442
38442
  }
@@ -38453,7 +38453,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38453
38453
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38454
38454
  }
38455
38455
  //#endregion
38456
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.228_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3208477b37bc6a784131b780db085724/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38456
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.232_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_dc87205933b6794f17b241e0d8ab80bb/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38457
38457
  function buildSearchParams(params, flattenArrays = false) {
38458
38458
  const searchParams = new URLSearchParams();
38459
38459
  Object.entries(params).forEach(([key, value]) => {
@@ -38465,7 +38465,7 @@ function buildSearchParams(params, flattenArrays = false) {
38465
38465
  return searchParams;
38466
38466
  }
38467
38467
  //#endregion
38468
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.228_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3208477b37bc6a784131b780db085724/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38468
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.232_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_dc87205933b6794f17b241e0d8ab80bb/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38469
38469
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38470
38470
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38471
38471
  }
@@ -38479,7 +38479,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38479
38479
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38480
38480
  }
38481
38481
  //#endregion
38482
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.228_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3208477b37bc6a784131b780db085724/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38482
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.232_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_dc87205933b6794f17b241e0d8ab80bb/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38483
38483
  async function getWorkspaces(httpClient, organization_id, signal) {
38484
38484
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38485
38485
  }
@@ -38499,7 +38499,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38499
38499
  });
38500
38500
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38501
38501
  //#endregion
38502
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.228_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3208477b37bc6a784131b780db085724/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38502
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.232_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_dc87205933b6794f17b241e0d8ab80bb/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38503
38503
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38504
38504
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38505
38505
  signal,
@@ -38510,12 +38510,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38510
38510
  })).json();
38511
38511
  }
38512
38512
  //#endregion
38513
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.228_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3208477b37bc6a784131b780db085724/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38513
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.232_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_dc87205933b6794f17b241e0d8ab80bb/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38514
38514
  async function getStatus(httpClient, signal) {
38515
38515
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38516
38516
  }
38517
38517
  //#endregion
38518
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.228_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3208477b37bc6a784131b780db085724/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38518
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.232_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_dc87205933b6794f17b241e0d8ab80bb/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38519
38519
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38520
38520
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38521
38521
  signal,
@@ -38543,7 +38543,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38543
38543
  return response.json();
38544
38544
  }
38545
38545
  //#endregion
38546
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.228_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3208477b37bc6a784131b780db085724/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38546
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.232_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_dc87205933b6794f17b241e0d8ab80bb/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38547
38547
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38548
38548
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38549
38549
  }
@@ -42890,6 +42890,27 @@ async function updateProjectDesignations(httpClient, organization_id, workspace_
42890
42890
  json: data
42891
42891
  }).json();
42892
42892
  }
42893
+ async function getProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, signal) {
42894
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, { signal }).json();
42895
+ }
42896
+ async function createProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
42897
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
42898
+ signal,
42899
+ json: data
42900
+ }).json();
42901
+ }
42902
+ async function deleteProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
42903
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
42904
+ signal,
42905
+ json: data
42906
+ }).json();
42907
+ }
42908
+ async function updateProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
42909
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
42910
+ signal,
42911
+ json: data
42912
+ }).json();
42913
+ }
42893
42914
  async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
42894
42915
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal }).json();
42895
42916
  }
@@ -45416,7 +45437,12 @@ const generatedFocusOperations = [
45416
45437
  inputSchema: /* @__PURE__ */ looseObject({
45417
45438
  payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
45418
45439
  designation_id: /* @__PURE__ */ number$2(),
45419
- estimated_mins: /* @__PURE__ */ number$2()
45440
+ bookings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
45441
+ end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
45442
+ start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
45443
+ toggl_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
45444
+ }))),
45445
+ estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
45420
45446
  })) }),
45421
45447
  project_id: /* @__PURE__ */ number$2()
45422
45448
  }),
@@ -45432,6 +45458,42 @@ const generatedFocusOperations = [
45432
45458
  ]));
45433
45459
  }
45434
45460
  },
45461
+ {
45462
+ id: "focus.designations.create-project-designation-bookings",
45463
+ family: "focus",
45464
+ resource: "designations",
45465
+ action: "create-project-designation-bookings",
45466
+ title: "Create Project Designation Bookings Designations",
45467
+ description: "Create Project Designation Bookings Designations.",
45468
+ safety: "create",
45469
+ destructive: false,
45470
+ cli: {
45471
+ group: ["designations"],
45472
+ command: "create-project-designation-bookings",
45473
+ interactive: "default"
45474
+ },
45475
+ mcp: { entityTool: "designations" },
45476
+ inputSchema: /* @__PURE__ */ looseObject({
45477
+ payload: /* @__PURE__ */ looseObject({ bookings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
45478
+ project_trait_id: /* @__PURE__ */ number$2(),
45479
+ end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
45480
+ start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
45481
+ toggl_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
45482
+ })) }),
45483
+ project_id: /* @__PURE__ */ number$2()
45484
+ }),
45485
+ execute: (input, { client }) => {
45486
+ const data = input;
45487
+ return client.runGeneratedRequest("createProjectDesignationBookings", () => callGeneratedRequest(createProjectDesignationBookings, [
45488
+ client.httpClient,
45489
+ client.organizationId,
45490
+ client.workspaceIdNumber,
45491
+ data.project_id,
45492
+ data.payload ?? data.data ?? data,
45493
+ void 0
45494
+ ]));
45495
+ }
45496
+ },
45435
45497
  {
45436
45498
  id: "focus.designations.create-workspace",
45437
45499
  family: "focus",
@@ -45493,6 +45555,37 @@ const generatedFocusOperations = [
45493
45555
  ]));
45494
45556
  }
45495
45557
  },
45558
+ {
45559
+ id: "focus.designations.delete-project-designation-bookings",
45560
+ family: "focus",
45561
+ resource: "designations",
45562
+ action: "delete-project-designation-bookings",
45563
+ title: "Delete Project Designation Bookings Designations",
45564
+ description: "Delete Project Designation Bookings Designations.",
45565
+ safety: "delete",
45566
+ destructive: true,
45567
+ cli: {
45568
+ group: ["designations"],
45569
+ command: "delete-project-designation-bookings",
45570
+ interactive: "default"
45571
+ },
45572
+ mcp: { entityTool: "designations" },
45573
+ inputSchema: /* @__PURE__ */ looseObject({
45574
+ payload: /* @__PURE__ */ looseObject({ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }),
45575
+ project_id: /* @__PURE__ */ number$2()
45576
+ }),
45577
+ execute: (input, { client }) => {
45578
+ const data = input;
45579
+ return client.runGeneratedRequest("deleteProjectDesignationBookings", () => callGeneratedRequest(deleteProjectDesignationBookings, [
45580
+ client.httpClient,
45581
+ client.organizationId,
45582
+ client.workspaceIdNumber,
45583
+ data.project_id,
45584
+ data.payload ?? data.data ?? data,
45585
+ void 0
45586
+ ]));
45587
+ }
45588
+ },
45496
45589
  {
45497
45590
  id: "focus.designations.delete-workspace",
45498
45591
  family: "focus",
@@ -45551,6 +45644,33 @@ const generatedFocusOperations = [
45551
45644
  ]));
45552
45645
  }
45553
45646
  },
45647
+ {
45648
+ id: "focus.designations.get-project-designation-bookings",
45649
+ family: "focus",
45650
+ resource: "designations",
45651
+ action: "get-project-designation-bookings",
45652
+ title: "Get Project Designation Bookings Designations",
45653
+ description: "Get Project Designation Bookings Designations.",
45654
+ safety: "read",
45655
+ destructive: false,
45656
+ cli: {
45657
+ group: ["designations"],
45658
+ command: "get-project-designation-bookings",
45659
+ interactive: "available"
45660
+ },
45661
+ mcp: { entityTool: "designations" },
45662
+ inputSchema: /* @__PURE__ */ looseObject({ project_id: /* @__PURE__ */ number$2() }),
45663
+ execute: (input, { client }) => {
45664
+ const data = input;
45665
+ return client.runGeneratedRequest("getProjectDesignationBookings", () => callGeneratedRequest(getProjectDesignationBookings, [
45666
+ client.httpClient,
45667
+ client.organizationId,
45668
+ client.workspaceIdNumber,
45669
+ data.project_id,
45670
+ void 0
45671
+ ]));
45672
+ }
45673
+ },
45554
45674
  {
45555
45675
  id: "focus.designations.get-workspace-designations",
45556
45676
  family: "focus",
@@ -45600,10 +45720,7 @@ const generatedFocusOperations = [
45600
45720
  },
45601
45721
  mcp: { entityTool: "designations" },
45602
45722
  inputSchema: /* @__PURE__ */ looseObject({
45603
- payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
45604
- estimated_mins: /* @__PURE__ */ number$2(),
45605
- id: /* @__PURE__ */ number$2()
45606
- })) }),
45723
+ payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() })) }),
45607
45724
  project_id: /* @__PURE__ */ number$2()
45608
45725
  }),
45609
45726
  execute: (input, { client }) => {
@@ -45618,6 +45735,37 @@ const generatedFocusOperations = [
45618
45735
  ]));
45619
45736
  }
45620
45737
  },
45738
+ {
45739
+ id: "focus.designations.update-project-designation-bookings",
45740
+ family: "focus",
45741
+ resource: "designations",
45742
+ action: "update-project-designation-bookings",
45743
+ title: "Update Project Designation Bookings Designations",
45744
+ description: "Update Project Designation Bookings Designations.",
45745
+ safety: "update",
45746
+ destructive: false,
45747
+ cli: {
45748
+ group: ["designations"],
45749
+ command: "update-project-designation-bookings",
45750
+ interactive: "default"
45751
+ },
45752
+ mcp: { entityTool: "designations" },
45753
+ inputSchema: /* @__PURE__ */ looseObject({
45754
+ payload: /* @__PURE__ */ looseObject({ bookings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() })) }),
45755
+ project_id: /* @__PURE__ */ number$2()
45756
+ }),
45757
+ execute: (input, { client }) => {
45758
+ const data = input;
45759
+ return client.runGeneratedRequest("updateProjectDesignationBookings", () => callGeneratedRequest(updateProjectDesignationBookings, [
45760
+ client.httpClient,
45761
+ client.organizationId,
45762
+ client.workspaceIdNumber,
45763
+ data.project_id,
45764
+ data.payload ?? data.data ?? data,
45765
+ void 0
45766
+ ]));
45767
+ }
45768
+ },
45621
45769
  {
45622
45770
  id: "focus.designations.update-workspace",
45623
45771
  family: "focus",
@@ -57081,7 +57229,7 @@ function registerWorkspaceTools(server) {
57081
57229
  //#region src/package-version.ts
57082
57230
  function mcpPackageVersion() {
57083
57231
  try {
57084
- return "1.13.34";
57232
+ return "1.13.36";
57085
57233
  } catch {
57086
57234
  return "unknown";
57087
57235
  }
@@ -57262,7 +57410,7 @@ import_main.default.config({
57262
57410
  quiet: true,
57263
57411
  ignore: ["MISSING_ENV_FILE"]
57264
57412
  });
57265
- const packageVersion = "1.13.34";
57413
+ const packageVersion = "1.13.36";
57266
57414
  const MCP_CACHE_TTL_MS = 300 * 1e3;
57267
57415
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
57268
57416
  function resolvePublicUrls() {
@@ -57382,4 +57530,4 @@ function bootstrapServer(options = {}) {
57382
57530
  //#endregion
57383
57531
  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 };
57384
57532
 
57385
- //# sourceMappingURL=src-C4BF2NNj.js.map
57533
+ //# sourceMappingURL=src-CO-yo5gD.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.13.34",
3
+ "version": "1.13.36",
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",