@togglhq/mcp 1.11.6 → 1.11.7
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-BkmLNZ2p.js → src-DactIEXR.js} +67 -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-DactIEXR.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.7";
|
|
169
169
|
let sentryEnabled = false;
|
|
170
170
|
let productAnalyticsEnabled = false;
|
|
171
171
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -38402,7 +38402,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38402
38402
|
]))
|
|
38403
38403
|
});
|
|
38404
38404
|
//#endregion
|
|
38405
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38405
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38406
38406
|
async function getInvitations(httpClient, signal) {
|
|
38407
38407
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38408
38408
|
}
|
|
@@ -38419,7 +38419,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38419
38419
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38420
38420
|
}
|
|
38421
38421
|
//#endregion
|
|
38422
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38422
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38423
38423
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38424
38424
|
const searchParams = new URLSearchParams();
|
|
38425
38425
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38431,7 +38431,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38431
38431
|
return searchParams;
|
|
38432
38432
|
}
|
|
38433
38433
|
//#endregion
|
|
38434
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38434
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38435
38435
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38436
38436
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38437
38437
|
}
|
|
@@ -38445,7 +38445,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38445
38445
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38446
38446
|
}
|
|
38447
38447
|
//#endregion
|
|
38448
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38448
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38449
38449
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38450
38450
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38451
38451
|
}
|
|
@@ -38465,7 +38465,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38465
38465
|
});
|
|
38466
38466
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38467
38467
|
//#endregion
|
|
38468
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38468
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38469
38469
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38470
38470
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38471
38471
|
signal,
|
|
@@ -38476,12 +38476,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38476
38476
|
})).json();
|
|
38477
38477
|
}
|
|
38478
38478
|
//#endregion
|
|
38479
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38479
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38480
38480
|
async function getStatus(httpClient, signal) {
|
|
38481
38481
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38482
38482
|
}
|
|
38483
38483
|
//#endregion
|
|
38484
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38484
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38485
38485
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38486
38486
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38487
38487
|
signal,
|
|
@@ -38509,7 +38509,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38509
38509
|
return response.json();
|
|
38510
38510
|
}
|
|
38511
38511
|
//#endregion
|
|
38512
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38512
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38513
38513
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38514
38514
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38515
38515
|
}
|
|
@@ -43373,6 +43373,12 @@ async function withdrawTimesheet(httpClient, organization_id, workspace_id, setu
|
|
|
43373
43373
|
}
|
|
43374
43374
|
//#endregion
|
|
43375
43375
|
//#region ../focus-queries/dist/user-settings/requests.ts
|
|
43376
|
+
async function emailUnsubscribePage(httpClient, token, signal) {
|
|
43377
|
+
return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
|
|
43378
|
+
}
|
|
43379
|
+
async function emailUnsubscribe(httpClient, token, signal) {
|
|
43380
|
+
return await httpClient.post(`email/unsubscribe/${token}`, { signal }).json();
|
|
43381
|
+
}
|
|
43376
43382
|
async function getUserSettings(httpClient, signal) {
|
|
43377
43383
|
return await httpClient.get(`users/me/settings`, { signal }).json();
|
|
43378
43384
|
}
|
|
@@ -53435,6 +53441,56 @@ const generatedFocusOperations = [
|
|
|
53435
53441
|
return client.listOrgUsers(data);
|
|
53436
53442
|
}
|
|
53437
53443
|
},
|
|
53444
|
+
{
|
|
53445
|
+
id: "focus.users.settings-email-unsubscribe",
|
|
53446
|
+
family: "focus",
|
|
53447
|
+
resource: "users",
|
|
53448
|
+
action: "settings-email-unsubscribe",
|
|
53449
|
+
title: "Settings Email Unsubscribe Users",
|
|
53450
|
+
description: "Settings Email Unsubscribe Users.",
|
|
53451
|
+
safety: "update",
|
|
53452
|
+
destructive: false,
|
|
53453
|
+
cli: {
|
|
53454
|
+
group: ["users", "settings"],
|
|
53455
|
+
command: "email-unsubscribe",
|
|
53456
|
+
interactive: "default"
|
|
53457
|
+
},
|
|
53458
|
+
mcp: { entityTool: "users" },
|
|
53459
|
+
inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
|
|
53460
|
+
execute: (input, { client }) => {
|
|
53461
|
+
const data = input;
|
|
53462
|
+
return client.runGeneratedRequest("emailUnsubscribe", () => callGeneratedRequest(emailUnsubscribe, [
|
|
53463
|
+
client.httpClient,
|
|
53464
|
+
data.token,
|
|
53465
|
+
void 0
|
|
53466
|
+
]));
|
|
53467
|
+
}
|
|
53468
|
+
},
|
|
53469
|
+
{
|
|
53470
|
+
id: "focus.users.settings-email-unsubscribe-page",
|
|
53471
|
+
family: "focus",
|
|
53472
|
+
resource: "users",
|
|
53473
|
+
action: "settings-email-unsubscribe-page",
|
|
53474
|
+
title: "Settings Email Unsubscribe Page Users",
|
|
53475
|
+
description: "Settings Email Unsubscribe Page Users.",
|
|
53476
|
+
safety: "read",
|
|
53477
|
+
destructive: false,
|
|
53478
|
+
cli: {
|
|
53479
|
+
group: ["users", "settings"],
|
|
53480
|
+
command: "email-unsubscribe-page",
|
|
53481
|
+
interactive: "available"
|
|
53482
|
+
},
|
|
53483
|
+
mcp: { entityTool: "users" },
|
|
53484
|
+
inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
|
|
53485
|
+
execute: (input, { client }) => {
|
|
53486
|
+
const data = input;
|
|
53487
|
+
return client.runGeneratedRequest("emailUnsubscribePage", () => callGeneratedRequest(emailUnsubscribePage, [
|
|
53488
|
+
client.httpClient,
|
|
53489
|
+
data.token,
|
|
53490
|
+
void 0
|
|
53491
|
+
]));
|
|
53492
|
+
}
|
|
53493
|
+
},
|
|
53438
53494
|
{
|
|
53439
53495
|
id: "focus.users.settings-list",
|
|
53440
53496
|
family: "focus",
|
|
@@ -55042,7 +55098,7 @@ function registerWorkspaceTools(server) {
|
|
|
55042
55098
|
//#region src/package-version.ts
|
|
55043
55099
|
function mcpPackageVersion() {
|
|
55044
55100
|
try {
|
|
55045
|
-
return "1.11.
|
|
55101
|
+
return "1.11.7";
|
|
55046
55102
|
} catch {
|
|
55047
55103
|
return "unknown";
|
|
55048
55104
|
}
|
|
@@ -55217,7 +55273,7 @@ import_main.default.config({
|
|
|
55217
55273
|
quiet: true,
|
|
55218
55274
|
ignore: ["MISSING_ENV_FILE"]
|
|
55219
55275
|
});
|
|
55220
|
-
const packageVersion = "1.11.
|
|
55276
|
+
const packageVersion = "1.11.7";
|
|
55221
55277
|
function resolvePublicUrls() {
|
|
55222
55278
|
return {
|
|
55223
55279
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -55282,4 +55338,4 @@ function bootstrapServer(options = {}) {
|
|
|
55282
55338
|
//#endregion
|
|
55283
55339
|
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 };
|
|
55284
55340
|
|
|
55285
|
-
//# sourceMappingURL=src-
|
|
55341
|
+
//# sourceMappingURL=src-DactIEXR.js.map
|