@togglhq/mcp 1.11.128 → 1.11.129

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-DQAiS5Vb.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-T2nUJMOU.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.128";
165
+ const packageVersion = "1.11.129";
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-DQAiS5Vb.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-T2nUJMOU.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -32773,10 +32773,6 @@ 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
- /**
32780
32776
  * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
32781
32777
  * space as a date/time separator and an optional space before the UTC offset.
32782
32778
  */
@@ -32830,22 +32826,6 @@ function isoDate$1(message$1) {
32830
32826
  };
32831
32827
  }
32832
32828
  /* @__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__ */
32849
32829
  function isoTimestamp(message$1) {
32850
32830
  return {
32851
32831
  kind: "validation",
@@ -38050,7 +38030,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
38050
38030
  json: data
38051
38031
  }).json();
38052
38032
  }
38053
- async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, project_id, type, order_by, archived, include_taskless, expand_calendar_event }, signal) {
38033
+ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, type, order_by, archived, include_taskless, expand_calendar_event }, signal) {
38054
38034
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
38055
38035
  signal,
38056
38036
  searchParams: buildSearchParams$2({
@@ -38058,7 +38038,6 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
38058
38038
  date_to,
38059
38039
  task_id,
38060
38040
  status_id,
38061
- project_id,
38062
38041
  type,
38063
38042
  order_by,
38064
38043
  archived,
@@ -38209,7 +38188,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38209
38188
  ]))
38210
38189
  });
38211
38190
  //#endregion
38212
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.109_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf199a29e4fddd70640ea6f5a56c73a6/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38191
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38213
38192
  async function getInvitations(httpClient, signal) {
38214
38193
  return (await httpClient.get(`invitations`, { signal })).json();
38215
38194
  }
@@ -38226,7 +38205,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38226
38205
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38227
38206
  }
38228
38207
  //#endregion
38229
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.109_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf199a29e4fddd70640ea6f5a56c73a6/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38208
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38230
38209
  function buildSearchParams(params, flattenArrays = false) {
38231
38210
  const searchParams = new URLSearchParams();
38232
38211
  Object.entries(params).forEach(([key, value]) => {
@@ -38238,7 +38217,7 @@ function buildSearchParams(params, flattenArrays = false) {
38238
38217
  return searchParams;
38239
38218
  }
38240
38219
  //#endregion
38241
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.109_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf199a29e4fddd70640ea6f5a56c73a6/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38220
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38242
38221
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38243
38222
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38244
38223
  }
@@ -38252,7 +38231,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38252
38231
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38253
38232
  }
38254
38233
  //#endregion
38255
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.109_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf199a29e4fddd70640ea6f5a56c73a6/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38234
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38256
38235
  async function getWorkspaces(httpClient, organization_id, signal) {
38257
38236
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38258
38237
  }
@@ -38261,7 +38240,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
38261
38240
  }
38262
38241
  const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
38263
38242
  working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
38264
- starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(24))),
38243
+ starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
38265
38244
  weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
38266
38245
  });
38267
38246
  const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
@@ -38272,7 +38251,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38272
38251
  });
38273
38252
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38274
38253
  //#endregion
38275
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.109_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf199a29e4fddd70640ea6f5a56c73a6/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38254
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38276
38255
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38277
38256
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38278
38257
  signal,
@@ -38283,12 +38262,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38283
38262
  })).json();
38284
38263
  }
38285
38264
  //#endregion
38286
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.109_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf199a29e4fddd70640ea6f5a56c73a6/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38265
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38287
38266
  async function getStatus(httpClient, signal) {
38288
38267
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38289
38268
  }
38290
38269
  //#endregion
38291
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.109_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf199a29e4fddd70640ea6f5a56c73a6/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38270
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38292
38271
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38293
38272
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38294
38273
  signal,
@@ -38316,7 +38295,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38316
38295
  return response.json();
38317
38296
  }
38318
38297
  //#endregion
38319
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.109_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf199a29e4fddd70640ea6f5a56c73a6/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38298
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38320
38299
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38321
38300
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38322
38301
  }
@@ -42093,14 +42072,13 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
42093
42072
  }
42094
42073
  //#endregion
42095
42074
  //#region ../focus-queries/dist/capacities/requests.ts
