@togglhq/mcp 1.6.6 → 1.6.8
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-Ol4JAhNC.js → src-FrYw9afH.js} +34 -30
- package/package.json +1 -1
package/build/cli.js
CHANGED
package/build/index.js
CHANGED
|
@@ -30738,7 +30738,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
30738
30738
|
]))
|
|
30739
30739
|
});
|
|
30740
30740
|
//#endregion
|
|
30741
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30741
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.149_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_580966c01027765279e87ec1bdd01aae/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
30742
30742
|
async function getInvitations(httpClient, signal) {
|
|
30743
30743
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
30744
30744
|
}
|
|
@@ -30755,7 +30755,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
30755
30755
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
30756
30756
|
}
|
|
30757
30757
|
//#endregion
|
|
30758
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30758
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.149_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_580966c01027765279e87ec1bdd01aae/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
30759
30759
|
function buildSearchParams$1(params, flattenArrays = false) {
|
|
30760
30760
|
const searchParams = new URLSearchParams();
|
|
30761
30761
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -30767,7 +30767,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
|
|
|
30767
30767
|
return searchParams;
|
|
30768
30768
|
}
|
|
30769
30769
|
//#endregion
|
|
30770
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30770
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.149_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_580966c01027765279e87ec1bdd01aae/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
30771
30771
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
30772
30772
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
30773
30773
|
}
|
|
@@ -30781,7 +30781,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
30781
30781
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
30782
30782
|
}
|
|
30783
30783
|
//#endregion
|
|
30784
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30784
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.149_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_580966c01027765279e87ec1bdd01aae/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
30785
30785
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
30786
30786
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
30787
30787
|
}
|
|
@@ -30801,7 +30801,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
30801
30801
|
});
|
|
30802
30802
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
30803
30803
|
//#endregion
|
|
30804
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30804
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.149_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_580966c01027765279e87ec1bdd01aae/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
|
|
30805
30805
|
const META_SYMBOL = Symbol.for("querygen:response:meta");
|
|
30806
30806
|
function withResponseMeta(data, headers, status) {
|
|
30807
30807
|
if (!data) return data;
|
|
@@ -30828,7 +30828,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
30828
30828
|
return searchParams;
|
|
30829
30829
|
}
|
|
30830
30830
|
//#endregion
|
|
30831
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30831
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.149_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_580966c01027765279e87ec1bdd01aae/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
|
|
30832
30832
|
async function getPublicHolidays(httpClient, year, { country, organization_id } = {}, signal) {
|
|
30833
30833
|
const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
|
|
30834
30834
|
signal,
|
|
@@ -30840,12 +30840,12 @@ async function getPublicHolidays(httpClient, year, { country, organization_id }
|
|
|
30840
30840
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
30841
30841
|
}
|
|
30842
30842
|
//#endregion
|
|
30843
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30843
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.149_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_580966c01027765279e87ec1bdd01aae/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
30844
30844
|
async function getStatus(httpClient, signal) {
|
|
30845
30845
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
30846
30846
|
}
|
|
30847
30847
|
//#endregion
|
|
30848
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30848
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.149_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_580966c01027765279e87ec1bdd01aae/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
30849
30849
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
30850
30850
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
30851
30851
|
signal,
|
|
@@ -30873,7 +30873,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
30873
30873
|
return response.json();
|
|
30874
30874
|
}
|
|
30875
30875
|
//#endregion
|
|
30876
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30876
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.149_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_580966c01027765279e87ec1bdd01aae/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
30877
30877
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
30878
30878
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
30879
30879
|
}
|
|
@@ -32621,8 +32621,11 @@ function createAuthenticatedClientProxy() {
|
|
|
32621
32621
|
} });
|
|
32622
32622
|
}
|
|
32623
32623
|
//#endregion
|
|
32624
|
-
//#region ../operations/build/safety-
|
|
32624
|
+
//#region ../operations/build/safety-DUCLJgdI.js
|
|
32625
32625
|
const optionalNumber = /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2());
|
|
32626
|
+
const perPageField = (max) => /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ integer(), /* @__PURE__ */ minValue$1(1), /* @__PURE__ */ maxValue$1(max), /* @__PURE__ */ description$1(`Results per page (1-${max})`)));
|
|
32627
|
+
const perPageSchema = perPageField(100);
|
|
32628
|
+
const orgUserPerPageSchema = perPageField(200);
|
|
32626
32629
|
const DATE_FIELD_RE = /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2}))?$/;
|
|
32627
32630
|
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));
|
|
32628
32631
|
const apiDateTimeString = /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoTimestamp());
|
|
@@ -32632,7 +32635,7 @@ const timeBlockListSchema = /* @__PURE__ */ object$2({
|
|
|
32632
32635
|
date_to: dateField("Range end — date-only (e.g. '2025-01-07') or RFC3339 datetime. Date-only is expanded to T23:59:59Z."),
|
|
32633
32636
|
task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by task ID"))),
|
|
32634
32637
|
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Page number"))),
|
|
32635
|
-
per_page:
|
|
32638
|
+
per_page: perPageSchema
|
|
32636
32639
|
});
|
|
32637
32640
|
const timeEntryListSchema = /* @__PURE__ */ object$2({
|
|
32638
32641
|
date_from: dateField("Range start — date-only (e.g. '2025-01-01') or RFC3339 datetime. Date-only is expanded to T00:00:00Z."),
|
|
@@ -32641,7 +32644,7 @@ const timeEntryListSchema = /* @__PURE__ */ object$2({
|
|
|
32641
32644
|
time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by time block ID"))),
|
|
32642
32645
|
type: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ picklist$1(["activity", "break"]), /* @__PURE__ */ description$1("Filter by entry type"))),
|
|
32643
32646
|
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Page number"))),
|
|
32644
|
-
per_page:
|
|
32647
|
+
per_page: perPageSchema
|
|
32645
32648
|
});
|
|
32646
32649
|
const timeEntryStartSchema = /* @__PURE__ */ object$2({
|
|
32647
32650
|
type: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ picklist$1(["activity", "break"]), /* @__PURE__ */ description$1("Entry type: 'activity' or 'break'. Defaults to 'activity' if omitted.")), "activity"),
|
|
@@ -32667,7 +32670,7 @@ const taskListSchema = /* @__PURE__ */ object$2({
|
|
|
32667
32670
|
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ description$1("Filter tasks ending on or before this date (ISO 8601)"))),
|
|
32668
32671
|
parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by parent task ID"))),
|
|
32669
32672
|
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Page number"))),
|
|
32670
|
-
per_page:
|
|
32673
|
+
per_page: perPageSchema
|
|
32671
32674
|
});
|
|
32672
32675
|
const projectListSchema = /* @__PURE__ */ object$2({
|
|
32673
32676
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ description$1("Filter by project name (partial match)"))),
|
|
@@ -32675,15 +32678,15 @@ const projectListSchema = /* @__PURE__ */ object$2({
|
|
|
32675
32678
|
user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by member user ID"))),
|
|
32676
32679
|
client_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by client ID"))),
|
|
32677
32680
|
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Page number"))),
|
|
32678
|
-
per_page:
|
|
32681
|
+
per_page: perPageSchema
|
|
32679
32682
|
});
|
|
32680
32683
|
const statusListSchema = /* @__PURE__ */ object$2({
|
|
32681
32684
|
page: optionalNumber,
|
|
32682
|
-
per_page:
|
|
32685
|
+
per_page: perPageSchema
|
|
32683
32686
|
});
|
|
32684
32687
|
const userListSchema = /* @__PURE__ */ object$2({
|
|
32685
32688
|
page: optionalNumber,
|
|
32686
|
-
per_page:
|
|
32689
|
+
per_page: orgUserPerPageSchema,
|
|
32687
32690
|
filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ description$1("Filter by name or email"))),
|
|
32688
32691
|
sort_dir: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ description$1("Sort direction (asc/desc)"))),
|
|
32689
32692
|
only_admins: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ boolean$1(), /* @__PURE__ */ description$1("Only return admins"))),
|
|
@@ -32701,7 +32704,16 @@ const userListSchema = /* @__PURE__ */ object$2({
|
|
|
32701
32704
|
const tagListSchema = /* @__PURE__ */ object$2({
|
|
32702
32705
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ description$1("Filter by tag name"))),
|
|
32703
32706
|
page: optionalNumber,
|
|
32704
|
-
per_page:
|
|
32707
|
+
per_page: perPageSchema
|
|
32708
|
+
});
|
|
32709
|
+
const searchToolSchema = /* @__PURE__ */ object$2({
|
|
32710
|
+
keyword: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ minLength$1(3), /* @__PURE__ */ description$1("Search term, min 3 characters")),
|
|
32711
|
+
per_group: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ integer(), /* @__PURE__ */ minValue$1(1), /* @__PURE__ */ maxValue$1(10), /* @__PURE__ */ description$1("Max results per group (1-10, default 5)"))),
|
|
32712
|
+
assignee_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ integer(), /* @__PURE__ */ description$1("Scope tasks to this assignee"))),
|
|
32713
|
+
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ integer(), /* @__PURE__ */ description$1("Scope time-entry and task suggestions to this project"))),
|
|
32714
|
+
task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ integer(), /* @__PURE__ */ description$1("Scope time-entry (description) suggestions to this task"))),
|
|
32715
|
+
include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ boolean$1(), /* @__PURE__ */ description$1("Include draft projects and tasks in the search results"))),
|
|
32716
|
+
exclude_calendar_events: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ boolean$1(), /* @__PURE__ */ description$1("Exclude external calendar-derived tasks and time entries")))
|
|
32705
32717
|
});
|
|
32706
32718
|
const tagIdSchema = /* @__PURE__ */ object$2({ tag_id: /* @__PURE__ */ number$2() });
|
|
32707
32719
|
const tagUpdateSchema = /* @__PURE__ */ object$2({
|
|
@@ -32711,7 +32723,7 @@ const tagUpdateSchema = /* @__PURE__ */ object$2({
|
|
|
32711
32723
|
const clientListSchema = /* @__PURE__ */ object$2({
|
|
32712
32724
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ description$1("Filter by client name"))),
|
|
32713
32725
|
page: optionalNumber,
|
|
32714
|
-
per_page:
|
|
32726
|
+
per_page: perPageSchema
|
|
32715
32727
|
});
|
|
32716
32728
|
const clientIdSchema = /* @__PURE__ */ object$2({ client_id: /* @__PURE__ */ number$2() });
|
|
32717
32729
|
const clientUpdateSchema = /* @__PURE__ */ object$2({
|
|
@@ -39579,18 +39591,10 @@ const generatedFocusOperations = [
|
|
|
39579
39591
|
cli: {
|
|
39580
39592
|
group: ["search"],
|
|
39581
39593
|
command: "search",
|
|
39582
|
-
interactive: "
|
|
39594
|
+
interactive: "available"
|
|
39583
39595
|
},
|
|
39584
39596
|
mcp: { entityTool: "search" },
|
|
39585
|
-
inputSchema:
|
|
39586
|
-
assignee_user_id: /* @__PURE__ */ number$2(),
|
|
39587
|
-
exclude_calendar_events: /* @__PURE__ */ unknown$1(),
|
|
39588
|
-
include_drafts: /* @__PURE__ */ unknown$1(),
|
|
39589
|
-
keyword: /* @__PURE__ */ unknown$1(),
|
|
39590
|
-
per_group: /* @__PURE__ */ unknown$1(),
|
|
39591
|
-
project_id: /* @__PURE__ */ number$2(),
|
|
39592
|
-
task_id: /* @__PURE__ */ number$2()
|
|
39593
|
-
}),
|
|
39597
|
+
inputSchema: searchToolSchema,
|
|
39594
39598
|
execute: (input, { client }) => {
|
|
39595
39599
|
const data = input;
|
|
39596
39600
|
return client.runGeneratedRequest("search", () => callGeneratedRequest(search, [
|
|
@@ -44935,7 +44939,7 @@ import_main.default.config({
|
|
|
44935
44939
|
quiet: true,
|
|
44936
44940
|
ignore: ["MISSING_ENV_FILE"]
|
|
44937
44941
|
});
|
|
44938
|
-
const packageVersion = "1.6.
|
|
44942
|
+
const packageVersion = "1.6.8";
|
|
44939
44943
|
function resolvePublicUrls() {
|
|
44940
44944
|
return {
|
|
44941
44945
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -45000,4 +45004,4 @@ function bootstrapServer(options = {}) {
|
|
|
45000
45004
|
//#endregion
|
|
45001
45005
|
export { runMcpCli as n, bootstrapServer as t };
|
|
45002
45006
|
|
|
45003
|
-
//# sourceMappingURL=src-
|
|
45007
|
+
//# sourceMappingURL=src-FrYw9afH.js.map
|