@togglhq/mcp 1.11.108 → 1.11.110
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-BWRE6qiN.js → src-CTBPY6tU.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-CTBPY6tU.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.110";
|
|
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",
|
|
@@ -38188,7 +38208,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38188
38208
|
]))
|
|
38189
38209
|
});
|
|
38190
38210
|
//#endregion
|
|
38191
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38211
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.99_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_69c163dfa5ace6c9b5d7599267f7e27e/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38192
38212
|
async function getInvitations(httpClient, signal) {
|
|
38193
38213
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38194
38214
|
}
|
|
@@ -38205,7 +38225,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38205
38225
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38206
38226
|
}
|
|
38207
38227
|
//#endregion
|
|
38208
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38228
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.99_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_69c163dfa5ace6c9b5d7599267f7e27e/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38209
38229
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38210
38230
|
const searchParams = new URLSearchParams();
|
|
38211
38231
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38217,7 +38237,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38217
38237
|
return searchParams;
|
|
38218
38238
|
}
|
|
38219
38239
|
//#endregion
|
|
38220
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38240
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.99_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_69c163dfa5ace6c9b5d7599267f7e27e/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38221
38241
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38222
38242
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38223
38243
|
}
|
|
@@ -38231,7 +38251,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38231
38251
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38232
38252
|
}
|
|
38233
38253
|
//#endregion
|
|
38234
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38254
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.99_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_69c163dfa5ace6c9b5d7599267f7e27e/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38235
38255
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38236
38256
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38237
38257
|
}
|
|
@@ -38240,7 +38260,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
|
|
|
38240
38260
|
}
|
|
38241
38261
|
const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
|
|
38242
38262
|
working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
|
|
38243
|
-
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
|
|
38263
|
+
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(24))),
|
|
38244
38264
|
weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
|
|
38245
38265
|
});
|
|
38246
38266
|
const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
@@ -38251,7 +38271,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38251
38271
|
});
|
|
38252
38272
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38253
38273
|
//#endregion
|
|
38254
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38274
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.99_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_69c163dfa5ace6c9b5d7599267f7e27e/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38255
38275
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38256
38276
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38257
38277
|
signal,
|
|
@@ -38262,12 +38282,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38262
38282
|
})).json();
|
|
38263
38283
|
}
|
|
38264
38284
|
//#endregion
|
|
38265
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38285
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.99_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_69c163dfa5ace6c9b5d7599267f7e27e/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38266
38286
|
async function getStatus(httpClient, signal) {
|
|
38267
38287
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38268
38288
|
}
|
|
38269
38289
|
//#endregion
|
|
38270
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38290
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.99_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_69c163dfa5ace6c9b5d7599267f7e27e/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38271
38291
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38272
38292
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38273
38293
|
signal,
|
|
@@ -38295,7 +38315,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38295
38315
|
return response.json();
|
|
38296
38316
|
}
|
|
38297
38317
|
//#endregion
|
|
38298
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38318
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.99_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_69c163dfa5ace6c9b5d7599267f7e27e/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38299
38319
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38300
38320
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38301
38321
|
}
|
|
@@ -54817,7 +54837,7 @@ function registerWorkspaceTools(server) {
|
|
|
54817
54837
|
//#region src/package-version.ts
|
|
54818
54838
|
function mcpPackageVersion() {
|
|
54819
54839
|
try {
|
|
54820
|
-
return "1.11.
|
|
54840
|
+
return "1.11.110";
|
|
54821
54841
|
} catch {
|
|
54822
54842
|
return "unknown";
|
|
54823
54843
|
}
|
|
@@ -54992,7 +55012,7 @@ import_main.default.config({
|
|
|
54992
55012
|
quiet: true,
|
|
54993
55013
|
ignore: ["MISSING_ENV_FILE"]
|
|
54994
55014
|
});
|
|
54995
|
-
const packageVersion = "1.11.
|
|
55015
|
+
const packageVersion = "1.11.110";
|
|
54996
55016
|
function resolvePublicUrls() {
|
|
54997
55017
|
return {
|
|
54998
55018
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -55057,4 +55077,4 @@ function bootstrapServer(options = {}) {
|
|
|
55057
55077
|
//#endregion
|
|
55058
55078
|
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 };
|
|
55059
55079
|
|
|
55060
|
-
//# sourceMappingURL=src-
|
|
55080
|
+
//# sourceMappingURL=src-CTBPY6tU.js.map
|