@togglhq/mcp 1.11.143 → 1.11.144

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-DUgMWV-7.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-kfccTxGe.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.143";
165
+ const packageVersion = "1.11.144";
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-DUgMWV-7.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-kfccTxGe.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -35205,8 +35205,7 @@ const OrganizationUserResponseSchema = /* @__PURE__ */ object({
35205
35205
  work_role_id: /* @__PURE__ */ number(),
35206
35206
  workspace_user_id: /* @__PURE__ */ number()
35207
35207
  })),
35208
- custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
35209
- has_calendar_integration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("HasCalendarIntegration is true when the member has a calendar connected in Focus. The field is present only when the request sets include_calendar_integration to true and the calendar lookup succeeded. The field is absent when the lookup failed. Absent means unknown. It does not mean false. A member who connected a calendar in another product stays false here until they open the Focus calendar integrations page.")))
35208
+ custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema))
35210
35209
  });
35211
35210
  const ProjectBulkArchivePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
35212
35211
  const ProjectBulkRestorePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
@@ -37302,7 +37301,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
37302
37301
  })
37303
37302
  }).json();
37304
37303
  }
37305
- 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) {
37304
+ 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 } = {}, signal) {
37306
37305
  const response = await httpClient.get(`organizations/${organization_id}/users`, {
37307
37306
  signal,
37308
37307
  searchParams: buildSearchParams$2({
@@ -37324,8 +37323,7 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
37324
37323
  pinned_ids,
37325
37324
  has_group,
37326
37325
  cf_filter,
37327
- include_custom_fields,
37328
- include_calendar_integration
37326
+ include_custom_fields
37329
37327
  }, true)
37330
37328
  });
37331
37329
  return withResponseMeta(await response.json(), response.headers, response.status);
@@ -38188,7 +38186,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38188
38186
  ]))
38189
38187
  });
38190
38188
  //#endregion
38191
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.122_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8d267f5151670e563fe6b27e2ff3186/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38189
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.124_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_969a045e6e4f645cea4cd5f88b441655/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38192
38190
  async function getInvitations(httpClient, signal) {
38193
38191
  return (await httpClient.get(`invitations`, { signal })).json();
38194
38192
  }
@@ -38205,7 +38203,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38205
38203
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38206
38204
  }
38207
38205
  //#endregion
38208
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.122_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8d267f5151670e563fe6b27e2ff3186/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38206
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.124_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_969a045e6e4f645cea4cd5f88b441655/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38209
38207
  function buildSearchParams(params, flattenArrays = false) {
38210
38208
  const searchParams = new URLSearchParams();
38211
38209
  Object.entries(params).forEach(([key, value]) => {
@@ -38217,7 +38215,7 @@ function buildSearchParams(params, flattenArrays = false) {
38217
38215
  return searchParams;
38218
38216
  }
38219
38217
  //#endregion
38220
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.122_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8d267f5151670e563fe6b27e2ff3186/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38218
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.124_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_969a045e6e4f645cea4cd5f88b441655/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38221
38219
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38222
38220
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38223
38221
  }
@@ -38231,7 +38229,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38231
38229
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38232
38230
  }
38233
38231
  //#endregion
38234
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.122_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8d267f5151670e563fe6b27e2ff3186/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38232
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.124_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_969a045e6e4f645cea4cd5f88b441655/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38235
38233
  async function getWorkspaces(httpClient, organization_id, signal) {
38236
38234
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38237
38235
  }
@@ -38251,7 +38249,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38251
38249
  });
38252
38250
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38253
38251
  //#endregion
38254
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.122_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8d267f5151670e563fe6b27e2ff3186/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38252
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.124_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_969a045e6e4f645cea4cd5f88b441655/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38255
38253
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38256
38254
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38257
38255
  signal,
@@ -38262,12 +38260,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38262
38260
  })).json();
38263
38261
  }
38264
38262
  //#endregion
38265
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.122_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8d267f5151670e563fe6b27e2ff3186/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38263
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.124_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_969a045e6e4f645cea4cd5f88b441655/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38266
38264
  async function getStatus(httpClient, signal) {
38267
38265
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38268
38266
  }
38269
38267
  //#endregion
38270
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.122_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8d267f5151670e563fe6b27e2ff3186/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38268
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.124_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_969a045e6e4f645cea4cd5f88b441655/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38271
38269
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38272
38270
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38273
38271
  signal,
@@ -38295,7 +38293,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38295
38293
  return response.json();
38296
38294
  }
38297
38295
  //#endregion
38298
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.122_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8d267f5151670e563fe6b27e2ff3186/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38296
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.124_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_969a045e6e4f645cea4cd5f88b441655/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38299
38297
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38300
38298
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38301
38299
  }
@@ -42541,9 +42539,6 @@ async function dismissATemplateEstimateSuggestion(httpClient, organization_id, w
42541
42539
  }
42542
42540
  //#endregion
42543
42541
  //#region ../focus-queries/dist/reports/requests.ts
