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