@togglhq/mcp 1.11.92 → 1.11.93

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 getProductAnalyticsDistinctId, c as resolvePublicSentryDsn, i as captureToolInvocation, l as shutdownProductAnalytics, n as runMcpCli, o as initProductAnalytics, r as PUBLIC_SENTRY_PRIVACY_OPTIONS, s as resolveProductAnalyticsDistinctId } from "./src-C_xyRO0u.js";
2
+ import { a as getProductAnalyticsDistinctId, c as resolvePublicSentryDsn, i as captureToolInvocation, l as shutdownProductAnalytics, n as runMcpCli, o as initProductAnalytics, r as PUBLIC_SENTRY_PRIVACY_OPTIONS, s as resolveProductAnalyticsDistinctId } from "./src-Bxq_orDH.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.11.92";
165
+ const packageVersion = "1.11.93";
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 { n as runMcpCli, t as bootstrapServer } from "./src-C_xyRO0u.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-Bxq_orDH.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -32773,6 +32773,10 @@ function _joinExpects$1(values$1, separator) {
32773
32773
  */
32774
32774
  const ISO_DATE_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
32775
32775
  /**
32776
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time regex.
32777
+ */
32778
+ const ISO_DATE_TIME_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3]):[0-5]\d$/u;
32779
+ /**
32776
32780
  * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
32777
32781
  * space as a date/time separator and an optional space before the UTC offset.
32778
32782
  */
@@ -32826,6 +32830,22 @@ function isoDate$1(message$1) {
32826
32830
  };
32827
32831
  }
32828
32832
  /* @__NO_SIDE_EFFECTS__ */
32833
+ function isoDateTime$1(message$1) {
32834
+ return {
32835
+ kind: "validation",
32836
+ type: "iso_date_time",
32837
+ reference: isoDateTime$1,
32838
+ async: false,
32839
+ expects: null,
32840
+ requirement: ISO_DATE_TIME_REGEX$1,
32841
+ message: message$1,
32842
+ "~run"(dataset, config$1) {
32843
+ if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue$1(this, "date-time", dataset, config$1);
32844
+ return dataset;
32845
+ }
32846
+ };
32847
+ }
32848
+ /* @__NO_SIDE_EFFECTS__ */
32829
32849
  function isoTimestamp(message$1) {
32830
32850
  return {
32831
32851
  kind: "validation",
@@ -38262,7 +38282,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38262
38282
  ]))
38263
38283
  });
38264
38284
  //#endregion
38265
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38285
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38266
38286
  async function getInvitations(httpClient, signal) {
38267
38287
  return (await httpClient.get(`invitations`, { signal })).json();
38268
38288
  }
@@ -38279,7 +38299,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38279
38299
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38280
38300
  }
38281
38301
  //#endregion
38282
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38302
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38283
38303
  function buildSearchParams(params, flattenArrays = false) {
38284
38304
  const searchParams = new URLSearchParams();
38285
38305
  Object.entries(params).forEach(([key, value]) => {
@@ -38291,7 +38311,7 @@ function buildSearchParams(params, flattenArrays = false) {
38291
38311
  return searchParams;
38292
38312
  }
38293
38313
  //#endregion
38294
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38314
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38295
38315
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38296
38316
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38297
38317
  }
@@ -38305,7 +38325,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38305
38325
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38306
38326
  }
38307
38327
  //#endregion
38308
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38328
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38309
38329
  async function getWorkspaces(httpClient, organization_id, signal) {
38310
38330
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38311
38331
  }
@@ -38314,7 +38334,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
38314
38334
  }
38315
38335
  const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
38316
38336
  working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
38317
- starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
38337
+ starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(24))),
38318
38338
  weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
38319
38339
  });
38320
38340
  const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
@@ -38325,7 +38345,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38325
38345
  });
38326
38346
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38327
38347
  //#endregion
38328
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38348
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38329
38349
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38330
38350
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38331
38351
  signal,
@@ -38336,12 +38356,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38336
38356
  })).json();
38337
38357
  }
38338
38358
  //#endregion
38339
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38359
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38340
38360
  async function getStatus(httpClient, signal) {
38341
38361
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38342
38362
  }
38343
38363
  //#endregion
38344
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38364
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38345
38365
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38346
38366
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38347
38367
  signal,
@@ -38369,7 +38389,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38369
38389
  return response.json();
38370
38390
  }
38371
38391
  //#endregion
38372
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38392
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38373
38393
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38374
38394
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38375
38395
  }
@@ -55485,7 +55505,7 @@ function registerWorkspaceTools(server) {
55485
55505
  //#region src/package-version.ts
55486
55506
  function mcpPackageVersion() {
55487
55507
  try {
55488
- return "1.11.92";
55508
+ return "1.11.93";
55489
55509
  } catch {
55490
55510
  return "unknown";
55491
55511
  }
@@ -55660,7 +55680,7 @@ import_main.default.config({
55660
55680
  quiet: true,
55661
55681
  ignore: ["MISSING_ENV_FILE"]
55662
55682
  });
55663
- const packageVersion = "1.11.92";
55683
+ const packageVersion = "1.11.93";
55664
55684
  function resolvePublicUrls() {
55665
55685
  return {
55666
55686
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -55725,4 +55745,4 @@ function bootstrapServer(options = {}) {
55725
55745
  //#endregion
55726
55746
  export { getProductAnalyticsDistinctId as a, resolvePublicSentryDsn as c, captureToolInvocation as i, shutdownProductAnalytics as l, runMcpCli as n, initProductAnalytics as o, PUBLIC_SENTRY_PRIVACY_OPTIONS as r, resolveProductAnalyticsDistinctId as s, bootstrapServer as t };
55727
55747
 
55728
- //# sourceMappingURL=src-C_xyRO0u.js.map
55748
+ //# sourceMappingURL=src-Bxq_orDH.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.11.92",
3
+ "version": "1.11.93",
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",