@togglhq/mcp 1.6.7 → 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-DNxT1o2B.js → src-FrYw9afH.js} +25 -21
- package/package.json +1 -1
package/build/cli.js
CHANGED
package/build/index.js
CHANGED
|
@@ -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
|