@togglhq/mcp 1.13.77 → 1.13.79
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-p23eoN1Q.js → src-D8Ock8PZ.js} +162 -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-D8Ock8PZ.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.79";
|
|
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-D8Ock8PZ.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -38489,7 +38489,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38489
38489
|
]))
|
|
38490
38490
|
});
|
|
38491
38491
|
//#endregion
|
|
38492
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38492
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.260_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_94f90e933cacca547a18749d04ca4015/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38493
38493
|
async function getInvitations(httpClient, signal) {
|
|
38494
38494
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38495
38495
|
}
|
|
@@ -38506,7 +38506,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38506
38506
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38507
38507
|
}
|
|
38508
38508
|
//#endregion
|
|
38509
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38509
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.260_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_94f90e933cacca547a18749d04ca4015/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38510
38510
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38511
38511
|
const searchParams = new URLSearchParams();
|
|
38512
38512
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38518,21 +38518,22 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38518
38518
|
return searchParams;
|
|
38519
38519
|
}
|
|
38520
38520
|
//#endregion
|
|
38521
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38521
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.260_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_94f90e933cacca547a18749d04ca4015/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38522
38522
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38523
38523
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38524
38524
|
}
|
|
38525
|
-
async function putOrganizationUser(httpClient, organization_id, organization_user_id, data, signal) {
|
|
38525
|
+
async function putOrganizationUser(httpClient, organization_id, organization_user_id, data, allow_deprecated_roles, signal) {
|
|
38526
38526
|
return (await httpClient.put(`organizations/${organization_id}/users/${organization_user_id}`, {
|
|
38527
38527
|
signal,
|
|
38528
|
-
json: data
|
|
38528
|
+
json: data,
|
|
38529
|
+
searchParams: buildSearchParams({ allow_deprecated_roles }, true)
|
|
38529
38530
|
})).json();
|
|
38530
38531
|
}
|
|
38531
38532
|
async function patchOrganizationUserActive(httpClient, organization_id, organization_user_id, status, signal) {
|
|
38532
38533
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38533
38534
|
}
|
|
38534
38535
|
//#endregion
|
|
38535
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38536
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.260_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_94f90e933cacca547a18749d04ca4015/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38536
38537
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38537
38538
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38538
38539
|
}
|
|
@@ -38552,7 +38553,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38552
38553
|
});
|
|
38553
38554
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38554
38555
|
//#endregion
|
|
38555
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38556
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.260_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_94f90e933cacca547a18749d04ca4015/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38556
38557
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38557
38558
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38558
38559
|
signal,
|
|
@@ -38563,12 +38564,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38563
38564
|
})).json();
|
|
38564
38565
|
}
|
|
38565
38566
|
//#endregion
|
|
38566
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38567
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.260_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_94f90e933cacca547a18749d04ca4015/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38567
38568
|
async function getStatus(httpClient, signal) {
|
|
38568
38569
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38569
38570
|
}
|
|
38570
38571
|
//#endregion
|
|
38571
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38572
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.260_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_94f90e933cacca547a18749d04ca4015/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38572
38573
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38573
38574
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38574
38575
|
signal,
|
|
@@ -38596,7 +38597,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38596
38597
|
return response.json();
|
|
38597
38598
|
}
|
|
38598
38599
|
//#endregion
|
|
38599
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38600
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.260_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_94f90e933cacca547a18749d04ca4015/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38600
38601
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38601
38602
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38602
38603
|
}
|
|
@@ -42596,6 +42597,21 @@ async function runAiView(httpClient, organization_id, workspace_id, data, signal
|
|
|
42596
42597
|
}).json();
|
|
42597
42598
|
}
|
|
42598
42599
|
//#endregion
|
|
42600
|
+
//#region ../focus-queries/dist/archived-clients/requests.ts
|
|
42601
|
+
async function getArchivedClientsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name } = {}, signal) {
|
|
42602
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients`, {
|
|
42603
|
+
signal,
|
|
42604
|
+
searchParams: buildSearchParams$2({
|
|
42605
|
+
page,
|
|
42606
|
+
per_page,
|
|
42607
|
+
name
|
|
42608
|
+
})
|
|
42609
|
+
}).json();
|
|
42610
|
+
}
|
|
42611
|
+
async function getArchivedClient(httpClient, organization_id, workspace_id, client_id, signal) {
|
|
42612
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients/${client_id}`, { signal }).json();
|
|
42613
|
+
}
|
|
42614
|
+
//#endregion
|
|
42599
42615
|
//#region ../focus-queries/dist/archived-projects/requests.ts
|
|
42600
42616
|
async function getArchivedProjectsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, client_id } = {}, signal) {
|
|
42601
42617
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects`, {
|
|
@@ -42612,6 +42628,22 @@ async function getArchivedProject(httpClient, organization_id, workspace_id, pro
|
|
|
42612
42628
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}`, { signal }).json();
|
|
42613
42629
|
}
|
|
42614
42630
|
//#endregion
|
|
42631
|
+
//#region ../focus-queries/dist/archived-tasks/requests.ts
|
|
42632
|
+
async function getArchivedTasksClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, project_id } = {}, signal) {
|
|
42633
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks`, {
|
|
42634
|
+
signal,
|
|
42635
|
+
searchParams: buildSearchParams$2({
|
|
42636
|
+
page,
|
|
42637
|
+
per_page,
|
|
42638
|
+
name,
|
|
42639
|
+
project_id
|
|
42640
|
+
})
|
|
42641
|
+
}).json();
|
|
42642
|
+
}
|
|
42643
|
+
async function getArchivedTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
42644
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks/${task_id}`, { signal }).json();
|
|
42645
|
+
}
|
|
42646
|
+
//#endregion
|
|
42615
42647
|
//#region ../focus-queries/dist/archived-time-entries/requests.ts
|
|
42616
42648
|
async function getArchivedTimeEntriesClassic(httpClient, organization_id, workspace_id, { date_from, date_to, page = 1, per_page, task_id, project_id }, signal) {
|
|
42617
42649
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries`, {
|
|
@@ -44705,6 +44737,64 @@ const generatedFocusOperations = [
|
|
|
44705
44737
|
return client.partialUpdateAlert(data.alert_id, data.payload ?? data.data ?? data);
|
|
44706
44738
|
}
|
|
44707
44739
|
},
|
|
44740
|
+
{
|
|
44741
|
+
id: "focus.archived-clients.get",
|
|
44742
|
+
family: "focus",
|
|
44743
|
+
resource: "archived-clients",
|
|
44744
|
+
action: "get",
|
|
44745
|
+
title: "Get Archived Clients",
|
|
44746
|
+
description: "Get Archived Clients.",
|
|
44747
|
+
safety: "read",
|
|
44748
|
+
destructive: false,
|
|
44749
|
+
cli: {
|
|
44750
|
+
group: ["archived-clients"],
|
|
44751
|
+
command: "get",
|
|
44752
|
+
interactive: "available"
|
|
44753
|
+
},
|
|
44754
|
+
mcp: { entityTool: "archived-clients" },
|
|
44755
|
+
inputSchema: /* @__PURE__ */ looseObject({ client_id: /* @__PURE__ */ number$2() }),
|
|
44756
|
+
execute: (input, { client }) => {
|
|
44757
|
+
const data = input;
|
|
44758
|
+
return client.runGeneratedRequest("getArchivedClient", () => callGeneratedRequest(getArchivedClient, [
|
|
44759
|
+
client.httpClient,
|
|
44760
|
+
client.organizationId,
|
|
44761
|
+
client.workspaceIdNumber,
|
|
44762
|
+
data.client_id,
|
|
44763
|
+
void 0
|
|
44764
|
+
]));
|
|
44765
|
+
}
|
|
44766
|
+
},
|
|
44767
|
+
{
|
|
44768
|
+
id: "focus.archived-clients.get-classic",
|
|
44769
|
+
family: "focus",
|
|
44770
|
+
resource: "archived-clients",
|
|
44771
|
+
action: "get-classic",
|
|
44772
|
+
title: "Get Classic Archived Clients",
|
|
44773
|
+
description: "Get Classic Archived Clients.",
|
|
44774
|
+
safety: "read",
|
|
44775
|
+
destructive: false,
|
|
44776
|
+
cli: {
|
|
44777
|
+
group: ["archived-clients"],
|
|
44778
|
+
command: "get-classic",
|
|
44779
|
+
interactive: "hidden"
|
|
44780
|
+
},
|
|
44781
|
+
mcp: { entityTool: "archived-clients" },
|
|
44782
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44783
|
+
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
44784
|
+
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
44785
|
+
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
44786
|
+
}),
|
|
44787
|
+
execute: (input, { client }) => {
|
|
44788
|
+
const data = input;
|
|
44789
|
+
return client.runGeneratedRequest("getArchivedClientsClassic", () => callGeneratedRequest(getArchivedClientsClassic, [
|
|
44790
|
+
client.httpClient,
|
|
44791
|
+
client.organizationId,
|
|
44792
|
+
client.workspaceIdNumber,
|
|
44793
|
+
data,
|
|
44794
|
+
void 0
|
|
44795
|
+
]));
|
|
44796
|
+
}
|
|
44797
|
+
},
|
|
44708
44798
|
{
|
|
44709
44799
|
id: "focus.archived-projects.get",
|
|
44710
44800
|
family: "focus",
|
|
@@ -44764,6 +44854,65 @@ const generatedFocusOperations = [
|
|
|
44764
44854
|
]));
|
|
44765
44855
|
}
|
|
44766
44856
|
},
|
|
44857
|
+
{
|
|
44858
|
+
id: "focus.archived-tasks.get",
|
|
44859
|
+
family: "focus",
|
|
44860
|
+
resource: "archived-tasks",
|
|
44861
|
+
action: "get",
|
|
44862
|
+
title: "Get Archived Tasks",
|
|
44863
|
+
description: "Get Archived Tasks.",
|
|
44864
|
+
safety: "read",
|
|
44865
|
+
destructive: false,
|
|
44866
|
+
cli: {
|
|
44867
|
+
group: ["archived-tasks"],
|
|
44868
|
+
command: "get",
|
|
44869
|
+
interactive: "available"
|
|
44870
|
+
},
|
|
44871
|
+
mcp: { entityTool: "archived-tasks" },
|
|
44872
|
+
inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
|
|
44873
|
+
execute: (input, { client }) => {
|
|
44874
|
+
const data = input;
|
|
44875
|
+
return client.runGeneratedRequest("getArchivedTask", () => callGeneratedRequest(getArchivedTask, [
|
|
44876
|
+
client.httpClient,
|
|
44877
|
+
client.organizationId,
|
|
44878
|
+
client.workspaceIdNumber,
|
|
44879
|
+
data.task_id,
|
|
44880
|
+
void 0
|
|
44881
|
+
]));
|
|
44882
|
+
}
|
|
44883
|
+
},
|
|
44884
|
+
{
|
|
44885
|
+
id: "focus.archived-tasks.get-classic",
|
|
44886
|
+
family: "focus",
|
|
44887
|
+
resource: "archived-tasks",
|
|
44888
|
+
action: "get-classic",
|
|
44889
|
+
title: "Get Classic Archived Tasks",
|
|
44890
|
+
description: "Get Classic Archived Tasks.",
|
|
44891
|
+
safety: "read",
|
|
44892
|
+
destructive: false,
|
|
44893
|
+
cli: {
|
|
44894
|
+
group: ["archived-tasks"],
|
|
44895
|
+
command: "get-classic",
|
|
44896
|
+
interactive: "hidden"
|
|
44897
|
+
},
|
|
44898
|
+
mcp: { entityTool: "archived-tasks" },
|
|
44899
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44900
|
+
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
44901
|
+
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
44902
|
+
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
44903
|
+
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
44904
|
+
}),
|
|
44905
|
+
execute: (input, { client }) => {
|
|
44906
|
+
const data = input;
|
|
44907
|
+
return client.runGeneratedRequest("getArchivedTasksClassic", () => callGeneratedRequest(getArchivedTasksClassic, [
|
|
44908
|
+
client.httpClient,
|
|
44909
|
+
client.organizationId,
|
|
44910
|
+
client.workspaceIdNumber,
|
|
44911
|
+
data,
|
|
44912
|
+
void 0
|
|
44913
|
+
]));
|
|
44914
|
+
}
|
|
44915
|
+
},
|
|
44767
44916
|
{
|
|
44768
44917
|
id: "focus.archived-time-entries.get",
|
|
44769
44918
|
family: "focus",
|
|
@@ -58013,7 +58162,7 @@ function registerWorkspaceTools(server) {
|
|
|
58013
58162
|
//#region src/package-version.ts
|
|
58014
58163
|
function mcpPackageVersion() {
|
|
58015
58164
|
try {
|
|
58016
|
-
return "1.13.
|
|
58165
|
+
return "1.13.79";
|
|
58017
58166
|
} catch {
|
|
58018
58167
|
return "unknown";
|
|
58019
58168
|
}
|
|
@@ -58194,7 +58343,7 @@ import_main.default.config({
|
|
|
58194
58343
|
quiet: true,
|
|
58195
58344
|
ignore: ["MISSING_ENV_FILE"]
|
|
58196
58345
|
});
|
|
58197
|
-
const packageVersion = "1.13.
|
|
58346
|
+
const packageVersion = "1.13.79";
|
|
58198
58347
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
58199
58348
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
58200
58349
|
function resolvePublicUrls() {
|
|
@@ -58314,4 +58463,4 @@ function bootstrapServer(options = {}) {
|
|
|
58314
58463
|
//#endregion
|
|
58315
58464
|
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 };
|
|
58316
58465
|
|
|
58317
|
-
//# sourceMappingURL=src-
|
|
58466
|
+
//# sourceMappingURL=src-D8Ock8PZ.js.map
|