@togglhq/mcp 1.11.37 → 1.11.39

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-C9BxLOx6.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-DmVgu8K8.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.37";
168
+ const packageVersion = "1.11.39";
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-C9BxLOx6.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-DmVgu8K8.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -37397,7 +37397,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
37397
37397
  })
37398
37398
  }).json();
37399
37399
  }
37400
- async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
37400
+ async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
37401
37401
  const response = await httpClient.get(`organizations/${organization_id}/users`, {
37402
37402
  signal,
37403
37403
  searchParams: buildSearchParams$2({
@@ -37418,6 +37418,7 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
37418
37418
  include_rates,
37419
37419
  pinned_ids,
37420
37420
  has_group,
37421
+ track_without_focus,
37421
37422
  cf_filter,
37422
37423
  include_custom_fields,
37423
37424
  include_calendar_integration
@@ -38431,7 +38432,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38431
38432
  ]))
38432
38433
  });
38433
38434
  //#endregion
38434
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.44_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_d8955942878b3bc5411d7a13cf80781a/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38435
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38435
38436
  async function getInvitations(httpClient, signal) {
38436
38437
  return (await httpClient.get(`invitations`, { signal })).json();
38437
38438
  }
@@ -38448,7 +38449,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38448
38449
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38449
38450
  }
38450
38451
  //#endregion
38451
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.44_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_d8955942878b3bc5411d7a13cf80781a/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38452
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38452
38453
  function buildSearchParams(params, flattenArrays = false) {
38453
38454
  const searchParams = new URLSearchParams();
38454
38455
  Object.entries(params).forEach(([key, value]) => {
@@ -38460,7 +38461,7 @@ function buildSearchParams(params, flattenArrays = false) {
38460
38461
  return searchParams;
38461
38462
  }
38462
38463
  //#endregion
38463
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.44_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_d8955942878b3bc5411d7a13cf80781a/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38464
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38464
38465
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38465
38466
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38466
38467
  }
@@ -38474,7 +38475,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38474
38475
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38475
38476
  }
38476
38477
  //#endregion
38477
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.44_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_d8955942878b3bc5411d7a13cf80781a/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38478
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38478
38479
  async function getWorkspaces(httpClient, organization_id, signal) {
38479
38480
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38480
38481
  }
@@ -38494,7 +38495,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38494
38495
  });
38495
38496
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38496
38497
  //#endregion
38497
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.44_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_d8955942878b3bc5411d7a13cf80781a/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38498
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38498
38499
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38499
38500
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38500
38501
  signal,
@@ -38505,12 +38506,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38505
38506
  })).json();
38506
38507
  }
38507
38508
  //#endregion
38508
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.44_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_d8955942878b3bc5411d7a13cf80781a/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38509
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38509
38510
  async function getStatus(httpClient, signal) {
38510
38511
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38511
38512
  }
38512
38513
  //#endregion
38513
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.44_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_d8955942878b3bc5411d7a13cf80781a/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38514
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38514
38515
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38515
38516
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38516
38517
  signal,
@@ -38538,7 +38539,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38538
38539
  return response.json();
38539
38540
  }
38540
38541
  //#endregion
38541
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.44_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_d8955942878b3bc5411d7a13cf80781a/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38542
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38542
38543
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38543
38544
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38544
38545
  }
@@ -43361,6 +43362,19 @@ async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id,
43361
43362
  json: data
43362
43363
  }).json();
43363
43364
  }
43365
+ async function getTimesheetStatusCounts(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids }, signal) {
43366
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
43367
+ signal,
43368
+ searchParams: buildSearchParams$2({
43369
+ date_from,
43370
+ date_to,
43371
+ setup_id,
43372
+ user_account_ids,
43373
+ approver_user_account_ids,
43374
+ team_ids
43375
+ })
43376
+ }).json();
43377
+ }
43364
43378
  async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
43365
43379
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal }).json();
43366
43380
  }
@@ -43404,6 +43418,14 @@ async function withdrawTimesheet(httpClient, organization_id, workspace_id, setu
43404
43418
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal }).json();
43405
43419
  }
43406
43420
  //#endregion
43421
+ //#region ../focus-queries/dist/track-team-invites/requests.ts
43422
+ async function postTrackTeamInvites(httpClient, organization_id, workspace_id, data, signal) {
43423
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
43424
+ signal,
43425
+ json: data
43426
+ }).json();
43427
+ }
43428
+ //#endregion
43407
43429
  //#region ../focus-queries/dist/user-settings/requests.ts
