@togglhq/mcp 1.11.20 → 1.11.22

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 initProductAnalytics, c as shutdownProductAnalytics, i as getProductAnalyticsDistinctId, n as runMcpCli, o as redactUnsafeSentryMessages, r as captureToolInvocation, s as resolveProductAnalyticsDistinctId } from "./src-D2NLtqv5.js";
2
+ import { a as initProductAnalytics, c as shutdownProductAnalytics, i as getProductAnalyticsDistinctId, n as runMcpCli, o as redactUnsafeSentryMessages, r as captureToolInvocation, s as resolveProductAnalyticsDistinctId } from "./src-BRBBlwMU.js";
3
3
  import * as Sentry from "@sentry/node";
4
4
  //#region src/analytics-tool-metadata.ts
5
5
  /**
@@ -165,7 +165,7 @@ function wrapServerWithProductAnalytics(server) {
165
165
  }
166
166
  //#endregion
167
167
  //#region src/cli.ts
168
- const packageVersion = "1.11.20";
168
+ const packageVersion = "1.11.22";
169
169
  let sentryEnabled = false;
170
170
  let productAnalyticsEnabled = false;
171
171
  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-D2NLtqv5.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-BRBBlwMU.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",
@@ -38352,7 +38372,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38352
38372
  ]))
38353
38373
  });
38354
38374
  //#endregion
38355
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.32_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_22cced4e1db8d0a26fe3fb0f9722c2cb/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38375
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.34_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_1e90f84f30199652fc4ad08815d6bf90/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38356
38376
  async function getInvitations(httpClient, signal) {
38357
38377
  return (await httpClient.get(`invitations`, { signal })).json();
38358
38378
  }
@@ -38369,7 +38389,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38369
38389
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38370
38390
  }
38371
38391
  //#endregion
38372
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.32_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_22cced4e1db8d0a26fe3fb0f9722c2cb/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38392
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.34_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_1e90f84f30199652fc4ad08815d6bf90/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38373
38393
  function buildSearchParams(params, flattenArrays = false) {
38374
38394
  const searchParams = new URLSearchParams();
38375
38395
  Object.entries(params).forEach(([key, value]) => {
@@ -38381,7 +38401,7 @@ function buildSearchParams(params, flattenArrays = false) {
38381
38401
  return searchParams;
38382
38402
  }
38383
38403
  //#endregion
38384
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.32_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_22cced4e1db8d0a26fe3fb0f9722c2cb/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38404
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.34_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_1e90f84f30199652fc4ad08815d6bf90/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38385
38405
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38386
38406
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38387
38407
  }
@@ -38395,7 +38415,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38395
38415
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38396
38416
  }
38397
38417
  //#endregion
38398
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.32_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_22cced4e1db8d0a26fe3fb0f9722c2cb/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38418
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.34_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_1e90f84f30199652fc4ad08815d6bf90/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38399
38419
  async function getWorkspaces(httpClient, organization_id, signal) {
38400
38420
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38401
38421
  }
@@ -38415,7 +38435,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38415
38435
  });
38416
38436
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38417
38437
  //#endregion
38418
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.32_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_22cced4e1db8d0a26fe3fb0f9722c2cb/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38438
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.34_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_1e90f84f30199652fc4ad08815d6bf90/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38419
38439
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38420
38440
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38421
38441
  signal,
@@ -38426,12 +38446,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38426
38446
  })).json();
38427
38447
  }
38428
38448
  //#endregion
38429
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.32_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_22cced4e1db8d0a26fe3fb0f9722c2cb/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38449
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.34_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_1e90f84f30199652fc4ad08815d6bf90/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38430
38450
  async function getStatus(httpClient, signal) {
38431
38451
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38432
38452
  }
38433
38453
  //#endregion
38434
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.32_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_22cced4e1db8d0a26fe3fb0f9722c2cb/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38454
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.34_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_1e90f84f30199652fc4ad08815d6bf90/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38435
38455
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38436
38456
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38437
38457
  signal,
@@ -38459,7 +38479,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38459
38479
  return response.json();
38460
38480
  }
38461
38481
  //#endregion
38462
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.32_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_22cced4e1db8d0a26fe3fb0f9722c2cb/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38482
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.34_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_1e90f84f30199652fc4ad08815d6bf90/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38463
38483
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38464
38484
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38465
38485
  }
@@ -54833,7 +54853,7 @@ function registerWorkspaceTools(server) {
54833
54853
  //#region src/package-version.ts
54834
54854
  function mcpPackageVersion() {
54835
54855
  try {
54836
- return "1.11.20";
54856
+ return "1.11.22";
54837
54857
  } catch {
54838
54858
  return "unknown";
54839
54859
  }
@@ -55008,7 +55028,7 @@ import_main.default.config({
55008
55028
  quiet: true,
55009
55029
  ignore: ["MISSING_ENV_FILE"]
55010
55030
  });
55011
- const packageVersion = "1.11.20";
55031
+ const packageVersion = "1.11.22";
55012
55032
  function resolvePublicUrls() {
55013
55033
  return {
55014
55034
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -55073,4 +55093,4 @@ function bootstrapServer(options = {}) {
55073
55093
  //#endregion
55074
55094
  export { initProductAnalytics as a, shutdownProductAnalytics as c, getProductAnalyticsDistinctId as i, runMcpCli as n, redactUnsafeSentryMessages as o, captureToolInvocation as r, resolveProductAnalyticsDistinctId as s, bootstrapServer as t };
55075
55095
 
55076
- //# sourceMappingURL=src-D2NLtqv5.js.map
55096
+ //# sourceMappingURL=src-BRBBlwMU.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.11.20",
3
+ "version": "1.11.22",
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",