@togglhq/mcp 1.11.158 → 1.11.159

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-BS3mOH8c.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-TudYTshw.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.158";
165
+ const packageVersion = "1.11.159";
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-BS3mOH8c.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-TudYTshw.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -35225,8 +35225,7 @@ const OrganizationUserResponseSchema = /* @__PURE__ */ object({
35225
35225
  work_role_id: /* @__PURE__ */ number(),
35226
35226
  workspace_user_id: /* @__PURE__ */ number()
35227
35227
  })),
35228
- custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
35229
- 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.")))
35228
+ custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema))
35230
35229
  });
35231
35230
  const ProjectBulkArchivePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
35232
35231
  const ProjectBulkRestorePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
@@ -37322,7 +37321,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
37322
37321
  })
37323
37322
  }).json();
37324
37323
  }
37325
- 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) {
37324
+ 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) {
37326
37325
  const response = await httpClient.get(`organizations/${organization_id}/users`, {
37327
37326
  signal,
37328
37327
  searchParams: buildSearchParams$2({
@@ -37344,8 +37343,7 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
37344
37343
  pinned_ids,
37345
37344
  has_group,
37346
37345
  cf_filter,
37347
- include_custom_fields,
37348
- include_calendar_integration
37346
+ include_custom_fields
37349
37347
  }, true)
37350
37348
  });
37351
37349
  return withResponseMeta(await response.json(), response.headers, response.status);
@@ -42561,9 +42559,6 @@ async function dismissATemplateEstimateSuggestion(httpClient, organization_id, w
42561
42559
  }
42562
42560
  //#endregion
42563
42561
  //#region ../focus-queries/dist/reports/requests.ts
42564
- async function getForecastAvailability(httpClient, workspace_id, signal) {
42565
- return await httpClient.get(`reports/workspaces/${workspace_id}/forecast-availability`, { signal }).json();
42566
- }
42567
42562
  async function getProfitabilityReport(httpClient, workspace_id, data, response_format, include_dicts, xTogglReportExport, signal) {
42568
42563
  return await httpClient.post(`reports/workspaces/${workspace_id}/profitability`, {
42569
42564
  signal,
@@ -43009,21 +43004,6 @@ async function upsertTimeEntryConstraints(httpClient, workspace_id, data, signal
43009
43004
  }).json();
43010
43005
  }
43011
43006
  //#endregion
43012
- //#region ../focus-queries/dist/time-entry-groups/requests.ts
43013
- async function getTimeEntryGroupsUsersClassic(httpClient, organization_id, workspace_id, { start_date, end_date, user_id, page, per_page, order_by }, signal) {
43014
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/groups/users`, {
43015
- signal,
43016
- searchParams: buildSearchParams$2({
43017
- start_date,
43018
- end_date,
43019
- user_id,
43020
- page,
43021
- per_page,
43022
- order_by
43023
- })
43024
- }).json();
43025
- }
43026
- //#endregion
43027
43007
  //#region ../focus-queries/dist/time-off/requests.ts
43028
43008
  async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, start_date, end_date }, signal) {
43029
43009
  return await httpClient.get(`organizations/${organization_id}/timeoff`, {
@@ -44494,13 +44474,6 @@ const generatedFocusOperations = [
44494
44474
  icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44495
44475
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44496
44476
  project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44497
- recurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
44498
- "daily",
44499
- "weekly",
44500
- "daily_workdays",
44501
- "monthly"
44502
- ])),
44503
- start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44504
44477
  tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44505
44478
  target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44506
44479
  task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
@@ -48074,28 +48047,6 @@ const generatedFocusOperations = [
48074
48047
  ]));
48075
48048
  }
48076
48049
  },
48077
- {
48078
- id: "focus.reports.get-forecast-availability",
48079
- family: "focus",
48080
- resource: "reports",
48081
- action: "get-forecast-availability",
48082
- title: "Get Forecast Availability Reports",
48083
- description: "Get Forecast Availability Reports.",
48084
- safety: "read",
48085
- destructive: false,
48086
- cli: {
48087
- group: ["reports"],
48088
- command: "get-forecast-availability",
48089
- interactive: "hidden"
48090
- },
48091
- mcp: { entityTool: "reports" },
48092
- inputSchema: /* @__PURE__ */ looseObject({}),
48093
- execute: (_input, { client }) => client.runGeneratedRequest("getForecastAvailability", () => callGeneratedRequest(getForecastAvailability, [
48094
- client.httpClient,
48095
- client.workspaceIdNumber,
48096
- void 0
48097
- ]))
48098
- },
48099
48050
  {
48100
48051
  id: "focus.reports.get-profitability",
48101
48052
  family: "focus",
@@ -51756,40 +51707,6 @@ const generatedFocusOperations = [
51756
51707
  ]));
51757
51708
  }
51758
51709
  },
51759
- {
51760
- id: "focus.time-entries.groups-get-users",
51761
- family: "focus",
51762
- resource: "time-entries",
51763
- action: "groups-get-users",
51764
- title: "Groups Get Users Time Entries",
51765
- description: "Groups Get Users Time Entries.",
51766
- safety: "read",
51767
- destructive: false,
51768
- cli: {
51769
- group: ["time-entries", "groups"],
51770
- command: "get-users",
51771
- interactive: "hidden"
51772
- },
51773
- mcp: { entityTool: "time-entries" },
51774
- inputSchema: /* @__PURE__ */ looseObject({
51775
- end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
51776
- order_by: /* @__PURE__ */ unknown$1(),
51777
- page: /* @__PURE__ */ number$2(),
51778
- per_page: /* @__PURE__ */ unknown$1(),
51779
- start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
51780
- user_id: /* @__PURE__ */ number$2()
51781
- }),
51782
- execute: (input, { client }) => {
51783
- const data = input;
51784
- return client.runGeneratedRequest("getTimeEntryGroupsUsersClassic", () => callGeneratedRequest(getTimeEntryGroupsUsersClassic, [
51785
- client.httpClient,
51786
- client.organizationId,
51787
- client.workspaceIdNumber,
51788
- data,
51789
- void 0
51790
- ]));
51791
- }
51792
- },
51793
51710
  {
51794
51711
  id: "focus.time-entries.list",
51795
51712
  family: "focus",
@@ -54837,7 +54754,7 @@ function registerWorkspaceTools(server) {
54837
54754
  //#region src/package-version.ts
54838
54755
  function mcpPackageVersion() {
54839
54756
  try {
54840
- return "1.11.158";
54757
+ return "1.11.159";
54841
54758
  } catch {
54842
54759
  return "unknown";
54843
54760
  }
@@ -55012,7 +54929,7 @@ import_main.default.config({
55012
54929
  quiet: true,
55013
54930
  ignore: ["MISSING_ENV_FILE"]
55014
54931
  });
55015
- const packageVersion = "1.11.158";
54932
+ const packageVersion = "1.11.159";
55016
54933
  function resolvePublicUrls() {
55017
54934
  return {
55018
54935
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -55077,4 +54994,4 @@ function bootstrapServer(options = {}) {
55077
54994
  //#endregion
55078
54995
  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 };
55079
54996
 
55080
- //# sourceMappingURL=src-BS3mOH8c.js.map
54997
+ //# sourceMappingURL=src-TudYTshw.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.11.158",
3
+ "version": "1.11.159",
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",