@togglhq/mcp 1.13.333 → 1.13.335

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-CISfH3ld.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-BPaPiq0T.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.333";
165
+ const packageVersion = "1.13.335";
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-CISfH3ld.js";
2
+ import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-BPaPiq0T.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -38521,6 +38521,12 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
38521
38521
  if ([204, 205].includes(response.status)) return null;
38522
38522
  return response.json();
38523
38523
  }
38524
+ async function seedTimeEntriesWithOrg(httpClient, organization_id, workspace_id, data, signal) {
38525
+ return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/seed`, {
38526
+ signal,
38527
+ json: data
38528
+ })).json();
38529
+ }
38524
38530
  async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, project_id, type, order_by, archived, include_taskless, project_completed, project_draft, expand_calendar_event, include_lock_reason }, signal) {
38525
38531
  return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
38526
38532
  signal,
@@ -38713,7 +38719,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38713
38719
  ]))
38714
38720
  });
38715
38721
  //#endregion
38716
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.409_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_24f414527c8c517fae28ae1c230bd0f3/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38722
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38717
38723
  async function getInvitations(httpClient, signal) {
38718
38724
  return (await httpClient.get(`invitations`, { signal })).json();
38719
38725
  }
@@ -38730,7 +38736,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38730
38736
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38731
38737
  }
38732
38738
  //#endregion
38733
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.409_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_24f414527c8c517fae28ae1c230bd0f3/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38739
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38734
38740
  function buildSearchParams(params, flattenArrays = false) {
38735
38741
  const searchParams = new URLSearchParams();
38736
38742
  Object.entries(params).forEach(([key, value]) => {
@@ -38742,7 +38748,7 @@ function buildSearchParams(params, flattenArrays = false) {
38742
38748
  return searchParams;
38743
38749
  }
38744
38750
  //#endregion
38745
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.409_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_24f414527c8c517fae28ae1c230bd0f3/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38751
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38746
38752
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38747
38753
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38748
38754
  }
@@ -38757,7 +38763,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38757
38763
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38758
38764
  }
38759
38765
  //#endregion
38760
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.409_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_24f414527c8c517fae28ae1c230bd0f3/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38766
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38761
38767
  async function getWorkspaces(httpClient, organization_id, signal) {
38762
38768
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38763
38769
  }
@@ -38777,7 +38783,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38777
38783
  });
38778
38784
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38779
38785
  //#endregion
38780
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.409_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_24f414527c8c517fae28ae1c230bd0f3/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38786
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38781
38787
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38782
38788
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38783
38789
  signal,
@@ -38788,12 +38794,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38788
38794
  })).json();
38789
38795
  }
38790
38796
  //#endregion
38791
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.409_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_24f414527c8c517fae28ae1c230bd0f3/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38797
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38792
38798
  async function getStatus(httpClient, signal) {
38793
38799
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38794
38800
  }
38795
38801
  //#endregion
38796
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.409_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_24f414527c8c517fae28ae1c230bd0f3/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38802
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38797
38803
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38798
38804
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38799
38805
  signal,
@@ -38821,7 +38827,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38821
38827
  return response.json();
38822
38828
  }
38823
38829
  //#endregion
38824
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.409_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_24f414527c8c517fae28ae1c230bd0f3/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38830
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38825
38831
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38826
38832
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38827
38833
  }
@@ -43027,12 +43033,6 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
43027
43033
  async function getAiConsent(httpClient, organization_id, workspace_id, signal) {
43028
43034
  return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/consent`, { signal })).json();
43029
43035
  }
43030
- async function giveAiConsent(httpClient, organization_id, workspace_id, data, signal) {
43031
- return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/consent`, {
43032
- signal,
43033
- json: data
43034
- })).json();
43035
- }
43036
43036
  async function getAiConversations(httpClient, organization_id, workspace_id, { search, before, limit, product } = {}, signal) {
43037
43037
  return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations`, {
43038
43038
  signal,
@@ -46189,33 +46189,6 @@ const generatedFocusOperations = [
46189
46189
  void 0
46190
46190
  ]))
46191
46191
  },
46192
- {
46193
- id: "focus.ai.give-ai-consent",
46194
- family: "focus",
46195
- resource: "ai",
46196
- action: "give-ai-consent",
46197
- title: "Give Ai Consent Ai",
46198
- description: "Give Ai Consent Ai.",
46199
- safety: "update",
46200
- destructive: false,
46201
- cli: {
46202
- group: ["ai"],
46203
- command: "give-ai-consent",
46204
- interactive: "default"
46205
- },
46206
- mcp: { entityTool: "ai" },
46207
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ version: /* @__PURE__ */ number$2() }) }),
46208
- execute: (input, { client }) => {
46209
- const data = input;
46210
- return client.runGeneratedRequest("giveAiConsent", () => callGeneratedRequest(giveAiConsent, [
46211
- client.httpClient,
46212
- client.organizationId,
46213
- client.workspaceIdNumber,
46214
- data.payload ?? data.data ?? data,
46215
- void 0
46216
- ]));
46217
- }
46218
- },
46219
46192
  {
46220
46193
  id: "focus.ai.next-ai-actions",
46221
46194
  family: "focus",
@@ -57809,6 +57782,33 @@ const generatedFocusOperations = [
57809
57782
  ]));
57810
57783
  }
57811
57784
  },
57785
+ {
57786
+ id: "focus.time-entries.seed",
57787
+ family: "focus",
57788
+ resource: "time-entries",
57789
+ action: "seed",
57790
+ title: "Seed Time Entries",
57791
+ description: "Seed Time Entries.",
57792
+ safety: "update",
57793
+ destructive: false,
57794
+ cli: {
57795
+ group: ["time-entries"],
57796
+ command: "seed",
57797
+ interactive: "hidden"
57798
+ },
57799
+ mcp: { entityTool: "time-entries" },
57800
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ unknown$1() }),
57801
+ execute: (input, { client }) => {
57802
+ const data = input;
57803
+ return client.runGeneratedRequest("seedTimeEntriesWithOrg", () => callGeneratedRequest(seedTimeEntriesWithOrg, [
57804
+ client.httpClient,
57805
+ client.organizationId,
57806
+ client.workspaceIdNumber,
57807
+ data.payload ?? data.data ?? data,
57808
+ void 0
57809
+ ]));
57810
+ }
57811
+ },
57812
57812
  {
57813
57813
  id: "focus.time-entries.set-day-duration",
57814
57814
  family: "focus",
@@ -62021,7 +62021,7 @@ function registerWorkspaceTools(server) {
62021
62021
  //#region src/package-version.ts
62022
62022
  function mcpPackageVersion() {
62023
62023
  try {
62024
- return "1.13.333";
62024
+ return "1.13.335";
62025
62025
  } catch {
62026
62026
  return "unknown";
62027
62027
  }
@@ -62203,7 +62203,7 @@ import_main.default.config({
62203
62203
  quiet: true,
62204
62204
  ignore: ["MISSING_ENV_FILE"]
62205
62205
  });
62206
- const packageVersion = "1.13.333";
62206
+ const packageVersion = "1.13.335";
62207
62207
  const MCP_CACHE_TTL_MS = 300 * 1e3;
62208
62208
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
62209
62209
  function resolvePublicUrls() {
@@ -62323,4 +62323,4 @@ function bootstrapServer(options = {}) {
62323
62323
  //#endregion
62324
62324
  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
62325
 
62326
- //# sourceMappingURL=src-CISfH3ld.js.map
62326
+ //# sourceMappingURL=src-BPaPiq0T.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.13.333",
3
+ "version": "1.13.335",
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",