42096
- async function capacityGetComputations(httpClient, organization_id, workspace_id, group, { start_date, end_date, user_id, team_id, private: private_, task_source, unit, include_drafts, include_task_estimates }, signal) {
42075
+ async function capacityGetComputations(httpClient, organization_id, workspace_id, group, { user_id, start_date, end_date, private: private_, task_source, unit, include_drafts, include_task_estimates }, signal) {
42097
42076
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
42098
42077
  signal,
42099
42078
  searchParams: buildSearchParams$2({
42079
+ user_id,
42100
42080
  start_date,
42101
42081
  end_date,
42102
- user_id,
42103
- team_id,
42104
42082
  private: private_,
42105
42083
  task_source,
42106
42084
  unit,
@@ -42160,15 +42138,6 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
42160
42138
  async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
42161
42139
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
42162
42140
  }
42163
- async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
42164
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
42165
- }
42166
- async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
42167
- return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
42168
- signal,
42169
- json: data
42170
- }).json();
42171
- }
42172
42141
  async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
42173
42142
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
42174
42143
  signal,
@@ -42476,6 +42445,9 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
42476
42445
  json: data
42477
42446
  }).json();
42478
42447
  }
42448
+ async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
42449
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
42450
+ }
42479
42451
  async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
42480
42452
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
42481
42453
  }
@@ -42779,10 +42751,9 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
42779
42751
  }
42780
42752
  //#endregion
42781
42753
  //#region ../focus-queries/dist/task-groups/requests.ts
42782
- async function getUserTaskGroupsByProject(httpClient, organization_id, workspace_id, { project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, xTimelineFetchTrigger }, signal) {
42754
+ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace_id, { project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter }, signal) {
42783
42755
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
42784
42756
  signal,
42785
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
42786
42757
  searchParams: buildSearchParams$2({
42787
42758
  project_id,
42788
42759
  source,
@@ -42815,10 +42786,9 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
42815
42786
  })
42816
42787
  }).json();
42817
42788
  }
42818
- async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id, { team_id, project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, xTimelineFetchTrigger } = {}, signal) {
42789
+ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id, { team_id, project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter } = {}, signal) {
42819
42790
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
42820
42791
  signal,
42821
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
42822
42792
  searchParams: buildSearchParams$2({
42823
42793
  team_id,
42824
42794
  project_id,
@@ -42851,10 +42821,9 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
42851
42821
  })
42852
42822
  }).json();
42853
42823
  }
42854
- async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, group, { source, priority, status_id, project_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, page, per_page, order_by, xTimelineFetchTrigger } = {}, signal) {
42824
+ async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, group, { source, priority, status_id, project_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, page, per_page, order_by } = {}, signal) {
42855
42825
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
42856
42826
  signal,
42857
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
42858
42827
  searchParams: buildSearchParams$2({
42859
42828
  source,
42860
42829
  priority,
@@ -43542,7 +43511,6 @@ const generatedFocusOperations = [
43542
43511
  private_: /* @__PURE__ */ unknown$1(),
43543
43512
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
43544
43513
  task_source: /* @__PURE__ */ unknown$1(),
43545
- team_id: /* @__PURE__ */ number$2(),
43546
43514
  unit: /* @__PURE__ */ unknown$1(),
43547
43515
  user_id: /* @__PURE__ */ number$2()
43548
43516
  }),
@@ -43983,33 +43951,6 @@ const generatedFocusOperations = [
43983
43951
  ]));
43984
43952
  }
43985
43953
  },
43986
- {
43987
- id: "focus.custom-fields.get-allowed-users",
43988
- family: "focus",
43989
- resource: "custom-fields",
43990
- action: "get-allowed-users",
43991
- title: "Get Allowed Users Custom Fields",
43992
- description: "Get Allowed Users Custom Fields.",
43993
- safety: "read",
43994
- destructive: false,
43995
- cli: {
43996
- group: ["custom-fields"],
43997
- command: "get-allowed-users",
43998
- interactive: "available"
43999
- },
44000
- mcp: { entityTool: "custom-fields" },
44001
- inputSchema: /* @__PURE__ */ looseObject({ custom_field_id: /* @__PURE__ */ number$2() }),
44002
- execute: (input, { client }) => {
44003
- const data = input;
44004
- return client.runGeneratedRequest("getCustomFieldAllowedUsers", () => callGeneratedRequest(getCustomFieldAllowedUsers, [
44005
- client.httpClient,
44006
- client.organizationId,
44007
- client.workspaceIdNumber,
44008
- data.custom_field_id,
44009
- void 0
44010
- ]));
44011
- }
44012
- },
44013
43954
  {
44014
43955
  id: "focus.custom-fields.list",
44015
43956
  family: "focus",
@@ -44179,37 +44120,6 @@ const generatedFocusOperations = [
44179
44120
  ]));
44180
44121
  }
44181
44122
  },
