@togglhq/mcp 1.11.148 → 1.11.150
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-B2obxNht.js → src-BCU1Yoxg.js} +32 -12
- 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-BCU1Yoxg.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.150";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -32773,6 +32773,10 @@ function _joinExpects$1(values$1, separator) {
|
|
|
32773
32773
|
*/
|
|
32774
32774
|
const ISO_DATE_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
|
|
32775
32775
|
/**
|
|
32776
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time regex.
|
|
32777
|
+
*/
|
|
32778
|
+
const ISO_DATE_TIME_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3]):[0-5]\d$/u;
|
|
32779
|
+
/**
|
|
32776
32780
|
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
|
|
32777
32781
|
* space as a date/time separator and an optional space before the UTC offset.
|
|
32778
32782
|
*/
|
|
@@ -32826,6 +32830,22 @@ function isoDate$1(message$1) {
|
|
|
32826
32830
|
};
|
|
32827
32831
|
}
|
|
32828
32832
|
/* @__NO_SIDE_EFFECTS__ */
|
|
32833
|
+
function isoDateTime$1(message$1) {
|
|
32834
|
+
return {
|
|
32835
|
+
kind: "validation",
|
|
32836
|
+
type: "iso_date_time",
|
|
32837
|
+
reference: isoDateTime$1,
|
|
32838
|
+
async: false,
|
|
32839
|
+
expects: null,
|
|
32840
|
+
requirement: ISO_DATE_TIME_REGEX$1,
|
|
32841
|
+
message: message$1,
|
|
32842
|
+
"~run"(dataset, config$1) {
|
|
32843
|
+
if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue$1(this, "date-time", dataset, config$1);
|
|
32844
|
+
return dataset;
|
|
32845
|
+
}
|
|
32846
|
+
};
|
|
32847
|
+
}
|
|
32848
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
32829
32849
|
function isoTimestamp(message$1) {
|
|
32830
32850
|
return {
|
|
32831
32851
|
kind: "validation",
|
|
@@ -38270,7 +38290,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38270
38290
|
]))
|
|
38271
38291
|
});
|
|
38272
38292
|
//#endregion
|
|
38273
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38293
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8c0b85d39e3086e83900e621f8daf0b5/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38274
38294
|
async function getInvitations(httpClient, signal) {
|
|
38275
38295
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38276
38296
|
}
|
|
@@ -38287,7 +38307,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38287
38307
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38288
38308
|
}
|
|
38289
38309
|
//#endregion
|
|
38290
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38310
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8c0b85d39e3086e83900e621f8daf0b5/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38291
38311
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38292
38312
|
const searchParams = new URLSearchParams();
|
|
38293
38313
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38299,7 +38319,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38299
38319
|
return searchParams;
|
|
38300
38320
|
}
|
|
38301
38321
|
//#endregion
|
|
38302
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38322
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8c0b85d39e3086e83900e621f8daf0b5/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38303
38323
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38304
38324
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38305
38325
|
}
|
|
@@ -38313,7 +38333,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38313
38333
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38314
38334
|
}
|
|
38315
38335
|
//#endregion
|
|
38316
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38336
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8c0b85d39e3086e83900e621f8daf0b5/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38317
38337
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38318
38338
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38319
38339
|
}
|
|
@@ -38322,7 +38342,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
|
|
|
38322
38342
|
}
|
|
38323
38343
|
const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
|
|
38324
38344
|
working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
|
|
38325
|
-
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
|
|
38345
|
+
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(24))),
|
|
38326
38346
|
weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
|
|
38327
38347
|
});
|
|
38328
38348
|
const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
@@ -38333,7 +38353,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38333
38353
|
});
|
|
38334
38354
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38335
38355
|
//#endregion
|
|
38336
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38356
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8c0b85d39e3086e83900e621f8daf0b5/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38337
38357
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38338
38358
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38339
38359
|
signal,
|
|
@@ -38344,12 +38364,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38344
38364
|
})).json();
|
|
38345
38365
|
}
|
|
38346
38366
|
//#endregion
|
|
38347
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38367
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8c0b85d39e3086e83900e621f8daf0b5/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38348
38368
|
async function getStatus(httpClient, signal) {
|
|
38349
38369
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38350
38370
|
}
|
|
38351
38371
|
//#endregion
|
|
38352
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38372
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8c0b85d39e3086e83900e621f8daf0b5/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38353
38373
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38354
38374
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38355
38375
|
signal,
|
|
@@ -38377,7 +38397,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38377
38397
|
return response.json();
|
|
38378
38398
|
}
|
|
38379
38399
|
//#endregion
|
|
38380
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38400
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8c0b85d39e3086e83900e621f8daf0b5/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38381
38401
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38382
38402
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38383
38403
|
}
|
|
@@ -56087,7 +56107,7 @@ function registerWorkspaceTools(server) {
|
|
|
56087
56107
|
//#region src/package-version.ts
|
|
56088
56108
|
function mcpPackageVersion() {
|
|
56089
56109
|
try {
|
|
56090
|
-
return "1.11.
|
|
56110
|
+
return "1.11.150";
|
|
56091
56111
|
} catch {
|
|
56092
56112
|
return "unknown";
|
|
56093
56113
|
}
|
|
@@ -56262,7 +56282,7 @@ import_main.default.config({
|
|
|
56262
56282
|
quiet: true,
|
|
56263
56283
|
ignore: ["MISSING_ENV_FILE"]
|
|
56264
56284
|
});
|
|
56265
|
-
const packageVersion = "1.11.
|
|
56285
|
+
const packageVersion = "1.11.150";
|
|
56266
56286
|
function resolvePublicUrls() {
|
|
56267
56287
|
return {
|
|
56268
56288
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -56327,4 +56347,4 @@ function bootstrapServer(options = {}) {
|
|
|
56327
56347
|
//#endregion
|
|
56328
56348
|
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 };
|
|
56329
56349
|
|
|
56330
|
-
//# sourceMappingURL=src-
|
|
56350
|
+
//# sourceMappingURL=src-BCU1Yoxg.js.map
|