@togglhq/mcp 1.13.52 → 1.13.54

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-Cf9lyOfs.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-DIfe8Ke2.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.52";
165
+ const packageVersion = "1.13.54";
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-Cf9lyOfs.js";
2
+ import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-DIfe8Ke2.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -37514,6 +37514,12 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
37514
37514
  async function updateOrganizationUserActiveStatus(httpClient, organization_id, organization_user_id, status, signal) {
37515
37515
  return await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal }).json();
37516
37516
  }
37517
+ async function createWorkspaceInvitations(httpClient, organization_id, workspace_id, data, signal) {
37518
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/invitations`, {
37519
+ signal,
37520
+ json: data
37521
+ }).json();
37522
+ }
37517
37523
  //#endregion
37518
37524
  //#region ../focus-queries/out/utils/requests.js
37519
37525
  function buildSearchParams$1(params, flattenArrays = false) {
@@ -38460,7 +38466,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38460
38466
  ]))
38461
38467
  });
38462
38468
  //#endregion
38463
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38469
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38464
38470
  async function getInvitations(httpClient, signal) {
38465
38471
  return (await httpClient.get(`invitations`, { signal })).json();
38466
38472
  }
@@ -38477,7 +38483,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38477
38483
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38478
38484
  }
38479
38485
  //#endregion
38480
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38486
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38481
38487
  function buildSearchParams(params, flattenArrays = false) {
38482
38488
  const searchParams = new URLSearchParams();
38483
38489
  Object.entries(params).forEach(([key, value]) => {
@@ -38489,7 +38495,7 @@ function buildSearchParams(params, flattenArrays = false) {
38489
38495
  return searchParams;
38490
38496
  }
38491
38497
  //#endregion
38492
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38498
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38493
38499
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38494
38500
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38495
38501
  }
@@ -38503,7 +38509,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38503
38509
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38504
38510
  }
38505
38511
  //#endregion
38506
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38512
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38507
38513
  async function getWorkspaces(httpClient, organization_id, signal) {
38508
38514
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38509
38515
  }
@@ -38523,7 +38529,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38523
38529
  });
38524
38530
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38525
38531
  //#endregion
38526
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38532
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38527
38533
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38528
38534
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38529
38535
  signal,
@@ -38534,12 +38540,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38534
38540
  })).json();
38535
38541
  }
38536
38542
  //#endregion
38537
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38543
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38538
38544
  async function getStatus(httpClient, signal) {
38539
38545
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38540
38546
  }
38541
38547
  //#endregion
38542
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38548
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38543
38549
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38544
38550
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38545
38551
  signal,
@@ -38567,7 +38573,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38567
38573
  return response.json();
38568
38574
  }
38569
38575
  //#endregion
38570
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38576
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38571
38577
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38572
38578
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38573
38579
  }
@@ -46391,6 +46397,36 @@ const generatedFocusOperations = [
46391
46397
  ]));
46392
46398
  }
46393
46399
  },
46400
+ {
46401
+ id: "focus.organization.create-workspace-invitations",
46402
+ family: "focus",
46403
+ resource: "organization",
46404
+ action: "create-workspace-invitations",
46405
+ title: "Create Workspace Invitations Organization",
46406
+ description: "Create Workspace Invitations Organization.",
46407
+ safety: "create",
46408
+ destructive: false,
46409
+ cli: {
46410
+ group: ["organization"],
46411
+ command: "create-workspace-invitations",
46412
+ interactive: "default"
46413
+ },
46414
+ mcp: { entityTool: "organization" },
46415
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
46416
+ emails: /* @__PURE__ */ array$1(/* @__PURE__ */ string$1()),
46417
+ focus_role_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
46418
+ }) }),
46419
+ execute: (input, { client }) => {
46420
+ const data = input;
46421
+ return client.runGeneratedRequest("createWorkspaceInvitations", () => callGeneratedRequest(createWorkspaceInvitations, [
46422
+ client.httpClient,
46423
+ client.organizationId,
46424
+ client.workspaceIdNumber,
46425
+ data.payload ?? data.data ?? data,
46426
+ void 0
46427
+ ]));
46428
+ }
46429
+ },
46394
46430
  {
46395
46431
  id: "focus.organization.delete-group",
46396
46432
  family: "focus",
@@ -57299,7 +57335,7 @@ function registerWorkspaceTools(server) {
57299
57335
  //#region src/package-version.ts
57300
57336
  function mcpPackageVersion() {
57301
57337
  try {
57302
- return "1.13.52";
57338
+ return "1.13.54";
57303
57339
  } catch {
57304
57340
  return "unknown";
57305
57341
  }
@@ -57480,7 +57516,7 @@ import_main.default.config({
57480
57516
  quiet: true,
57481
57517
  ignore: ["MISSING_ENV_FILE"]
57482
57518
  });
57483
- const packageVersion = "1.13.52";
57519
+ const packageVersion = "1.13.54";
57484
57520
  const MCP_CACHE_TTL_MS = 300 * 1e3;
57485
57521
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
57486
57522
  function resolvePublicUrls() {
@@ -57600,4 +57636,4 @@ function bootstrapServer(options = {}) {
57600
57636
  //#endregion
57601
57637
  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 };
57602
57638
 
57603
- //# sourceMappingURL=src-Cf9lyOfs.js.map
57639
+ //# sourceMappingURL=src-DIfe8Ke2.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.13.52",
3
+ "version": "1.13.54",
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",