@togglhq/mcp 1.13.176 → 1.13.178
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-GpgAfTJI.js → src-DggeRp4z.js} +93 -13
- 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-DggeRp4z.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.178";
|
|
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-DggeRp4z.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -38668,7 +38668,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38668
38668
|
]))
|
|
38669
38669
|
});
|
|
38670
38670
|
//#endregion
|
|
38671
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38671
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38672
38672
|
async function getInvitations(httpClient, signal) {
|
|
38673
38673
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38674
38674
|
}
|
|
@@ -38685,7 +38685,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38685
38685
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38686
38686
|
}
|
|
38687
38687
|
//#endregion
|
|
38688
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38688
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38689
38689
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38690
38690
|
const searchParams = new URLSearchParams();
|
|
38691
38691
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38697,7 +38697,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38697
38697
|
return searchParams;
|
|
38698
38698
|
}
|
|
38699
38699
|
//#endregion
|
|
38700
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38700
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38701
38701
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38702
38702
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38703
38703
|
}
|
|
@@ -38712,7 +38712,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38712
38712
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38713
38713
|
}
|
|
38714
38714
|
//#endregion
|
|
38715
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38715
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38716
38716
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38717
38717
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38718
38718
|
}
|
|
@@ -38732,7 +38732,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38732
38732
|
});
|
|
38733
38733
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38734
38734
|
//#endregion
|
|
38735
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38735
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38736
38736
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38737
38737
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38738
38738
|
signal,
|
|
@@ -38743,12 +38743,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38743
38743
|
})).json();
|
|
38744
38744
|
}
|
|
38745
38745
|
//#endregion
|
|
38746
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38746
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38747
38747
|
async function getStatus(httpClient, signal) {
|
|
38748
38748
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38749
38749
|
}
|
|
38750
38750
|
//#endregion
|
|
38751
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38751
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38752
38752
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38753
38753
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38754
38754
|
signal,
|
|
@@ -38776,7 +38776,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38776
38776
|
return response.json();
|
|
38777
38777
|
}
|
|
38778
38778
|
//#endregion
|
|
38779
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38779
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38780
38780
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38781
38781
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38782
38782
|
}
|
|
@@ -44719,6 +44719,17 @@ async function discontinueTimesheetSetupMember(httpClient, organization_id, work
|
|
|
44719
44719
|
if ([204, 205].includes(response.status)) return null;
|
|
44720
44720
|
return response.json();
|
|
44721
44721
|
}
|
|
44722
|
+
async function moveTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, data, signal) {
|
|
44723
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/move`, {
|
|
44724
|
+
signal,
|
|
44725
|
+
json: data
|
|
44726
|
+
})).json();
|
|
44727
|
+
}
|
|
44728
|
+
async function cancelTimesheetSetupMemberMove(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
|
|
44729
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/move`, { signal });
|
|
44730
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44731
|
+
return response.json();
|
|
44732
|
+
}
|
|
44722
44733
|
async function reactivateTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
|
|
44723
44734
|
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/reactivate`, { signal });
|
|
44724
44735
|
if ([204, 205].includes(response.status)) return null;
|
|
@@ -47061,7 +47072,8 @@ const generatedFocusOperations = [
|
|
|
47061
47072
|
"table",
|
|
47062
47073
|
"pivot_table"
|
|
47063
47074
|
]),
|
|
47064
|
-
filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()))
|
|
47075
|
+
filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
|
|
47076
|
+
period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
47065
47077
|
})),
|
|
47066
47078
|
period: /* @__PURE__ */ unknown$1(),
|
|
47067
47079
|
flexqFilters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
|
|
@@ -47216,7 +47228,8 @@ const generatedFocusOperations = [
|
|
|
47216
47228
|
"table",
|
|
47217
47229
|
"pivot_table"
|
|
47218
47230
|
]),
|
|
47219
|
-
filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()))
|
|
47231
|
+
filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
|
|
47232
|
+
period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
47220
47233
|
})),
|
|
47221
47234
|
period: /* @__PURE__ */ unknown$1(),
|
|
47222
47235
|
flexqFilters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
|
|
@@ -57285,6 +57298,37 @@ const generatedFocusOperations = [
|
|
|
57285
57298
|
]));
|
|
57286
57299
|
}
|
|
57287
57300
|
},
|
|
57301
|
+
{
|
|
57302
|
+
id: "focus.timesheets.setups-cancel-timesheet-setup-member-move",
|
|
57303
|
+
family: "focus",
|
|
57304
|
+
resource: "timesheets",
|
|
57305
|
+
action: "setups-cancel-timesheet-setup-member-move",
|
|
57306
|
+
title: "Setups Cancel Timesheet Setup Member Move Timesheets",
|
|
57307
|
+
description: "Setups Cancel Timesheet Setup Member Move Timesheets.",
|
|
57308
|
+
safety: "delete",
|
|
57309
|
+
destructive: true,
|
|
57310
|
+
cli: {
|
|
57311
|
+
group: ["timesheets", "setups"],
|
|
57312
|
+
command: "cancel-timesheet-setup-member-move",
|
|
57313
|
+
interactive: "default"
|
|
57314
|
+
},
|
|
57315
|
+
mcp: { entityTool: "timesheets" },
|
|
57316
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
57317
|
+
setup_id: /* @__PURE__ */ number$2(),
|
|
57318
|
+
user_account_id: /* @__PURE__ */ number$2()
|
|
57319
|
+
}),
|
|
57320
|
+
execute: (input, { client }) => {
|
|
57321
|
+
const data = input;
|
|
57322
|
+
return client.runGeneratedRequest("cancelTimesheetSetupMemberMove", () => callGeneratedRequest(cancelTimesheetSetupMemberMove, [
|
|
57323
|
+
client.httpClient,
|
|
57324
|
+
client.organizationId,
|
|
57325
|
+
client.workspaceIdNumber,
|
|
57326
|
+
data.setup_id,
|
|
57327
|
+
data.user_account_id,
|
|
57328
|
+
void 0
|
|
57329
|
+
]));
|
|
57330
|
+
}
|
|
57331
|
+
},
|
|
57288
57332
|
{
|
|
57289
57333
|
id: "focus.timesheets.setups-create",
|
|
57290
57334
|
family: "focus",
|
|
@@ -57566,6 +57610,42 @@ const generatedFocusOperations = [
|
|
|
57566
57610
|
]));
|
|
57567
57611
|
}
|
|
57568
57612
|
},
|
|
57613
|
+
{
|
|
57614
|
+
id: "focus.timesheets.setups-move-timesheet-setup-member",
|
|
57615
|
+
family: "focus",
|
|
57616
|
+
resource: "timesheets",
|
|
57617
|
+
action: "setups-move-timesheet-setup-member",
|
|
57618
|
+
title: "Setups Move Timesheet Setup Member Timesheets",
|
|
57619
|
+
description: "Setups Move Timesheet Setup Member Timesheets.",
|
|
57620
|
+
safety: "update",
|
|
57621
|
+
destructive: false,
|
|
57622
|
+
cli: {
|
|
57623
|
+
group: ["timesheets", "setups"],
|
|
57624
|
+
command: "move-timesheet-setup-member",
|
|
57625
|
+
interactive: "default"
|
|
57626
|
+
},
|
|
57627
|
+
mcp: { entityTool: "timesheets" },
|
|
57628
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
57629
|
+
payload: /* @__PURE__ */ looseObject({
|
|
57630
|
+
started_at: apiDateTimeString,
|
|
57631
|
+
target_setup_id: /* @__PURE__ */ number$2()
|
|
57632
|
+
}),
|
|
57633
|
+
setup_id: /* @__PURE__ */ number$2(),
|
|
57634
|
+
user_account_id: /* @__PURE__ */ number$2()
|
|
57635
|
+
}),
|
|
57636
|
+
execute: (input, { client }) => {
|
|
57637
|
+
const data = input;
|
|
57638
|
+
return client.runGeneratedRequest("moveTimesheetSetupMember", () => callGeneratedRequest(moveTimesheetSetupMember, [
|
|
57639
|
+
client.httpClient,
|
|
57640
|
+
client.organizationId,
|
|
57641
|
+
client.workspaceIdNumber,
|
|
57642
|
+
data.setup_id,
|
|
57643
|
+
data.user_account_id,
|
|
57644
|
+
data.payload ?? data.data ?? data,
|
|
57645
|
+
void 0
|
|
57646
|
+
]));
|
|
57647
|
+
}
|
|
57648
|
+
},
|
|
57569
57649
|
{
|
|
57570
57650
|
id: "focus.timesheets.setups-reactivate-timesheet-setup-member",
|
|
57571
57651
|
family: "focus",
|
|
@@ -59591,7 +59671,7 @@ function registerWorkspaceTools(server) {
|
|
|
59591
59671
|
//#region src/package-version.ts
|
|
59592
59672
|
function mcpPackageVersion() {
|
|
59593
59673
|
try {
|
|
59594
|
-
return "1.13.
|
|
59674
|
+
return "1.13.178";
|
|
59595
59675
|
} catch {
|
|
59596
59676
|
return "unknown";
|
|
59597
59677
|
}
|
|
@@ -59772,7 +59852,7 @@ import_main.default.config({
|
|
|
59772
59852
|
quiet: true,
|
|
59773
59853
|
ignore: ["MISSING_ENV_FILE"]
|
|
59774
59854
|
});
|
|
59775
|
-
const packageVersion = "1.13.
|
|
59855
|
+
const packageVersion = "1.13.178";
|
|
59776
59856
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
59777
59857
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
59778
59858
|
function resolvePublicUrls() {
|
|
@@ -59892,4 +59972,4 @@ function bootstrapServer(options = {}) {
|
|
|
59892
59972
|
//#endregion
|
|
59893
59973
|
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 };
|
|
59894
59974
|
|
|
59895
|
-
//# sourceMappingURL=src-
|
|
59975
|
+
//# sourceMappingURL=src-DggeRp4z.js.map
|