@togglhq/mcp 1.5.72 → 1.5.74
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 +1 -1
- package/build/index.js +1 -1
- package/build/{src-CW6BCRCE.js → src-igtQ2W8_.js} +48 -24
- package/package.json +1 -1
package/build/cli.js
CHANGED
package/build/index.js
CHANGED
|
@@ -14502,7 +14502,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
14502
14502
|
inst.array = () => array$2(inst);
|
|
14503
14503
|
inst.or = (arg) => union$2([inst, arg]);
|
|
14504
14504
|
inst.and = (arg) => intersection(inst, arg);
|
|
14505
|
-
inst.transform = (tx) => pipe$1(inst, transform$
|
|
14505
|
+
inst.transform = (tx) => pipe$1(inst, transform$2(tx));
|
|
14506
14506
|
inst.default = (def) => _default(inst, def);
|
|
14507
14507
|
inst.prefault = (def) => prefault(inst, def);
|
|
14508
14508
|
inst.catch = (params) => _catch(inst, params);
|
|
@@ -14949,7 +14949,7 @@ const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) =>
|
|
|
14949
14949
|
return payload;
|
|
14950
14950
|
};
|
|
14951
14951
|
});
|
|
14952
|
-
function transform$
|
|
14952
|
+
function transform$2(fn) {
|
|
14953
14953
|
return new ZodTransform({
|
|
14954
14954
|
type: "transform",
|
|
14955
14955
|
transform: fn
|
|
@@ -15099,7 +15099,7 @@ function superRefine(fn) {
|
|
|
15099
15099
|
return /* @__PURE__ */ _superRefine(fn);
|
|
15100
15100
|
}
|
|
15101
15101
|
function preprocess(fn, schema) {
|
|
15102
|
-
return pipe$1(transform$
|
|
15102
|
+
return pipe$1(transform$2(fn), schema);
|
|
15103
15103
|
}
|
|
15104
15104
|
//#endregion
|
|
15105
15105
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
@@ -25624,6 +25624,27 @@ function regex(requirement, message$1) {
|
|
|
25624
25624
|
};
|
|
25625
25625
|
}
|
|
25626
25626
|
/**
|
|
25627
|
+
* Creates a custom transformation action.
|
|
25628
|
+
*
|
|
25629
|
+
* @param operation The transformation operation.
|
|
25630
|
+
*
|
|
25631
|
+
* @returns A transform action.
|
|
25632
|
+
*/
|
|
25633
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
25634
|
+
function transform$1(operation) {
|
|
25635
|
+
return {
|
|
25636
|
+
kind: "transformation",
|
|
25637
|
+
type: "transform",
|
|
25638
|
+
reference: transform$1,
|
|
25639
|
+
async: false,
|
|
25640
|
+
operation,
|
|
25641
|
+
"~run"(dataset) {
|
|
25642
|
+
dataset.value = this.operation(dataset.value);
|
|
25643
|
+
return dataset;
|
|
25644
|
+
}
|
|
25645
|
+
};
|
|
25646
|
+
}
|
|
25647
|
+
/**
|
|
25627
25648
|
* Returns the fallback value of the schema.
|
|
25628
25649
|
*
|
|
25629
25650
|
* @param schema The schema to get it from.
|
|
@@ -30716,7 +30737,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
30716
30737
|
]))
|
|
30717
30738
|
});
|
|
30718
30739
|
//#endregion
|
|
30719
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@
|
|
30740
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.6_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a603e71e3f11edb83d2f732adabc6c4/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
30720
30741
|
async function getInvitations(httpClient, signal) {
|
|
30721
30742
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
30722
30743
|
}
|
|
@@ -30733,7 +30754,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
30733
30754
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
30734
30755
|
}
|
|
30735
30756
|
//#endregion
|
|
30736
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@
|
|
30757
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.6_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a603e71e3f11edb83d2f732adabc6c4/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
30737
30758
|
function buildSearchParams$1(params, flattenArrays = false) {
|
|
30738
30759
|
const searchParams = new URLSearchParams();
|
|
30739
30760
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -30745,7 +30766,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
|
|
|
30745
30766
|
return searchParams;
|
|
30746
30767
|
}
|
|
30747
30768
|
//#endregion
|
|
30748
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@
|
|
30769
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.6_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a603e71e3f11edb83d2f732adabc6c4/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
30749
30770
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
30750
30771
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
30751
30772
|
}
|
|
@@ -30759,7 +30780,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
30759
30780
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
30760
30781
|
}
|
|
30761
30782
|
//#endregion
|
|
30762
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@
|
|
30783
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.6_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a603e71e3f11edb83d2f732adabc6c4/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
30763
30784
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
30764
30785
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
30765
30786
|
}
|
|
@@ -30788,7 +30809,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
30788
30809
|
});
|
|
30789
30810
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
30790
30811
|
//#endregion
|
|
30791
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@
|
|
30812
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.6_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a603e71e3f11edb83d2f732adabc6c4/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
|
|
30792
30813
|
const META_SYMBOL = Symbol.for("querygen:response:meta");
|
|
30793
30814
|
function withResponseMeta(data, headers, status) {
|
|
30794
30815
|
if (!data) return data;
|
|
@@ -30815,7 +30836,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
30815
30836
|
return searchParams;
|
|
30816
30837
|
}
|
|
30817
30838
|
//#endregion
|
|
30818
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@
|
|
30839
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.6_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a603e71e3f11edb83d2f732adabc6c4/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
|
|
30819
30840
|
async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
|
|
30820
30841
|
const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
|
|
30821
30842
|
signal,
|
|
@@ -30824,12 +30845,12 @@ async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
|
|
|
30824
30845
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
30825
30846
|
}
|
|
30826
30847
|
//#endregion
|
|
30827
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@
|
|
30848
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.6_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a603e71e3f11edb83d2f732adabc6c4/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
30828
30849
|
async function getStatus(httpClient, signal) {
|
|
30829
30850
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
30830
30851
|
}
|
|
30831
30852
|
//#endregion
|
|
30832
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@
|
|
30853
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.6_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a603e71e3f11edb83d2f732adabc6c4/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
30833
30854
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
30834
30855
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
30835
30856
|
signal,
|
|
@@ -30857,7 +30878,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
30857
30878
|
return response.json();
|
|
30858
30879
|
}
|
|
30859
30880
|
//#endregion
|
|
30860
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@
|
|
30881
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.6_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a603e71e3f11edb83d2f732adabc6c4/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
30861
30882
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
30862
30883
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
30863
30884
|
}
|
|
@@ -31011,8 +31032,8 @@ function parseOptionalInt(value) {
|
|
|
31011
31032
|
return Number.isFinite(n) ? n : void 0;
|
|
31012
31033
|
}
|
|
31013
31034
|
function toNumberArray(value) {
|
|
31014
|
-
const
|
|
31015
|
-
return
|
|
31035
|
+
const parsed = (Array.isArray(value) ? value : [value]).map(parseOptionalInt).filter((parsedValue) => parsedValue !== void 0);
|
|
31036
|
+
return parsed.length > 0 ? parsed : void 0;
|
|
31016
31037
|
}
|
|
31017
31038
|
function validationErrorMessage(issues) {
|
|
31018
31039
|
return issues.map((issue) => issue.message ?? "invalid").join("; ");
|
|
@@ -31210,16 +31231,17 @@ var FocusClient = class {
|
|
|
31210
31231
|
const page = parseOptionalInt(params.page);
|
|
31211
31232
|
const per_page = parseOptionalInt(params.per_page);
|
|
31212
31233
|
const project_id = toNumberArray(params.project_id);
|
|
31234
|
+
const tag_id = toNumberArray(params.tag_id);
|
|
31213
31235
|
const status_id = toNumberArray(params.status_id);
|
|
31214
31236
|
const parent_task_id = toNumberArray(params.parent_task_id);
|
|
31215
31237
|
const assigneeUserId = parseOptionalInt(params.assignee_user_id);
|
|
31216
31238
|
const assignee_user_id = assigneeUserId === void 0 ? void 0 : [assigneeUserId];
|
|
31217
|
-
const
|
|
31218
|
-
const priority = priorityValue === void 0 ? void 0 : [priorityValue];
|
|
31239
|
+
const priority = params.priority === void 0 ? void 0 : [params.priority];
|
|
31219
31240
|
const response = await this.run("listTasks", () => getTasksClassic(this.http, this.organizationIdNum, this.workspaceIdNum, {
|
|
31220
31241
|
page,
|
|
31221
31242
|
per_page,
|
|
31222
31243
|
project_id,
|
|
31244
|
+
tag_id,
|
|
31223
31245
|
status_id,
|
|
31224
31246
|
parent_task_id,
|
|
31225
31247
|
name: typeof params.name === "string" ? params.name : void 0,
|
|
@@ -32618,11 +32640,12 @@ function createAuthenticatedClientProxy() {
|
|
|
32618
32640
|
} });
|
|
32619
32641
|
}
|
|
32620
32642
|
//#endregion
|
|
32621
|
-
//#region ../operations/build/safety-
|
|
32643
|
+
//#region ../operations/build/safety-PA22Wppt.js
|
|
32622
32644
|
const optionalNumber = /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2());
|
|
32623
32645
|
const DATE_FIELD_RE = /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2}))?$/;
|
|
32624
32646
|
const dateField = (description) => /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ regex(DATE_FIELD_RE, "must be YYYY-MM-DD or RFC3339 datetime (e.g. '2025-01-01' or '2025-01-01T00:00:00Z')"), /* @__PURE__ */ description$1(description));
|
|
32625
32647
|
const apiDateTimeString = /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoTimestamp());
|
|
32648
|
+
const tagIdFilterSchema = /* @__PURE__ */ union$1([/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ transform$1((tagId) => [tagId])), /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()), /* @__PURE__ */ minLength$1(1))]);
|
|
32626
32649
|
const timeBlockListSchema = /* @__PURE__ */ object$2({
|
|
32627
32650
|
date_from: dateField("Range start — date-only (e.g. '2025-01-01') or RFC3339 datetime. Date-only is expanded to T00:00:00Z."),
|
|
32628
32651
|
date_to: dateField("Range end — date-only (e.g. '2025-01-07') or RFC3339 datetime. Date-only is expanded to T23:59:59Z."),
|
|
@@ -32651,6 +32674,7 @@ const taskListSchema = /* @__PURE__ */ object$2({
|
|
|
32651
32674
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ description$1("Filter by task name (partial match)"))),
|
|
32652
32675
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by status ID"))),
|
|
32653
32676
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by project ID"))),
|
|
32677
|
+
tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(tagIdFilterSchema, /* @__PURE__ */ description$1("Filter by tag IDs"))),
|
|
32654
32678
|
assignee_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by assignee user ID"))),
|
|
32655
32679
|
priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ picklist$1([
|
|
32656
32680
|
"none",
|
|
@@ -40590,7 +40614,7 @@ const generatedFocusOperations = [
|
|
|
40590
40614
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40591
40615
|
recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40592
40616
|
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
40593
|
-
tag_id: /* @__PURE__ */ optional$1(
|
|
40617
|
+
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
40594
40618
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
40595
40619
|
}),
|
|
40596
40620
|
execute: (input, { client }) => {
|
|
@@ -40656,7 +40680,7 @@ const generatedFocusOperations = [
|
|
|
40656
40680
|
start_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40657
40681
|
state: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40658
40682
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
40659
|
-
tag_id: /* @__PURE__ */ optional$1(
|
|
40683
|
+
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
40660
40684
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
40661
40685
|
time_block_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40662
40686
|
time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
@@ -40699,7 +40723,7 @@ const generatedFocusOperations = [
|
|
|
40699
40723
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40700
40724
|
source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40701
40725
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
40702
|
-
tag_id: /* @__PURE__ */ optional$1(
|
|
40726
|
+
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
40703
40727
|
task_id: /* @__PURE__ */ number$2(),
|
|
40704
40728
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
40705
40729
|
}),
|
|
@@ -40740,7 +40764,7 @@ const generatedFocusOperations = [
|
|
|
40740
40764
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40741
40765
|
source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40742
40766
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
40743
|
-
tag_id: /* @__PURE__ */ optional$1(
|
|
40767
|
+
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
40744
40768
|
task_id: /* @__PURE__ */ number$2(),
|
|
40745
40769
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
40746
40770
|
}),
|
|
@@ -40798,7 +40822,7 @@ const generatedFocusOperations = [
|
|
|
40798
40822
|
start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40799
40823
|
start_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40800
40824
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
40801
|
-
tag_id: /* @__PURE__ */ optional$1(
|
|
40825
|
+
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
40802
40826
|
tasks_per_group: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
40803
40827
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
40804
40828
|
}),
|
|
@@ -44990,7 +45014,7 @@ import_main.default.config({
|
|
|
44990
45014
|
quiet: true,
|
|
44991
45015
|
ignore: ["MISSING_ENV_FILE"]
|
|
44992
45016
|
});
|
|
44993
|
-
const packageVersion = "1.5.
|
|
45017
|
+
const packageVersion = "1.5.74";
|
|
44994
45018
|
function resolvePublicUrls() {
|
|
44995
45019
|
return {
|
|
44996
45020
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -45055,4 +45079,4 @@ function bootstrapServer(options = {}) {
|
|
|
45055
45079
|
//#endregion
|
|
45056
45080
|
export { runMcpCli as n, bootstrapServer as t };
|
|
45057
45081
|
|
|
45058
|
-
//# sourceMappingURL=src-
|
|
45082
|
+
//# sourceMappingURL=src-igtQ2W8_.js.map
|