@togglhq/mcp 1.11.71 → 1.11.72
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-BKR8mPv9.js → src-Nze05BoB.js} +31 -11
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as initProductAnalytics, c as shutdownProductAnalytics, i as getProductAnalyticsDistinctId, n as runMcpCli, o as redactUnsafeSentryMessages, r as captureToolInvocation, s as resolveProductAnalyticsDistinctId } from "./src-
|
|
2
|
+
import { a as initProductAnalytics, c as shutdownProductAnalytics, i as getProductAnalyticsDistinctId, n as runMcpCli, o as redactUnsafeSentryMessages, r as captureToolInvocation, s as resolveProductAnalyticsDistinctId } from "./src-Nze05BoB.js";
|
|
3
3
|
import * as Sentry from "@sentry/node";
|
|
4
4
|
//#region src/analytics-tool-metadata.ts
|
|
5
5
|
/**
|
|
@@ -165,7 +165,7 @@ function wrapServerWithProductAnalytics(server) {
|
|
|
165
165
|
}
|
|
166
166
|
//#endregion
|
|
167
167
|
//#region src/cli.ts
|
|
168
|
-
const packageVersion = "1.11.
|
|
168
|
+
const packageVersion = "1.11.72";
|
|
169
169
|
let sentryEnabled = false;
|
|
170
170
|
let productAnalyticsEnabled = false;
|
|
171
171
|
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.69_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_290114267c23e9a1d40da78b0defee5d/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.69_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_290114267c23e9a1d40da78b0defee5d/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.69_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_290114267c23e9a1d40da78b0defee5d/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.69_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_290114267c23e9a1d40da78b0defee5d/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
|
}
|
|
@@ -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.69_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_290114267c23e9a1d40da78b0defee5d/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.69_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_290114267c23e9a1d40da78b0defee5d/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.69_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_290114267c23e9a1d40da78b0defee5d/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.69_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_290114267c23e9a1d40da78b0defee5d/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
|
}
|
|
@@ -54703,7 +54723,7 @@ function registerWorkspaceTools(server) {
|
|
|
54703
54723
|
//#region src/package-version.ts
|
|
54704
54724
|
function mcpPackageVersion() {
|
|
54705
54725
|
try {
|
|
54706
|
-
return "1.11.
|
|
54726
|
+
return "1.11.72";
|
|
54707
54727
|
} catch {
|
|
54708
54728
|
return "unknown";
|
|
54709
54729
|
}
|
|
@@ -54878,7 +54898,7 @@ import_main.default.config({
|
|
|
54878
54898
|
quiet: true,
|
|
54879
54899
|
ignore: ["MISSING_ENV_FILE"]
|
|
54880
54900
|
});
|
|
54881
|
-
const packageVersion = "1.11.
|
|
54901
|
+
const packageVersion = "1.11.72";
|
|
54882
54902
|
function resolvePublicUrls() {
|
|
54883
54903
|
return {
|
|
54884
54904
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -54943,4 +54963,4 @@ function bootstrapServer(options = {}) {
|
|
|
54943
54963
|
//#endregion
|
|
54944
54964
|
export { initProductAnalytics as a, shutdownProductAnalytics as c, getProductAnalyticsDistinctId as i, runMcpCli as n, redactUnsafeSentryMessages as o, captureToolInvocation as r, resolveProductAnalyticsDistinctId as s, bootstrapServer as t };
|
|
54945
54965
|
|
|
54946
|
-
//# sourceMappingURL=src-
|
|
54966
|
+
//# sourceMappingURL=src-Nze05BoB.js.map
|