@togglhq/mcp 1.5.51 → 1.5.53
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 +1 -1
- package/build/index.js +1 -1
- package/build/{src-DIg3xz_P.js → src-DTZxuEgp.js} +61 -4
- package/package.json +1 -1
package/build/cli.js
CHANGED
package/build/index.js
CHANGED
|
@@ -34169,6 +34169,17 @@ async function capacityGetComputations(httpClient, organization_id, workspace_id
|
|
|
34169
34169
|
}).json();
|
|
34170
34170
|
}
|
|
34171
34171
|
//#endregion
|
|
34172
|
+
//#region ../focus-queries/dist/capacity-settings/requests.ts
|
|
34173
|
+
async function getCapacitySettings(httpClient, workspace_id, signal) {
|
|
34174
|
+
return await httpClient.get(`workspaces/${workspace_id}/capacity-settings`, { signal }).json();
|
|
34175
|
+
}
|
|
34176
|
+
async function updateCapacitySettings(httpClient, workspace_id, data, signal) {
|
|
34177
|
+
return await httpClient.patch(`workspaces/${workspace_id}/capacity-settings`, {
|
|
34178
|
+
signal,
|
|
34179
|
+
json: data
|
|
34180
|
+
}).json();
|
|
34181
|
+
}
|
|
34182
|
+
//#endregion
|
|
34172
34183
|
//#region ../focus-queries/dist/composite/requests.ts
|
|
34173
34184
|
async function compositeCreateProject(httpClient, organization_id, workspace_id, data, signal) {
|
|
34174
34185
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/composite/projects`, {
|
|
@@ -35316,6 +35327,54 @@ const generatedFocusOperations = [
|
|
|
35316
35327
|
]));
|
|
35317
35328
|
}
|
|
35318
35329
|
},
|
|
35330
|
+
{
|
|
35331
|
+
id: "focus.capacities.settings-list",
|
|
35332
|
+
family: "focus",
|
|
35333
|
+
resource: "capacities",
|
|
35334
|
+
action: "settings-list",
|
|
35335
|
+
title: "Settings List Capacities",
|
|
35336
|
+
description: "Settings List Capacities.",
|
|
35337
|
+
safety: "read",
|
|
35338
|
+
destructive: false,
|
|
35339
|
+
cli: {
|
|
35340
|
+
group: ["capacities", "settings"],
|
|
35341
|
+
command: "list",
|
|
35342
|
+
interactive: "hidden"
|
|
35343
|
+
},
|
|
35344
|
+
mcp: { entityTool: "capacities" },
|
|
35345
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
35346
|
+
execute: (_input, { client }) => client.runGeneratedRequest("getCapacitySettings", () => callGeneratedRequest(getCapacitySettings, [
|
|
35347
|
+
client.httpClient,
|
|
35348
|
+
client.workspaceIdNumber,
|
|
35349
|
+
void 0
|
|
35350
|
+
]))
|
|
35351
|
+
},
|
|
35352
|
+
{
|
|
35353
|
+
id: "focus.capacities.settings-update",
|
|
35354
|
+
family: "focus",
|
|
35355
|
+
resource: "capacities",
|
|
35356
|
+
action: "settings-update",
|
|
35357
|
+
title: "Settings Update Capacities",
|
|
35358
|
+
description: "Settings Update Capacities.",
|
|
35359
|
+
safety: "update",
|
|
35360
|
+
destructive: false,
|
|
35361
|
+
cli: {
|
|
35362
|
+
group: ["capacities", "settings"],
|
|
35363
|
+
command: "update",
|
|
35364
|
+
interactive: "default"
|
|
35365
|
+
},
|
|
35366
|
+
mcp: { entityTool: "capacities" },
|
|
35367
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ public_holidays_enabled: /* @__PURE__ */ boolean$1() }) }),
|
|
35368
|
+
execute: (input, { client }) => {
|
|
35369
|
+
const data = input;
|
|
35370
|
+
return client.runGeneratedRequest("updateCapacitySettings", () => callGeneratedRequest(updateCapacitySettings, [
|
|
35371
|
+
client.httpClient,
|
|
35372
|
+
client.workspaceIdNumber,
|
|
35373
|
+
data.payload ?? data.data ?? data,
|
|
35374
|
+
void 0
|
|
35375
|
+
]));
|
|
35376
|
+
}
|
|
35377
|
+
},
|
|
35319
35378
|
{
|
|
35320
35379
|
id: "focus.clients.create",
|
|
35321
35380
|
family: "focus",
|
|
@@ -36004,7 +36063,6 @@ const generatedFocusOperations = [
|
|
|
36004
36063
|
target_seconds: /* @__PURE__ */ number$2(),
|
|
36005
36064
|
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
36006
36065
|
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
36007
|
-
active: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
36008
36066
|
client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
36009
36067
|
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
36010
36068
|
}) }),
|
|
@@ -36134,7 +36192,6 @@ const generatedFocusOperations = [
|
|
|
36134
36192
|
target_seconds: /* @__PURE__ */ number$2(),
|
|
36135
36193
|
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
36136
36194
|
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
36137
|
-
active: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
36138
36195
|
client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
36139
36196
|
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
36140
36197
|
}) }),
|
|
@@ -45728,7 +45785,7 @@ import_main.default.config({
|
|
|
45728
45785
|
quiet: true,
|
|
45729
45786
|
ignore: ["MISSING_ENV_FILE"]
|
|
45730
45787
|
});
|
|
45731
|
-
const packageVersion = "1.5.
|
|
45788
|
+
const packageVersion = "1.5.53";
|
|
45732
45789
|
function resolvePublicUrls() {
|
|
45733
45790
|
return {
|
|
45734
45791
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -45793,4 +45850,4 @@ function bootstrapServer(options = {}) {
|
|
|
45793
45850
|
//#endregion
|
|
45794
45851
|
export { runMcpCli as n, bootstrapServer as t };
|
|
45795
45852
|
|
|
45796
|
-
//# sourceMappingURL=src-
|
|
45853
|
+
//# sourceMappingURL=src-DTZxuEgp.js.map
|