@togglhq/mcp 1.13.26 → 1.13.27

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--pNIAJ7e.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-Cis2eTGi.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.26";
165
+ const packageVersion = "1.13.27";
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--pNIAJ7e.js";
2
+ import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-Cis2eTGi.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -38436,7 +38436,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38436
38436
  ]))
38437
38437
  });
38438
38438
  //#endregion
38439
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.221_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d245acc0424ad84d17172d12973c52cc/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38439
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38440
38440
  async function getInvitations(httpClient, signal) {
38441
38441
  return (await httpClient.get(`invitations`, { signal })).json();
38442
38442
  }
@@ -38453,7 +38453,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38453
38453
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38454
38454
  }
38455
38455
  //#endregion
38456
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.221_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d245acc0424ad84d17172d12973c52cc/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38456
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38457
38457
  function buildSearchParams(params, flattenArrays = false) {
38458
38458
  const searchParams = new URLSearchParams();
38459
38459
  Object.entries(params).forEach(([key, value]) => {
@@ -38465,7 +38465,7 @@ function buildSearchParams(params, flattenArrays = false) {
38465
38465
  return searchParams;
38466
38466
  }
38467
38467
  //#endregion
38468
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.221_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d245acc0424ad84d17172d12973c52cc/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38468
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38469
38469
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38470
38470
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38471
38471
  }
@@ -38479,7 +38479,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38479
38479
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38480
38480
  }
38481
38481
  //#endregion
38482
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.221_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d245acc0424ad84d17172d12973c52cc/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38482
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38483
38483
  async function getWorkspaces(httpClient, organization_id, signal) {
38484
38484
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38485
38485
  }
@@ -38499,7 +38499,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38499
38499
  });
38500
38500
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38501
38501
  //#endregion
38502
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.221_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d245acc0424ad84d17172d12973c52cc/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38502
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38503
38503
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38504
38504
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38505
38505
  signal,
@@ -38510,12 +38510,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38510
38510
  })).json();
38511
38511
  }
38512
38512
  //#endregion
38513
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.221_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d245acc0424ad84d17172d12973c52cc/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38513
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38514
38514
  async function getStatus(httpClient, signal) {
38515
38515
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38516
38516
  }
38517
38517
  //#endregion
38518
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.221_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d245acc0424ad84d17172d12973c52cc/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38518
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38519
38519
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38520
38520
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38521
38521
  signal,
@@ -38543,7 +38543,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38543
38543
  return response.json();
38544
38544
  }
38545
38545
  //#endregion
38546
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.221_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d245acc0424ad84d17172d12973c52cc/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38546
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38547
38547
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38548
38548
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38549
38549
  }
@@ -42866,6 +42866,30 @@ async function updateWorkspaceDesignationMembers(httpClient, organization_id, wo
42866
42866
  json: data
42867
42867
  }).json();
42868
42868
  }
42869
+ async function getProjectDesignations(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
42870
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
42871
+ signal,
42872
+ searchParams: buildSearchParams$2({ order_by })
42873
+ }).json();
42874
+ }
42875
+ async function createProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
42876
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
42877
+ signal,
42878
+ json: data
42879
+ }).json();
42880
+ }
42881
+ async function deleteProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
42882
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
42883
+ signal,
42884
+ json: data
42885
+ }).json();
42886
+ }
42887
+ async function updateProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
42888
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
42889
+ signal,
42890
+ json: data
42891
+ }).json();
42892
+ }
42869
42893
  async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
42870
42894
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal }).json();
42871
42895
  }
@@ -45373,6 +45397,40 @@ const generatedFocusOperations = [
45373
45397
  ]));
45374
45398
  }
45375
45399
  },
45400
+ {
45401
+ id: "focus.designations.create-project",
45402
+ family: "focus",
45403
+ resource: "designations",
45404
+ action: "create-project",
45405
+ title: "Create Project Designations",
45406
+ description: "Create Project Designations.",
45407
+ safety: "create",
45408
+ destructive: false,
45409
+ cli: {
45410
+ group: ["designations"],
45411
+ command: "create-project",
45412
+ interactive: "default"
45413
+ },
45414
+ mcp: { entityTool: "designations" },
45415
+ inputSchema: /* @__PURE__ */ looseObject({
45416
+ payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
45417
+ designation_id: /* @__PURE__ */ number$2(),
45418
+ estimated_mins: /* @__PURE__ */ number$2()
45419
+ })) }),
45420
+ project_id: /* @__PURE__ */ number$2()
45421
+ }),
45422
+ execute: (input, { client }) => {
45423
+ const data = input;
45424
+ return client.runGeneratedRequest("createProjectDesignations", () => callGeneratedRequest(createProjectDesignations, [
45425
+ client.httpClient,
45426
+ client.organizationId,
45427
+ client.workspaceIdNumber,
45428
+ data.project_id,
45429
+ data.payload ?? data.data ?? data,
45430
+ void 0
45431
+ ]));
45432
+ }
45433
+ },
45376
45434
  {
45377
45435
  id: "focus.designations.create-workspace",
45378
45436
  family: "focus",
@@ -45403,6 +45461,37 @@ const generatedFocusOperations = [
45403
45461
  ]));
45404
45462
  }
45405
45463
  },
