@togglhq/mcp 1.13.309 → 1.13.311

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 PUBLIC_SENTRY_PRIVACY_OPTIONS, c as initProductAnalytics, d as shutdownProductAnalytics, i as runMcpCli, l as resolveProductAnalyticsDistinctId, o as captureToolInvocation, s as getProductAnalyticsDistinctId, u as resolvePublicSentryDsn } from "./src-BRnoTZNc.js";
2
+ import { a as PUBLIC_SENTRY_PRIVACY_OPTIONS, c as initProductAnalytics, d as shutdownProductAnalytics, i as runMcpCli, l as resolveProductAnalyticsDistinctId, o as captureToolInvocation, s as getProductAnalyticsDistinctId, u as resolvePublicSentryDsn } from "./src-CDvKVkav.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.13.309";
165
+ const packageVersion = "1.13.311";
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 { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-BRnoTZNc.js";
2
+ import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-CDvKVkav.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -34831,6 +34831,7 @@ const TaskSchema = /* @__PURE__ */ object({
34831
34831
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34832
34832
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
34833
34833
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
34834
+ external_reference: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
34834
34835
  is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
34835
34836
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
34836
34837
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
@@ -34890,6 +34891,7 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
34890
34891
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34891
34892
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
34892
34893
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
34894
+ external_reference: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
34893
34895
  is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
34894
34896
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
34895
34897
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
@@ -35226,6 +35228,7 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
35226
35228
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35227
35229
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
35228
35230
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35231
+ external_reference: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
35229
35232
  is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
35230
35233
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
35231
35234
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
@@ -38703,7 +38706,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38703
38706
  ]))
38704
38707
  });
38705
38708
  //#endregion
38706
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.392_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_1b02c5bcdc6f34f43d006f0262a16104/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38709
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.394_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8b286bd24a2102f5bbea603278cf946/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38707
38710
  async function getInvitations(httpClient, signal) {
38708
38711
  return (await httpClient.get(`invitations`, { signal })).json();
38709
38712
  }
@@ -38720,7 +38723,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38720
38723
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38721
38724
  }
38722
38725
  //#endregion
38723
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.392_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_1b02c5bcdc6f34f43d006f0262a16104/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38726
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.394_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8b286bd24a2102f5bbea603278cf946/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38724
38727
  function buildSearchParams(params, flattenArrays = false) {
38725
38728
  const searchParams = new URLSearchParams();
38726
38729
  Object.entries(params).forEach(([key, value]) => {
@@ -38732,7 +38735,7 @@ function buildSearchParams(params, flattenArrays = false) {
38732
38735
  return searchParams;
38733
38736
  }
38734
38737
  //#endregion
38735
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.392_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_1b02c5bcdc6f34f43d006f0262a16104/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38738
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.394_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8b286bd24a2102f5bbea603278cf946/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38736
38739
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38737
38740
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38738
38741
  }
@@ -38747,7 +38750,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38747
38750
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38748
38751
  }
38749
38752
  //#endregion
38750
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.392_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_1b02c5bcdc6f34f43d006f0262a16104/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38753
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.394_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8b286bd24a2102f5bbea603278cf946/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38751
38754
  async function getWorkspaces(httpClient, organization_id, signal) {
38752
38755
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38753
38756
  }
@@ -38767,7 +38770,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38767
38770
  });
38768
38771
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38769
38772
  //#endregion
38770
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.392_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_1b02c5bcdc6f34f43d006f0262a16104/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38773
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.394_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8b286bd24a2102f5bbea603278cf946/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38771
38774
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38772
38775
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38773
38776
  signal,
@@ -38778,12 +38781,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38778
38781
  })).json();
38779
38782
  }
38780
38783
  //#endregion
38781
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.392_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_1b02c5bcdc6f34f43d006f0262a16104/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38784
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.394_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8b286bd24a2102f5bbea603278cf946/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38782
38785
  async function getStatus(httpClient, signal) {
38783
38786
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38784
38787
  }
38785
38788
  //#endregion
38786
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.392_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_1b02c5bcdc6f34f43d006f0262a16104/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38789
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.394_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8b286bd24a2102f5bbea603278cf946/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38787
38790
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38788
38791
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38789
38792
  signal,
@@ -38811,7 +38814,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38811
38814
  return response.json();
38812
38815
  }
38813
38816
  //#endregion
38814
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.392_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_1b02c5bcdc6f34f43d006f0262a16104/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38817
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.394_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b8b286bd24a2102f5bbea603278cf946/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38815
38818
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38816
38819
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38817
38820
  }
@@ -43109,6 +43112,12 @@ async function attachAiTurn(httpClient, organization_id, workspace_id, conversat
43109
43112
  if ([204, 205].includes(response.status)) return null;
43110
43113
  return response.json();
43111
43114
  }
