@togglhq/mcp 1.5.44 → 1.5.45

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 { n as runMcpCli } from "./src-DHHmttsB.js";
2
+ import { n as runMcpCli } from "./src-DIg53bZB.js";
3
3
  //#region src/cli.ts
4
4
  runMcpCli();
5
5
  //#endregion
package/build/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { n as runMcpCli, t as bootstrapServer } from "./src-DHHmttsB.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-DIg53bZB.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -34253,6 +34253,12 @@ async function createGoal(httpClient, organization_id, workspace_id, data, signa
34253
34253
  json: data
34254
34254
  }).json();
34255
34255
  }
34256
+ async function reorderGoals(httpClient, organization_id, workspace_id, data, signal) {
34257
+ return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/goals/positions`, {
34258
+ signal,
34259
+ json: data
34260
+ }).json();
34261
+ }
34256
34262
  async function previewGoalTrackedTime(httpClient, organization_id, workspace_id, data, signal) {
34257
34263
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals/preview`, {
34258
34264
  signal,
@@ -36141,6 +36147,33 @@ const generatedFocusOperations = [
36141
36147
  ]));
36142
36148
  }
36143
36149
  },
36150
+ {
36151
+ id: "focus.goals.reorder",
36152
+ family: "focus",
36153
+ resource: "goals",
36154
+ action: "reorder",
36155
+ title: "Reorder Goals",
36156
+ description: "Reorder Goals.",
36157
+ safety: "read",
36158
+ destructive: false,
36159
+ cli: {
36160
+ group: ["goals"],
36161
+ command: "reorder",
36162
+ interactive: "available"
36163
+ },
36164
+ mcp: { entityTool: "goals" },
36165
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ goal_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
36166
+ execute: (input, { client }) => {
36167
+ const data = input;
36168
+ return client.runGeneratedRequest("reorderGoals", () => callGeneratedRequest(reorderGoals, [
36169
+ client.httpClient,
36170
+ client.organizationId,
36171
+ client.workspaceIdNumber,
36172
+ data.payload ?? data.data ?? data,
36173
+ void 0
36174
+ ]));
36175
+ }
36176
+ },
36144
36177
  {
36145
36178
  id: "focus.goals.update",
36146
36179
  family: "focus",
@@ -45692,7 +45725,7 @@ import_main.default.config({
45692
45725
  quiet: true,
45693
45726
  ignore: ["MISSING_ENV_FILE"]
45694
45727
  });
45695
- const packageVersion = "1.5.44";
45728
+ const packageVersion = "1.5.45";
45696
45729
  function resolvePublicUrls() {
45697
45730
  return {
45698
45731
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -45757,4 +45790,4 @@ function bootstrapServer(options = {}) {
45757
45790
  //#endregion
45758
45791
  export { runMcpCli as n, bootstrapServer as t };
45759
45792
 
45760
- //# sourceMappingURL=src-DHHmttsB.js.map
45793
+ //# sourceMappingURL=src-DIg53bZB.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.5.44",
3
+ "version": "1.5.45",
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",