@togglhq/mcp 1.11.47 → 1.11.49
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-C9OtOH4R.js → src-B6niL1m_.js} +300 -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 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-B6niL1m_.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.49";
|
|
169
169
|
let sentryEnabled = false;
|
|
170
170
|
let productAnalyticsEnabled = false;
|
|
171
171
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -37519,7 +37519,7 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
37519
37519
|
}
|
|
37520
37520
|
//#endregion
|
|
37521
37521
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
37522
|
-
async function getProjectsClassic(httpClient, organization_id, workspace_id, { include_task_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_name, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
|
|
37522
|
+
async function getProjectsClassic(httpClient, organization_id, workspace_id, { include_task_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
|
|
37523
37523
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37524
37524
|
signal,
|
|
37525
37525
|
searchParams: buildSearchParams$2({
|
|
@@ -37530,6 +37530,7 @@ async function getProjectsClassic(httpClient, organization_id, workspace_id, { i
|
|
|
37530
37530
|
task_source,
|
|
37531
37531
|
task_assignee_user_id,
|
|
37532
37532
|
task_assignee_team_id,
|
|
37533
|
+
task_include_unassigned,
|
|
37533
37534
|
task_name,
|
|
37534
37535
|
page,
|
|
37535
37536
|
per_page,
|
|
@@ -38431,7 +38432,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38431
38432
|
]))
|
|
38432
38433
|
});
|
|
38433
38434
|
//#endregion
|
|
38434
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38435
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38435
38436
|
async function getInvitations(httpClient, signal) {
|
|
38436
38437
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38437
38438
|
}
|
|
@@ -38448,7 +38449,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38448
38449
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38449
38450
|
}
|
|
38450
38451
|
//#endregion
|
|
38451
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38452
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38452
38453
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38453
38454
|
const searchParams = new URLSearchParams();
|
|
38454
38455
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38460,7 +38461,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38460
38461
|
return searchParams;
|
|
38461
38462
|
}
|
|
38462
38463
|
//#endregion
|
|
38463
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38464
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38464
38465
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38465
38466
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38466
38467
|
}
|
|
@@ -38474,7 +38475,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38474
38475
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38475
38476
|
}
|
|
38476
38477
|
//#endregion
|
|
38477
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38478
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38478
38479
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38479
38480
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38480
38481
|
}
|
|
@@ -38494,7 +38495,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38494
38495
|
});
|
|
38495
38496
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38496
38497
|
//#endregion
|
|
38497
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38498
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38498
38499
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38499
38500
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38500
38501
|
signal,
|
|
@@ -38505,12 +38506,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38505
38506
|
})).json();
|
|
38506
38507
|
}
|
|
38507
38508
|
//#endregion
|
|
38508
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38509
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38509
38510
|
async function getStatus(httpClient, signal) {
|
|
38510
38511
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38511
38512
|
}
|
|
38512
38513
|
//#endregion
|
|
38513
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38514
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38514
38515
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38515
38516
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38516
38517
|
signal,
|
|
@@ -38538,7 +38539,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38538
38539
|
return response.json();
|
|
38539
38540
|
}
|
|
38540
38541
|
//#endregion
|
|
38541
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38542
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38542
38543
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38543
38544
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38544
38545
|
}
|
|
@@ -42799,6 +42800,37 @@ async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id
|
|
|
42799
42800
|
}).json();
|
|
42800
42801
|
}
|
|
42801
42802
|
//#endregion
|
|
42803
|
+
//#region ../focus-queries/dist/publicsharedreports/requests.ts
|
|
42804
|
+
async function openPublicSharedReport(httpClient, token, signal) {
|
|
42805
|
+
return await httpClient.get(`shared/${token}`, { signal }).json();
|
|
42806
|
+
}
|
|
42807
|
+
async function profitabilityPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
|
|
42808
|
+
return await httpClient.post(`shared/${token}/profitability`, {
|
|
42809
|
+
signal,
|
|
42810
|
+
json: data,
|
|
42811
|
+
searchParams: buildSearchParams$2({
|
|
42812
|
+
response_format,
|
|
42813
|
+
include_dicts
|
|
42814
|
+
})
|
|
42815
|
+
}).json();
|
|
42816
|
+
}
|
|
42817
|
+
async function queryPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
|
|
42818
|
+
return await httpClient.post(`shared/${token}/query`, {
|
|
42819
|
+
signal,
|
|
42820
|
+
json: data,
|
|
42821
|
+
searchParams: buildSearchParams$2({
|
|
42822
|
+
response_format,
|
|
42823
|
+
include_dicts
|
|
42824
|
+
})
|
|
42825
|
+
}).json();
|
|
42826
|
+
}
|
|
42827
|
+
async function workloadPublicSharedReport(httpClient, token, data, signal) {
|
|
42828
|
+
return await httpClient.post(`shared/${token}/workload`, {
|
|
42829
|
+
signal,
|
|
42830
|
+
json: data
|
|
42831
|
+
}).json();
|
|
42832
|
+
}
|
|
42833
|
+
//#endregion
|
|
42802
42834
|
//#region ../focus-queries/dist/rates/requests.ts
|
|
42803
42835
|
async function getProjectRatesSummary(httpClient, organization_id, workspace_id, { page, rows, order_by, search } = {}, signal) {
|
|
42804
42836
|
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/rates`, {
|
|
@@ -42960,7 +42992,7 @@ async function updateASavedView(httpClient, workspace_id, id, data, signal) {
|
|
|
42960
42992
|
}
|
|
42961
42993
|
//#endregion
|
|
42962
42994
|
//#region ../focus-queries/dist/search/requests.ts
|
|
42963
|
-
async function search(httpClient, organization_id, workspace_id, { keyword, per_group, assignee_user_id, assignee_team_id, project_id, task_id, include_drafts, exclude_calendar_events, group_by_tags, only_me }, signal) {
|
|
42995
|
+
async function search(httpClient, organization_id, workspace_id, { keyword, per_group, assignee_user_id, assignee_team_id, include_unassigned, project_id, task_id, include_drafts, exclude_calendar_events, group_by_tags, only_me }, signal) {
|
|
42964
42996
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
42965
42997
|
signal,
|
|
42966
42998
|
searchParams: buildSearchParams$2({
|
|
@@ -42968,6 +43000,7 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
|
|
|
42968
43000
|
per_group,
|
|
42969
43001
|
assignee_user_id,
|
|
42970
43002
|
assignee_team_id,
|
|
43003
|
+
include_unassigned,
|
|
42971
43004
|
project_id,
|
|
42972
43005
|
task_id,
|
|
42973
43006
|
include_drafts,
|
|
@@ -43012,6 +43045,9 @@ async function getSharedReportsSharedWithMe(httpClient, workspace_id, signal) {
|
|
|
43012
43045
|
async function getSharedReportForViewer(httpClient, workspace_id, id, signal) {
|
|
43013
43046
|
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
|
|
43014
43047
|
}
|
|
43048
|
+
async function unshareSharedReport(httpClient, workspace_id, id, signal) {
|
|
43049
|
+
return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
|
|
43050
|
+
}
|
|
43015
43051
|
async function addSharedReportGrants(httpClient, workspace_id, id, data, signal) {
|
|
43016
43052
|
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
|
|
43017
43053
|
signal,
|
|
@@ -43021,6 +43057,21 @@ async function addSharedReportGrants(httpClient, workspace_id, id, data, signal)
|
|
|
43021
43057
|
async function revokeSharedReportGrant(httpClient, workspace_id, id, grant_id, signal) {
|
|
43022
43058
|
return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/grants/${grant_id}`, { signal }).json();
|
|
43023
43059
|
}
|
|
43060
|
+
async function mintSharedReportLink(httpClient, workspace_id, id, data, signal) {
|
|
43061
|
+
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
|
|
43062
|
+
signal,
|
|
43063
|
+
json: data
|
|
43064
|
+
}).json();
|
|
43065
|
+
}
|
|
43066
|
+
async function revokeSharedReportLink(httpClient, workspace_id, id, signal) {
|
|
43067
|
+
return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/link`, { signal }).json();
|
|
43068
|
+
}
|
|
43069
|
+
async function rotateSharedReportLink(httpClient, workspace_id, id, data, signal) {
|
|
43070
|
+
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
|
|
43071
|
+
signal,
|
|
43072
|
+
json: data
|
|
43073
|
+
}).json();
|
|
43074
|
+
}
|
|
43024
43075
|
//#endregion
|
|
43025
43076
|
//#region ../focus-queries/dist/subscriptions/requests.ts
|
|
43026
43077
|
async function getCurrentSubscription(httpClient, organization_id, signal) {
|
|
@@ -46707,6 +46758,130 @@ const generatedFocusOperations = [
|
|
|
46707
46758
|
]));
|
|
46708
46759
|
}
|
|
46709
46760
|
},
|
|
46761
|
+
{
|
|
46762
|
+
id: "focus.publicsharedreports.open-public-shared-report",
|
|
46763
|
+
family: "focus",
|
|
46764
|
+
resource: "publicsharedreports",
|
|
46765
|
+
action: "open-public-shared-report",
|
|
46766
|
+
title: "Open Public Shared Report Publicsharedreports",
|
|
46767
|
+
description: "Open Public Shared Report Publicsharedreports.",
|
|
46768
|
+
safety: "read",
|
|
46769
|
+
destructive: false,
|
|
46770
|
+
cli: {
|
|
46771
|
+
group: ["publicsharedreports"],
|
|
46772
|
+
command: "open-public-shared-report",
|
|
46773
|
+
interactive: "available"
|
|
46774
|
+
},
|
|
46775
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
46776
|
+
inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
|
|
46777
|
+
execute: (input, { client }) => {
|
|
46778
|
+
const data = input;
|
|
46779
|
+
return client.runGeneratedRequest("openPublicSharedReport", () => callGeneratedRequest(openPublicSharedReport, [
|
|
46780
|
+
client.httpClient,
|
|
46781
|
+
data.token,
|
|
46782
|
+
void 0
|
|
46783
|
+
]));
|
|
46784
|
+
}
|
|
46785
|
+
},
|
|
46786
|
+
{
|
|
46787
|
+
id: "focus.publicsharedreports.profitability-public-shared-report",
|
|
46788
|
+
family: "focus",
|
|
46789
|
+
resource: "publicsharedreports",
|
|
46790
|
+
action: "profitability-public-shared-report",
|
|
46791
|
+
title: "Profitability Public Shared Report Publicsharedreports",
|
|
46792
|
+
description: "Profitability Public Shared Report Publicsharedreports.",
|
|
46793
|
+
safety: "update",
|
|
46794
|
+
destructive: false,
|
|
46795
|
+
cli: {
|
|
46796
|
+
group: ["publicsharedreports"],
|
|
46797
|
+
command: "profitability-public-shared-report",
|
|
46798
|
+
interactive: "default"
|
|
46799
|
+
},
|
|
46800
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
46801
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
46802
|
+
include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
46803
|
+
payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
|
|
46804
|
+
response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["json_row", "hierarchical"])),
|
|
46805
|
+
token: /* @__PURE__ */ string$1()
|
|
46806
|
+
}),
|
|
46807
|
+
execute: (input, { client }) => {
|
|
46808
|
+
const data = input;
|
|
46809
|
+
return client.runGeneratedRequest("profitabilityPublicSharedReport", () => callGeneratedRequest(profitabilityPublicSharedReport, [
|
|
46810
|
+
client.httpClient,
|
|
46811
|
+
data.token,
|
|
46812
|
+
data.payload ?? data.data ?? data,
|
|
46813
|
+
data.response_format,
|
|
46814
|
+
data.include_dicts,
|
|
46815
|
+
void 0
|
|
46816
|
+
]));
|
|
46817
|
+
}
|
|
46818
|
+
},
|
|
46819
|
+
{
|
|
46820
|
+
id: "focus.publicsharedreports.query-public-shared-report",
|
|
46821
|
+
family: "focus",
|
|
46822
|
+
resource: "publicsharedreports",
|
|
46823
|
+
action: "query-public-shared-report",
|
|
46824
|
+
title: "Query Public Shared Report Publicsharedreports",
|
|
46825
|
+
description: "Query Public Shared Report Publicsharedreports.",
|
|
46826
|
+
safety: "update",
|
|
46827
|
+
destructive: false,
|
|
46828
|
+
cli: {
|
|
46829
|
+
group: ["publicsharedreports"],
|
|
46830
|
+
command: "query-public-shared-report",
|
|
46831
|
+
interactive: "default"
|
|
46832
|
+
},
|
|
46833
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
46834
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
46835
|
+
include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
46836
|
+
payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
|
|
46837
|
+
response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
46838
|
+
"json_row",
|
|
46839
|
+
"table",
|
|
46840
|
+
"hierarchical"
|
|
46841
|
+
])),
|
|
46842
|
+
token: /* @__PURE__ */ string$1()
|
|
46843
|
+
}),
|
|
46844
|
+
execute: (input, { client }) => {
|
|
46845
|
+
const data = input;
|
|
46846
|
+
return client.runGeneratedRequest("queryPublicSharedReport", () => callGeneratedRequest(queryPublicSharedReport, [
|
|
46847
|
+
client.httpClient,
|
|
46848
|
+
data.token,
|
|
46849
|
+
data.payload ?? data.data ?? data,
|
|
46850
|
+
data.response_format,
|
|
46851
|
+
data.include_dicts,
|
|
46852
|
+
void 0
|
|
46853
|
+
]));
|
|
46854
|
+
}
|
|
46855
|
+
},
|
|
46856
|
+
{
|
|
46857
|
+
id: "focus.publicsharedreports.workload-public-shared-report",
|
|
46858
|
+
family: "focus",
|
|
46859
|
+
resource: "publicsharedreports",
|
|
46860
|
+
action: "workload-public-shared-report",
|
|
46861
|
+
title: "Workload Public Shared Report Publicsharedreports",
|
|
46862
|
+
description: "Workload Public Shared Report Publicsharedreports.",
|
|
46863
|
+
safety: "update",
|
|
46864
|
+
destructive: false,
|
|
46865
|
+
cli: {
|
|
46866
|
+
group: ["publicsharedreports"],
|
|
46867
|
+
command: "workload-public-shared-report",
|
|
46868
|
+
interactive: "default"
|
|
46869
|
+
},
|
|
46870
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
46871
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
46872
|
+
payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
|
|
46873
|
+
token: /* @__PURE__ */ string$1()
|
|
46874
|
+
}),
|
|
46875
|
+
execute: (input, { client }) => {
|
|
46876
|
+
const data = input;
|
|
46877
|
+
return client.runGeneratedRequest("workloadPublicSharedReport", () => callGeneratedRequest(workloadPublicSharedReport, [
|
|
46878
|
+
client.httpClient,
|
|
46879
|
+
data.token,
|
|
46880
|
+
data.payload ?? data.data ?? data,
|
|
46881
|
+
void 0
|
|
46882
|
+
]));
|
|
46883
|
+
}
|
|
46884
|
+
},
|
|
46710
46885
|
{
|
|
46711
46886
|
id: "focus.rates.billable-check-project-billable-rate-conflicts",
|
|
46712
46887
|
family: "focus",
|
|
@@ -49082,6 +49257,36 @@ const generatedFocusOperations = [
|
|
|
49082
49257
|
void 0
|
|
49083
49258
|
]))
|
|
49084
49259
|
},
|
|
49260
|
+
{
|
|
49261
|
+
id: "focus.sharedreports.mint-shared-report-link",
|
|
49262
|
+
family: "focus",
|
|
49263
|
+
resource: "sharedreports",
|
|
49264
|
+
action: "mint-shared-report-link",
|
|
49265
|
+
title: "Mint Shared Report Link Sharedreports",
|
|
49266
|
+
description: "Mint Shared Report Link Sharedreports.",
|
|
49267
|
+
safety: "update",
|
|
49268
|
+
destructive: false,
|
|
49269
|
+
cli: {
|
|
49270
|
+
group: ["sharedreports"],
|
|
49271
|
+
command: "mint-shared-report-link",
|
|
49272
|
+
interactive: "default"
|
|
49273
|
+
},
|
|
49274
|
+
mcp: { entityTool: "sharedreports" },
|
|
49275
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
49276
|
+
id: /* @__PURE__ */ number$2(),
|
|
49277
|
+
payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
|
|
49278
|
+
}),
|
|
49279
|
+
execute: (input, { client }) => {
|
|
49280
|
+
const data = input;
|
|
49281
|
+
return client.runGeneratedRequest("mintSharedReportLink", () => callGeneratedRequest(mintSharedReportLink, [
|
|
49282
|
+
client.httpClient,
|
|
49283
|
+
client.workspaceIdNumber,
|
|
49284
|
+
data.id,
|
|
49285
|
+
data.payload ?? data.data ?? data,
|
|
49286
|
+
void 0
|
|
49287
|
+
]));
|
|
49288
|
+
}
|
|
49289
|
+
},
|
|
49085
49290
|
{
|
|
49086
49291
|
id: "focus.sharedreports.revoke-shared-report-grant",
|
|
49087
49292
|
family: "focus",
|
|
@@ -49112,6 +49317,62 @@ const generatedFocusOperations = [
|
|
|
49112
49317
|
]));
|
|
49113
49318
|
}
|
|
49114
49319
|
},
|
|
49320
|
+
{
|
|
49321
|
+
id: "focus.sharedreports.revoke-shared-report-link",
|
|
49322
|
+
family: "focus",
|
|
49323
|
+
resource: "sharedreports",
|
|
49324
|
+
action: "revoke-shared-report-link",
|
|
49325
|
+
title: "Revoke Shared Report Link Sharedreports",
|
|
49326
|
+
description: "Revoke Shared Report Link Sharedreports.",
|
|
49327
|
+
safety: "delete",
|
|
49328
|
+
destructive: true,
|
|
49329
|
+
cli: {
|
|
49330
|
+
group: ["sharedreports"],
|
|
49331
|
+
command: "revoke-shared-report-link",
|
|
49332
|
+
interactive: "default"
|
|
49333
|
+
},
|
|
49334
|
+
mcp: { entityTool: "sharedreports" },
|
|
49335
|
+
inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
|
|
49336
|
+
execute: (input, { client }) => {
|
|
49337
|
+
const data = input;
|
|
49338
|
+
return client.runGeneratedRequest("revokeSharedReportLink", () => callGeneratedRequest(revokeSharedReportLink, [
|
|
49339
|
+
client.httpClient,
|
|
49340
|
+
client.workspaceIdNumber,
|
|
49341
|
+
data.id,
|
|
49342
|
+
void 0
|
|
49343
|
+
]));
|
|
49344
|
+
}
|
|
49345
|
+
},
|
|
49346
|
+
{
|
|
49347
|
+
id: "focus.sharedreports.rotate-shared-report-link",
|
|
49348
|
+
family: "focus",
|
|
49349
|
+
resource: "sharedreports",
|
|
49350
|
+
action: "rotate-shared-report-link",
|
|
49351
|
+
title: "Rotate Shared Report Link Sharedreports",
|
|
49352
|
+
description: "Rotate Shared Report Link Sharedreports.",
|
|
49353
|
+
safety: "update",
|
|
49354
|
+
destructive: false,
|
|
49355
|
+
cli: {
|
|
49356
|
+
group: ["sharedreports"],
|
|
49357
|
+
command: "rotate-shared-report-link",
|
|
49358
|
+
interactive: "default"
|
|
49359
|
+
},
|
|
49360
|
+
mcp: { entityTool: "sharedreports" },
|
|
49361
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
49362
|
+
id: /* @__PURE__ */ number$2(),
|
|
49363
|
+
payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
|
|
49364
|
+
}),
|
|
49365
|
+
execute: (input, { client }) => {
|
|
49366
|
+
const data = input;
|
|
49367
|
+
return client.runGeneratedRequest("rotateSharedReportLink", () => callGeneratedRequest(rotateSharedReportLink, [
|
|
49368
|
+
client.httpClient,
|
|
49369
|
+
client.workspaceIdNumber,
|
|
49370
|
+
data.id,
|
|
49371
|
+
data.payload ?? data.data ?? data,
|
|
49372
|
+
void 0
|
|
49373
|
+
]));
|
|
49374
|
+
}
|
|
49375
|
+
},
|
|
49115
49376
|
{
|
|
49116
49377
|
id: "focus.sharedreports.share-saved-view",
|
|
49117
49378
|
family: "focus",
|
|
@@ -49186,6 +49447,32 @@ const generatedFocusOperations = [
|
|
|
49186
49447
|
]));
|
|
49187
49448
|
}
|
|
49188
49449
|
},
|
|
49450
|
+
{
|
|
49451
|
+
id: "focus.sharedreports.unshare-shared-report",
|
|
49452
|
+
family: "focus",
|
|
49453
|
+
resource: "sharedreports",
|
|
49454
|
+
action: "unshare-shared-report",
|
|
49455
|
+
title: "Unshare Shared Report Sharedreports",
|
|
49456
|
+
description: "Unshare Shared Report Sharedreports.",
|
|
49457
|
+
safety: "delete",
|
|
49458
|
+
destructive: true,
|
|
49459
|
+
cli: {
|
|
49460
|
+
group: ["sharedreports"],
|
|
49461
|
+
command: "unshare-shared-report",
|
|
49462
|
+
interactive: "default"
|
|
49463
|
+
},
|
|
49464
|
+
mcp: { entityTool: "sharedreports" },
|
|
49465
|
+
inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
|
|
49466
|
+
execute: (input, { client }) => {
|
|
49467
|
+
const data = input;
|
|
49468
|
+
return client.runGeneratedRequest("unshareSharedReport", () => callGeneratedRequest(unshareSharedReport, [
|
|
49469
|
+
client.httpClient,
|
|
49470
|
+
client.workspaceIdNumber,
|
|
49471
|
+
data.id,
|
|
49472
|
+
void 0
|
|
49473
|
+
]));
|
|
49474
|
+
}
|
|
49475
|
+
},
|
|
49189
49476
|
{
|
|
49190
49477
|
id: "focus.statuses.create-status",
|
|
49191
49478
|
family: "focus",
|
|
@@ -55235,7 +55522,7 @@ function registerWorkspaceTools(server) {
|
|
|
55235
55522
|
//#region src/package-version.ts
|
|
55236
55523
|
function mcpPackageVersion() {
|
|
55237
55524
|
try {
|
|
55238
|
-
return "1.11.
|
|
55525
|
+
return "1.11.49";
|
|
55239
55526
|
} catch {
|
|
55240
55527
|
return "unknown";
|
|
55241
55528
|
}
|
|
@@ -55410,7 +55697,7 @@ import_main.default.config({
|
|
|
55410
55697
|
quiet: true,
|
|
55411
55698
|
ignore: ["MISSING_ENV_FILE"]
|
|
55412
55699
|
});
|
|
55413
|
-
const packageVersion = "1.11.
|
|
55700
|
+
const packageVersion = "1.11.49";
|
|
55414
55701
|
function resolvePublicUrls() {
|
|
55415
55702
|
return {
|
|
55416
55703
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -55475,4 +55762,4 @@ function bootstrapServer(options = {}) {
|
|
|
55475
55762
|
//#endregion
|
|
55476
55763
|
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 };
|
|
55477
55764
|
|
|
55478
|
-
//# sourceMappingURL=src-
|
|
55765
|
+
//# sourceMappingURL=src-B6niL1m_.js.map
|