@togglhq/mcp 1.13.145 → 1.13.147

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-Ngzyg68c.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-C-o6B1Iz.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.145";
165
+ const packageVersion = "1.13.147";
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-Ngzyg68c.js";
2
+ import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-C-o6B1Iz.js";
3
3
  export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
@@ -42846,6 +42846,15 @@ async function getAiConversations(httpClient, organization_id, workspace_id, { s
42846
42846
  })
42847
42847
  }).json();
42848
42848
  }
42849
+ async function uploadAiAttachment(httpClient, organization_id, workspace_id, conversation_id, file, signal) {
42850
+ return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/attachments`, {
42851
+ signal,
42852
+ body: toFormData({ file })
42853
+ }).json();
42854
+ }
42855
+ async function removeAiAttachment(httpClient, organization_id, workspace_id, conversation_id, attachment_id, signal) {
42856
+ return await httpClient.delete(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/attachments/${attachment_id}`, { signal }).json();
42857
+ }
42849
42858
  async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit } = {}, signal) {
42850
42859
  return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
42851
42860
  signal,
@@ -45125,6 +45134,37 @@ const generatedFocusOperations = [
45125
45134
  ]));
45126
45135
  }
45127
45136
  },
45137
+ {
45138
+ id: "focus.ai.remove-ai-attachment",
45139
+ family: "focus",
45140
+ resource: "ai",
45141
+ action: "remove-ai-attachment",
45142
+ title: "Remove Ai Attachment Ai",
45143
+ description: "Remove Ai Attachment Ai.",
45144
+ safety: "delete",
45145
+ destructive: true,
45146
+ cli: {
45147
+ group: ["ai"],
45148
+ command: "remove-ai-attachment",
45149
+ interactive: "default"
45150
+ },
45151
+ mcp: { entityTool: "ai" },
45152
+ inputSchema: /* @__PURE__ */ looseObject({
45153
+ attachment_id: /* @__PURE__ */ string$1(),
45154
+ conversation_id: /* @__PURE__ */ string$1()
45155
+ }),
45156
+ execute: (input, { client }) => {
45157
+ const data = input;
45158
+ return client.runGeneratedRequest("removeAiAttachment", () => callGeneratedRequest(removeAiAttachment, [
45159
+ client.httpClient,
45160
+ client.organizationId,
45161
+ client.workspaceIdNumber,
45162
+ data.conversation_id,
45163
+ data.attachment_id,
45164
+ void 0
45165
+ ]));
45166
+ }
45167
+ },
45128
45168
  {
45129
45169
  id: "focus.ai.run-ai-view",
45130
45170
  family: "focus",
@@ -45201,6 +45241,7 @@ const generatedFocusOperations = [
45201
45241
  conversation_id: /* @__PURE__ */ string$1(),
45202
45242
  payload: /* @__PURE__ */ looseObject({
45203
45243
  text: /* @__PURE__ */ string$1(),
45244
+ attachment_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ string$1())),
45204
45245
  page_context: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
45205
45246
  page: /* @__PURE__ */ string$1(),
45206
45247
  version: /* @__PURE__ */ number$2(),
@@ -45337,6 +45378,37 @@ const generatedFocusOperations = [
45337
45378
  ]));
45338
45379
  }
45339
45380
  },
45381
+ {
45382
+ id: "focus.ai.upload-ai-attachment",
45383
+ family: "focus",
45384
+ resource: "ai",
45385
+ action: "upload-ai-attachment",
45386
+ title: "Upload Ai Attachment Ai",
45387
+ description: "Upload Ai Attachment Ai.",
45388
+ safety: "update",
45389
+ destructive: false,
45390
+ cli: {
45391
+ group: ["ai"],
45392
+ command: "upload-ai-attachment",
45393
+ interactive: "hidden"
45394
+ },
45395
+ mcp: { entityTool: "ai" },
45396
+ inputSchema: /* @__PURE__ */ looseObject({
45397
+ conversation_id: /* @__PURE__ */ string$1(),
45398
+ file: /* @__PURE__ */ unknown$1()
45399
+ }),
45400
+ execute: (input, { client }) => {
45401
+ const data = input;
45402
+ return client.runGeneratedRequest("uploadAiAttachment", () => callGeneratedRequest(uploadAiAttachment, [
45403
+ client.httpClient,
45404
+ client.organizationId,
45405
+ client.workspaceIdNumber,
45406
+ data.conversation_id,
45407
+ data.file,
45408
+ void 0
45409
+ ]));
45410
+ }
45411
+ },
45340
45412
  {
45341
45413
  id: "focus.alerts.create",
45342
45414
  family: "focus",
@@ -59232,7 +59304,7 @@ function registerWorkspaceTools(server) {
59232
59304
  //#region src/package-version.ts
59233
59305
  function mcpPackageVersion() {
59234
59306
  try {
59235
- return "1.13.145";
59307
+ return "1.13.147";
59236
59308
  } catch {
59237
59309
  return "unknown";
59238
59310
  }
@@ -59413,7 +59485,7 @@ import_main.default.config({
59413
59485
  quiet: true,
59414
59486
  ignore: ["MISSING_ENV_FILE"]
59415
59487
  });
59416
- const packageVersion = "1.13.145";
59488
+ const packageVersion = "1.13.147";
59417
59489
  const MCP_CACHE_TTL_MS = 300 * 1e3;
59418
59490
  const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
59419
59491
  function resolvePublicUrls() {
@@ -59533,4 +59605,4 @@ function bootstrapServer(options = {}) {
59533
59605
  //#endregion
59534
59606
  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 };
59535
59607
 
59536
- //# sourceMappingURL=src-Ngzyg68c.js.map
59608
+ //# sourceMappingURL=src-C-o6B1Iz.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.13.145",
3
+ "version": "1.13.147",
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",