43408
43430
  async function emailUnsubscribePage(httpClient, token, signal) {
43409
43431
  return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
@@ -52906,6 +52928,40 @@ const generatedFocusOperations = [
52906
52928
  ]));
52907
52929
  }
52908
52930
  },
52931
+ {
52932
+ id: "focus.timesheets.get-status-counts",
52933
+ family: "focus",
52934
+ resource: "timesheets",
52935
+ action: "get-status-counts",
52936
+ title: "Get Status Counts Timesheets",
52937
+ description: "Get Status Counts Timesheets.",
52938
+ safety: "read",
52939
+ destructive: false,
52940
+ cli: {
52941
+ group: ["timesheets"],
52942
+ command: "get-status-counts",
52943
+ interactive: "hidden"
52944
+ },
52945
+ mcp: { entityTool: "timesheets" },
52946
+ inputSchema: /* @__PURE__ */ looseObject({
52947
+ approver_user_account_ids: /* @__PURE__ */ unknown$1(),
52948
+ date_from: /* @__PURE__ */ unknown$1(),
52949
+ date_to: /* @__PURE__ */ unknown$1(),
52950
+ setup_id: /* @__PURE__ */ number$2(),
52951
+ team_ids: /* @__PURE__ */ unknown$1(),
52952
+ user_account_ids: /* @__PURE__ */ unknown$1()
52953
+ }),
52954
+ execute: (input, { client }) => {
52955
+ const data = input;
52956
+ return client.runGeneratedRequest("getTimesheetStatusCounts", () => callGeneratedRequest(getTimesheetStatusCounts, [
52957
+ client.httpClient,
52958
+ client.organizationId,
52959
+ client.workspaceIdNumber,
52960
+ data,
52961
+ void 0
52962
+ ]));
52963
+ }
52964
+ },
52909
52965
  {
52910
52966
  id: "focus.timesheets.remove-timesheet-flag",
52911
52967
  family: "focus",
@@ -53455,6 +53511,33 @@ const generatedFocusOperations = [
53455
53511
  ]));
53456
53512
  }
53457
53513
  },
53514
+ {
53515
+ id: "focus.track-team-invites.post",
53516
+ family: "focus",
53517
+ resource: "track-team-invites",
53518
+ action: "post",
53519
+ title: "Post Track Team Invites",
53520
+ description: "Post Track Team Invites.",
53521
+ safety: "create",
53522
+ destructive: false,
53523
+ cli: {
53524
+ group: ["track-team-invites"],
53525
+ command: "post",
53526
+ interactive: "default"
53527
+ },
53528
+ mcp: { entityTool: "track-team-invites" },
53529
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ organization_user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
53530
+ execute: (input, { client }) => {
53531
+ const data = input;
53532
+ return client.runGeneratedRequest("postTrackTeamInvites", () => callGeneratedRequest(postTrackTeamInvites, [
53533
+ client.httpClient,
53534
+ client.organizationId,
53535
+ client.workspaceIdNumber,
53536
+ data.payload ?? data.data ?? data,
53537
+ void 0
53538
+ ]));
53539
+ }
53540
+ },
53458
53541
  {
53459
53542
  id: "focus.users.list",
53460
53543
  family: "focus",
@@ -55133,7 +55216,7 @@ function registerWorkspaceTools(server) {
55133
55216
  //#region src/package-version.ts
55134
55217
  function mcpPackageVersion() {
55135
55218
  try {
55136
- return "1.11.37";
55219
+ return "1.11.39";
55137
55220
  } catch {
55138
55221
  return "unknown";
55139
55222
  }
@@ -55308,7 +55391,7 @@ import_main.default.config({
55308
55391
  quiet: true,
55309
55392
  ignore: ["MISSING_ENV_FILE"]
55310
55393
  });
55311
- const packageVersion = "1.11.37";
55394
+ const packageVersion = "1.11.39";
55312
55395
  function resolvePublicUrls() {
55313
55396
  return {
55314
55397
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -55373,4 +55456,4 @@ function bootstrapServer(options = {}) {
55373
55456
  //#endregion
55374
55457
  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 };
55375
55458
 
55376
- //# sourceMappingURL=src-C9BxLOx6.js.map
55459
+ //# sourceMappingURL=src-DmVgu8K8.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.11.37",
3
+ "version": "1.11.39",
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",