@togglhq/mcp 1.13.336 → 1.13.337

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-DvFskCJl.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-D8sC9nJh.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.336";
165
+ const packageVersion = "1.13.337";
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-DvFskCJl.js";
2
+ import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-D8sC9nJh.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -38719,7 +38719,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38719
38719
  ]))
38720
38720
  });
38721
38721
  //#endregion
38722
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.412_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_163fc9da291eeed894dff9ae699e8e8b/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38722
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.413_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8555bdfc4fd3cfd15960341ca91d3fbc/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38723
38723
  async function getInvitations(httpClient, signal) {
38724
38724
  return (await httpClient.get(`invitations`, { signal })).json();
38725
38725
  }
@@ -38736,7 +38736,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38736
38736
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38737
38737
  }
38738
38738
  //#endregion
38739
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.412_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_163fc9da291eeed894dff9ae699e8e8b/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38739
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.413_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8555bdfc4fd3cfd15960341ca91d3fbc/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38740
38740
  function buildSearchParams(params, flattenArrays = false) {
38741
38741
  const searchParams = new URLSearchParams();
38742
38742
  Object.entries(params).forEach(([key, value]) => {
@@ -38748,7 +38748,7 @@ function buildSearchParams(params, flattenArrays = false) {
38748
38748
  return searchParams;
38749
38749
  }
38750
38750
  //#endregion
38751
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.412_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_163fc9da291eeed894dff9ae699e8e8b/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38751
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.413_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8555bdfc4fd3cfd15960341ca91d3fbc/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38752
38752
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38753
38753
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38754
38754
  }
@@ -38763,7 +38763,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38763
38763
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38764
38764
  }
38765
38765
  //#endregion
38766
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.412_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_163fc9da291eeed894dff9ae699e8e8b/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38766
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.413_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8555bdfc4fd3cfd15960341ca91d3fbc/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38767
38767
  async function getWorkspaces(httpClient, organization_id, signal) {
38768
38768
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38769
38769
  }
@@ -38783,7 +38783,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38783
38783
  });
38784
38784
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38785
38785
  //#endregion
38786
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.412_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_163fc9da291eeed894dff9ae699e8e8b/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38786
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.413_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8555bdfc4fd3cfd15960341ca91d3fbc/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38787
38787
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38788
38788
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38789
38789
  signal,
@@ -38794,12 +38794,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38794
38794
  })).json();
38795
38795
  }
38796
38796
  //#endregion
38797
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.412_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_163fc9da291eeed894dff9ae699e8e8b/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38797
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.413_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8555bdfc4fd3cfd15960341ca91d3fbc/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38798
38798
  async function getStatus(httpClient, signal) {
38799
38799
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38800
38800
  }
38801
38801
  //#endregion
38802
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.412_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_163fc9da291eeed894dff9ae699e8e8b/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38802
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.413_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8555bdfc4fd3cfd15960341ca91d3fbc/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38803
38803
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38804
38804
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38805
38805
  signal,
@@ -38827,7 +38827,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38827
38827
  return response.json();
38828
38828
  }
38829
38829
  //#endregion
38830
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.412_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_163fc9da291eeed894dff9ae699e8e8b/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38830
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.413_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8555bdfc4fd3cfd15960341ca91d3fbc/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38831
38831
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38832
38832
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38833
38833
  }
@@ -43152,6 +43152,14 @@ async function dayRebuildName(httpClient, organization_id, workspace_id, data, s
43152
43152
  json: data
43153
43153
  })).json();
43154
43154
  }
43155
+ async function dayRebuildSaveOutcomes(httpClient, organization_id, workspace_id, data, signal) {
43156
+ const response = await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/outcomes`, {
43157
+ signal,
43158
+ json: data
43159
+ });
43160
+ if ([204, 205].includes(response.status)) return null;
43161
+ return response.json();
43162
+ }
43155
43163
  async function dayRebuildProjectHints(httpClient, organization_id, workspace_id, data, signal) {
43156
43164
  return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/project-hints`, {
43157
43165
  signal,
@@ -45829,6 +45837,76 @@ const generatedFocusOperations = [
45829
45837
  ]));
