@togglhq/mcp 1.11.210 → 1.11.212
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-vdGXyffk.js → src-CY3iNPdT.js} +22 -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 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-CY3iNPdT.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.11.
|
|
165
|
+
const packageVersion = "1.11.212";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -37469,10 +37469,11 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
37469
37469
|
}
|
|
37470
37470
|
//#endregion
|
|
37471
37471
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
37472
|
-
async function getProjectsClassic(httpClient, organization_id, workspace_id, { 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, 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) {
|
|
37472
|
+
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, 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) {
|
|
37473
37473
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37474
37474
|
signal,
|
|
37475
37475
|
searchParams: buildSearchParams$2({
|
|
37476
|
+
member_only,
|
|
37476
37477
|
include_task_counts,
|
|
37477
37478
|
include_picker_parent_group_counts,
|
|
37478
37479
|
task_archived,
|
|
@@ -37732,7 +37733,7 @@ async function restoreStatuses(httpClient, workspace_id, status_id, signal) {
|
|
|
37732
37733
|
}
|
|
37733
37734
|
//#endregion
|
|
37734
37735
|
//#region ../focus-queries/dist/tasks/requests.ts
|
|
37735
|
-
async function getTasksClassic(httpClient, organization_id, workspace_id, { page, per_page, with_entries, pinned, order_by, status_id, toggl_user_id, name, has_time_entries, has_dates, private: private_, archived, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_rates, include_assignees, include_parent_matches, disable_aggregations, cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
|
|
37736
|
+
async function getTasksClassic(httpClient, organization_id, workspace_id, { page, per_page, with_entries, pinned, order_by, status_id, toggl_user_id, name, has_time_entries, has_dates, private: private_, archived, active_project, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_rates, include_assignees, include_parent_matches, disable_aggregations, cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
|
|
37736
37737
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
|
|
37737
37738
|
signal,
|
|
37738
37739
|
searchParams: buildSearchParams$2({
|
|
@@ -37748,6 +37749,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
|
|
|
37748
37749
|
has_dates,
|
|
37749
37750
|
private: private_,
|
|
37750
37751
|
archived,
|
|
37752
|
+
active_project,
|
|
37751
37753
|
include_project_completed,
|
|
37752
37754
|
include_drafts,
|
|
37753
37755
|
project_id,
|
|
@@ -37920,7 +37922,7 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
|
|
|
37920
37922
|
})
|
|
37921
37923
|
}).json();
|
|
37922
37924
|
}
|
|
37923
|
-
async function getStreamTasks(httpClient, organization_id, workspace_id, { with_entries, pinned, order_by, status_id, toggl_user_id, name, include_parent_matches, has_time_entries, has_dates, private: private_, archived, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_assignees, cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
|
|
37925
|
+
async function getStreamTasks(httpClient, organization_id, workspace_id, { with_entries, pinned, order_by, status_id, toggl_user_id, name, include_parent_matches, has_time_entries, has_dates, private: private_, archived, active_project, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_assignees, cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
|
|
37924
37926
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
|
|
37925
37927
|
signal,
|
|
37926
37928
|
searchParams: buildSearchParams$2({
|
|
@@ -37935,6 +37937,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
|
|
|
37935
37937
|
has_dates,
|
|
37936
37938
|
private: private_,
|
|
37937
37939
|
archived,
|
|
37940
|
+
active_project,
|
|
37938
37941
|
include_project_completed,
|
|
37939
37942
|
include_drafts,
|
|
37940
37943
|
project_id,
|
|
@@ -38303,7 +38306,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38303
38306
|
]))
|
|
38304
38307
|
});
|
|
38305
38308
|
//#endregion
|
|
38306
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38309
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.177_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ba219c28e9406106b4bc0e3c2924a5/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38307
38310
|
async function getInvitations(httpClient, signal) {
|
|
38308
38311
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38309
38312
|
}
|
|
@@ -38320,7 +38323,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38320
38323
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38321
38324
|
}
|
|
38322
38325
|
//#endregion
|
|
38323
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38326
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.177_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ba219c28e9406106b4bc0e3c2924a5/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38324
38327
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38325
38328
|
const searchParams = new URLSearchParams();
|
|
38326
38329
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38332,7 +38335,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38332
38335
|
return searchParams;
|
|
38333
38336
|
}
|
|
38334
38337
|
//#endregion
|
|
38335
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38338
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.177_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ba219c28e9406106b4bc0e3c2924a5/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38336
38339
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38337
38340
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38338
38341
|
}
|
|
@@ -38346,7 +38349,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38346
38349
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38347
38350
|
}
|
|
38348
38351
|
//#endregion
|
|
38349
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38352
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.177_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ba219c28e9406106b4bc0e3c2924a5/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38350
38353
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38351
38354
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38352
38355
|
}
|
|
@@ -38366,7 +38369,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38366
38369
|
});
|
|
38367
38370
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38368
38371
|
//#endregion
|
|
38369
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38372
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.177_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ba219c28e9406106b4bc0e3c2924a5/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38370
38373
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38371
38374
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38372
38375
|
signal,
|
|
@@ -38377,12 +38380,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38377
38380
|
})).json();
|
|
38378
38381
|
}
|
|
38379
38382
|
//#endregion
|
|
38380
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38383
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.177_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ba219c28e9406106b4bc0e3c2924a5/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38381
38384
|
async function getStatus(httpClient, signal) {
|
|
38382
38385
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38383
38386
|
}
|
|
38384
38387
|
//#endregion
|
|
38385
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38388
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.177_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ba219c28e9406106b4bc0e3c2924a5/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38386
38389
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38387
38390
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38388
38391
|
signal,
|
|
@@ -38410,7 +38413,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38410
38413
|
return response.json();
|
|
38411
38414
|
}
|
|
38412
38415
|
//#endregion
|
|
38413
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38416
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.177_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ba219c28e9406106b4bc0e3c2924a5/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38414
38417
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38415
38418
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38416
38419
|
}
|
|
@@ -51204,6 +51207,7 @@ const generatedFocusOperations = [
|
|
|
51204
51207
|
mcp: { entityTool: "tasks" },
|
|
51205
51208
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
51206
51209
|
active_by_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
51210
|
+
active_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51207
51211
|
archived: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51208
51212
|
assignee_team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51209
51213
|
assignee_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
@@ -54647,7 +54651,10 @@ const generatedFocusOperations = [
|
|
|
54647
54651
|
interactive: "default"
|
|
54648
54652
|
},
|
|
54649
54653
|
mcp: { entityTool: "users" },
|
|
54650
|
-
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
54654
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
54655
|
+
has_opened_focus: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
54656
|
+
work_introduction_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
54657
|
+
}) }),
|
|
54651
54658
|
execute: (input, { client }) => {
|
|
54652
54659
|
const data = input;
|
|
54653
54660
|
return client.runGeneratedRequest("partialUpdateUserWorkspaceSettings", () => callGeneratedRequest(partialUpdateUserWorkspaceSettings, [
|
|
@@ -56169,7 +56176,7 @@ function registerWorkspaceTools(server) {
|
|
|
56169
56176
|
//#region src/package-version.ts
|
|
56170
56177
|
function mcpPackageVersion() {
|
|
56171
56178
|
try {
|
|
56172
|
-
return "1.11.
|
|
56179
|
+
return "1.11.212";
|
|
56173
56180
|
} catch {
|
|
56174
56181
|
return "unknown";
|
|
56175
56182
|
}
|
|
@@ -56344,7 +56351,7 @@ import_main.default.config({
|
|
|
56344
56351
|
quiet: true,
|
|
56345
56352
|
ignore: ["MISSING_ENV_FILE"]
|
|
56346
56353
|
});
|
|
56347
|
-
const packageVersion = "1.11.
|
|
56354
|
+
const packageVersion = "1.11.212";
|
|
56348
56355
|
function resolvePublicUrls() {
|
|
56349
56356
|
return {
|
|
56350
56357
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -56409,4 +56416,4 @@ function bootstrapServer(options = {}) {
|
|
|
56409
56416
|
//#endregion
|
|
56410
56417
|
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 };
|
|
56411
56418
|
|
|
56412
|
-
//# sourceMappingURL=src-
|
|
56419
|
+
//# sourceMappingURL=src-CY3iNPdT.js.map
|