@togglhq/mcp 1.13.118 → 1.13.120
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-CfiN8L3F.js → src-_1lJXdwy.js} +70 -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 PUBLIC_SENTRY_PRIVACY_OPTIONS, c as initProductAnalytics, d as shutdownProductAnalytics, i as runMcpCli, l as resolveProductAnalyticsDistinctId, o as captureToolInvocation, s as getProductAnalyticsDistinctId, u as resolvePublicSentryDsn } from "./src-
|
|
2
|
+
import { a as PUBLIC_SENTRY_PRIVACY_OPTIONS, c as initProductAnalytics, d as shutdownProductAnalytics, i as runMcpCli, l as resolveProductAnalyticsDistinctId, o as captureToolInvocation, s as getProductAnalyticsDistinctId, u as resolvePublicSentryDsn } from "./src-_1lJXdwy.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.13.
|
|
165
|
+
const packageVersion = "1.13.120";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-
|
|
2
|
+
import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-_1lJXdwy.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -35271,6 +35271,7 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
|
|
|
35271
35271
|
foreground_color: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35272
35272
|
meeting_link: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35273
35273
|
series_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35274
|
+
series_timezone: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35274
35275
|
start_time: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35275
35276
|
title: /* @__PURE__ */ optional(/* @__PURE__ */ string())
|
|
35276
35277
|
}))),
|
|
@@ -38529,7 +38530,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38529
38530
|
]))
|
|
38530
38531
|
});
|
|
38531
38532
|
//#endregion
|
|
38532
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38533
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.282_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5574f5be92eaf8d984f491eb3cfd36fb/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38533
38534
|
async function getInvitations(httpClient, signal) {
|
|
38534
38535
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38535
38536
|
}
|
|
@@ -38546,7 +38547,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38546
38547
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38547
38548
|
}
|
|
38548
38549
|
//#endregion
|
|
38549
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38550
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.282_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5574f5be92eaf8d984f491eb3cfd36fb/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38550
38551
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38551
38552
|
const searchParams = new URLSearchParams();
|
|
38552
38553
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38558,7 +38559,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38558
38559
|
return searchParams;
|
|
38559
38560
|
}
|
|
38560
38561
|
//#endregion
|
|
38561
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38562
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.282_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5574f5be92eaf8d984f491eb3cfd36fb/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38562
38563
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38563
38564
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38564
38565
|
}
|
|
@@ -38573,7 +38574,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38573
38574
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38574
38575
|
}
|
|
38575
38576
|
//#endregion
|
|
38576
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38577
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.282_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5574f5be92eaf8d984f491eb3cfd36fb/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38577
38578
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38578
38579
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38579
38580
|
}
|
|
@@ -38593,7 +38594,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38593
38594
|
});
|
|
38594
38595
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38595
38596
|
//#endregion
|
|
38596
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38597
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.282_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5574f5be92eaf8d984f491eb3cfd36fb/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38597
38598
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38598
38599
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38599
38600
|
signal,
|
|
@@ -38604,12 +38605,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38604
38605
|
})).json();
|
|
38605
38606
|
}
|
|
38606
38607
|
//#endregion
|
|
38607
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38608
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.282_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5574f5be92eaf8d984f491eb3cfd36fb/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38608
38609
|
async function getStatus(httpClient, signal) {
|
|
38609
38610
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38610
38611
|
}
|
|
38611
38612
|
//#endregion
|
|
38612
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38613
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.282_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5574f5be92eaf8d984f491eb3cfd36fb/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38613
38614
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38614
38615
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38615
38616
|
signal,
|
|
@@ -38637,7 +38638,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38637
38638
|
return response.json();
|
|
38638
38639
|
}
|
|
38639
38640
|
//#endregion
|
|
38640
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38641
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.282_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5574f5be92eaf8d984f491eb3cfd36fb/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38641
38642
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38642
38643
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38643
38644
|
}
|
|
@@ -43651,6 +43652,12 @@ async function searchMentions(httpClient, organization_id, workspace_id, { keywo
|
|
|
43651
43652
|
}
|
|
43652
43653
|
//#endregion
|
|
43653
43654
|
//#region ../focus-queries/dist/sharedreports/requests.ts
|
|
43655
|
+
async function getMemberOwnedSharedReports(httpClient, organization_id, user_id, signal) {
|
|
43656
|
+
return await httpClient.get(`organizations/${organization_id}/users/${user_id}/shared-reports`, { signal }).json();
|
|
43657
|
+
}
|
|
43658
|
+
async function takeOverMemberSharedReports(httpClient, organization_id, user_id, signal) {
|
|
43659
|
+
return await httpClient.post(`organizations/${organization_id}/users/${user_id}/shared-reports/take-over`, { signal }).json();
|
|
43660
|
+
}
|
|
43654
43661
|
async function shareSavedView(httpClient, workspace_id, id, data, signal) {
|
|
43655
43662
|
return await httpClient.post(`workspaces/${workspace_id}/saved-views/${id}/share`, {
|
|
43656
43663
|
signal,
|
|
@@ -51439,6 +51446,32 @@ const generatedFocusOperations = [
|
|
|
51439
51446
|
]));
|
|
51440
51447
|
}
|
|
51441
51448
|
},
|
|
51449
|
+
{
|
|
51450
|
+
id: "focus.sharedreports.get-member-owned-shared-reports",
|
|
51451
|
+
family: "focus",
|
|
51452
|
+
resource: "sharedreports",
|
|
51453
|
+
action: "get-member-owned-shared-reports",
|
|
51454
|
+
title: "Get Member Owned Shared Reports Sharedreports",
|
|
51455
|
+
description: "Get Member Owned Shared Reports Sharedreports.",
|
|
51456
|
+
safety: "read",
|
|
51457
|
+
destructive: false,
|
|
51458
|
+
cli: {
|
|
51459
|
+
group: ["sharedreports"],
|
|
51460
|
+
command: "get-member-owned-shared-reports",
|
|
51461
|
+
interactive: "available"
|
|
51462
|
+
},
|
|
51463
|
+
mcp: { entityTool: "sharedreports" },
|
|
51464
|
+
inputSchema: /* @__PURE__ */ looseObject({ user_id: /* @__PURE__ */ number$2() }),
|
|
51465
|
+
execute: (input, { client }) => {
|
|
51466
|
+
const data = input;
|
|
51467
|
+
return client.runGeneratedRequest("getMemberOwnedSharedReports", () => callGeneratedRequest(getMemberOwnedSharedReports, [
|
|
51468
|
+
client.httpClient,
|
|
51469
|
+
client.organizationId,
|
|
51470
|
+
data.user_id,
|
|
51471
|
+
void 0
|
|
51472
|
+
]));
|
|
51473
|
+
}
|
|
51474
|
+
},
|
|
51442
51475
|
{
|
|
51443
51476
|
id: "focus.sharedreports.get-saved-view-shared-report",
|
|
51444
51477
|
family: "focus",
|
|
@@ -51781,6 +51814,32 @@ const generatedFocusOperations = [
|
|
|
51781
51814
|
]));
|
|
51782
51815
|
}
|
|
51783
51816
|
},
|
|
51817
|
+
{
|
|
51818
|
+
id: "focus.sharedreports.take-over-member-shared-reports",
|
|
51819
|
+
family: "focus",
|
|
51820
|
+
resource: "sharedreports",
|
|
51821
|
+
action: "take-over-member-shared-reports",
|
|
51822
|
+
title: "Take Over Member Shared Reports Sharedreports",
|
|
51823
|
+
description: "Take Over Member Shared Reports Sharedreports.",
|
|
51824
|
+
safety: "update",
|
|
51825
|
+
destructive: false,
|
|
51826
|
+
cli: {
|
|
51827
|
+
group: ["sharedreports"],
|
|
51828
|
+
command: "take-over-member-shared-reports",
|
|
51829
|
+
interactive: "default"
|
|
51830
|
+
},
|
|
51831
|
+
mcp: { entityTool: "sharedreports" },
|
|
51832
|
+
inputSchema: /* @__PURE__ */ looseObject({ user_id: /* @__PURE__ */ number$2() }),
|
|
51833
|
+
execute: (input, { client }) => {
|
|
51834
|
+
const data = input;
|
|
51835
|
+
return client.runGeneratedRequest("takeOverMemberSharedReports", () => callGeneratedRequest(takeOverMemberSharedReports, [
|
|
51836
|
+
client.httpClient,
|
|
51837
|
+
client.organizationId,
|
|
51838
|
+
data.user_id,
|
|
51839
|
+
void 0
|
|
51840
|
+
]));
|
|
51841
|
+
}
|
|
51842
|
+
},
|
|
51784
51843
|
{
|
|
51785
51844
|
id: "focus.sharedreports.unshare-shared-report",
|
|
51786
51845
|
family: "focus",
|
|
@@ -58443,7 +58502,7 @@ function registerWorkspaceTools(server) {
|
|
|
58443
58502
|
//#region src/package-version.ts
|
|
58444
58503
|
function mcpPackageVersion() {
|
|
58445
58504
|
try {
|
|
58446
|
-
return "1.13.
|
|
58505
|
+
return "1.13.120";
|
|
58447
58506
|
} catch {
|
|
58448
58507
|
return "unknown";
|
|
58449
58508
|
}
|
|
@@ -58624,7 +58683,7 @@ import_main.default.config({
|
|
|
58624
58683
|
quiet: true,
|
|
58625
58684
|
ignore: ["MISSING_ENV_FILE"]
|
|
58626
58685
|
});
|
|
58627
|
-
const packageVersion = "1.13.
|
|
58686
|
+
const packageVersion = "1.13.120";
|
|
58628
58687
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
58629
58688
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
58630
58689
|
function resolvePublicUrls() {
|
|
@@ -58744,4 +58803,4 @@ function bootstrapServer(options = {}) {
|
|
|
58744
58803
|
//#endregion
|
|
58745
58804
|
export { PUBLIC_SENTRY_PRIVACY_OPTIONS as a, initProductAnalytics as c, shutdownProductAnalytics as d, runMcpCli as i, resolveProductAnalyticsDistinctId as l, MCP_MAX_TOOL_INPUT_ELEMENTS as n, captureToolInvocation as o, bootstrapServer as r, getProductAnalyticsDistinctId as s, MCP_CACHE_TTL_MS as t, resolvePublicSentryDsn as u };
|
|
58746
58805
|
|
|
58747
|
-
//# sourceMappingURL=src-
|
|
58806
|
+
//# sourceMappingURL=src-_1lJXdwy.js.map
|