@togglhq/mcp 1.13.309 → 1.13.310

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-DUycp9SJ.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.310";
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-DUycp9SJ.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -38703,7 +38703,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38703
38703
  ]))
38704
38704
  });
38705
38705
  //#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
38706
+ //#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
38707
  async function getInvitations(httpClient, signal) {
38708
38708
  return (await httpClient.get(`invitations`, { signal })).json();
38709
38709
  }
@@ -38720,7 +38720,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38720
38720
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38721
38721
  }
38722
38722
  //#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
38723
+ //#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
38724
  function buildSearchParams(params, flattenArrays = false) {
38725
38725
  const searchParams = new URLSearchParams();
38726
38726
  Object.entries(params).forEach(([key, value]) => {
@@ -38732,7 +38732,7 @@ function buildSearchParams(params, flattenArrays = false) {
38732
38732
  return searchParams;
38733
38733
  }
38734
38734
  //#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
38735
+ //#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
38736
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38737
38737
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38738
38738
  }
@@ -38747,7 +38747,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38747
38747
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38748
38748
  }
38749
38749
  //#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
38750
+ //#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
38751
  async function getWorkspaces(httpClient, organization_id, signal) {
38752
38752
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38753
38753
  }
@@ -38767,7 +38767,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38767
38767
  });
38768
38768
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38769
38769
  //#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
38770
+ //#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
38771
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38772
38772
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38773
38773
  signal,
@@ -38778,12 +38778,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38778
38778
  })).json();
38779
38779
  }
38780
38780
  //#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
38781
+ //#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
38782
  async function getStatus(httpClient, signal) {
38783
38783
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38784
38784
  }
38785
38785
  //#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
38786
+ //#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
38787
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38788
38788
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38789
38789
  signal,
@@ -38811,7 +38811,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38811
38811
  return response.json();
38812
38812
  }
38813
38813
  //#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
38814
+ //#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
38815
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38816
38816
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38817
38817
  }
@@ -43109,6 +43109,12 @@ async function attachAiTurn(httpClient, organization_id, workspace_id, conversat
43109
43109
  if ([204, 205].includes(response.status)) return null;
43110
43110
  return response.json();
43111
43111
  }
43112
+ async function dayRebuildDecide(httpClient, organization_id, workspace_id, data, signal) {
43113
+ return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/decide`, {
43114
+ signal,
43115
+ json: data
43116
+ })).json();
43117
+ }
43112
43118
  async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
43113
43119
  return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
43114
43120
  signal,
@@ -43497,11 +43503,12 @@ async function deleteBillableRateById(httpClient, organization_id, workspace_id,
43497
43503
  if ([204, 205].includes(response.status)) return null;
43498
43504
  return response.json();
43499
43505
  }
43500
- async function getAllWorkspaceUserBillableRates(httpClient, organization_id, workspace_id, { user_id, order_by } = {}, signal) {
43506
+ async function getAllWorkspaceUserBillableRates(httpClient, organization_id, workspace_id, { user_id, date, order_by } = {}, signal) {
43501
43507
  return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates`, {
43502
43508
  signal,
43503
43509
  searchParams: buildSearchParams$2({
43504
43510
  user_id,
43511
+ date,
43505
43512
  order_by
43506
43513
  })
43507
43514
  })).json();
@@ -44008,11 +44015,12 @@ async function deleteLaborCostRateById(httpClient, organization_id, workspace_id
44008
44015
  if ([204, 205].includes(response.status)) return null;
44009
44016
  return response.json();
44010
44017
  }
44011
- async function getAllWorkspaceUserLaborCostRates(httpClient, organization_id, workspace_id, { user_id, order_by } = {}, signal) {
44018
+ async function getAllWorkspaceUserLaborCostRates(httpClient, organization_id, workspace_id, { user_id, date, order_by } = {}, signal) {
44012
44019
  return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates`, {
44013
44020
  signal,
44014
44021
  searchParams: buildSearchParams$2({
44015
44022
  user_id,
44023
+ date,
44016
44024
  order_by
44017
44025
  })
44018
44026
  })).json();
@@ -45501,6 +45509,36 @@ const generatedFocusOperations = [
45501
45509
  ]));
45502
45510
  }
45503
45511
  },
45512
+ {
45513
+ id: "focus.ai.day-rebuild-decide",
45514
+ family: "focus",
45515
+ resource: "ai",
45516
+ action: "day-rebuild-decide",
45517
+ title: "Day Rebuild Decide Ai",
45518
+ description: "Day Rebuild Decide Ai.",
45519
+ safety: "update",
45520
+ destructive: false,
45521
+ cli: {
45522
+ group: ["ai"],
45523
+ command: "day-rebuild-decide",
45524
+ interactive: "hidden"
45525
+ },
45526
+ mcp: { entityTool: "ai" },
45527
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
45528
+ evidence: /* @__PURE__ */ unknown$1(),
45529
+ same_for: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ string$1()))
45530
+ }) }),
45531
+ execute: (input, { client }) => {
45532
+ const data = input;
45533
+ return client.runGeneratedRequest("dayRebuildDecide", () => callGeneratedRequest(dayRebuildDecide, [
45534
+ client.httpClient,
45535
+ client.organizationId,
45536
+ client.workspaceIdNumber,
45537
+ data.payload ?? data.data ?? data,
45538
+ void 0
45539
+ ]));
45540
+ }
45541
+ },
45504
45542
  {
45505
45543
  id: "focus.ai.day-rebuild-group",
45506
45544
  family: "focus",
@@ -51808,6 +51846,7 @@ const generatedFocusOperations = [
51808
51846
  },
51809
51847
  mcp: { entityTool: "rates" },
51810
51848
  inputSchema: /* @__PURE__ */ looseObject({
51849
+ date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51811
51850
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51812
51851
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51813
51852
  }),
@@ -52988,6 +53027,7 @@ const generatedFocusOperations = [
52988
53027
  },
52989
53028
  mcp: { entityTool: "rates" },
52990
53029
  inputSchema: /* @__PURE__ */ looseObject({
53030
+ date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
52991
53031
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
52992
53032
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
52993
53033
  }),
@@ -61699,7 +61739,7 @@ function registerWorkspaceTools(server) {
61699
61739
  //#region src/package-version.ts
61700
61740
  function mcpPackageVersion() {
61701
61741
  try {
61702
- return "1.13.309";
61742
+ return "1.13.310";
61703
61743
  } catch {
61704
61744
  return "unknown";
61705
61745
  }
@@ -61881,7 +61921,7 @@ import_main.default.config({
61881
61921
  quiet: true,
61882
61922
  ignore: ["MISSING_ENV_FILE"]
61883
61923
  });
61884
- const packageVersion = "1.13.309";
61924
+ const packageVersion = "1.13.310";
61885
61925
  const MCP_CACHE_TTL_MS = 300 * 1e3;
61886
61926
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
61887
61927
  function resolvePublicUrls() {
@@ -62001,4 +62041,4 @@ function bootstrapServer(options = {}) {
62001
62041
  //#endregion
62002
62042
  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
62043
 
62004
- //# sourceMappingURL=src-BRnoTZNc.js.map
62044
+ //# sourceMappingURL=src-DUycp9SJ.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.310",
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",