@togglhq/mcp 1.13.308 → 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-7wUjFz96.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.308";
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-7wUjFz96.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,
@@ -43185,6 +43191,9 @@ async function runAiView(httpClient, organization_id, workspace_id, data, produc
43185
43191
  }
43186
43192
  //#endregion
43187
43193
  //#region ../focus-queries/dist/archival/requests.ts
43194
+ async function getItemArchivalStatus(httpClient, organization_id, workspace_id, entity_kind, entity_id, signal) {
43195
+ return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archival/status/${entity_kind}/${entity_id}`, { signal })).json();
43196
+ }
43188
43197
  async function getUpcomingArchivalGroupsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page } = {}, signal) {
43189
43198
  return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archival/upcoming`, {
43190
43199
  signal,
@@ -43494,11 +43503,12 @@ async function deleteBillableRateById(httpClient, organization_id, workspace_id,
43494
43503
  if ([204, 205].includes(response.status)) return null;
43495
43504
  return response.json();
43496
43505
  }
43497
- 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) {
43498
43507
  return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates`, {
43499
43508
  signal,
43500
43509
  searchParams: buildSearchParams$2({
43501
43510
  user_id,
43511
+ date,
43502
43512
  order_by
43503
43513
  })
43504
43514
  })).json();
@@ -44005,11 +44015,12 @@ async function deleteLaborCostRateById(httpClient, organization_id, workspace_id
44005
44015
  if ([204, 205].includes(response.status)) return null;
44006
44016
  return response.json();
44007
44017
  }
44008
- 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) {
44009
44019
  return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates`, {
44010
44020
  signal,
44011
44021
  searchParams: buildSearchParams$2({
44012
44022
  user_id,
44023
+ date,
44013
44024
  order_by
44014
44025
  })
44015
44026
  })).json();
@@ -45498,6 +45509,36 @@ const generatedFocusOperations = [
45498
45509
  ]));
45499
45510
  }
45500
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
+ },
45501
45542
  {
45502
45543
  id: "focus.ai.day-rebuild-group",
45503
45544
  family: "focus",
@@ -46562,6 +46603,42 @@ const generatedFocusOperations = [
46562
46603
  return client.partialUpdateAlert(data.alert_id, data.payload ?? data.data ?? data);
46563
46604
  }
46564
46605
  },
46606
+ {
46607
+ id: "focus.archival.get-item-archival-status",
46608
+ family: "focus",
46609
+ resource: "archival",
46610
+ action: "get-item-archival-status",
46611
+ title: "Get Item Archival Status Archival",
46612
+ description: "Get Item Archival Status Archival.",
46613
+ safety: "read",
46614
+ destructive: false,
46615
+ cli: {
46616
+ group: ["archival"],
46617
+ command: "get-item-archival-status",
46618
+ interactive: "available"
46619
+ },
46620
+ mcp: { entityTool: "archival" },
46621
+ inputSchema: /* @__PURE__ */ looseObject({
46622
+ entity_id: /* @__PURE__ */ number$2(),
46623
+ entity_kind: /* @__PURE__ */ picklist$1([
46624
+ "client",
46625
+ "project",
46626
+ "task",
46627
+ "time_entry"
46628
+ ])
46629
+ }),
46630
+ execute: (input, { client }) => {
46631
+ const data = input;
46632
+ return client.runGeneratedRequest("getItemArchivalStatus", () => callGeneratedRequest(getItemArchivalStatus, [
46633
+ client.httpClient,
46634
+ client.organizationId,
46635
+ client.workspaceIdNumber,
46636
+ data.entity_kind,
46637
+ data.entity_id,
46638
+ void 0
46639
+ ]));
46640
+ }
46641
+ },
46565
46642
  {
46566
46643
  id: "focus.archival.get-upcoming-archival-groups",
46567
46644
  family: "focus",
@@ -51769,6 +51846,7 @@ const generatedFocusOperations = [
51769
51846
  },
51770
51847
  mcp: { entityTool: "rates" },
51771
51848
  inputSchema: /* @__PURE__ */ looseObject({
51849
+ date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51772
51850
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51773
51851
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51774
51852
  }),
@@ -52949,6 +53027,7 @@ const generatedFocusOperations = [
52949
53027
  },
52950
53028
  mcp: { entityTool: "rates" },
52951
53029
  inputSchema: /* @__PURE__ */ looseObject({
53030
+ date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
52952
53031
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
52953
53032
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
52954
53033
  }),
@@ -61660,7 +61739,7 @@ function registerWorkspaceTools(server) {
61660
61739
  //#region src/package-version.ts
61661
61740
  function mcpPackageVersion() {
61662
61741
  try {
61663
- return "1.13.308";
61742
+ return "1.13.310";
61664
61743
  } catch {
61665
61744
  return "unknown";
61666
61745
  }
@@ -61842,7 +61921,7 @@ import_main.default.config({
61842
61921
  quiet: true,
61843
61922
  ignore: ["MISSING_ENV_FILE"]
61844
61923
  });
61845
- const packageVersion = "1.13.308";
61924
+ const packageVersion = "1.13.310";
61846
61925
  const MCP_CACHE_TTL_MS = 300 * 1e3;
61847
61926
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
61848
61927
  function resolvePublicUrls() {
@@ -61962,4 +62041,4 @@ function bootstrapServer(options = {}) {
61962
62041
  //#endregion
61963
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 };
61964
62043
 
61965
- //# sourceMappingURL=src-7wUjFz96.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.308",
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",