43115
+ async function dayRebuildDecide(httpClient, organization_id, workspace_id, data, signal) {
43116
+ return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/decide`, {
43117
+ signal,
43118
+ json: data
43119
+ })).json();
43120
+ }
43112
43121
  async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
43113
43122
  return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
43114
43123
  signal,
@@ -43497,11 +43506,12 @@ async function deleteBillableRateById(httpClient, organization_id, workspace_id,
43497
43506
  if ([204, 205].includes(response.status)) return null;
43498
43507
  return response.json();
43499
43508
  }
43500
- async function getAllWorkspaceUserBillableRates(httpClient, organization_id, workspace_id, { user_id, order_by } = {}, signal) {
43509
+ async function getAllWorkspaceUserBillableRates(httpClient, organization_id, workspace_id, { user_id, date, order_by } = {}, signal) {
43501
43510
  return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates`, {
43502
43511
  signal,
43503
43512
  searchParams: buildSearchParams$2({
43504
43513
  user_id,
43514
+ date,
43505
43515
  order_by
43506
43516
  })
43507
43517
  })).json();
@@ -44008,11 +44018,12 @@ async function deleteLaborCostRateById(httpClient, organization_id, workspace_id
44008
44018
  if ([204, 205].includes(response.status)) return null;
44009
44019
  return response.json();
44010
44020
  }
44011
- async function getAllWorkspaceUserLaborCostRates(httpClient, organization_id, workspace_id, { user_id, order_by } = {}, signal) {
44021
+ async function getAllWorkspaceUserLaborCostRates(httpClient, organization_id, workspace_id, { user_id, date, order_by } = {}, signal) {
44012
44022
  return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates`, {
44013
44023
  signal,
44014
44024
  searchParams: buildSearchParams$2({
44015
44025
  user_id,
44026
+ date,
44016
44027
  order_by
44017
44028
  })
44018
44029
  })).json();
@@ -45501,6 +45512,36 @@ const generatedFocusOperations = [
45501
45512
  ]));
45502
45513
  }
45503
45514
  },
45515
+ {
45516
+ id: "focus.ai.day-rebuild-decide",
45517
+ family: "focus",
45518
+ resource: "ai",
45519
+ action: "day-rebuild-decide",
45520
+ title: "Day Rebuild Decide Ai",
45521
+ description: "Day Rebuild Decide Ai.",
45522
+ safety: "update",
45523
+ destructive: false,
45524
+ cli: {
45525
+ group: ["ai"],
45526
+ command: "day-rebuild-decide",
45527
+ interactive: "hidden"
45528
+ },
45529
+ mcp: { entityTool: "ai" },
45530
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
45531
+ evidence: /* @__PURE__ */ unknown$1(),
45532
+ same_for: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ string$1()))
45533
+ }) }),
45534
+ execute: (input, { client }) => {
45535
+ const data = input;
45536
+ return client.runGeneratedRequest("dayRebuildDecide", () => callGeneratedRequest(dayRebuildDecide, [
45537
+ client.httpClient,
45538
+ client.organizationId,
45539
+ client.workspaceIdNumber,
45540
+ data.payload ?? data.data ?? data,
45541
+ void 0
45542
+ ]));
45543
+ }
45544
+ },
45504
45545
  {
45505
45546
  id: "focus.ai.day-rebuild-group",
45506
45547
  family: "focus",
@@ -51808,6 +51849,7 @@ const generatedFocusOperations = [
51808
51849
  },
51809
51850
  mcp: { entityTool: "rates" },
51810
51851
  inputSchema: /* @__PURE__ */ looseObject({
51852
+ date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51811
51853
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51812
51854
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51813
51855
  }),
@@ -52988,6 +53030,7 @@ const generatedFocusOperations = [
52988
53030
  },
52989
53031
  mcp: { entityTool: "rates" },
52990
53032
  inputSchema: /* @__PURE__ */ looseObject({
53033
+ date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
52991
53034
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
52992
53035
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
52993
53036
  }),
@@ -61699,7 +61742,7 @@ function registerWorkspaceTools(server) {
61699
61742
  //#region src/package-version.ts
61700
61743
  function mcpPackageVersion() {
61701
61744
  try {
61702
- return "1.13.309";
61745
+ return "1.13.311";
61703
61746
  } catch {
61704
61747
  return "unknown";
61705
61748
  }
@@ -61881,7 +61924,7 @@ import_main.default.config({
61881
61924
  quiet: true,
61882
61925
  ignore: ["MISSING_ENV_FILE"]
61883
61926
  });
61884
- const packageVersion = "1.13.309";
61927
+ const packageVersion = "1.13.311";
61885
61928
  const MCP_CACHE_TTL_MS = 300 * 1e3;
61886
61929
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
61887
61930
  function resolvePublicUrls() {
@@ -62001,4 +62044,4 @@ function bootstrapServer(options = {}) {
62001
62044
  //#endregion
62002
62045
  export { PUBLIC_SENTRY_PRIVACY_OPTIONS as a, initProductAnalytics as c, shutdownProductAnalytics as d, runMcpCli as i, resolveProductAnalyticsDistinctId as l, MCP_MAX_TOOL_INPUT_ELEMENTS as n, captureToolInvocation as o, bootstrapServer as r, getProductAnalyticsDistinctId as s, MCP_CACHE_TTL_MS as t, resolvePublicSentryDsn as u };
62003
62046
 
62004
- //# sourceMappingURL=src-BRnoTZNc.js.map
62047
+ //# sourceMappingURL=src-CDvKVkav.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.13.309",
3
+ "version": "1.13.311",
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",