44182
- {
44183
- id: "focus.custom-fields.replace-custom-field-allowed-users",
44184
- family: "focus",
44185
- resource: "custom-fields",
44186
- action: "replace-custom-field-allowed-users",
44187
- title: "Replace Custom Field Allowed Users Custom Fields",
44188
- description: "Replace Custom Field Allowed Users Custom Fields.",
44189
- safety: "update",
44190
- destructive: false,
44191
- cli: {
44192
- group: ["custom-fields"],
44193
- command: "replace-custom-field-allowed-users",
44194
- interactive: "default"
44195
- },
44196
- mcp: { entityTool: "custom-fields" },
44197
- inputSchema: /* @__PURE__ */ looseObject({
44198
- custom_field_id: /* @__PURE__ */ number$2(),
44199
- payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) })
44200
- }),
44201
- execute: (input, { client }) => {
44202
- const data = input;
44203
- return client.runGeneratedRequest("replaceCustomFieldAllowedUsers", () => callGeneratedRequest(replaceCustomFieldAllowedUsers, [
44204
- client.httpClient,
44205
- client.organizationId,
44206
- client.workspaceIdNumber,
44207
- data.custom_field_id,
44208
- data.payload ?? data.data ?? data,
44209
- void 0
44210
- ]));
44211
- }
44212
- },
44213
44123
  {
44214
44124
  id: "focus.custom-fields.update",
44215
44125
  family: "focus",
@@ -44356,7 +44266,13 @@ const generatedFocusOperations = [
44356
44266
  },
44357
44267
  mcp: { entityTool: "goals" },
44358
44268
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44269
+ billable: /* @__PURE__ */ boolean$1(),
44359
44270
  comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
44271
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44272
+ icon: /* @__PURE__ */ string$1(),
44273
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
44274
+ name: /* @__PURE__ */ string$1(),
44275
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44360
44276
  recurrence: /* @__PURE__ */ picklist$1([
44361
44277
  "daily",
44362
44278
  "weekly",
@@ -44364,18 +44280,12 @@ const generatedFocusOperations = [
44364
44280
  "monthly"
44365
44281
  ]),
44366
44282
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44283
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44367
44284
  target_seconds: /* @__PURE__ */ number$2(),
44368
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44285
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44286
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44369
44287
  client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44370
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44371
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44372
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44373
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
44374
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44375
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44376
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44377
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44378
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44288
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
44379
44289
  }) }),
44380
44290
  execute: (input, { client }) => {
44381
44291
  const data = input;
@@ -44481,6 +44391,13 @@ const generatedFocusOperations = [
44481
44391
  },
44482
44392
  mcp: { entityTool: "goals" },
44483
44393
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44394
+ billable: /* @__PURE__ */ boolean$1(),
44395
+ comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
44396
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44397
+ icon: /* @__PURE__ */ string$1(),
44398
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
44399
+ name: /* @__PURE__ */ string$1(),
44400
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44484
44401
  recurrence: /* @__PURE__ */ picklist$1([
44485
44402
  "daily",
44486
44403
  "weekly",
@@ -44488,19 +44405,12 @@ const generatedFocusOperations = [
44488
44405
  "monthly"
44489
44406
  ]),
44490
44407
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44491
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44408
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44409
+ target_seconds: /* @__PURE__ */ number$2(),
44410
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44411
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44492
44412
  client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44493
- comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["more_than", "less_than"])),
44494
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44495
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44496
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44497
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
44498
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44499
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44500
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44501
- target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44502
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44503
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44413
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
44504
44414
  }) }),
44505
44415
  execute: (input, { client }) => {
44506
44416
  const data = input;
@@ -46015,6 +45925,29 @@ const generatedFocusOperations = [
46015
45925
  ]));
46016
45926
  }
46017
45927
  },
