@togglhq/mcp 1.13.222 → 1.13.223

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-D4O2e2Dh.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-BPBg1XwH.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.222";
165
+ const packageVersion = "1.13.223";
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-D4O2e2Dh.js";
2
+ import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-BPBg1XwH.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -43061,6 +43061,24 @@ async function undoAiChange(httpClient, organization_id, workspace_id, conversat
43061
43061
  searchParams: buildSearchParams$2({ product })
43062
43062
  })).json();
43063
43063
  }
43064
+ async function stopAiTurn(httpClient, organization_id, workspace_id, conversation_id, product, signal) {
43065
+ return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/stop`, {
43066
+ signal,
43067
+ searchParams: buildSearchParams$2({ product })
43068
+ })).json();
43069
+ }
43070
+ async function attachAiTurn(httpClient, organization_id, workspace_id, conversation_id, { after, product, lastEventID } = {}, signal) {
43071
+ const response = await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/stream`, {
43072
+ signal,
43073
+ headers: { "Last-Event-ID": lastEventID },
43074
+ searchParams: buildSearchParams$2({
43075
+ after,
43076
+ product
43077
+ })
43078
+ });
43079
+ if ([204, 205].includes(response.status)) return null;
43080
+ return response.json();
43081
+ }
43064
43082
  async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
43065
43083
  return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
43066
43084
  signal,
@@ -45298,6 +45316,39 @@ const generatedFocusOperations = [
45298
45316
  ]));
45299
45317
  }
45300
45318
  },
45319
+ {
45320
+ id: "focus.ai.attach-ai-turn",
45321
+ family: "focus",
45322
+ resource: "ai",
45323
+ action: "attach-ai-turn",
45324
+ title: "Attach Ai Turn Ai",
45325
+ description: "Attach Ai Turn Ai.",
45326
+ safety: "read",
45327
+ destructive: false,
45328
+ cli: {
45329
+ group: ["ai"],
45330
+ command: "attach-ai-turn",
45331
+ interactive: "hidden"
45332
+ },
45333
+ mcp: { entityTool: "ai" },
45334
+ inputSchema: /* @__PURE__ */ looseObject({
45335
+ after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
45336
+ conversation_id: /* @__PURE__ */ string$1(),
45337
+ lastEventID: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
45338
+ product: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
45339
+ }),
45340
+ execute: (input, { client }) => {
45341
+ const data = input;
45342
+ return client.runGeneratedRequest("attachAiTurn", () => callGeneratedRequest(attachAiTurn, [
45343
+ client.httpClient,
45344
+ client.organizationId,
45345
+ client.workspaceIdNumber,
45346
+ data.conversation_id,
45347
+ data,
45348
+ void 0
45349
+ ]));
45350
+ }
45351
+ },
45301
45352
  {
45302
45353
  id: "focus.ai.connect-ai-source",
45303
45354
  family: "focus",
@@ -45912,6 +45963,37 @@ const generatedFocusOperations = [
45912
45963
  ]));
45913
45964
  }
45914
45965
  },
45966
+ {
45967
+ id: "focus.ai.stop-ai-turn",
45968
+ family: "focus",
45969
+ resource: "ai",
45970
+ action: "stop-ai-turn",
45971
+ title: "Stop Ai Turn Ai",
45972
+ description: "Stop Ai Turn Ai.",
45973
+ safety: "update",
45974
+ destructive: false,
45975
+ cli: {
45976
+ group: ["ai"],
45977
+ command: "stop-ai-turn",
45978
+ interactive: "default"
45979
+ },
45980
+ mcp: { entityTool: "ai" },
45981
+ inputSchema: /* @__PURE__ */ looseObject({
45982
+ conversation_id: /* @__PURE__ */ string$1(),
45983
+ product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
45984
+ }),
45985
+ execute: (input, { client }) => {
45986
+ const data = input;
45987
+ return client.runGeneratedRequest("stopAiTurn", () => callGeneratedRequest(stopAiTurn, [
45988
+ client.httpClient,
45989
+ client.organizationId,
45990
+ client.workspaceIdNumber,
45991
+ data.conversation_id,
45992
+ data.product,
45993
+ void 0
45994
+ ]));
45995
+ }
45996
+ },
45915
45997
  {
45916
45998
  id: "focus.ai.undo-ai-change",
45917
45999
  family: "focus",
@@ -60875,7 +60957,7 @@ function registerWorkspaceTools(server) {
60875
60957
  //#region src/package-version.ts
60876
60958
  function mcpPackageVersion() {
60877
60959
  try {
60878
- return "1.13.222";
60960
+ return "1.13.223";
60879
60961
  } catch {
60880
60962
  return "unknown";
60881
60963
  }
@@ -61057,7 +61139,7 @@ import_main.default.config({
61057
61139
  quiet: true,
61058
61140
  ignore: ["MISSING_ENV_FILE"]
61059
61141
  });
61060
- const packageVersion = "1.13.222";
61142
+ const packageVersion = "1.13.223";
61061
61143
  const MCP_CACHE_TTL_MS = 300 * 1e3;
61062
61144
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
61063
61145
  function resolvePublicUrls() {
@@ -61177,4 +61259,4 @@ function bootstrapServer(options = {}) {
61177
61259
  //#endregion
61178
61260
  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 };
61179
61261
 
61180
- //# sourceMappingURL=src-D4O2e2Dh.js.map
61262
+ //# sourceMappingURL=src-BPBg1XwH.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.13.222",
3
+ "version": "1.13.223",
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",