@togglhq/mcp 1.5.32 → 1.5.34

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 { n as runMcpCli } from "./src-CRCU5Uld.js";
2
+ import { n as runMcpCli } from "./src-CGvLAr3f.js";
3
3
  //#region src/cli.ts
4
4
  runMcpCli();
5
5
  //#endregion
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-CRCU5Uld.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-CGvLAr3f.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -30699,7 +30699,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
30699
30699
  ]))
30700
30700
  });
30701
30701
  //#endregion
30702
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
30702
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
30703
30703
  async function getInvitations(httpClient, signal) {
30704
30704
  return (await httpClient.get(`invitations`, { signal })).json();
30705
30705
  }
@@ -30716,7 +30716,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
30716
30716
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
30717
30717
  }
30718
30718
  //#endregion
30719
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/utils/requests.mjs
30719
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/org/utils/requests.mjs
30720
30720
  function buildSearchParams$1(params, flattenArrays = false) {
30721
30721
  const searchParams = new URLSearchParams();
30722
30722
  Object.entries(params).forEach(([key, value]) => {
@@ -30728,7 +30728,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
30728
30728
  return searchParams;
30729
30729
  }
30730
30730
  //#endregion
30731
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
30731
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
30732
30732
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
30733
30733
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
30734
30734
  }
@@ -30742,7 +30742,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
30742
30742
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
30743
30743
  }
30744
30744
  //#endregion
30745
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
30745
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
30746
30746
  async function getWorkspaces(httpClient, organization_id, signal) {
30747
30747
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
30748
30748
  }
@@ -30771,7 +30771,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
30771
30771
  });
30772
30772
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
30773
30773
  //#endregion
30774
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
30774
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
30775
30775
  const META_SYMBOL = Symbol.for("querygen:response:meta");
30776
30776
  function withResponseMeta(data, headers, status) {
30777
30777
  if (!data) return data;
@@ -30798,7 +30798,7 @@ function buildSearchParams(params, flattenArrays = false) {
30798
30798
  return searchParams;
30799
30799
  }
30800
30800
  //#endregion
30801
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
30801
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
30802
30802
  async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
30803
30803
  const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
30804
30804
  signal,
@@ -30807,12 +30807,12 @@ async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
30807
30807
  return withResponseMeta(await response.json(), response.headers, response.status);
30808
30808
  }
30809
30809
  //#endregion
30810
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
30810
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
30811
30811
  async function getStatus(httpClient, signal) {
30812
30812
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
30813
30813
  }
30814
30814
  //#endregion
30815
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
30815
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
30816
30816
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
30817
30817
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
30818
30818
  signal,
@@ -30840,7 +30840,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
30840
30840
  return response.json();
30841
30841
  }
30842
30842
  //#endregion
30843
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
30843
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
30844
30844
  async function getMyWorkingHours(httpClient, organization_id, signal) {
30845
30845
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
30846
30846
  }
@@ -34913,8 +34913,11 @@ async function addTimesheetSetupMember(httpClient, organization_id, workspace_id
34913
34913
  async function deleteTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
34914
34914
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}`, { signal }).json();
34915
34915
  }
34916
- async function discontinueTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
34917
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/discontinue`, { signal }).json();
34916
+ async function discontinueTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, data, signal) {
34917
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/discontinue`, {
34918
+ signal,
34919
+ json: data
34920
+ }).json();
34918
34921
  }
34919
34922
  async function reactivateTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
34920
34923
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/reactivate`, { signal }).json();
@@ -43584,6 +43587,7 @@ const generatedFocusOperations = [
43584
43587
  },
43585
43588
  mcp: { entityTool: "timesheets" },
43586
43589
  inputSchema: /* @__PURE__ */ looseObject({
43590
+ payload: /* @__PURE__ */ looseObject({ end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())) }),
43587
43591
  setup_id: /* @__PURE__ */ number$2(),
43588
43592
  user_account_id: /* @__PURE__ */ number$2()
43589
43593
  }),
@@ -43595,6 +43599,7 @@ const generatedFocusOperations = [
43595
43599
  client.workspaceIdNumber,
43596
43600
  data.setup_id,
43597
43601
  data.user_account_id,
43602
+ data.payload ?? data.data ?? data,
43598
43603
  void 0
43599
43604
  ]));
43600
43605
  }
@@ -45626,7 +45631,7 @@ import_main.default.config({
45626
45631
  quiet: true,
45627
45632
  ignore: ["MISSING_ENV_FILE"]
45628
45633
  });
45629
- const packageVersion = "1.5.32";
45634
+ const packageVersion = "1.5.34";
45630
45635
  function resolvePublicUrls() {
45631
45636
  return {
45632
45637
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -45691,4 +45696,4 @@ function bootstrapServer(options = {}) {
45691
45696
  //#endregion
45692
45697
  export { runMcpCli as n, bootstrapServer as t };
45693
45698
 
45694
- //# sourceMappingURL=src-CRCU5Uld.js.map
45699
+ //# sourceMappingURL=src-CGvLAr3f.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.5.32",
3
+ "version": "1.5.34",
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",