@togglhq/mcp 1.5.57 → 1.5.59

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-btBLZS-x.js";
2
+ import { n as runMcpCli } from "./src-0Yjy1NfE.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-btBLZS-x.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-0Yjy1NfE.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -30729,7 +30729,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
30729
30729
  ]))
30730
30730
  });
30731
30731
  //#endregion
30732
- //#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
30732
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
30733
30733
  async function getInvitations(httpClient, signal) {
30734
30734
  return (await httpClient.get(`invitations`, { signal })).json();
30735
30735
  }
@@ -30746,7 +30746,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
30746
30746
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
30747
30747
  }
30748
30748
  //#endregion
30749
- //#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
30749
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/utils/requests.mjs
30750
30750
  function buildSearchParams$1(params, flattenArrays = false) {
30751
30751
  const searchParams = new URLSearchParams();
30752
30752
  Object.entries(params).forEach(([key, value]) => {
@@ -30758,7 +30758,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
30758
30758
  return searchParams;
30759
30759
  }
30760
30760
  //#endregion
30761
- //#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
30761
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
30762
30762
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
30763
30763
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
30764
30764
  }
@@ -30772,7 +30772,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
30772
30772
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
30773
30773
  }
30774
30774
  //#endregion
30775
- //#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
30775
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
30776
30776
  async function getWorkspaces(httpClient, organization_id, signal) {
30777
30777
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
30778
30778
  }
@@ -30801,7 +30801,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
30801
30801
  });
30802
30802
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
30803
30803
  //#endregion
30804
- //#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
30804
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
30805
30805
  const META_SYMBOL = Symbol.for("querygen:response:meta");
30806
30806
  function withResponseMeta(data, headers, status) {
30807
30807
  if (!data) return data;
@@ -30828,7 +30828,7 @@ function buildSearchParams(params, flattenArrays = false) {
30828
30828
  return searchParams;
30829
30829
  }
30830
30830
  //#endregion
30831
- //#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
30831
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
30832
30832
  async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
30833
30833
  const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
30834
30834
  signal,
@@ -30837,12 +30837,12 @@ async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
30837
30837
  return withResponseMeta(await response.json(), response.headers, response.status);
30838
30838
  }
30839
30839
  //#endregion
30840
- //#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
30840
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
30841
30841
  async function getStatus(httpClient, signal) {
30842
30842
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
30843
30843
  }
30844
30844
  //#endregion
30845
- //#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
30845
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
30846
30846
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
30847
30847
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
30848
30848
  signal,
@@ -30870,7 +30870,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
30870
30870
  return response.json();
30871
30871
  }
30872
30872
  //#endregion
30873
- //#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
30873
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
30874
30874
  async function getMyWorkingHours(httpClient, organization_id, signal) {
30875
30875
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
30876
30876
  }
@@ -35009,6 +35009,12 @@ async function bulkRequestChangesTimesheets(httpClient, organization_id, workspa
35009
35009
  json: data
35010
35010
  }).json();
35011
35011
  }
35012
+ async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id, data, signal) {
35013
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/withdraw`, {
35014
+ signal,
35015
+ json: data
35016
+ }).json();
35017
+ }
35012
35018
  async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
35013
35019
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal }).json();
35014
35020
  }
@@ -43306,6 +43312,37 @@ const generatedFocusOperations = [
43306
43312
  ]));
43307
43313
  }
43308
43314
  },
43315
+ {
43316
+ id: "focus.timesheets.bulk-withdraw",
43317
+ family: "focus",
43318
+ resource: "timesheets",
43319
+ action: "bulk-withdraw",
43320
+ title: "Bulk Withdraw Timesheets",
43321
+ description: "Bulk Withdraw Timesheets.",
43322
+ safety: "read",
43323
+ destructive: false,
43324
+ cli: {
43325
+ group: ["timesheets", "bulk"],
43326
+ command: "withdraw",
43327
+ interactive: "available"
43328
+ },
43329
+ mcp: { entityTool: "timesheets" },
43330
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ keys: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
43331
+ setup_id: /* @__PURE__ */ number$2(),
43332
+ start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
43333
+ user_account_id: /* @__PURE__ */ number$2()
43334
+ })) }) }),
43335
+ execute: (input, { client }) => {
43336
+ const data = input;
43337
+ return client.runGeneratedRequest("bulkWithdrawTimesheets", () => callGeneratedRequest(bulkWithdrawTimesheets, [
43338
+ client.httpClient,
43339
+ client.organizationId,
43340
+ client.workspaceIdNumber,
43341
+ data.payload ?? data.data ?? data,
43342
+ void 0
43343
+ ]));
43344
+ }
43345
+ },
43309
43346
  {
43310
43347
  id: "focus.timesheets.get",
43311
43348
  family: "focus",
@@ -45814,7 +45851,7 @@ import_main.default.config({
45814
45851
  quiet: true,
45815
45852
  ignore: ["MISSING_ENV_FILE"]
45816
45853
  });
45817
- const packageVersion = "1.5.57";
45854
+ const packageVersion = "1.5.59";
45818
45855
  function resolvePublicUrls() {
45819
45856
  return {
45820
45857
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -45879,4 +45916,4 @@ function bootstrapServer(options = {}) {
45879
45916
  //#endregion
45880
45917
  export { runMcpCli as n, bootstrapServer as t };
45881
45918
 
45882
- //# sourceMappingURL=src-btBLZS-x.js.map
45919
+ //# sourceMappingURL=src-0Yjy1NfE.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.5.57",
3
+ "version": "1.5.59",
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",