45464
+ {
45465
+ id: "focus.designations.delete-project",
45466
+ family: "focus",
45467
+ resource: "designations",
45468
+ action: "delete-project",
45469
+ title: "Delete Project Designations",
45470
+ description: "Delete Project Designations.",
45471
+ safety: "delete",
45472
+ destructive: true,
45473
+ cli: {
45474
+ group: ["designations"],
45475
+ command: "delete-project",
45476
+ interactive: "default"
45477
+ },
45478
+ mcp: { entityTool: "designations" },
45479
+ inputSchema: /* @__PURE__ */ looseObject({
45480
+ payload: /* @__PURE__ */ looseObject({ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }),
45481
+ project_id: /* @__PURE__ */ number$2()
45482
+ }),
45483
+ execute: (input, { client }) => {
45484
+ const data = input;
45485
+ return client.runGeneratedRequest("deleteProjectDesignations", () => callGeneratedRequest(deleteProjectDesignations, [
45486
+ client.httpClient,
45487
+ client.organizationId,
45488
+ client.workspaceIdNumber,
45489
+ data.project_id,
45490
+ data.payload ?? data.data ?? data,
45491
+ void 0
45492
+ ]));
45493
+ }
45494
+ },
45406
45495
  {
45407
45496
  id: "focus.designations.delete-workspace",
45408
45497
  family: "focus",
@@ -45430,6 +45519,37 @@ const generatedFocusOperations = [
45430
45519
  ]));
45431
45520
  }
45432
45521
  },
45522
+ {
45523
+ id: "focus.designations.get-project",
45524
+ family: "focus",
45525
+ resource: "designations",
45526
+ action: "get-project",
45527
+ title: "Get Project Designations",
45528
+ description: "Get Project Designations.",
45529
+ safety: "read",
45530
+ destructive: false,
45531
+ cli: {
45532
+ group: ["designations"],
45533
+ command: "get-project",
45534
+ interactive: "hidden"
45535
+ },
45536
+ mcp: { entityTool: "designations" },
45537
+ inputSchema: /* @__PURE__ */ looseObject({
45538
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
45539
+ project_id: /* @__PURE__ */ number$2()
45540
+ }),
45541
+ execute: (input, { client }) => {
45542
+ const data = input;
45543
+ return client.runGeneratedRequest("getProjectDesignations", () => callGeneratedRequest(getProjectDesignations, [
45544
+ client.httpClient,
45545
+ client.organizationId,
45546
+ client.workspaceIdNumber,
45547
+ data.project_id,
45548
+ data,
45549
+ void 0
45550
+ ]));
45551
+ }
45552
+ },
45433
45553
  {
45434
45554
  id: "focus.designations.get-workspace-designations",
45435
45555
  family: "focus",
@@ -45463,6 +45583,40 @@ const generatedFocusOperations = [
45463
45583
  ]));
45464
45584
  }
45465
45585
  },
45586
+ {
45587
+ id: "focus.designations.update-project",
45588
+ family: "focus",
45589
+ resource: "designations",
45590
+ action: "update-project",
45591
+ title: "Update Project Designations",
45592
+ description: "Update Project Designations.",
45593
+ safety: "update",
45594
+ destructive: false,
45595
+ cli: {
45596
+ group: ["designations"],
45597
+ command: "update-project",
45598
+ interactive: "default"
45599
+ },
45600
+ mcp: { entityTool: "designations" },
45601
+ inputSchema: /* @__PURE__ */ looseObject({
45602
+ payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
45603
+ estimated_mins: /* @__PURE__ */ number$2(),
45604
+ id: /* @__PURE__ */ number$2()
45605
+ })) }),
45606
+ project_id: /* @__PURE__ */ number$2()
45607
+ }),
45608
+ execute: (input, { client }) => {
45609
+ const data = input;
45610
+ return client.runGeneratedRequest("updateProjectDesignations", () => callGeneratedRequest(updateProjectDesignations, [
45611
+ client.httpClient,
45612
+ client.organizationId,
45613
+ client.workspaceIdNumber,
45614
+ data.project_id,
45615
+ data.payload ?? data.data ?? data,
45616
+ void 0
45617
+ ]));
45618
+ }
45619
+ },
45466
45620
  {
45467
45621
  id: "focus.designations.update-workspace",
45468
45622
  family: "focus",
@@ -56926,7 +57080,7 @@ function registerWorkspaceTools(server) {
56926
57080
  //#region src/package-version.ts
56927
57081
  function mcpPackageVersion() {
56928
57082
  try {
56929
- return "1.13.26";
57083
+ return "1.13.27";
56930
57084
  } catch {
56931
57085
  return "unknown";
56932
57086
  }
@@ -57107,7 +57261,7 @@ import_main.default.config({
57107
57261
  quiet: true,
57108
57262
  ignore: ["MISSING_ENV_FILE"]
57109
57263
  });
57110
- const packageVersion = "1.13.26";
57264
+ const packageVersion = "1.13.27";
57111
57265
  const MCP_CACHE_TTL_MS = 300 * 1e3;
57112
57266
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
57113
57267
  function resolvePublicUrls() {
@@ -57227,4 +57381,4 @@ function bootstrapServer(options = {}) {
57227
57381
  //#endregion
57228
57382
  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 };
57229
57383
 
57230
- //# sourceMappingURL=src--pNIAJ7e.js.map
57384
+ //# sourceMappingURL=src-Cis2eTGi.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.13.26",
3
+ "version": "1.13.27",
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",