45830
45838
  }
45831
45839
  },
45840
+ {
45841
+ id: "focus.ai.day-rebuild-save-outcomes",
45842
+ family: "focus",
45843
+ resource: "ai",
45844
+ action: "day-rebuild-save-outcomes",
45845
+ title: "Day Rebuild Save Outcomes Ai",
45846
+ description: "Day Rebuild Save Outcomes Ai.",
45847
+ safety: "update",
45848
+ destructive: false,
45849
+ cli: {
45850
+ group: ["ai"],
45851
+ command: "day-rebuild-save-outcomes",
45852
+ interactive: "default"
45853
+ },
45854
+ mcp: { entityTool: "ai" },
45855
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
45856
+ app_version: /* @__PURE__ */ string$1(),
45857
+ drafts: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
45858
+ client_uuid: /* @__PURE__ */ string$1(),
45859
+ day: /* @__PURE__ */ string$1(),
45860
+ description: /* @__PURE__ */ picklist$1([
45861
+ "same",
45862
+ "edited",
45863
+ "unknown"
45864
+ ]),
45865
+ minutes: /* @__PURE__ */ number$2(),
45866
+ personal: /* @__PURE__ */ boolean$1(),
45867
+ project: /* @__PURE__ */ picklist$1([
45868
+ "same",
45869
+ "edited",
45870
+ "unknown"
45871
+ ]),
45872
+ split: /* @__PURE__ */ boolean$1(),
45873
+ status: /* @__PURE__ */ picklist$1([
45874
+ "open",
45875
+ "logged",
45876
+ "dismissed",
45877
+ "merged",
45878
+ "covered",
45879
+ "removed",
45880
+ "skipped",
45881
+ "expired",
45882
+ "replaced"
45883
+ ]),
45884
+ time: /* @__PURE__ */ picklist$1([
45885
+ "same",
45886
+ "edited",
45887
+ "unknown"
45888
+ ]),
45889
+ approach: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["group", "decide"])),
45890
+ made_at: /* @__PURE__ */ optional$1(apiDateTimeString),
45891
+ run_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
45892
+ })),
45893
+ os: /* @__PURE__ */ picklist$1([
45894
+ "mac",
45895
+ "windows",
45896
+ "linux"
45897
+ ])
45898
+ }) }),
45899
+ execute: (input, { client }) => {
45900
+ const data = input;
45901
+ return client.runGeneratedRequest("dayRebuildSaveOutcomes", () => callGeneratedRequest(dayRebuildSaveOutcomes, [
45902
+ client.httpClient,
45903
+ client.organizationId,
45904
+ client.workspaceIdNumber,
45905
+ data.payload ?? data.data ?? data,
45906
+ void 0
45907
+ ]));
45908
+ }
45909
+ },
45832
45910
  {
45833
45911
  id: "focus.ai.day-rebuild-save-review",
45834
45912
  family: "focus",
@@ -62021,7 +62099,7 @@ function registerWorkspaceTools(server) {
62021
62099
  //#region src/package-version.ts
62022
62100
  function mcpPackageVersion() {
62023
62101
  try {
62024
- return "1.13.336";
62102
+ return "1.13.337";
62025
62103
  } catch {
62026
62104
  return "unknown";
62027
62105
  }
@@ -62203,7 +62281,7 @@ import_main.default.config({
62203
62281
  quiet: true,
62204
62282
  ignore: ["MISSING_ENV_FILE"]
62205
62283
  });
62206
- const packageVersion = "1.13.336";
62284
+ const packageVersion = "1.13.337";
62207
62285
  const MCP_CACHE_TTL_MS = 300 * 1e3;
62208
62286
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
62209
62287
  function resolvePublicUrls() {
@@ -62323,4 +62401,4 @@ function bootstrapServer(options = {}) {
62323
62401
  //#endregion
62324
62402
  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 };
62325
62403
 
62326
- //# sourceMappingURL=src-DvFskCJl.js.map
62404
+ //# sourceMappingURL=src-D8sC9nJh.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.13.336",
3
+ "version": "1.13.337",
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",