@togglhq/mcp 1.13.92 → 1.13.94

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-DNatA7ep.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-Dp1yDxtD.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.92";
165
+ const packageVersion = "1.13.94";
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-DNatA7ep.js";
2
+ import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-Dp1yDxtD.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -34693,7 +34693,8 @@ const TaskAssignmentSchema = /* @__PURE__ */ object({
34693
34693
  });
34694
34694
  const ClientLiteSchema = /* @__PURE__ */ object({
34695
34695
  id: /* @__PURE__ */ number(),
34696
- name: /* @__PURE__ */ string()
34696
+ name: /* @__PURE__ */ string(),
34697
+ active: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
34697
34698
  });
34698
34699
  const CustomFieldValueSchema = /* @__PURE__ */ object({
34699
34700
  custom_field_id: /* @__PURE__ */ number(),
@@ -34953,7 +34954,10 @@ const AlertRuleSchema = /* @__PURE__ */ object({
34953
34954
  });
34954
34955
  const ClientPayloadSchema = /* @__PURE__ */ object({
34955
34956
  name: /* @__PURE__ */ string(),
34956
- currency: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Currency is the client's optional default display currency (ISO 4217). Omitted or null means the client falls back to the workspace currency. On update (PUT) it is set directly, so send it to set/keep it or null to clear.")))
34957
+ address: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), /* @__PURE__ */ description("Omit to keep the stored value on update; send null or a blank string to clear it."))),
34958
+ contact_email: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), /* @__PURE__ */ description("Omit to keep the stored value on update; send null or a blank string to clear it."))),
34959
+ currency: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Currency is the client's optional default display currency (ISO 4217). Omitted or null means the client falls back to the workspace currency. On update (PUT) it is set directly, so send it to set/keep it or null to clear."))),
34960
+ internal_reference: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), /* @__PURE__ */ description("Omit to keep the stored value on update; send null or a blank string to clear it.")))
34957
34961
  });
34958
34962
  const ProjectFixedFeePayloadSchema = /* @__PURE__ */ object({
34959
34963
  amount: /* @__PURE__ */ number(),
@@ -35091,8 +35095,12 @@ const ClientSchema = /* @__PURE__ */ object({
35091
35095
  id: /* @__PURE__ */ number(),
35092
35096
  name: /* @__PURE__ */ string(),
35093
35097
  workspace_id: /* @__PURE__ */ number(),
35098
+ address: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
35099
+ contact_email: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
35094
35100
  currency: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35095
35101
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
35102
+ internal_reference: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
35103
+ project_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35096
35104
  toggl_user_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35097
35105
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
35098
35106
  });
@@ -37395,14 +37403,15 @@ async function viewTaskAttachment(httpClient, organization_id, workspace_id, tas
37395
37403
  }
37396
37404
  //#endregion
37397
37405
  //#region ../focus-queries/dist/clients/requests.ts
37398
- async function getClientsClassic(httpClient, workspace_id, { page, per_page, order_by, name } = {}, signal) {
37406
+ async function getClientsClassic(httpClient, workspace_id, { page, per_page, order_by, name, active } = {}, signal) {
37399
37407
  return await httpClient.get(`workspaces/${workspace_id}/clients`, {
37400
37408
  signal,
37401
37409
  searchParams: buildSearchParams$2({
37402
37410
  page,
37403
37411
  per_page,
37404
37412
  order_by,
37405
- name
37413
+ name,
37414
+ active
37406
37415
  })
37407
37416
  }).json();
37408
37417
  }
@@ -37424,9 +37433,21 @@ async function updateClient(httpClient, workspace_id, client_id, data, signal) {
37424
37433
  async function deleteClient(httpClient, workspace_id, client_id, signal) {
37425
37434
  return await httpClient.delete(`workspaces/${workspace_id}/clients/${client_id}`, { signal }).json();
37426
37435
  }
37436
+ async function archiveClient(httpClient, workspace_id, client_id, data, signal) {
37437
+ return await httpClient.patch(`workspaces/${workspace_id}/clients/${client_id}/archive`, {
37438
+ signal,
37439
+ json: data
37440
+ }).json();
37441
+ }
37442
+ async function getClientArchivePreview(httpClient, workspace_id, client_id, signal) {
37443
+ return await httpClient.get(`workspaces/${workspace_id}/clients/${client_id}/archive-preview`, { signal }).json();
37444
+ }
37427
37445
  async function restoreClient(httpClient, workspace_id, client_id, signal) {
37428
37446
  return await httpClient.patch(`workspaces/${workspace_id}/clients/${client_id}/restore`, { signal }).json();
37429
37447
  }
37448
+ async function unarchiveClient(httpClient, workspace_id, client_id, signal) {
37449
+ return await httpClient.patch(`workspaces/${workspace_id}/clients/${client_id}/unarchive`, { signal }).json();
37450
+ }
37430
37451
  //#endregion
37431
37452
  //#region ../focus-queries/dist/organization/requests.ts
37432
37453
  async function createOrganizationGroup(httpClient, organization_id, data, signal) {
@@ -45195,6 +45216,36 @@ const generatedFocusOperations = [
45195
45216
  ]));
45196
45217
  }
45197
45218
  },
45219
+ {
45220
+ id: "focus.clients.archive",
45221
+ family: "focus",
45222
+ resource: "clients",
45223
+ action: "archive",
45224
+ title: "Archive Clients",
45225
+ description: "Archive Clients.",
45226
+ safety: "update",
45227
+ destructive: false,
45228
+ cli: {
45229
+ group: ["clients"],
45230
+ command: "archive",
45231
+ interactive: "default"
45232
+ },
45233
+ mcp: { entityTool: "clients" },
45234
+ inputSchema: /* @__PURE__ */ looseObject({
45235
+ client_id: /* @__PURE__ */ number$2(),
45236
+ payload: /* @__PURE__ */ looseObject({ project_count: /* @__PURE__ */ number$2() })
45237
+ }),
45238
+ execute: (input, { client }) => {
45239
+ const data = input;
45240
+ return client.runGeneratedRequest("archiveClient", () => callGeneratedRequest(archiveClient, [
45241
+ client.httpClient,
45242
+ client.workspaceIdNumber,
45243
+ data.client_id,
45244
+ data.payload ?? data.data ?? data,
45245
+ void 0
45246
+ ]));
45247
+ }
45248
+ },
45198
45249
  {
45199
45250
  id: "focus.clients.create",
45200
45251
  family: "focus",
@@ -45258,6 +45309,32 @@ const generatedFocusOperations = [
45258
45309
  return client.getClient(data.client_id);
45259
45310
  }
45260
45311
  },
45312
+ {
45313
+ id: "focus.clients.get-archive-preview",
45314
+ family: "focus",
45315
+ resource: "clients",
45316
+ action: "get-archive-preview",
45317
+ title: "Get Archive Preview Clients",
45318
+ description: "Get Archive Preview Clients.",
45319
+ safety: "read",
45320
+ destructive: false,
45321
+ cli: {
45322
+ group: ["clients"],
45323
+ command: "get-archive-preview",
45324
+ interactive: "available"
45325
+ },
45326
+ mcp: { entityTool: "clients" },
45327
+ inputSchema: /* @__PURE__ */ looseObject({ client_id: /* @__PURE__ */ number$2() }),
45328
+ execute: (input, { client }) => {
45329
+ const data = input;
45330
+ return client.runGeneratedRequest("getClientArchivePreview", () => callGeneratedRequest(getClientArchivePreview, [
45331
+ client.httpClient,
45332
+ client.workspaceIdNumber,
45333
+ data.client_id,
45334
+ void 0
45335
+ ]));
45336
+ }
45337
+ },
45261
45338
  {
45262
45339
  id: "focus.clients.list",
45263
45340
  family: "focus",
@@ -45305,6 +45382,32 @@ const generatedFocusOperations = [
45305
45382
  ]));
