@togglhq/mcp 1.13.237 → 1.13.239
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-KHvbJ3mu.js → src-B8rpfX_z.js} +28 -15
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as PUBLIC_SENTRY_PRIVACY_OPTIONS, c as initProductAnalytics, d as shutdownProductAnalytics, i as runMcpCli, l as resolveProductAnalyticsDistinctId, o as captureToolInvocation, s as getProductAnalyticsDistinctId, u as resolvePublicSentryDsn } from "./src-
|
|
2
|
+
import { a as PUBLIC_SENTRY_PRIVACY_OPTIONS, c as initProductAnalytics, d as shutdownProductAnalytics, i as runMcpCli, l as resolveProductAnalyticsDistinctId, o as captureToolInvocation, s as getProductAnalyticsDistinctId, u as resolvePublicSentryDsn } from "./src-B8rpfX_z.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.13.
|
|
165
|
+
const packageVersion = "1.13.239";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-
|
|
2
|
+
import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-B8rpfX_z.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -34775,6 +34775,11 @@ const TaskMetadataSchema = /* @__PURE__ */ object({
|
|
|
34775
34775
|
})),
|
|
34776
34776
|
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
34777
34777
|
});
|
|
34778
|
+
const RecurringPatternSchema = /* @__PURE__ */ object({
|
|
34779
|
+
duration_mins: /* @__PURE__ */ number(),
|
|
34780
|
+
start_time: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The local time in timezone, HH:MM.")),
|
|
34781
|
+
timezone: /* @__PURE__ */ string()
|
|
34782
|
+
});
|
|
34778
34783
|
const StatusTypeSchema = /* @__PURE__ */ picklist([
|
|
34779
34784
|
"todo",
|
|
34780
34785
|
"done",
|
|
@@ -34835,7 +34840,8 @@ const TaskSchema = /* @__PURE__ */ object({
|
|
|
34835
34840
|
project: /* @__PURE__ */ optional(ProjectLiteSchema),
|
|
34836
34841
|
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
34837
34842
|
recurrence_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
34838
|
-
|
|
34843
|
+
recurring_pattern: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(RecurringPatternSchema, /* @__PURE__ */ description("The planned time of the task's series; omitted for a normal task, a deleted series and a series without one."))),
|
|
34844
|
+
recurring_rule: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The rule of the task's series (RRULE with DTSTART); omitted for a normal task and once the series has stopped or is deleted."))),
|
|
34839
34845
|
recurring_series_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("The series this task is an occurrence of; omitted for a normal task. Only the server sets it."))),
|
|
34840
34846
|
recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
34841
34847
|
rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -34894,7 +34900,8 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
|
|
|
34894
34900
|
project: /* @__PURE__ */ optional(ProjectLiteSchema),
|
|
34895
34901
|
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
34896
34902
|
recurrence_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
34897
|
-
|
|
34903
|
+
recurring_pattern: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(RecurringPatternSchema, /* @__PURE__ */ description("The planned time of the task's series; omitted for a normal task, a deleted series and a series without one."))),
|
|
34904
|
+
recurring_rule: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The rule of the task's series (RRULE with DTSTART); omitted for a normal task and once the series has stopped or is deleted."))),
|
|
34898
34905
|
recurring_series_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("The series this task is an occurrence of; omitted for a normal task. Only the server sets it."))),
|
|
34899
34906
|
recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
34900
34907
|
rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -35224,7 +35231,8 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
|
|
|
35224
35231
|
project: /* @__PURE__ */ optional(ProjectLiteSchema),
|
|
35225
35232
|
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35226
35233
|
recurrence_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35227
|
-
|
|
35234
|
+
recurring_pattern: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(RecurringPatternSchema, /* @__PURE__ */ description("The planned time of the task's series; omitted for a normal task, a deleted series and a series without one."))),
|
|
35235
|
+
recurring_rule: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The rule of the task's series (RRULE with DTSTART); omitted for a normal task and once the series has stopped or is deleted."))),
|
|
35228
35236
|
recurring_series_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("The series this task is an occurrence of; omitted for a normal task. Only the server sets it."))),
|
|
35229
35237
|
recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35230
35238
|
rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -35548,7 +35556,12 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
35548
35556
|
priority_at: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
|
|
35549
35557
|
private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35550
35558
|
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35551
|
-
|
|
35559
|
+
recurring_pattern: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ object({
|
|
35560
|
+
duration_mins: /* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(1), /* @__PURE__ */ maxValue(1440)),
|
|
35561
|
+
start_time: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The local time in timezone, HH:MM.")),
|
|
35562
|
+
timezone: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ maxLength(64))
|
|
35563
|
+
}), /* @__PURE__ */ description("The planned time of the series, sent only with a recurring_rule that makes the task repeat."))),
|
|
35564
|
+
recurring_rule: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), /* @__PURE__ */ description("Makes the task repeat (PATCH /tasks/{id} only, sent alone or with recurring_pattern): an RRULE whose DTSTART gives the dates if none are set. On an occurrence, a rule sent with scope=following or all changes the series' rule, or starts a stopped series again, and null stops the series; an empty string is invalid."))),
|
|
35552
35565
|
recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35553
35566
|
repeat_planned_time_entry_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RepeatPlannedTimeEntryID is the declared initial-selection input that will start a series from an existing planned entry (PR 11). Any supplied value — an ID or JSON null — is rejected until then; the contract is declared in docs/recurring-pr2a-additive-schema.md. json.RawMessage keeps absent distinguishable from explicit null on decode and is omitted on marshal when never set."))),
|
|
35554
35567
|
rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -38682,7 +38695,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38682
38695
|
]))
|
|
38683
38696
|
});
|
|
38684
38697
|
//#endregion
|
|
38685
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38698
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38686
38699
|
async function getInvitations(httpClient, signal) {
|
|
38687
38700
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38688
38701
|
}
|
|
@@ -38699,7 +38712,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38699
38712
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38700
38713
|
}
|
|
38701
38714
|
//#endregion
|
|
38702
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38715
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38703
38716
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38704
38717
|
const searchParams = new URLSearchParams();
|
|
38705
38718
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38711,7 +38724,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38711
38724
|
return searchParams;
|
|
38712
38725
|
}
|
|
38713
38726
|
//#endregion
|
|
38714
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38727
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38715
38728
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38716
38729
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38717
38730
|
}
|
|
@@ -38726,7 +38739,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38726
38739
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38727
38740
|
}
|
|
38728
38741
|
//#endregion
|
|
38729
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38742
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38730
38743
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38731
38744
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38732
38745
|
}
|
|
@@ -38746,7 +38759,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38746
38759
|
});
|
|
38747
38760
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38748
38761
|
//#endregion
|
|
38749
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38762
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38750
38763
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38751
38764
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38752
38765
|
signal,
|
|
@@ -38757,12 +38770,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38757
38770
|
})).json();
|
|
38758
38771
|
}
|
|
38759
38772
|
//#endregion
|
|
38760
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38773
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38761
38774
|
async function getStatus(httpClient, signal) {
|
|
38762
38775
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38763
38776
|
}
|
|
38764
38777
|
//#endregion
|
|
38765
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38778
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38766
38779
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38767
38780
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38768
38781
|
signal,
|
|
@@ -38790,7 +38803,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38790
38803
|
return response.json();
|
|
38791
38804
|
}
|
|
38792
38805
|
//#endregion
|
|
38793
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38806
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38794
38807
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38795
38808
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38796
38809
|
}
|
|
@@ -61014,7 +61027,7 @@ function registerWorkspaceTools(server) {
|
|
|
61014
61027
|
//#region src/package-version.ts
|
|
61015
61028
|
function mcpPackageVersion() {
|
|
61016
61029
|
try {
|
|
61017
|
-
return "1.13.
|
|
61030
|
+
return "1.13.239";
|
|
61018
61031
|
} catch {
|
|
61019
61032
|
return "unknown";
|
|
61020
61033
|
}
|
|
@@ -61196,7 +61209,7 @@ import_main.default.config({
|
|
|
61196
61209
|
quiet: true,
|
|
61197
61210
|
ignore: ["MISSING_ENV_FILE"]
|
|
61198
61211
|
});
|
|
61199
|
-
const packageVersion = "1.13.
|
|
61212
|
+
const packageVersion = "1.13.239";
|
|
61200
61213
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
61201
61214
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
61202
61215
|
function resolvePublicUrls() {
|
|
@@ -61316,4 +61329,4 @@ function bootstrapServer(options = {}) {
|
|
|
61316
61329
|
//#endregion
|
|
61317
61330
|
export { PUBLIC_SENTRY_PRIVACY_OPTIONS as a, initProductAnalytics as c, shutdownProductAnalytics as d, runMcpCli as i, resolveProductAnalyticsDistinctId as l, MCP_MAX_TOOL_INPUT_ELEMENTS as n, captureToolInvocation as o, bootstrapServer as r, getProductAnalyticsDistinctId as s, MCP_CACHE_TTL_MS as t, resolvePublicSentryDsn as u };
|
|
61318
61331
|
|
|
61319
|
-
//# sourceMappingURL=src-
|
|
61332
|
+
//# sourceMappingURL=src-B8rpfX_z.js.map
|