@togglhq/mcp 1.13.124 → 1.13.125

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-DjFPcwVl.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-JV4W8C45.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.124";
165
+ const packageVersion = "1.13.125";
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-DjFPcwVl.js";
2
+ import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-JV4W8C45.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -38530,7 +38530,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38530
38530
  ]))
38531
38531
  });
38532
38532
  //#endregion
38533
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38533
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38534
38534
  async function getInvitations(httpClient, signal) {
38535
38535
  return (await httpClient.get(`invitations`, { signal })).json();
38536
38536
  }
@@ -38547,7 +38547,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38547
38547
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38548
38548
  }
38549
38549
  //#endregion
38550
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38550
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38551
38551
  function buildSearchParams(params, flattenArrays = false) {
38552
38552
  const searchParams = new URLSearchParams();
38553
38553
  Object.entries(params).forEach(([key, value]) => {
@@ -38559,7 +38559,7 @@ function buildSearchParams(params, flattenArrays = false) {
38559
38559
  return searchParams;
38560
38560
  }
38561
38561
  //#endregion
38562
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38562
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38563
38563
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38564
38564
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38565
38565
  }
@@ -38574,7 +38574,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38574
38574
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38575
38575
  }
38576
38576
  //#endregion
38577
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38577
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38578
38578
  async function getWorkspaces(httpClient, organization_id, signal) {
38579
38579
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38580
38580
  }
@@ -38594,7 +38594,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38594
38594
  });
38595
38595
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38596
38596
  //#endregion
38597
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38597
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38598
38598
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38599
38599
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38600
38600
  signal,
@@ -38605,12 +38605,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38605
38605
  })).json();
38606
38606
  }
38607
38607
  //#endregion
38608
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38608
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38609
38609
  async function getStatus(httpClient, signal) {
38610
38610
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38611
38611
  }
38612
38612
  //#endregion
38613
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38613
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38614
38614
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38615
38615
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38616
38616
  signal,
@@ -38638,7 +38638,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38638
38638
  return response.json();
38639
38639
  }
38640
38640
  //#endregion
38641
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38641
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38642
38642
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38643
38643
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38644
38644
  }
@@ -42641,6 +42641,30 @@ async function discardAiChange(httpClient, organization_id, workspace_id, conver
42641
42641
  async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
42642
42642
  return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal }).json();
42643
42643
  }