45306
45383
  }
45307
45384
  },
45385
+ {
45386
+ id: "focus.clients.unarchive",
45387
+ family: "focus",
45388
+ resource: "clients",
45389
+ action: "unarchive",
45390
+ title: "Unarchive Clients",
45391
+ description: "Unarchive Clients.",
45392
+ safety: "update",
45393
+ destructive: false,
45394
+ cli: {
45395
+ group: ["clients"],
45396
+ command: "unarchive",
45397
+ interactive: "default"
45398
+ },
45399
+ mcp: { entityTool: "clients" },
45400
+ inputSchema: /* @__PURE__ */ looseObject({ client_id: /* @__PURE__ */ number$2() }),
45401
+ execute: (input, { client }) => {
45402
+ const data = input;
45403
+ return client.runGeneratedRequest("unarchiveClient", () => callGeneratedRequest(unarchiveClient, [
45404
+ client.httpClient,
45405
+ client.workspaceIdNumber,
45406
+ data.client_id,
45407
+ void 0
45408
+ ]));
45409
+ }
45410
+ },
45308
45411
  {
45309
45412
  id: "focus.clients.update",
45310
45413
  family: "focus",
@@ -58251,7 +58354,7 @@ function registerWorkspaceTools(server) {
58251
58354
  //#region src/package-version.ts
58252
58355
  function mcpPackageVersion() {
58253
58356
  try {
58254
- return "1.13.92";
58357
+ return "1.13.94";
58255
58358
  } catch {
58256
58359
  return "unknown";
58257
58360
  }
@@ -58432,7 +58535,7 @@ import_main.default.config({
58432
58535
  quiet: true,
58433
58536
  ignore: ["MISSING_ENV_FILE"]
58434
58537
  });
58435
- const packageVersion = "1.13.92";
58538
+ const packageVersion = "1.13.94";
58436
58539
  const MCP_CACHE_TTL_MS = 300 * 1e3;
58437
58540
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
58438
58541
  function resolvePublicUrls() {
@@ -58552,4 +58655,4 @@ function bootstrapServer(options = {}) {
58552
58655
  //#endregion
58553
58656
  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 };
58554
58657
 
58555
- //# sourceMappingURL=src-DNatA7ep.js.map
58658
+ //# sourceMappingURL=src-Dp1yDxtD.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.13.92",
3
+ "version": "1.13.94",
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",