@togglhq/mcp 1.12.6 → 1.12.7
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-DYYXLriL.js → src-RGqqLBRK.js} +76 -6
- 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-RGqqLBRK.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.7";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -34997,6 +34997,70 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
|
|
|
34997
34997
|
rrule: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
34998
34998
|
source_template_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
34999
34999
|
start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35000
|
+
task_group_counts: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
35001
|
+
eligible_total: /* @__PURE__ */ number(),
|
|
35002
|
+
matching_total: /* @__PURE__ */ number()
|
|
35003
|
+
})),
|
|
35004
|
+
tasks: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ object({
|
|
35005
|
+
allocation_unit: /* @__PURE__ */ picklist(["percent", "flat"]),
|
|
35006
|
+
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
35007
|
+
eligible_child_count: /* @__PURE__ */ number(),
|
|
35008
|
+
estimate_type: /* @__PURE__ */ picklist(["daily", "total"]),
|
|
35009
|
+
group_id: /* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("GroupID stays stable when a hidden parent is represented by an eligible child.")),
|
|
35010
|
+
id: /* @__PURE__ */ number(),
|
|
35011
|
+
is_template: /* @__PURE__ */ boolean(),
|
|
35012
|
+
matching_child_count: /* @__PURE__ */ number(),
|
|
35013
|
+
name: /* @__PURE__ */ string(),
|
|
35014
|
+
parent_visible: /* @__PURE__ */ boolean(),
|
|
35015
|
+
pinned: /* @__PURE__ */ boolean(),
|
|
35016
|
+
position: /* @__PURE__ */ number(),
|
|
35017
|
+
priority: /* @__PURE__ */ picklist([
|
|
35018
|
+
"none",
|
|
35019
|
+
"low",
|
|
35020
|
+
"medium",
|
|
35021
|
+
"high"
|
|
35022
|
+
]),
|
|
35023
|
+
private: /* @__PURE__ */ boolean(),
|
|
35024
|
+
selectable: /* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Selectable is false for ineligible parents and nonmatching context parents under unified_search.")),
|
|
35025
|
+
source: /* @__PURE__ */ string(),
|
|
35026
|
+
status_id: /* @__PURE__ */ number(),
|
|
35027
|
+
subtasks: /* @__PURE__ */ array(TaskSchema),
|
|
35028
|
+
tag_ids: /* @__PURE__ */ array(/* @__PURE__ */ number()),
|
|
35029
|
+
tags: /* @__PURE__ */ array(TagLiteSchema),
|
|
35030
|
+
toggl_user_id: /* @__PURE__ */ number(),
|
|
35031
|
+
workspace_id: /* @__PURE__ */ number(),
|
|
35032
|
+
archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35033
|
+
assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ number())),
|
|
35034
|
+
assignees: /* @__PURE__ */ optional(/* @__PURE__ */ array(TaskAssignmentSchema)),
|
|
35035
|
+
auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35036
|
+
billable: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
35037
|
+
client: /* @__PURE__ */ optional(ClientLiteSchema),
|
|
35038
|
+
color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35039
|
+
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
|
|
35040
|
+
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35041
|
+
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35042
|
+
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35043
|
+
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35044
|
+
is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
|
|
35045
|
+
metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
|
|
35046
|
+
notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35047
|
+
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35048
|
+
parent_task_name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35049
|
+
priority_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35050
|
+
project: /* @__PURE__ */ optional(ProjectLiteSchema),
|
|
35051
|
+
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35052
|
+
recurrence_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35053
|
+
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."))),
|
|
35054
|
+
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."))),
|
|
35055
|
+
recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35056
|
+
rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35057
|
+
rrule: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35058
|
+
source_template_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35059
|
+
start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35060
|
+
status: /* @__PURE__ */ optional(StatusLiteSchema),
|
|
35061
|
+
status_updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35062
|
+
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
35063
|
+
}))),
|
|
35000
35064
|
total_tasks: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35001
35065
|
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
35002
35066
|
});
|
|
@@ -37382,12 +37446,14 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
37382
37446
|
}
|
|
37383
37447
|
//#endregion
|
|
37384
37448
|
//#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, 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) {
|
|
37449
|
+
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, 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
37450
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37387
37451
|
signal,
|
|
37388
37452
|
searchParams: buildSearchParams$2({
|
|
37389
37453
|
member_only,
|
|
37390
37454
|
include_task_counts,
|
|
37455
|
+
include_tasks,
|
|
37456
|
+
unified_search,
|
|
37391
37457
|
include_picker_parent_group_counts,
|
|
37392
37458
|
task_archived,
|
|
37393
37459
|
task_recurring,
|
|
@@ -37782,7 +37848,7 @@ async function putTasksCalendarRange(httpClient, organization_id, workspace_id,
|
|
|
37782
37848
|
})
|
|
37783
37849
|
}).json();
|
|
37784
37850
|
}
|
|
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) {
|
|
37851
|
+
async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, unified_search, search, only_me, occurrence_window_date, occurrence_window_days, page, per_page } = {}, signal) {
|
|
37786
37852
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
|
|
37787
37853
|
signal,
|
|
37788
37854
|
searchParams: buildSearchParams$2({
|
|
@@ -37790,6 +37856,7 @@ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace
|
|
|
37790
37856
|
without_project,
|
|
37791
37857
|
pinned_only,
|
|
37792
37858
|
include_unassigned,
|
|
37859
|
+
unified_search,
|
|
37793
37860
|
search,
|
|
37794
37861
|
only_me,
|
|
37795
37862
|
occurrence_window_date,
|
|
@@ -37799,13 +37866,14 @@ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace
|
|
|
37799
37866
|
})
|
|
37800
37867
|
}).json();
|
|
37801
37868
|
}
|
|
37802
|
-
async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, search, only_me, page, per_page } = {}, signal) {
|
|
37869
|
+
async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, unified_search, search, only_me, page, per_page } = {}, signal) {
|
|
37803
37870
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
|
|
37804
37871
|
signal,
|
|
37805
37872
|
searchParams: buildSearchParams$2({
|
|
37806
37873
|
project_id,
|
|
37807
37874
|
without_project,
|
|
37808
37875
|
include_unassigned,
|
|
37876
|
+
unified_search,
|
|
37809
37877
|
search,
|
|
37810
37878
|
only_me,
|
|
37811
37879
|
page,
|
|
@@ -51362,6 +51430,7 @@ const generatedFocusOperations = [
|
|
|
51362
51430
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51363
51431
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51364
51432
|
search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51433
|
+
unified_search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51365
51434
|
without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
51366
51435
|
}),
|
|
51367
51436
|
execute: (input, { client }) => {
|
|
@@ -51401,6 +51470,7 @@ const generatedFocusOperations = [
|
|
|
51401
51470
|
pinned_only: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51402
51471
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51403
51472
|
search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51473
|
+
unified_search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51404
51474
|
without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
51405
51475
|
}),
|
|
51406
51476
|
execute: (input, { client }) => {
|
|
@@ -56529,7 +56599,7 @@ function registerWorkspaceTools(server) {
|
|
|
56529
56599
|
//#region src/package-version.ts
|
|
56530
56600
|
function mcpPackageVersion() {
|
|
56531
56601
|
try {
|
|
56532
|
-
return "1.12.
|
|
56602
|
+
return "1.12.7";
|
|
56533
56603
|
} catch {
|
|
56534
56604
|
return "unknown";
|
|
56535
56605
|
}
|
|
@@ -56710,7 +56780,7 @@ import_main.default.config({
|
|
|
56710
56780
|
quiet: true,
|
|
56711
56781
|
ignore: ["MISSING_ENV_FILE"]
|
|
56712
56782
|
});
|
|
56713
|
-
const packageVersion = "1.12.
|
|
56783
|
+
const packageVersion = "1.12.7";
|
|
56714
56784
|
function resolvePublicUrls() {
|
|
56715
56785
|
return {
|
|
56716
56786
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -56815,4 +56885,4 @@ function bootstrapServer(options = {}) {
|
|
|
56815
56885
|
//#endregion
|
|
56816
56886
|
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 };
|
|
56817
56887
|
|
|
56818
|
-
//# sourceMappingURL=src-
|
|
56888
|
+
//# sourceMappingURL=src-RGqqLBRK.js.map
|