@togglhq/mcp 1.11.86 → 1.11.87
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 +2 -2
- package/build/index.js +1 -1
- package/build/{src-DgVyWhG2.js → src-BJpbMA5N.js} +317 -32
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as getProductAnalyticsDistinctId, c as resolvePublicSentryDsn, i as captureToolInvocation, l as shutdownProductAnalytics, n as runMcpCli, o as initProductAnalytics, r as PUBLIC_SENTRY_PRIVACY_OPTIONS, s as resolveProductAnalyticsDistinctId } from "./src-
|
|
2
|
+
import { a as getProductAnalyticsDistinctId, c as resolvePublicSentryDsn, i as captureToolInvocation, l as shutdownProductAnalytics, n as runMcpCli, o as initProductAnalytics, r as PUBLIC_SENTRY_PRIVACY_OPTIONS, s as resolveProductAnalyticsDistinctId } from "./src-BJpbMA5N.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.11.
|
|
165
|
+
const packageVersion = "1.11.87";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -32773,10 +32773,6 @@ function _joinExpects$1(values$1, separator) {
|
|
|
32773
32773
|
*/
|
|
32774
32774
|
const ISO_DATE_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
|
|
32775
32775
|
/**
|
|
32776
|
-
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time regex.
|
|
32777
|
-
*/
|
|
32778
|
-
const ISO_DATE_TIME_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3]):[0-5]\d$/u;
|
|
32779
|
-
/**
|
|
32780
32776
|
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
|
|
32781
32777
|
* space as a date/time separator and an optional space before the UTC offset.
|
|
32782
32778
|
*/
|
|
@@ -32830,22 +32826,6 @@ function isoDate$1(message$1) {
|
|
|
32830
32826
|
};
|
|
32831
32827
|
}
|
|
32832
32828
|
/* @__NO_SIDE_EFFECTS__ */
|
|
32833
|
-
function isoDateTime$1(message$1) {
|
|
32834
|
-
return {
|
|
32835
|
-
kind: "validation",
|
|
32836
|
-
type: "iso_date_time",
|
|
32837
|
-
reference: isoDateTime$1,
|
|
32838
|
-
async: false,
|
|
32839
|
-
expects: null,
|
|
32840
|
-
requirement: ISO_DATE_TIME_REGEX$1,
|
|
32841
|
-
message: message$1,
|
|
32842
|
-
"~run"(dataset, config$1) {
|
|
32843
|
-
if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue$1(this, "date-time", dataset, config$1);
|
|
32844
|
-
return dataset;
|
|
32845
|
-
}
|
|
32846
|
-
};
|
|
32847
|
-
}
|
|
32848
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
32849
32829
|
function isoTimestamp(message$1) {
|
|
32850
32830
|
return {
|
|
32851
32831
|
kind: "validation",
|
|
@@ -38282,7 +38262,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38282
38262
|
]))
|
|
38283
38263
|
});
|
|
38284
38264
|
//#endregion
|
|
38285
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38265
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38286
38266
|
async function getInvitations(httpClient, signal) {
|
|
38287
38267
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38288
38268
|
}
|
|
@@ -38299,7 +38279,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38299
38279
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38300
38280
|
}
|
|
38301
38281
|
//#endregion
|
|
38302
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38282
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38303
38283
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38304
38284
|
const searchParams = new URLSearchParams();
|
|
38305
38285
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38311,7 +38291,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38311
38291
|
return searchParams;
|
|
38312
38292
|
}
|
|
38313
38293
|
//#endregion
|
|
38314
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38294
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38315
38295
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38316
38296
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38317
38297
|
}
|
|
@@ -38325,7 +38305,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38325
38305
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38326
38306
|
}
|
|
38327
38307
|
//#endregion
|
|
38328
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38308
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38329
38309
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38330
38310
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38331
38311
|
}
|
|
@@ -38334,7 +38314,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
|
|
|
38334
38314
|
}
|
|
38335
38315
|
const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
|
|
38336
38316
|
working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
|
|
38337
|
-
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */
|
|
38317
|
+
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
|
|
38338
38318
|
weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
|
|
38339
38319
|
});
|
|
38340
38320
|
const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
@@ -38345,7 +38325,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38345
38325
|
});
|
|
38346
38326
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38347
38327
|
//#endregion
|
|
38348
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38328
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38349
38329
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38350
38330
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38351
38331
|
signal,
|
|
@@ -38356,12 +38336,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38356
38336
|
})).json();
|
|
38357
38337
|
}
|
|
38358
38338
|
//#endregion
|
|
38359
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38339
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38360
38340
|
async function getStatus(httpClient, signal) {
|
|
38361
38341
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38362
38342
|
}
|
|
38363
38343
|
//#endregion
|
|
38364
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38344
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38365
38345
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38366
38346
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38367
38347
|
signal,
|
|
@@ -38389,7 +38369,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38389
38369
|
return response.json();
|
|
38390
38370
|
}
|
|
38391
38371
|
//#endregion
|
|
38392
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38372
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38393
38373
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38394
38374
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38395
38375
|
}
|
|
@@ -42285,6 +42265,61 @@ async function patchUserCustomFieldValues(httpClient, organization_id, workspace
|
|
|
42285
42265
|
}).json();
|
|
42286
42266
|
}
|
|
42287
42267
|
//#endregion
|
|
42268
|
+
//#region ../focus-queries/dist/designations/requests.ts
|
|
42269
|
+
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { name, page, per_page, order_by } = {}, signal) {
|
|
42270
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
42271
|
+
signal,
|
|
42272
|
+
searchParams: buildSearchParams$2({
|
|
42273
|
+
name,
|
|
42274
|
+
page,
|
|
42275
|
+
per_page,
|
|
42276
|
+
order_by
|
|
42277
|
+
})
|
|
42278
|
+
}).json();
|
|
42279
|
+
}
|
|
42280
|
+
async function createWorkspaceDesignation(httpClient, organization_id, workspace_id, data, signal) {
|
|
42281
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
42282
|
+
signal,
|
|
42283
|
+
json: data
|
|
42284
|
+
}).json();
|
|
42285
|
+
}
|
|
42286
|
+
async function bulkCreateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
|
|
42287
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
42288
|
+
signal,
|
|
42289
|
+
json: data
|
|
42290
|
+
}).json();
|
|
42291
|
+
}
|
|
42292
|
+
async function bulkDeleteWorkspaceDesignations(httpClient, organization_id, workspace_id, ids, all_or_none, signal) {
|
|
42293
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
42294
|
+
signal,
|
|
42295
|
+
searchParams: buildSearchParams$2({
|
|
42296
|
+
ids,
|
|
42297
|
+
all_or_none
|
|
42298
|
+
})
|
|
42299
|
+
}).json();
|
|
42300
|
+
}
|
|
42301
|
+
async function bulkUpdateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
|
|
42302
|
+
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
42303
|
+
signal,
|
|
42304
|
+
json: data
|
|
42305
|
+
}).json();
|
|
42306
|
+
}
|
|
42307
|
+
async function updateWorkspaceDesignationMembers(httpClient, organization_id, workspace_id, data, signal) {
|
|
42308
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/members`, {
|
|
42309
|
+
signal,
|
|
42310
|
+
json: data
|
|
42311
|
+
}).json();
|
|
42312
|
+
}
|
|
42313
|
+
async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
|
|
42314
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal }).json();
|
|
42315
|
+
}
|
|
42316
|
+
async function updateWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, data, signal) {
|
|
42317
|
+
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, {
|
|
42318
|
+
signal,
|
|
42319
|
+
json: data
|
|
42320
|
+
}).json();
|
|
42321
|
+
}
|
|
42322
|
+
//#endregion
|
|
42288
42323
|
//#region ../focus-queries/dist/goals/requests.ts
|
|
42289
42324
|
async function createGoal(httpClient, organization_id, workspace_id, data, signal) {
|
|
42290
42325
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals`, {
|
|
@@ -44431,6 +44466,256 @@ const generatedFocusOperations = [
|
|
|
44431
44466
|
]));
|
|
44432
44467
|
}
|
|
44433
44468
|
},
|
|
44469
|
+
{
|
|
44470
|
+
id: "focus.designations.bulk-create-workspace",
|
|
44471
|
+
family: "focus",
|
|
44472
|
+
resource: "designations",
|
|
44473
|
+
action: "bulk-create-workspace",
|
|
44474
|
+
title: "Bulk Create Workspace Designations",
|
|
44475
|
+
description: "Bulk Create Workspace Designations.",
|
|
44476
|
+
safety: "create",
|
|
44477
|
+
destructive: false,
|
|
44478
|
+
cli: {
|
|
44479
|
+
group: ["designations", "bulk"],
|
|
44480
|
+
command: "create-workspace",
|
|
44481
|
+
interactive: "default"
|
|
44482
|
+
},
|
|
44483
|
+
mcp: { entityTool: "designations" },
|
|
44484
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
44485
|
+
name: /* @__PURE__ */ string$1(),
|
|
44486
|
+
member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
44487
|
+
})) }) }),
|
|
44488
|
+
execute: (input, { client }) => {
|
|
44489
|
+
const data = input;
|
|
44490
|
+
return client.runGeneratedRequest("bulkCreateWorkspaceDesignations", () => callGeneratedRequest(bulkCreateWorkspaceDesignations, [
|
|
44491
|
+
client.httpClient,
|
|
44492
|
+
client.organizationId,
|
|
44493
|
+
client.workspaceIdNumber,
|
|
44494
|
+
data.payload ?? data.data ?? data,
|
|
44495
|
+
void 0
|
|
44496
|
+
]));
|
|
44497
|
+
}
|
|
44498
|
+
},
|
|
44499
|
+
{
|
|
44500
|
+
id: "focus.designations.bulk-delete-workspace",
|
|
44501
|
+
family: "focus",
|
|
44502
|
+
resource: "designations",
|
|
44503
|
+
action: "bulk-delete-workspace",
|
|
44504
|
+
title: "Bulk Delete Workspace Designations",
|
|
44505
|
+
description: "Bulk Delete Workspace Designations.",
|
|
44506
|
+
safety: "delete",
|
|
44507
|
+
destructive: true,
|
|
44508
|
+
cli: {
|
|
44509
|
+
group: ["designations", "bulk"],
|
|
44510
|
+
command: "delete-workspace",
|
|
44511
|
+
interactive: "default"
|
|
44512
|
+
},
|
|
44513
|
+
mcp: { entityTool: "designations" },
|
|
44514
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44515
|
+
all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
44516
|
+
ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2())
|
|
44517
|
+
}),
|
|
44518
|
+
execute: (input, { client }) => {
|
|
44519
|
+
const data = input;
|
|
44520
|
+
return client.runGeneratedRequest("bulkDeleteWorkspaceDesignations", () => callGeneratedRequest(bulkDeleteWorkspaceDesignations, [
|
|
44521
|
+
client.httpClient,
|
|
44522
|
+
client.organizationId,
|
|
44523
|
+
client.workspaceIdNumber,
|
|
44524
|
+
data.ids,
|
|
44525
|
+
data.all_or_none,
|
|
44526
|
+
void 0
|
|
44527
|
+
]));
|
|
44528
|
+
}
|
|
44529
|
+
},
|
|
44530
|
+
{
|
|
44531
|
+
id: "focus.designations.bulk-update-workspace",
|
|
44532
|
+
family: "focus",
|
|
44533
|
+
resource: "designations",
|
|
44534
|
+
action: "bulk-update-workspace",
|
|
44535
|
+
title: "Bulk Update Workspace Designations",
|
|
44536
|
+
description: "Bulk Update Workspace Designations.",
|
|
44537
|
+
safety: "update",
|
|
44538
|
+
destructive: false,
|
|
44539
|
+
cli: {
|
|
44540
|
+
group: ["designations", "bulk"],
|
|
44541
|
+
command: "update-workspace",
|
|
44542
|
+
interactive: "default"
|
|
44543
|
+
},
|
|
44544
|
+
mcp: { entityTool: "designations" },
|
|
44545
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
44546
|
+
designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
44547
|
+
id: /* @__PURE__ */ number$2(),
|
|
44548
|
+
name: /* @__PURE__ */ string$1()
|
|
44549
|
+
})),
|
|
44550
|
+
all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
44551
|
+
}) }),
|
|
44552
|
+
execute: (input, { client }) => {
|
|
44553
|
+
const data = input;
|
|
44554
|
+
return client.runGeneratedRequest("bulkUpdateWorkspaceDesignations", () => callGeneratedRequest(bulkUpdateWorkspaceDesignations, [
|
|
44555
|
+
client.httpClient,
|
|
44556
|
+
client.organizationId,
|
|
44557
|
+
client.workspaceIdNumber,
|
|
44558
|
+
data.payload ?? data.data ?? data,
|
|
44559
|
+
void 0
|
|
44560
|
+
]));
|
|
44561
|
+
}
|
|
44562
|
+
},
|
|
44563
|
+
{
|
|
44564
|
+
id: "focus.designations.create-workspace",
|
|
44565
|
+
family: "focus",
|
|
44566
|
+
resource: "designations",
|
|
44567
|
+
action: "create-workspace",
|
|
44568
|
+
title: "Create Workspace Designations",
|
|
44569
|
+
description: "Create Workspace Designations.",
|
|
44570
|
+
safety: "create",
|
|
44571
|
+
destructive: false,
|
|
44572
|
+
cli: {
|
|
44573
|
+
group: ["designations"],
|
|
44574
|
+
command: "create-workspace",
|
|
44575
|
+
interactive: "default"
|
|
44576
|
+
},
|
|
44577
|
+
mcp: { entityTool: "designations" },
|
|
44578
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
44579
|
+
name: /* @__PURE__ */ string$1(),
|
|
44580
|
+
member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
44581
|
+
}) }),
|
|
44582
|
+
execute: (input, { client }) => {
|
|
44583
|
+
const data = input;
|
|
44584
|
+
return client.runGeneratedRequest("createWorkspaceDesignation", () => callGeneratedRequest(createWorkspaceDesignation, [
|
|
44585
|
+
client.httpClient,
|
|
44586
|
+
client.organizationId,
|
|
44587
|
+
client.workspaceIdNumber,
|
|
44588
|
+
data.payload ?? data.data ?? data,
|
|
44589
|
+
void 0
|
|
44590
|
+
]));
|
|
44591
|
+
}
|
|
44592
|
+
},
|
|
44593
|
+
{
|
|
44594
|
+
id: "focus.designations.delete-workspace",
|
|
44595
|
+
family: "focus",
|
|
44596
|
+
resource: "designations",
|
|
44597
|
+
action: "delete-workspace",
|
|
44598
|
+
title: "Delete Workspace Designations",
|
|
44599
|
+
description: "Delete Workspace Designations.",
|
|
44600
|
+
safety: "delete",
|
|
44601
|
+
destructive: true,
|
|
44602
|
+
cli: {
|
|
44603
|
+
group: ["designations"],
|
|
44604
|
+
command: "delete-workspace",
|
|
44605
|
+
interactive: "default"
|
|
44606
|
+
},
|
|
44607
|
+
mcp: { entityTool: "designations" },
|
|
44608
|
+
inputSchema: /* @__PURE__ */ looseObject({ designation_id: /* @__PURE__ */ number$2() }),
|
|
44609
|
+
execute: (input, { client }) => {
|
|
44610
|
+
const data = input;
|
|
44611
|
+
return client.runGeneratedRequest("deleteWorkspaceDesignation", () => callGeneratedRequest(deleteWorkspaceDesignation, [
|
|
44612
|
+
client.httpClient,
|
|
44613
|
+
client.organizationId,
|
|
44614
|
+
client.workspaceIdNumber,
|
|
44615
|
+
data.designation_id,
|
|
44616
|
+
void 0
|
|
44617
|
+
]));
|
|
44618
|
+
}
|
|
44619
|
+
},
|
|
44620
|
+
{
|
|
44621
|
+
id: "focus.designations.get-workspace-designations",
|
|
44622
|
+
family: "focus",
|
|
44623
|
+
resource: "designations",
|
|
44624
|
+
action: "get-workspace-designations",
|
|
44625
|
+
title: "Get Workspace Designations Designations",
|
|
44626
|
+
description: "Get Workspace Designations Designations.",
|
|
44627
|
+
safety: "read",
|
|
44628
|
+
destructive: false,
|
|
44629
|
+
cli: {
|
|
44630
|
+
group: ["designations"],
|
|
44631
|
+
command: "get-workspace-designations",
|
|
44632
|
+
interactive: "hidden"
|
|
44633
|
+
},
|
|
44634
|
+
mcp: { entityTool: "designations" },
|
|
44635
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44636
|
+
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
44637
|
+
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
44638
|
+
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
44639
|
+
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
44640
|
+
}),
|
|
44641
|
+
execute: (input, { client }) => {
|
|
44642
|
+
const data = input;
|
|
44643
|
+
return client.runGeneratedRequest("getWorkspaceDesignationsClassic", () => callGeneratedRequest(getWorkspaceDesignationsClassic, [
|
|
44644
|
+
client.httpClient,
|
|
44645
|
+
client.organizationId,
|
|
44646
|
+
client.workspaceIdNumber,
|
|
44647
|
+
data,
|
|
44648
|
+
void 0
|
|
44649
|
+
]));
|
|
44650
|
+
}
|
|
44651
|
+
},
|
|
44652
|
+
{
|
|
44653
|
+
id: "focus.designations.update-workspace",
|
|
44654
|
+
family: "focus",
|
|
44655
|
+
resource: "designations",
|
|
44656
|
+
action: "update-workspace",
|
|
44657
|
+
title: "Update Workspace Designations",
|
|
44658
|
+
description: "Update Workspace Designations.",
|
|
44659
|
+
safety: "update",
|
|
44660
|
+
destructive: false,
|
|
44661
|
+
cli: {
|
|
44662
|
+
group: ["designations"],
|
|
44663
|
+
command: "update-workspace",
|
|
44664
|
+
interactive: "default"
|
|
44665
|
+
},
|
|
44666
|
+
mcp: { entityTool: "designations" },
|
|
44667
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44668
|
+
designation_id: /* @__PURE__ */ number$2(),
|
|
44669
|
+
payload: /* @__PURE__ */ looseObject({ name: /* @__PURE__ */ string$1() })
|
|
44670
|
+
}),
|
|
44671
|
+
execute: (input, { client }) => {
|
|
44672
|
+
const data = input;
|
|
44673
|
+
return client.runGeneratedRequest("updateWorkspaceDesignation", () => callGeneratedRequest(updateWorkspaceDesignation, [
|
|
44674
|
+
client.httpClient,
|
|
44675
|
+
client.organizationId,
|
|
44676
|
+
client.workspaceIdNumber,
|
|
44677
|
+
data.designation_id,
|
|
44678
|
+
data.payload ?? data.data ?? data,
|
|
44679
|
+
void 0
|
|
44680
|
+
]));
|
|
44681
|
+
}
|
|
44682
|
+
},
|
|
44683
|
+
{
|
|
44684
|
+
id: "focus.designations.update-workspace-designation-members",
|
|
44685
|
+
family: "focus",
|
|
44686
|
+
resource: "designations",
|
|
44687
|
+
action: "update-workspace-designation-members",
|
|
44688
|
+
title: "Update Workspace Designation Members Designations",
|
|
44689
|
+
description: "Update Workspace Designation Members Designations.",
|
|
44690
|
+
safety: "update",
|
|
44691
|
+
destructive: false,
|
|
44692
|
+
cli: {
|
|
44693
|
+
group: ["designations"],
|
|
44694
|
+
command: "update-workspace-designation-members",
|
|
44695
|
+
interactive: "default"
|
|
44696
|
+
},
|
|
44697
|
+
mcp: { entityTool: "designations" },
|
|
44698
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
44699
|
+
add: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
44700
|
+
designation_id: /* @__PURE__ */ number$2(),
|
|
44701
|
+
toggl_user_id: /* @__PURE__ */ number$2()
|
|
44702
|
+
}))),
|
|
44703
|
+
remove: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
44704
|
+
designation_id: /* @__PURE__ */ number$2(),
|
|
44705
|
+
toggl_user_id: /* @__PURE__ */ number$2()
|
|
44706
|
+
})))
|
|
44707
|
+
}) }),
|
|
44708
|
+
execute: (input, { client }) => {
|
|
44709
|
+
const data = input;
|
|
44710
|
+
return client.runGeneratedRequest("updateWorkspaceDesignationMembers", () => callGeneratedRequest(updateWorkspaceDesignationMembers, [
|
|
44711
|
+
client.httpClient,
|
|
44712
|
+
client.organizationId,
|
|
44713
|
+
client.workspaceIdNumber,
|
|
44714
|
+
data.payload ?? data.data ?? data,
|
|
44715
|
+
void 0
|
|
44716
|
+
]));
|
|
44717
|
+
}
|
|
44718
|
+
},
|
|
44434
44719
|
{
|
|
44435
44720
|
id: "focus.goals.create",
|
|
44436
44721
|
family: "focus",
|
|
@@ -55162,7 +55447,7 @@ function registerWorkspaceTools(server) {
|
|
|
55162
55447
|
//#region src/package-version.ts
|
|
55163
55448
|
function mcpPackageVersion() {
|
|
55164
55449
|
try {
|
|
55165
|
-
return "1.11.
|
|
55450
|
+
return "1.11.87";
|
|
55166
55451
|
} catch {
|
|
55167
55452
|
return "unknown";
|
|
55168
55453
|
}
|
|
@@ -55337,7 +55622,7 @@ import_main.default.config({
|
|
|
55337
55622
|
quiet: true,
|
|
55338
55623
|
ignore: ["MISSING_ENV_FILE"]
|
|
55339
55624
|
});
|
|
55340
|
-
const packageVersion = "1.11.
|
|
55625
|
+
const packageVersion = "1.11.87";
|
|
55341
55626
|
function resolvePublicUrls() {
|
|
55342
55627
|
return {
|
|
55343
55628
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -55402,4 +55687,4 @@ function bootstrapServer(options = {}) {
|
|
|
55402
55687
|
//#endregion
|
|
55403
55688
|
export { getProductAnalyticsDistinctId as a, resolvePublicSentryDsn as c, captureToolInvocation as i, shutdownProductAnalytics as l, runMcpCli as n, initProductAnalytics as o, PUBLIC_SENTRY_PRIVACY_OPTIONS as r, resolveProductAnalyticsDistinctId as s, bootstrapServer as t };
|
|
55404
55689
|
|
|
55405
|
-
//# sourceMappingURL=src-
|
|
55690
|
+
//# sourceMappingURL=src-BJpbMA5N.js.map
|