@togglhq/mcp 1.11.8 → 1.11.9
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-J86VptCP.js → src-BzHE50Km.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-BzHE50Km.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.9";
|
|
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",
|
|
@@ -38402,7 +38422,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38402
38422
|
]))
|
|
38403
38423
|
});
|
|
38404
38424
|
//#endregion
|
|
38405
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38425
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.26_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cc8c14ce09af212405efde1dfbbefbb7/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38406
38426
|
async function getInvitations(httpClient, signal) {
|
|
38407
38427
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38408
38428
|
}
|
|
@@ -38419,7 +38439,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38419
38439
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38420
38440
|
}
|
|
38421
38441
|
//#endregion
|
|
38422
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38442
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.26_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cc8c14ce09af212405efde1dfbbefbb7/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38423
38443
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38424
38444
|
const searchParams = new URLSearchParams();
|
|
38425
38445
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38431,7 +38451,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38431
38451
|
return searchParams;
|
|
38432
38452
|
}
|
|
38433
38453
|
//#endregion
|
|
38434
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38454
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.26_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cc8c14ce09af212405efde1dfbbefbb7/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38435
38455
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38436
38456
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38437
38457
|
}
|
|
@@ -38445,7 +38465,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38445
38465
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38446
38466
|
}
|
|
38447
38467
|
//#endregion
|
|
38448
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38468
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.26_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cc8c14ce09af212405efde1dfbbefbb7/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38449
38469
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38450
38470
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38451
38471
|
}
|
|
@@ -38465,7 +38485,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38465
38485
|
});
|
|
38466
38486
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38467
38487
|
//#endregion
|
|
38468
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38488
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.26_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cc8c14ce09af212405efde1dfbbefbb7/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38469
38489
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38470
38490
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38471
38491
|
signal,
|
|
@@ -38476,12 +38496,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38476
38496
|
})).json();
|
|
38477
38497
|
}
|
|
38478
38498
|
//#endregion
|
|
38479
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38499
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.26_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cc8c14ce09af212405efde1dfbbefbb7/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38480
38500
|
async function getStatus(httpClient, signal) {
|
|
38481
38501
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38482
38502
|
}
|
|
38483
38503
|
//#endregion
|
|
38484
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38504
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.26_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cc8c14ce09af212405efde1dfbbefbb7/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38485
38505
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38486
38506
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38487
38507
|
signal,
|
|
@@ -38509,7 +38529,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38509
38529
|
return response.json();
|
|
38510
38530
|
}
|
|
38511
38531
|
//#endregion
|
|
38512
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38532
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.26_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cc8c14ce09af212405efde1dfbbefbb7/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38513
38533
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38514
38534
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38515
38535
|
}
|
|
@@ -55098,7 +55118,7 @@ function registerWorkspaceTools(server) {
|
|
|
55098
55118
|
//#region src/package-version.ts
|
|
55099
55119
|
function mcpPackageVersion() {
|
|
55100
55120
|
try {
|
|
55101
|
-
return "1.11.
|
|
55121
|
+
return "1.11.9";
|
|
55102
55122
|
} catch {
|
|
55103
55123
|
return "unknown";
|
|
55104
55124
|
}
|
|
@@ -55273,7 +55293,7 @@ import_main.default.config({
|
|
|
55273
55293
|
quiet: true,
|
|
55274
55294
|
ignore: ["MISSING_ENV_FILE"]
|
|
55275
55295
|
});
|
|
55276
|
-
const packageVersion = "1.11.
|
|
55296
|
+
const packageVersion = "1.11.9";
|
|
55277
55297
|
function resolvePublicUrls() {
|
|
55278
55298
|
return {
|
|
55279
55299
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -55338,4 +55358,4 @@ function bootstrapServer(options = {}) {
|
|
|
55338
55358
|
//#endregion
|
|
55339
55359
|
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 };
|
|
55340
55360
|
|
|
55341
|
-
//# sourceMappingURL=src-
|
|
55361
|
+
//# sourceMappingURL=src-BzHE50Km.js.map
|