@togglhq/mcp 1.11.162 → 1.11.163
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-DR1oXrCU.js → src-ChjTuXUv.js} +70 -127
- 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-ChjTuXUv.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.163";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -38050,7 +38050,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
|
|
|
38050
38050
|
json: data
|
|
38051
38051
|
}).json();
|
|
38052
38052
|
}
|
|
38053
|
-
async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id,
|
|
38053
|
+
async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, type, order_by, archived, include_taskless, expand_calendar_event }, signal) {
|
|
38054
38054
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
|
|
38055
38055
|
signal,
|
|
38056
38056
|
searchParams: buildSearchParams$2({
|
|
@@ -38058,7 +38058,6 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
|
|
|
38058
38058
|
date_to,
|
|
38059
38059
|
task_id,
|
|
38060
38060
|
status_id,
|
|
38061
|
-
project_id,
|
|
38062
38061
|
type,
|
|
38063
38062
|
order_by,
|
|
38064
38063
|
archived,
|
|
@@ -38209,7 +38208,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38209
38208
|
]))
|
|
38210
38209
|
});
|
|
38211
38210
|
//#endregion
|
|
38212
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38211
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38213
38212
|
async function getInvitations(httpClient, signal) {
|
|
38214
38213
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38215
38214
|
}
|
|
@@ -38226,7 +38225,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38226
38225
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38227
38226
|
}
|
|
38228
38227
|
//#endregion
|
|
38229
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38228
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38230
38229
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38231
38230
|
const searchParams = new URLSearchParams();
|
|
38232
38231
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38238,7 +38237,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38238
38237
|
return searchParams;
|
|
38239
38238
|
}
|
|
38240
38239
|
//#endregion
|
|
38241
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38240
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38242
38241
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38243
38242
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38244
38243
|
}
|
|
@@ -38252,7 +38251,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38252
38251
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38253
38252
|
}
|
|
38254
38253
|
//#endregion
|
|
38255
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38254
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38256
38255
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38257
38256
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38258
38257
|
}
|
|
@@ -38272,7 +38271,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38272
38271
|
});
|
|
38273
38272
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38274
38273
|
//#endregion
|
|
38275
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38274
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38276
38275
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38277
38276
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38278
38277
|
signal,
|
|
@@ -38283,12 +38282,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38283
38282
|
})).json();
|
|
38284
38283
|
}
|
|
38285
38284
|
//#endregion
|
|
38286
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38285
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38287
38286
|
async function getStatus(httpClient, signal) {
|
|
38288
38287
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38289
38288
|
}
|
|
38290
38289
|
//#endregion
|
|
38291
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38290
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38292
38291
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38293
38292
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38294
38293
|
signal,
|
|
@@ -38316,7 +38315,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38316
38315
|
return response.json();
|
|
38317
38316
|
}
|
|
38318
38317
|
//#endregion
|
|
38319
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38318
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38320
38319
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38321
38320
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38322
38321
|
}
|
|
@@ -42093,14 +42092,13 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
|
|
|
42093
42092
|
}
|
|
42094
42093
|
//#endregion
|
|
42095
42094
|
//#region ../focus-queries/dist/capacities/requests.ts
|
|
42096
|
-
async function capacityGetComputations(httpClient, organization_id, workspace_id, group, { start_date, end_date,
|
|
42095
|
+
async function capacityGetComputations(httpClient, organization_id, workspace_id, group, { user_id, start_date, end_date, private: private_, task_source, unit, include_drafts, include_task_estimates }, signal) {
|
|
42097
42096
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
|
|
42098
42097
|
signal,
|
|
42099
42098
|
searchParams: buildSearchParams$2({
|
|
42099
|
+
user_id,
|
|
42100
42100
|
start_date,
|
|
42101
42101
|
end_date,
|
|
42102
|
-
user_id,
|
|
42103
|
-
team_id,
|
|
42104
42102
|
private: private_,
|
|
42105
42103
|
task_source,
|
|
42106
42104
|
unit,
|
|
@@ -42160,15 +42158,6 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
|
|
|
42160
42158
|
async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
42161
42159
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
|
|
42162
42160
|
}
|
|
42163
|
-
async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
42164
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
|
|
42165
|
-
}
|
|
42166
|
-
async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
42167
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
|
|
42168
|
-
signal,
|
|
42169
|
-
json: data
|
|
42170
|
-
}).json();
|
|
42171
|
-
}
|
|
42172
42161
|
async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
|
|
42173
42162
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
42174
42163
|
signal,
|
|
@@ -42476,6 +42465,9 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
|
|
|
42476
42465
|
json: data
|
|
42477
42466
|
}).json();
|
|
42478
42467
|
}
|
|
42468
|
+
async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
|
|
42469
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
|
|
42470
|
+
}
|
|
42479
42471
|
async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
42480
42472
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
|
|
42481
42473
|
}
|
|
@@ -42779,10 +42771,9 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
|
|
|
42779
42771
|
}
|
|
42780
42772
|
//#endregion
|
|
42781
42773
|
//#region ../focus-queries/dist/task-groups/requests.ts
|
|
42782
|
-
async function getUserTaskGroupsByProject(httpClient, organization_id, workspace_id, { project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter
|
|
42774
|
+
async function getUserTaskGroupsByProject(httpClient, organization_id, workspace_id, { project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter }, signal) {
|
|
42783
42775
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
|
|
42784
42776
|
signal,
|
|
42785
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
42786
42777
|
searchParams: buildSearchParams$2({
|
|
42787
42778
|
project_id,
|
|
42788
42779
|
source,
|
|
@@ -42815,10 +42806,9 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
|
|
|
42815
42806
|
})
|
|
42816
42807
|
}).json();
|
|
42817
42808
|
}
|
|
42818
|
-
async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id, { team_id, project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter
|
|
42809
|
+
async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id, { team_id, project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter } = {}, signal) {
|
|
42819
42810
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
|
|
42820
42811
|
signal,
|
|
42821
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
42822
42812
|
searchParams: buildSearchParams$2({
|
|
42823
42813
|
team_id,
|
|
42824
42814
|
project_id,
|
|
@@ -42851,10 +42841,9 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
|
|
|
42851
42841
|
})
|
|
42852
42842
|
}).json();
|
|
42853
42843
|
}
|
|
42854
|
-
async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, group, { source, priority, status_id, project_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, page, per_page, order_by
|
|
42844
|
+
async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, group, { source, priority, status_id, project_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, page, per_page, order_by } = {}, signal) {
|
|
42855
42845
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
42856
42846
|
signal,
|
|
42857
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
42858
42847
|
searchParams: buildSearchParams$2({
|
|
42859
42848
|
source,
|
|
42860
42849
|
priority,
|
|
@@ -43542,7 +43531,6 @@ const generatedFocusOperations = [
|
|
|
43542
43531
|
private_: /* @__PURE__ */ unknown$1(),
|
|
43543
43532
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
43544
43533
|
task_source: /* @__PURE__ */ unknown$1(),
|
|
43545
|
-
team_id: /* @__PURE__ */ number$2(),
|
|
43546
43534
|
unit: /* @__PURE__ */ unknown$1(),
|
|
43547
43535
|
user_id: /* @__PURE__ */ number$2()
|
|
43548
43536
|
}),
|
|
@@ -43983,33 +43971,6 @@ const generatedFocusOperations = [
|
|
|
43983
43971
|
]));
|
|
43984
43972
|
}
|
|
43985
43973
|
},
|
|
43986
|
-
{
|
|
43987
|
-
id: "focus.custom-fields.get-allowed-users",
|
|
43988
|
-
family: "focus",
|
|
43989
|
-
resource: "custom-fields",
|
|
43990
|
-
action: "get-allowed-users",
|
|
43991
|
-
title: "Get Allowed Users Custom Fields",
|
|
43992
|
-
description: "Get Allowed Users Custom Fields.",
|
|
43993
|
-
safety: "read",
|
|
43994
|
-
destructive: false,
|
|
43995
|
-
cli: {
|
|
43996
|
-
group: ["custom-fields"],
|
|
43997
|
-
command: "get-allowed-users",
|
|
43998
|
-
interactive: "available"
|
|
43999
|
-
},
|
|
44000
|
-
mcp: { entityTool: "custom-fields" },
|
|
44001
|
-
inputSchema: /* @__PURE__ */ looseObject({ custom_field_id: /* @__PURE__ */ number$2() }),
|
|
44002
|
-
execute: (input, { client }) => {
|
|
44003
|
-
const data = input;
|
|
44004
|
-
return client.runGeneratedRequest("getCustomFieldAllowedUsers", () => callGeneratedRequest(getCustomFieldAllowedUsers, [
|
|
44005
|
-
client.httpClient,
|
|
44006
|
-
client.organizationId,
|
|
44007
|
-
client.workspaceIdNumber,
|
|
44008
|
-
data.custom_field_id,
|
|
44009
|
-
void 0
|
|
44010
|
-
]));
|
|
44011
|
-
}
|
|
44012
|
-
},
|
|
44013
43974
|
{
|
|
44014
43975
|
id: "focus.custom-fields.list",
|
|
44015
43976
|
family: "focus",
|
|
@@ -44179,37 +44140,6 @@ const generatedFocusOperations = [
|
|
|
44179
44140
|
]));
|
|
44180
44141
|
}
|
|
44181
44142
|
},
|
|
44182
|
-
{
|
|
44183
|
-
id: "focus.custom-fields.replace-custom-field-allowed-users",
|
|
44184
|
-
family: "focus",
|
|
44185
|
-
resource: "custom-fields",
|
|
44186
|
-
action: "replace-custom-field-allowed-users",
|
|
44187
|
-
title: "Replace Custom Field Allowed Users Custom Fields",
|
|
44188
|
-
description: "Replace Custom Field Allowed Users Custom Fields.",
|
|
44189
|
-
safety: "update",
|
|
44190
|
-
destructive: false,
|
|
44191
|
-
cli: {
|
|
44192
|
-
group: ["custom-fields"],
|
|
44193
|
-
command: "replace-custom-field-allowed-users",
|
|
44194
|
-
interactive: "default"
|
|
44195
|
-
},
|
|
44196
|
-
mcp: { entityTool: "custom-fields" },
|
|
44197
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
44198
|
-
custom_field_id: /* @__PURE__ */ number$2(),
|
|
44199
|
-
payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) })
|
|
44200
|
-
}),
|
|
44201
|
-
execute: (input, { client }) => {
|
|
44202
|
-
const data = input;
|
|
44203
|
-
return client.runGeneratedRequest("replaceCustomFieldAllowedUsers", () => callGeneratedRequest(replaceCustomFieldAllowedUsers, [
|
|
44204
|
-
client.httpClient,
|
|
44205
|
-
client.organizationId,
|
|
44206
|
-
client.workspaceIdNumber,
|
|
44207
|
-
data.custom_field_id,
|
|
44208
|
-
data.payload ?? data.data ?? data,
|
|
44209
|
-
void 0
|
|
44210
|
-
]));
|
|
44211
|
-
}
|
|
44212
|
-
},
|
|
44213
44143
|
{
|
|
44214
44144
|
id: "focus.custom-fields.update",
|
|
44215
44145
|
family: "focus",
|
|
@@ -44356,7 +44286,13 @@ const generatedFocusOperations = [
|
|
|
44356
44286
|
},
|
|
44357
44287
|
mcp: { entityTool: "goals" },
|
|
44358
44288
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
44289
|
+
billable: /* @__PURE__ */ boolean$1(),
|
|
44359
44290
|
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
44291
|
+
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
44292
|
+
icon: /* @__PURE__ */ string$1(),
|
|
44293
|
+
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
44294
|
+
name: /* @__PURE__ */ string$1(),
|
|
44295
|
+
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44360
44296
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
44361
44297
|
"daily",
|
|
44362
44298
|
"weekly",
|
|
@@ -44364,18 +44300,12 @@ const generatedFocusOperations = [
|
|
|
44364
44300
|
"monthly"
|
|
44365
44301
|
]),
|
|
44366
44302
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
44303
|
+
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44367
44304
|
target_seconds: /* @__PURE__ */ number$2(),
|
|
44368
|
-
|
|
44305
|
+
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44306
|
+
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44369
44307
|
client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44370
|
-
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
44371
|
-
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
44372
|
-
icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44373
|
-
monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
|
|
44374
|
-
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44375
|
-
project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44376
|
-
tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44377
|
-
task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44378
|
-
weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
44308
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
44379
44309
|
}) }),
|
|
44380
44310
|
execute: (input, { client }) => {
|
|
44381
44311
|
const data = input;
|
|
@@ -44481,6 +44411,13 @@ const generatedFocusOperations = [
|
|
|
44481
44411
|
},
|
|
44482
44412
|
mcp: { entityTool: "goals" },
|
|
44483
44413
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
44414
|
+
billable: /* @__PURE__ */ boolean$1(),
|
|
44415
|
+
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
44416
|
+
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
44417
|
+
icon: /* @__PURE__ */ string$1(),
|
|
44418
|
+
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
44419
|
+
name: /* @__PURE__ */ string$1(),
|
|
44420
|
+
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44484
44421
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
44485
44422
|
"daily",
|
|
44486
44423
|
"weekly",
|
|
@@ -44488,19 +44425,12 @@ const generatedFocusOperations = [
|
|
|
44488
44425
|
"monthly"
|
|
44489
44426
|
]),
|
|
44490
44427
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
44491
|
-
|
|
44428
|
+
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44429
|
+
target_seconds: /* @__PURE__ */ number$2(),
|
|
44430
|
+
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44431
|
+
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44492
44432
|
client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44493
|
-
|
|
44494
|
-
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44495
|
-
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
44496
|
-
icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44497
|
-
monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
|
|
44498
|
-
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44499
|
-
project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44500
|
-
tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44501
|
-
target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
44502
|
-
task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44503
|
-
weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
44433
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
44504
44434
|
}) }),
|
|
44505
44435
|
execute: (input, { client }) => {
|
|
44506
44436
|
const data = input;
|
|
@@ -46015,6 +45945,29 @@ const generatedFocusOperations = [
|
|
|
46015
45945
|
]));
|
|
46016
45946
|
}
|
|
46017
45947
|
},
|
|
45948
|
+
{
|
|
45949
|
+
id: "focus.projects.margin-targets-clear-workspace",
|
|
45950
|
+
family: "focus",
|
|
45951
|
+
resource: "projects",
|
|
45952
|
+
action: "margin-targets-clear-workspace",
|
|
45953
|
+
title: "Margin Targets Clear Workspace Projects",
|
|
45954
|
+
description: "Margin Targets Clear Workspace Projects.",
|
|
45955
|
+
safety: "delete",
|
|
45956
|
+
destructive: true,
|
|
45957
|
+
cli: {
|
|
45958
|
+
group: ["projects", "margin-targets"],
|
|
45959
|
+
command: "clear-workspace",
|
|
45960
|
+
interactive: "default"
|
|
45961
|
+
},
|
|
45962
|
+
mcp: { entityTool: "projects" },
|
|
45963
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
45964
|
+
execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
|
|
45965
|
+
client.httpClient,
|
|
45966
|
+
client.organizationId,
|
|
45967
|
+
client.workspaceIdNumber,
|
|
45968
|
+
void 0
|
|
45969
|
+
]))
|
|
45970
|
+
},
|
|
46018
45971
|
{
|
|
46019
45972
|
id: "focus.projects.margin-targets-get",
|
|
46020
45973
|
family: "focus",
|
|
@@ -48417,7 +48370,7 @@ const generatedFocusOperations = [
|
|
|
48417
48370
|
cli: {
|
|
48418
48371
|
group: ["reportschedules"],
|
|
48419
48372
|
command: "upsert-saved-view-schedule",
|
|
48420
|
-
interactive: "
|
|
48373
|
+
interactive: "default"
|
|
48421
48374
|
},
|
|
48422
48375
|
mcp: { entityTool: "reportschedules" },
|
|
48423
48376
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
@@ -48428,10 +48381,8 @@ const generatedFocusOperations = [
|
|
|
48428
48381
|
"weekly",
|
|
48429
48382
|
"monthly"
|
|
48430
48383
|
]),
|
|
48431
|
-
charts: /* @__PURE__ */ unknown$1(),
|
|
48432
48384
|
time: /* @__PURE__ */ string$1(),
|
|
48433
48385
|
day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
48434
|
-
period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
48435
48386
|
recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
48436
48387
|
recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
48437
48388
|
recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
@@ -50446,8 +50397,7 @@ const generatedFocusOperations = [
|
|
|
50446
50397
|
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
50447
50398
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50448
50399
|
user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50449
|
-
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
50450
|
-
xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
50400
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
50451
50401
|
}),
|
|
50452
50402
|
execute: (input, { client }) => {
|
|
50453
50403
|
const data = input;
|
|
@@ -50504,8 +50454,7 @@ const generatedFocusOperations = [
|
|
|
50504
50454
|
tag_id: /* @__PURE__ */ number$2(),
|
|
50505
50455
|
team_id: /* @__PURE__ */ number$2(),
|
|
50506
50456
|
user_cf_filter: /* @__PURE__ */ unknown$1(),
|
|
50507
|
-
user_tag_id: /* @__PURE__ */ number$2()
|
|
50508
|
-
xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
|
|
50457
|
+
user_tag_id: /* @__PURE__ */ number$2()
|
|
50509
50458
|
}),
|
|
50510
50459
|
execute: (input, { client }) => {
|
|
50511
50460
|
const data = input;
|
|
@@ -50561,8 +50510,7 @@ const generatedFocusOperations = [
|
|
|
50561
50510
|
tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50562
50511
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50563
50512
|
user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50564
|
-
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
50565
|
-
xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
50513
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
50566
50514
|
}),
|
|
50567
50515
|
execute: (input, { client }) => {
|
|
50568
50516
|
const data = input;
|
|
@@ -51527,8 +51475,7 @@ const generatedFocusOperations = [
|
|
|
51527
51475
|
required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
|
|
51528
51476
|
"project",
|
|
51529
51477
|
"task",
|
|
51530
|
-
"description"
|
|
51531
|
-
"tags"
|
|
51478
|
+
"description"
|
|
51532
51479
|
]) })),
|
|
51533
51480
|
disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
51534
51481
|
}) }),
|
|
@@ -51731,7 +51678,6 @@ const generatedFocusOperations = [
|
|
|
51731
51678
|
expand_calendar_event: /* @__PURE__ */ unknown$1(),
|
|
51732
51679
|
include_taskless: /* @__PURE__ */ unknown$1(),
|
|
51733
51680
|
order_by: /* @__PURE__ */ unknown$1(),
|
|
51734
|
-
project_id: /* @__PURE__ */ number$2(),
|
|
51735
51681
|
status_id: /* @__PURE__ */ number$2(),
|
|
51736
51682
|
task_id: /* @__PURE__ */ number$2(),
|
|
51737
51683
|
type: /* @__PURE__ */ unknown$1()
|
|
@@ -53349,9 +53295,6 @@ const generatedFocusOperations = [
|
|
|
53349
53295
|
has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53350
53296
|
import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53351
53297
|
new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53352
|
-
notify_project_alerts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53353
|
-
notify_project_member_added: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53354
|
-
notify_task_assigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53355
53298
|
onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53356
53299
|
onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53357
53300
|
onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
@@ -54894,7 +54837,7 @@ function registerWorkspaceTools(server) {
|
|
|
54894
54837
|
//#region src/package-version.ts
|
|
54895
54838
|
function mcpPackageVersion() {
|
|
54896
54839
|
try {
|
|
54897
|
-
return "1.11.
|
|
54840
|
+
return "1.11.163";
|
|
54898
54841
|
} catch {
|
|
54899
54842
|
return "unknown";
|
|
54900
54843
|
}
|
|
@@ -55069,7 +55012,7 @@ import_main.default.config({
|
|
|
55069
55012
|
quiet: true,
|
|
55070
55013
|
ignore: ["MISSING_ENV_FILE"]
|
|
55071
55014
|
});
|
|
55072
|
-
const packageVersion = "1.11.
|
|
55015
|
+
const packageVersion = "1.11.163";
|
|
55073
55016
|
function resolvePublicUrls() {
|
|
55074
55017
|
return {
|
|
55075
55018
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -55134,4 +55077,4 @@ function bootstrapServer(options = {}) {
|
|
|
55134
55077
|
//#endregion
|
|
55135
55078
|
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 };
|
|
55136
55079
|
|
|
55137
|
-
//# sourceMappingURL=src-
|
|
55080
|
+
//# sourceMappingURL=src-ChjTuXUv.js.map
|