45928
+ {
45929
+ id: "focus.projects.margin-targets-clear-workspace",
45930
+ family: "focus",
45931
+ resource: "projects",
45932
+ action: "margin-targets-clear-workspace",
45933
+ title: "Margin Targets Clear Workspace Projects",
45934
+ description: "Margin Targets Clear Workspace Projects.",
45935
+ safety: "delete",
45936
+ destructive: true,
45937
+ cli: {
45938
+ group: ["projects", "margin-targets"],
45939
+ command: "clear-workspace",
45940
+ interactive: "default"
45941
+ },
45942
+ mcp: { entityTool: "projects" },
45943
+ inputSchema: /* @__PURE__ */ looseObject({}),
45944
+ execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
45945
+ client.httpClient,
45946
+ client.organizationId,
45947
+ client.workspaceIdNumber,
45948
+ void 0
45949
+ ]))
45950
+ },
46018
45951
  {
46019
45952
  id: "focus.projects.margin-targets-get",
46020
45953
  family: "focus",
@@ -48417,7 +48350,7 @@ const generatedFocusOperations = [
48417
48350
  cli: {
48418
48351
  group: ["reportschedules"],
48419
48352
  command: "upsert-saved-view-schedule",
48420
- interactive: "hidden"
48353
+ interactive: "default"
48421
48354
  },
48422
48355
  mcp: { entityTool: "reportschedules" },
48423
48356
  inputSchema: /* @__PURE__ */ looseObject({
@@ -48428,10 +48361,8 @@ const generatedFocusOperations = [
48428
48361
  "weekly",
48429
48362
  "monthly"
48430
48363
  ]),
48431
- charts: /* @__PURE__ */ unknown$1(),
48432
48364
  time: /* @__PURE__ */ string$1(),
48433
48365
  day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48434
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
48435
48366
  recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
48436
48367
  recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
48437
48368
  recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
@@ -50446,8 +50377,7 @@ const generatedFocusOperations = [
50446
50377
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
50447
50378
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50448
50379
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50449
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50450
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
50380
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
50451
50381
  }),
50452
50382
  execute: (input, { client }) => {
50453
50383
  const data = input;
@@ -50504,8 +50434,7 @@ const generatedFocusOperations = [
50504
50434
  tag_id: /* @__PURE__ */ number$2(),
50505
50435
  team_id: /* @__PURE__ */ number$2(),
50506
50436
  user_cf_filter: /* @__PURE__ */ unknown$1(),
50507
- user_tag_id: /* @__PURE__ */ number$2(),
50508
- xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
50437
+ user_tag_id: /* @__PURE__ */ number$2()
50509
50438
  }),
50510
50439
  execute: (input, { client }) => {
50511
50440
  const data = input;
@@ -50561,8 +50490,7 @@ const generatedFocusOperations = [
50561
50490
  tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50562
50491
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50563
50492
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50564
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50565
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
50493
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
50566
50494
  }),
50567
50495
  execute: (input, { client }) => {
50568
50496
  const data = input;
@@ -51527,8 +51455,7 @@ const generatedFocusOperations = [
51527
51455
  required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
51528
51456
  "project",
51529
51457
  "task",
51530
- "description",
51531
- "tags"
51458
+ "description"
51532
51459
  ]) })),
51533
51460
  disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51534
51461
  }) }),
@@ -51731,7 +51658,6 @@ const generatedFocusOperations = [
51731
51658
  expand_calendar_event: /* @__PURE__ */ unknown$1(),
51732
51659
  include_taskless: /* @__PURE__ */ unknown$1(),
51733
51660
  order_by: /* @__PURE__ */ unknown$1(),
51734
- project_id: /* @__PURE__ */ number$2(),
51735
51661
  status_id: /* @__PURE__ */ number$2(),
51736
51662
  task_id: /* @__PURE__ */ number$2(),
51737
51663
  type: /* @__PURE__ */ unknown$1()
@@ -53349,9 +53275,6 @@ const generatedFocusOperations = [
53349
53275
  has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53350
53276
  import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53351
53277
  new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53352
- notify_project_alerts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53353
- notify_project_member_added: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53354
- notify_task_assigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53355
53278
  onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53356
53279
  onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53357
53280
  onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -54894,7 +54817,7 @@ function registerWorkspaceTools(server) {
54894
54817
  //#region src/package-version.ts
54895
54818
  function mcpPackageVersion() {
54896
54819
  try {
54897
- return "1.11.128";
54820
+ return "1.11.129";
54898
54821
  } catch {
54899
54822
  return "unknown";
54900
54823
  }
@@ -55069,7 +54992,7 @@ import_main.default.config({
55069
54992
  quiet: true,
55070
54993
  ignore: ["MISSING_ENV_FILE"]
55071
54994
  });
55072
- const packageVersion = "1.11.128";
54995
+ const packageVersion = "1.11.129";
55073
54996
  function resolvePublicUrls() {
55074
54997
  return {
55075
54998
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -55134,4 +55057,4 @@ function bootstrapServer(options = {}) {
55134
55057
  //#endregion
55135
55058
  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 };
55136
55059
 
55137
- //# sourceMappingURL=src-DQAiS5Vb.js.map
55060
+ //# sourceMappingURL=src-T2nUJMOU.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.11.128",
3
+ "version": "1.11.129",
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",