@togglhq/mcp 1.12.2 → 1.12.4
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-CpEh6i_Z.js → src-BILS6weB.js} +19 -13
- 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-BILS6weB.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.12.
|
|
165
|
+
const packageVersion = "1.12.4";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -37382,7 +37382,7 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
37382
37382
|
}
|
|
37383
37383
|
//#endregion
|
|
37384
37384
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
37385
|
-
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) {
|
|
37385
|
+
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, task_occurrence_window_date, task_occurrence_window_days, 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) {
|
|
37386
37386
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37387
37387
|
signal,
|
|
37388
37388
|
searchParams: buildSearchParams$2({
|
|
@@ -37397,6 +37397,8 @@ async function getProjectsClassic(httpClient, organization_id, workspace_id, { m
|
|
|
37397
37397
|
task_assignee_team_id,
|
|
37398
37398
|
task_include_unassigned,
|
|
37399
37399
|
task_name,
|
|
37400
|
+
task_occurrence_window_date,
|
|
37401
|
+
task_occurrence_window_days,
|
|
37400
37402
|
page,
|
|
37401
37403
|
per_page,
|
|
37402
37404
|
order_by,
|
|
@@ -37780,7 +37782,7 @@ async function putTasksCalendarRange(httpClient, organization_id, workspace_id,
|
|
|
37780
37782
|
})
|
|
37781
37783
|
}).json();
|
|
37782
37784
|
}
|
|
37783
|
-
async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, search, only_me, page, per_page } = {}, signal) {
|
|
37785
|
+
async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, search, only_me, occurrence_window_date, occurrence_window_days, page, per_page } = {}, signal) {
|
|
37784
37786
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
|
|
37785
37787
|
signal,
|
|
37786
37788
|
searchParams: buildSearchParams$2({
|
|
@@ -37790,6 +37792,8 @@ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace
|
|
|
37790
37792
|
include_unassigned,
|
|
37791
37793
|
search,
|
|
37792
37794
|
only_me,
|
|
37795
|
+
occurrence_window_date,
|
|
37796
|
+
occurrence_window_days,
|
|
37793
37797
|
page,
|
|
37794
37798
|
per_page
|
|
37795
37799
|
})
|
|
@@ -38211,7 +38215,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38211
38215
|
]))
|
|
38212
38216
|
});
|
|
38213
38217
|
//#endregion
|
|
38214
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38218
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38215
38219
|
async function getInvitations(httpClient, signal) {
|
|
38216
38220
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38217
38221
|
}
|
|
@@ -38228,7 +38232,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38228
38232
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38229
38233
|
}
|
|
38230
38234
|
//#endregion
|
|
38231
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38235
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38232
38236
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38233
38237
|
const searchParams = new URLSearchParams();
|
|
38234
38238
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38240,7 +38244,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38240
38244
|
return searchParams;
|
|
38241
38245
|
}
|
|
38242
38246
|
//#endregion
|
|
38243
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38247
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38244
38248
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38245
38249
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38246
38250
|
}
|
|
@@ -38254,7 +38258,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38254
38258
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38255
38259
|
}
|
|
38256
38260
|
//#endregion
|
|
38257
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38261
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38258
38262
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38259
38263
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38260
38264
|
}
|
|
@@ -38274,7 +38278,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38274
38278
|
});
|
|
38275
38279
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38276
38280
|
//#endregion
|
|
38277
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38281
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38278
38282
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38279
38283
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38280
38284
|
signal,
|
|
@@ -38285,12 +38289,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38285
38289
|
})).json();
|
|
38286
38290
|
}
|
|
38287
38291
|
//#endregion
|
|
38288
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38292
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38289
38293
|
async function getStatus(httpClient, signal) {
|
|
38290
38294
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38291
38295
|
}
|
|
38292
38296
|
//#endregion
|
|
38293
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38297
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38294
38298
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38295
38299
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38296
38300
|
signal,
|
|
@@ -38318,7 +38322,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38318
38322
|
return response.json();
|
|
38319
38323
|
}
|
|
38320
38324
|
//#endregion
|
|
38321
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38325
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38322
38326
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38323
38327
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38324
38328
|
}
|
|
@@ -51388,6 +51392,8 @@ const generatedFocusOperations = [
|
|
|
51388
51392
|
mcp: { entityTool: "tasks" },
|
|
51389
51393
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
51390
51394
|
include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51395
|
+
occurrence_window_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
51396
|
+
occurrence_window_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51391
51397
|
only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51392
51398
|
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51393
51399
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -56522,7 +56528,7 @@ function registerWorkspaceTools(server) {
|
|
|
56522
56528
|
//#region src/package-version.ts
|
|
56523
56529
|
function mcpPackageVersion() {
|
|
56524
56530
|
try {
|
|
56525
|
-
return "1.12.
|
|
56531
|
+
return "1.12.4";
|
|
56526
56532
|
} catch {
|
|
56527
56533
|
return "unknown";
|
|
56528
56534
|
}
|
|
@@ -56703,7 +56709,7 @@ import_main.default.config({
|
|
|
56703
56709
|
quiet: true,
|
|
56704
56710
|
ignore: ["MISSING_ENV_FILE"]
|
|
56705
56711
|
});
|
|
56706
|
-
const packageVersion = "1.12.
|
|
56712
|
+
const packageVersion = "1.12.4";
|
|
56707
56713
|
function resolvePublicUrls() {
|
|
56708
56714
|
return {
|
|
56709
56715
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -56808,4 +56814,4 @@ function bootstrapServer(options = {}) {
|
|
|
56808
56814
|
//#endregion
|
|
56809
56815
|
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 };
|
|
56810
56816
|
|
|
56811
|
-
//# sourceMappingURL=src-
|
|
56817
|
+
//# sourceMappingURL=src-BILS6weB.js.map
|