42544
- async function getForecastAvailability(httpClient, workspace_id, signal) {
42545
- return await httpClient.get(`reports/workspaces/${workspace_id}/forecast-availability`, { signal }).json();
42546
- }
42547
42542
  async function getProfitabilityReport(httpClient, workspace_id, data, response_format, include_dicts, xTogglReportExport, signal) {
42548
42543
  return await httpClient.post(`reports/workspaces/${workspace_id}/profitability`, {
42549
42544
  signal,
@@ -42989,21 +42984,6 @@ async function upsertTimeEntryConstraints(httpClient, workspace_id, data, signal
42989
42984
  }).json();
42990
42985
  }
42991
42986
  //#endregion
42992
- //#region ../focus-queries/dist/time-entry-groups/requests.ts
42993
- async function getTimeEntryGroupsUsersClassic(httpClient, organization_id, workspace_id, { start_date, end_date, user_id, page, per_page, order_by }, signal) {
42994
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/groups/users`, {
42995
- signal,
42996
- searchParams: buildSearchParams$2({
42997
- start_date,
42998
- end_date,
42999
- user_id,
43000
- page,
43001
- per_page,
43002
- order_by
43003
- })
43004
- }).json();
43005
- }
43006
- //#endregion
43007
42987
  //#region ../focus-queries/dist/time-off/requests.ts
43008
42988
  async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, start_date, end_date }, signal) {
43009
42989
  return await httpClient.get(`organizations/${organization_id}/timeoff`, {
@@ -48054,28 +48034,6 @@ const generatedFocusOperations = [
48054
48034
  ]));
48055
48035
  }
48056
48036
  },
48057
- {
48058
- id: "focus.reports.get-forecast-availability",
48059
- family: "focus",
48060
- resource: "reports",
48061
- action: "get-forecast-availability",
48062
- title: "Get Forecast Availability Reports",
48063
- description: "Get Forecast Availability Reports.",
48064
- safety: "read",
48065
- destructive: false,
48066
- cli: {
48067
- group: ["reports"],
48068
- command: "get-forecast-availability",
48069
- interactive: "hidden"
48070
- },
48071
- mcp: { entityTool: "reports" },
48072
- inputSchema: /* @__PURE__ */ looseObject({}),
48073
- execute: (_input, { client }) => client.runGeneratedRequest("getForecastAvailability", () => callGeneratedRequest(getForecastAvailability, [
48074
- client.httpClient,
48075
- client.workspaceIdNumber,
48076
- void 0
48077
- ]))
48078
- },
48079
48037
  {
48080
48038
  id: "focus.reports.get-profitability",
48081
48039
  family: "focus",
@@ -51736,40 +51694,6 @@ const generatedFocusOperations = [
51736
51694
  ]));
51737
51695
  }
51738
51696
  },
51739
- {
51740
- id: "focus.time-entries.groups-get-users",
51741
- family: "focus",
51742
- resource: "time-entries",
51743
- action: "groups-get-users",
51744
- title: "Groups Get Users Time Entries",
51745
- description: "Groups Get Users Time Entries.",
51746
- safety: "read",
51747
- destructive: false,
51748
- cli: {
51749
- group: ["time-entries", "groups"],
51750
- command: "get-users",
51751
- interactive: "hidden"
51752
- },
51753
- mcp: { entityTool: "time-entries" },
51754
- inputSchema: /* @__PURE__ */ looseObject({
51755
- end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
51756
- order_by: /* @__PURE__ */ unknown$1(),
51757
- page: /* @__PURE__ */ number$2(),
51758
- per_page: /* @__PURE__ */ unknown$1(),
51759
- start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
51760
- user_id: /* @__PURE__ */ number$2()
51761
- }),
51762
- execute: (input, { client }) => {
51763
- const data = input;
51764
- return client.runGeneratedRequest("getTimeEntryGroupsUsersClassic", () => callGeneratedRequest(getTimeEntryGroupsUsersClassic, [
51765
- client.httpClient,
51766
- client.organizationId,
51767
- client.workspaceIdNumber,
51768
- data,
51769
- void 0
51770
- ]));
51771
- }
51772
- },
51773
51697
  {
51774
51698
  id: "focus.time-entries.list",
51775
51699
  family: "focus",
@@ -54817,7 +54741,7 @@ function registerWorkspaceTools(server) {
54817
54741
  //#region src/package-version.ts
54818
54742
  function mcpPackageVersion() {
54819
54743
  try {
54820
- return "1.11.143";
54744
+ return "1.11.144";
54821
54745
  } catch {
54822
54746
  return "unknown";
54823
54747
  }
@@ -54992,7 +54916,7 @@ import_main.default.config({
54992
54916
  quiet: true,
54993
54917
  ignore: ["MISSING_ENV_FILE"]
54994
54918
  });
54995
- const packageVersion = "1.11.143";
54919
+ const packageVersion = "1.11.144";
54996
54920
  function resolvePublicUrls() {
54997
54921
  return {
54998
54922
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -55057,4 +54981,4 @@ function bootstrapServer(options = {}) {
55057
54981
  //#endregion
55058
54982
  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 };
55059
54983
 
55060
- //# sourceMappingURL=src-DUgMWV-7.js.map
54984
+ //# sourceMappingURL=src-kfccTxGe.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.11.143",
3
+ "version": "1.11.144",
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",