@togglhq/mcp 1.11.200 → 1.11.202
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-PRD2CxL9.js → src-BTV84Jt2.js} +22 -14
- 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-BTV84Jt2.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.202";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -34912,6 +34912,7 @@ const ProjectPayloadSchema = /* @__PURE__ */ object({
|
|
|
34912
34912
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
34913
34913
|
draft: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
34914
34914
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
34915
|
+
estimate_source: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ picklist(["manual", "tasks"]))),
|
|
34915
34916
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
|
|
34916
34917
|
fixed_fee: /* @__PURE__ */ optional(ProjectFixedFeePayloadSchema),
|
|
34917
34918
|
is_template: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -34927,6 +34928,7 @@ const ProjectPayloadSchema = /* @__PURE__ */ object({
|
|
|
34927
34928
|
start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
34928
34929
|
tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number())))
|
|
34929
34930
|
});
|
|
34931
|
+
const ProjectEstimateSourceSchema = /* @__PURE__ */ picklist(["manual", "tasks"]);
|
|
34930
34932
|
const ProjectFixedFeeSchema = /* @__PURE__ */ object({
|
|
34931
34933
|
amount: /* @__PURE__ */ number(),
|
|
34932
34934
|
currency: /* @__PURE__ */ string()
|
|
@@ -34938,6 +34940,7 @@ const ProjectSchema = /* @__PURE__ */ object({
|
|
|
34938
34940
|
completion_mode: /* @__PURE__ */ picklist(["manual", "automatic"]),
|
|
34939
34941
|
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
34940
34942
|
draft: /* @__PURE__ */ boolean(),
|
|
34943
|
+
estimate_source: ProjectEstimateSourceSchema,
|
|
34941
34944
|
id: /* @__PURE__ */ number(),
|
|
34942
34945
|
is_template: /* @__PURE__ */ boolean(),
|
|
34943
34946
|
name: /* @__PURE__ */ string(),
|
|
@@ -35043,6 +35046,7 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
|
|
|
35043
35046
|
completion_mode: /* @__PURE__ */ picklist(["manual", "automatic"]),
|
|
35044
35047
|
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
35045
35048
|
draft: /* @__PURE__ */ boolean(),
|
|
35049
|
+
estimate_source: ProjectEstimateSourceSchema,
|
|
35046
35050
|
id: /* @__PURE__ */ number(),
|
|
35047
35051
|
is_template: /* @__PURE__ */ boolean(),
|
|
35048
35052
|
name: /* @__PURE__ */ string(),
|
|
@@ -35245,7 +35249,7 @@ const ProjectBulkUserEntrySchema = /* @__PURE__ */ object({
|
|
|
35245
35249
|
user_id: /* @__PURE__ */ number()
|
|
35246
35250
|
});
|
|
35247
35251
|
const ProjectPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
35248
|
-
auto_compute_estimates: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35252
|
+
auto_compute_estimates: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
35249
35253
|
billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35250
35254
|
client_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35251
35255
|
color: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
@@ -35254,6 +35258,7 @@ const ProjectPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
35254
35258
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35255
35259
|
draft: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35256
35260
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
|
|
35261
|
+
estimate_source: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["manual", "tasks"])),
|
|
35257
35262
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
|
|
35258
35263
|
fixed_fee: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(ProjectFixedFeePayloadSchema)),
|
|
35259
35264
|
name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
@@ -35271,7 +35276,7 @@ const ProjectPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
35271
35276
|
});
|
|
35272
35277
|
const ProjectPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
35273
35278
|
id: /* @__PURE__ */ number(),
|
|
35274
|
-
auto_compute_estimates: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35279
|
+
auto_compute_estimates: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
35275
35280
|
billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35276
35281
|
client_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35277
35282
|
color: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
@@ -35280,6 +35285,7 @@ const ProjectPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
|
35280
35285
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35281
35286
|
draft: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35282
35287
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
|
|
35288
|
+
estimate_source: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["manual", "tasks"])),
|
|
35283
35289
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
|
|
35284
35290
|
fixed_fee: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(ProjectFixedFeePayloadSchema)),
|
|
35285
35291
|
groups: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(ProjectBulkGroupEntrySchema))),
|
|
@@ -38296,7 +38302,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38296
38302
|
]))
|
|
38297
38303
|
});
|
|
38298
38304
|
//#endregion
|
|
38299
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38305
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38300
38306
|
async function getInvitations(httpClient, signal) {
|
|
38301
38307
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38302
38308
|
}
|
|
@@ -38313,7 +38319,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38313
38319
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38314
38320
|
}
|
|
38315
38321
|
//#endregion
|
|
38316
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38322
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38317
38323
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38318
38324
|
const searchParams = new URLSearchParams();
|
|
38319
38325
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38325,7 +38331,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38325
38331
|
return searchParams;
|
|
38326
38332
|
}
|
|
38327
38333
|
//#endregion
|
|
38328
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38334
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38329
38335
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38330
38336
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38331
38337
|
}
|
|
@@ -38339,7 +38345,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38339
38345
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38340
38346
|
}
|
|
38341
38347
|
//#endregion
|
|
38342
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38348
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38343
38349
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38344
38350
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38345
38351
|
}
|
|
@@ -38359,7 +38365,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38359
38365
|
});
|
|
38360
38366
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38361
38367
|
//#endregion
|
|
38362
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38368
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38363
38369
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38364
38370
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38365
38371
|
signal,
|
|
@@ -38370,12 +38376,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38370
38376
|
})).json();
|
|
38371
38377
|
}
|
|
38372
38378
|
//#endregion
|
|
38373
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38379
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38374
38380
|
async function getStatus(httpClient, signal) {
|
|
38375
38381
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38376
38382
|
}
|
|
38377
38383
|
//#endregion
|
|
38378
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38384
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38379
38385
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38380
38386
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38381
38387
|
signal,
|
|
@@ -38403,7 +38409,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38403
38409
|
return response.json();
|
|
38404
38410
|
}
|
|
38405
38411
|
//#endregion
|
|
38406
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38412
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38407
38413
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38408
38414
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38409
38415
|
}
|
|
@@ -45988,6 +45994,7 @@ const generatedFocusOperations = [
|
|
|
45988
45994
|
auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
45989
45995
|
completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
|
|
45990
45996
|
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
45997
|
+
estimate_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "tasks"])),
|
|
45991
45998
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
45992
45999
|
pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
45993
46000
|
rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
@@ -46030,8 +46037,8 @@ const generatedFocusOperations = [
|
|
|
46030
46037
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
46031
46038
|
date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
46032
46039
|
payload: /* @__PURE__ */ looseObject({
|
|
46033
|
-
auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
46034
46040
|
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
46041
|
+
estimate_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "tasks"])),
|
|
46035
46042
|
private: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
46036
46043
|
}),
|
|
46037
46044
|
project_id: /* @__PURE__ */ number$2()
|
|
@@ -46067,6 +46074,7 @@ const generatedFocusOperations = [
|
|
|
46067
46074
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
46068
46075
|
payload: /* @__PURE__ */ looseObject({
|
|
46069
46076
|
auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
46077
|
+
estimate_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "tasks"])),
|
|
46070
46078
|
estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
46071
46079
|
fixed_fee: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
46072
46080
|
amount: /* @__PURE__ */ number$2(),
|
|
@@ -56116,7 +56124,7 @@ function registerWorkspaceTools(server) {
|
|
|
56116
56124
|
//#region src/package-version.ts
|
|
56117
56125
|
function mcpPackageVersion() {
|
|
56118
56126
|
try {
|
|
56119
|
-
return "1.11.
|
|
56127
|
+
return "1.11.202";
|
|
56120
56128
|
} catch {
|
|
56121
56129
|
return "unknown";
|
|
56122
56130
|
}
|
|
@@ -56291,7 +56299,7 @@ import_main.default.config({
|
|
|
56291
56299
|
quiet: true,
|
|
56292
56300
|
ignore: ["MISSING_ENV_FILE"]
|
|
56293
56301
|
});
|
|
56294
|
-
const packageVersion = "1.11.
|
|
56302
|
+
const packageVersion = "1.11.202";
|
|
56295
56303
|
function resolvePublicUrls() {
|
|
56296
56304
|
return {
|
|
56297
56305
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -56356,4 +56364,4 @@ function bootstrapServer(options = {}) {
|
|
|
56356
56364
|
//#endregion
|
|
56357
56365
|
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 };
|
|
56358
56366
|
|
|
56359
|
-
//# sourceMappingURL=src-
|
|
56367
|
+
//# sourceMappingURL=src-BTV84Jt2.js.map
|