42644
+ async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
42645
+ return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
42646
+ signal,
42647
+ json: data
42648
+ }).json();
42649
+ }
42650
+ async function dayRebuildName(httpClient, organization_id, workspace_id, data, signal) {
42651
+ return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/name`, {
42652
+ signal,
42653
+ json: data
42654
+ }).json();
42655
+ }
42656
+ async function dayRebuildProjects(httpClient, organization_id, workspace_id, data, signal) {
42657
+ return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/projects`, {
42658
+ signal,
42659
+ json: data
42660
+ }).json();
42661
+ }
42662
+ async function dayRebuildReadConnected(httpClient, organization_id, workspace_id, data, signal) {
42663
+ return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/read-connected`, {
42664
+ signal,
42665
+ json: data
42666
+ }).json();
42667
+ }
42644
42668
  async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
42645
42669
  return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
42646
42670
  signal,
@@ -44454,6 +44478,132 @@ const generatedFocusOperations = [
44454
44478
  ]));
44455
44479
  }
44456
44480
  },
44481
+ {
44482
+ id: "focus.ai.day-rebuild-group",
44483
+ family: "focus",
44484
+ resource: "ai",
44485
+ action: "day-rebuild-group",
44486
+ title: "Day Rebuild Group Ai",
44487
+ description: "Day Rebuild Group Ai.",
44488
+ safety: "update",
44489
+ destructive: false,
44490
+ cli: {
44491
+ group: ["ai"],
44492
+ command: "day-rebuild-group",
44493
+ interactive: "hidden"
44494
+ },
44495
+ mcp: { entityTool: "ai" },
44496
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
44497
+ execute: (input, { client }) => {
44498
+ const data = input;
44499
+ return client.runGeneratedRequest("dayRebuildGroup", () => callGeneratedRequest(dayRebuildGroup, [
44500
+ client.httpClient,
44501
+ client.organizationId,
44502
+ client.workspaceIdNumber,
44503
+ data.payload ?? data.data ?? data,
44504
+ void 0
44505
+ ]));
44506
+ }
44507
+ },
44508
+ {
44509
+ id: "focus.ai.day-rebuild-name",
44510
+ family: "focus",
44511
+ resource: "ai",
44512
+ action: "day-rebuild-name",
44513
+ title: "Day Rebuild Name Ai",
44514
+ description: "Day Rebuild Name Ai.",
44515
+ safety: "update",
44516
+ destructive: false,
44517
+ cli: {
44518
+ group: ["ai"],
44519
+ command: "day-rebuild-name",
44520
+ interactive: "hidden"
44521
+ },
44522
+ mcp: { entityTool: "ai" },
44523
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
44524
+ execute: (input, { client }) => {
44525
+ const data = input;
44526
+ return client.runGeneratedRequest("dayRebuildName", () => callGeneratedRequest(dayRebuildName, [
44527
+ client.httpClient,
44528
+ client.organizationId,
44529
+ client.workspaceIdNumber,
44530
+ data.payload ?? data.data ?? data,
44531
+ void 0
44532
+ ]));
44533
+ }
44534
+ },
44535
+ {
44536
+ id: "focus.ai.day-rebuild-projects",
44537
+ family: "focus",
44538
+ resource: "ai",
44539
+ action: "day-rebuild-projects",
44540
+ title: "Day Rebuild Projects Ai",
44541
+ description: "Day Rebuild Projects Ai.",
44542
+ safety: "update",
44543
+ destructive: false,
44544
+ cli: {
44545
+ group: ["ai"],
44546
+ command: "day-rebuild-projects",
44547
+ interactive: "hidden"
44548
+ },
44549
+ mcp: { entityTool: "ai" },
44550
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
44551
+ execute: (input, { client }) => {
44552
+ const data = input;
44553
+ return client.runGeneratedRequest("dayRebuildProjects", () => callGeneratedRequest(dayRebuildProjects, [
44554
+ client.httpClient,
44555
+ client.organizationId,
44556
+ client.workspaceIdNumber,
44557
+ data.payload ?? data.data ?? data,
44558
+ void 0
44559
+ ]));
44560
+ }
44561
+ },
44562
+ {
44563
+ id: "focus.ai.day-rebuild-read-connected",
44564
+ family: "focus",
44565
+ resource: "ai",
44566
+ action: "day-rebuild-read-connected",
44567
+ title: "Day Rebuild Read Connected Ai",
44568
+ description: "Day Rebuild Read Connected Ai.",
44569
+ safety: "update",
44570
+ destructive: false,
44571
+ cli: {
44572
+ group: ["ai"],
44573
+ command: "day-rebuild-read-connected",
44574
+ interactive: "hidden"
44575
+ },
44576
+ mcp: { entityTool: "ai" },
44577
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44578
+ now: /* @__PURE__ */ string$1(),
44579
+ service: /* @__PURE__ */ string$1(),
44580
+ since: /* @__PURE__ */ string$1(),
44581
+ tools: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
44582
+ name: /* @__PURE__ */ string$1(),
44583
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44584
+ input_schema: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
44585
+ })),
44586
+ preferred_tools: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ string$1())),
44587
+ turns: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
44588
+ assistant_content: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
44589
+ tool_results: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
44590
+ tool_use_id: /* @__PURE__ */ string$1(),
44591
+ content: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44592
+ is_error: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
44593
+ }))
44594
+ })))
44595
+ }) }),
44596
+ execute: (input, { client }) => {
44597
+ const data = input;
44598
+ return client.runGeneratedRequest("dayRebuildReadConnected", () => callGeneratedRequest(dayRebuildReadConnected, [
44599
+ client.httpClient,
44600
+ client.organizationId,
44601
+ client.workspaceIdNumber,
44602
+ data.payload ?? data.data ?? data,
44603
+ void 0
44604
+ ]));
44605
+ }
44606
+ },
44457
44607
  {
44458
44608
  id: "focus.ai.discard-ai-change",
44459
44609
  family: "focus",
@@ -58502,7 +58652,7 @@ function registerWorkspaceTools(server) {
58502
58652
  //#region src/package-version.ts
58503
58653
  function mcpPackageVersion() {
58504
58654
  try {
58505
- return "1.13.124";
58655
+ return "1.13.125";
58506
58656
  } catch {
58507
58657
  return "unknown";
58508
58658
  }
@@ -58683,7 +58833,7 @@ import_main.default.config({
58683
58833
  quiet: true,
58684
58834
  ignore: ["MISSING_ENV_FILE"]
58685
58835
  });
58686
- const packageVersion = "1.13.124";
58836
+ const packageVersion = "1.13.125";
58687
58837
  const MCP_CACHE_TTL_MS = 300 * 1e3;
58688
58838
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
58689
58839
  function resolvePublicUrls() {
@@ -58803,4 +58953,4 @@ function bootstrapServer(options = {}) {
58803
58953
  //#endregion
58804
58954
  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 };
58805
58955
 
58806
- //# sourceMappingURL=src-DjFPcwVl.js.map
58956
+ //# sourceMappingURL=src-JV4W8C45.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.13.124",
3
+ "version": "1.13.125",
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",