@togglhq/mcp 1.11.216 → 1.11.218
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-DAy3AqYM.js → src-Bn7WHqpH.js} +14 -82
- 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-Bn7WHqpH.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.218";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -35089,68 +35089,6 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
|
|
|
35089
35089
|
rrule: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35090
35090
|
source_template_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35091
35091
|
start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35092
|
-
task_group_counts: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
35093
|
-
eligible_total: /* @__PURE__ */ number(),
|
|
35094
|
-
matching_total: /* @__PURE__ */ number()
|
|
35095
|
-
})),
|
|
35096
|
-
tasks: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ object({
|
|
35097
|
-
allocation_unit: /* @__PURE__ */ picklist(["percent", "flat"]),
|
|
35098
|
-
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
35099
|
-
eligible_child_count: /* @__PURE__ */ number(),
|
|
35100
|
-
estimate_type: /* @__PURE__ */ picklist(["daily", "total"]),
|
|
35101
|
-
group_id: /* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("GroupID stays stable when a hidden parent is represented by an eligible child.")),
|
|
35102
|
-
id: /* @__PURE__ */ number(),
|
|
35103
|
-
is_template: /* @__PURE__ */ boolean(),
|
|
35104
|
-
matching_child_count: /* @__PURE__ */ number(),
|
|
35105
|
-
name: /* @__PURE__ */ string(),
|
|
35106
|
-
parent_visible: /* @__PURE__ */ boolean(),
|
|
35107
|
-
pinned: /* @__PURE__ */ boolean(),
|
|
35108
|
-
position: /* @__PURE__ */ number(),
|
|
35109
|
-
priority: /* @__PURE__ */ picklist([
|
|
35110
|
-
"none",
|
|
35111
|
-
"low",
|
|
35112
|
-
"medium",
|
|
35113
|
-
"high"
|
|
35114
|
-
]),
|
|
35115
|
-
private: /* @__PURE__ */ boolean(),
|
|
35116
|
-
selectable: /* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Selectable is false for ineligible parents and nonmatching context parents under unified_search.")),
|
|
35117
|
-
source: /* @__PURE__ */ string(),
|
|
35118
|
-
status_id: /* @__PURE__ */ number(),
|
|
35119
|
-
subtasks: /* @__PURE__ */ array(TaskSchema),
|
|
35120
|
-
tag_ids: /* @__PURE__ */ array(/* @__PURE__ */ number()),
|
|
35121
|
-
tags: /* @__PURE__ */ array(TagLiteSchema),
|
|
35122
|
-
toggl_user_id: /* @__PURE__ */ number(),
|
|
35123
|
-
workspace_id: /* @__PURE__ */ number(),
|
|
35124
|
-
archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35125
|
-
assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ number())),
|
|
35126
|
-
assignees: /* @__PURE__ */ optional(/* @__PURE__ */ array(TaskAssignmentSchema)),
|
|
35127
|
-
auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35128
|
-
billable: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
35129
|
-
client: /* @__PURE__ */ optional(ClientLiteSchema),
|
|
35130
|
-
color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35131
|
-
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
|
|
35132
|
-
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35133
|
-
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35134
|
-
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35135
|
-
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35136
|
-
is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
|
|
35137
|
-
metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
|
|
35138
|
-
notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35139
|
-
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35140
|
-
parent_task_name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35141
|
-
priority_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35142
|
-
project: /* @__PURE__ */ optional(ProjectLiteSchema),
|
|
35143
|
-
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35144
|
-
recurrence_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35145
|
-
recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35146
|
-
rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35147
|
-
rrule: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35148
|
-
source_template_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35149
|
-
start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35150
|
-
status: /* @__PURE__ */ optional(StatusLiteSchema),
|
|
35151
|
-
status_updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35152
|
-
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
35153
|
-
}))),
|
|
35154
35092
|
total_tasks: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35155
35093
|
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
35156
35094
|
});
|
|
@@ -37531,14 +37469,12 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
37531
37469
|
}
|
|
37532
37470
|
//#endregion
|
|
37533
37471
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
37534
|
-
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts,
|
|
37472
|
+
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_picker_parent_group_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
|
|
37535
37473
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37536
37474
|
signal,
|
|
37537
37475
|
searchParams: buildSearchParams$2({
|
|
37538
37476
|
member_only,
|
|
37539
37477
|
include_task_counts,
|
|
37540
|
-
include_tasks,
|
|
37541
|
-
unified_search,
|
|
37542
37478
|
include_picker_parent_group_counts,
|
|
37543
37479
|
task_archived,
|
|
37544
37480
|
task_recurring,
|
|
@@ -37933,7 +37869,7 @@ async function putTasksCalendarRange(httpClient, organization_id, workspace_id,
|
|
|
37933
37869
|
})
|
|
37934
37870
|
}).json();
|
|
37935
37871
|
}
|
|
37936
|
-
async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned,
|
|
37872
|
+
async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, search, only_me, page, per_page } = {}, signal) {
|
|
37937
37873
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
|
|
37938
37874
|
signal,
|
|
37939
37875
|
searchParams: buildSearchParams$2({
|
|
@@ -37941,7 +37877,6 @@ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace
|
|
|
37941
37877
|
without_project,
|
|
37942
37878
|
pinned_only,
|
|
37943
37879
|
include_unassigned,
|
|
37944
|
-
unified_search,
|
|
37945
37880
|
search,
|
|
37946
37881
|
only_me,
|
|
37947
37882
|
page,
|
|
@@ -37949,14 +37884,13 @@ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace
|
|
|
37949
37884
|
})
|
|
37950
37885
|
}).json();
|
|
37951
37886
|
}
|
|
37952
|
-
async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned,
|
|
37887
|
+
async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, search, only_me, page, per_page } = {}, signal) {
|
|
37953
37888
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
|
|
37954
37889
|
signal,
|
|
37955
37890
|
searchParams: buildSearchParams$2({
|
|
37956
37891
|
project_id,
|
|
37957
37892
|
without_project,
|
|
37958
37893
|
include_unassigned,
|
|
37959
|
-
unified_search,
|
|
37960
37894
|
search,
|
|
37961
37895
|
only_me,
|
|
37962
37896
|
page,
|
|
@@ -38372,7 +38306,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38372
38306
|
]))
|
|
38373
38307
|
});
|
|
38374
38308
|
//#endregion
|
|
38375
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38309
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38376
38310
|
async function getInvitations(httpClient, signal) {
|
|
38377
38311
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38378
38312
|
}
|
|
@@ -38389,7 +38323,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38389
38323
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38390
38324
|
}
|
|
38391
38325
|
//#endregion
|
|
38392
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38326
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38393
38327
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38394
38328
|
const searchParams = new URLSearchParams();
|
|
38395
38329
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38401,7 +38335,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38401
38335
|
return searchParams;
|
|
38402
38336
|
}
|
|
38403
38337
|
//#endregion
|
|
38404
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38338
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38405
38339
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38406
38340
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38407
38341
|
}
|
|
@@ -38415,7 +38349,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38415
38349
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38416
38350
|
}
|
|
38417
38351
|
//#endregion
|
|
38418
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38352
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38419
38353
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38420
38354
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38421
38355
|
}
|
|
@@ -38435,7 +38369,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38435
38369
|
});
|
|
38436
38370
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38437
38371
|
//#endregion
|
|
38438
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38372
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38439
38373
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38440
38374
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38441
38375
|
signal,
|
|
@@ -38446,12 +38380,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38446
38380
|
})).json();
|
|
38447
38381
|
}
|
|
38448
38382
|
//#endregion
|
|
38449
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38383
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38450
38384
|
async function getStatus(httpClient, signal) {
|
|
38451
38385
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38452
38386
|
}
|
|
38453
38387
|
//#endregion
|
|
38454
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38388
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38455
38389
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38456
38390
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38457
38391
|
signal,
|
|
@@ -38479,7 +38413,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38479
38413
|
return response.json();
|
|
38480
38414
|
}
|
|
38481
38415
|
//#endregion
|
|
38482
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38416
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38483
38417
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38484
38418
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38485
38419
|
}
|
|
@@ -51161,7 +51095,6 @@ const generatedFocusOperations = [
|
|
|
51161
51095
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51162
51096
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51163
51097
|
search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51164
|
-
unified_search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51165
51098
|
without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
51166
51099
|
}),
|
|
51167
51100
|
execute: (input, { client }) => {
|
|
@@ -51199,7 +51132,6 @@ const generatedFocusOperations = [
|
|
|
51199
51132
|
pinned_only: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51200
51133
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51201
51134
|
search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51202
|
-
unified_search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51203
51135
|
without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
51204
51136
|
}),
|
|
51205
51137
|
execute: (input, { client }) => {
|
|
@@ -56278,7 +56210,7 @@ function registerWorkspaceTools(server) {
|
|
|
56278
56210
|
//#region src/package-version.ts
|
|
56279
56211
|
function mcpPackageVersion() {
|
|
56280
56212
|
try {
|
|
56281
|
-
return "1.11.
|
|
56213
|
+
return "1.11.218";
|
|
56282
56214
|
} catch {
|
|
56283
56215
|
return "unknown";
|
|
56284
56216
|
}
|
|
@@ -56453,7 +56385,7 @@ import_main.default.config({
|
|
|
56453
56385
|
quiet: true,
|
|
56454
56386
|
ignore: ["MISSING_ENV_FILE"]
|
|
56455
56387
|
});
|
|
56456
|
-
const packageVersion = "1.11.
|
|
56388
|
+
const packageVersion = "1.11.218";
|
|
56457
56389
|
function resolvePublicUrls() {
|
|
56458
56390
|
return {
|
|
56459
56391
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -56518,4 +56450,4 @@ function bootstrapServer(options = {}) {
|
|
|
56518
56450
|
//#endregion
|
|
56519
56451
|
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 };
|
|
56520
56452
|
|
|
56521
|
-
//# sourceMappingURL=src-
|
|
56453
|
+
//# sourceMappingURL=src-Bn7WHqpH.js.map
|