@togglhq/mcp 1.5.52 → 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-DlNhcMHm.js → src-DTZxuEgp.js} +61 -2
- 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",
|
|
@@ -45726,7 +45785,7 @@ import_main.default.config({
|
|
|
45726
45785
|
quiet: true,
|
|
45727
45786
|
ignore: ["MISSING_ENV_FILE"]
|
|
45728
45787
|
});
|
|
45729
|
-
const packageVersion = "1.5.
|
|
45788
|
+
const packageVersion = "1.5.53";
|
|
45730
45789
|
function resolvePublicUrls() {
|
|
45731
45790
|
return {
|
|
45732
45791
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -45791,4 +45850,4 @@ function bootstrapServer(options = {}) {
|
|
|
45791
45850
|
//#endregion
|
|
45792
45851
|
export { runMcpCli as n, bootstrapServer as t };
|
|
45793
45852
|
|
|
45794
|
-
//# sourceMappingURL=src-
|
|
45853
|
+
//# sourceMappingURL=src-DTZxuEgp.js.map
|