@togglhq/mcp 1.13.269 → 1.13.270
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-CxkZBaNL.js → src-q4AzONjF.js} +48 -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-q4AzONjF.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.270";
|
|
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-q4AzONjF.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -38700,7 +38700,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38700
38700
|
]))
|
|
38701
38701
|
});
|
|
38702
38702
|
//#endregion
|
|
38703
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38703
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.364_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ab425f72401d7fdafd758a9245ae51b4/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38704
38704
|
async function getInvitations(httpClient, signal) {
|
|
38705
38705
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38706
38706
|
}
|
|
@@ -38717,7 +38717,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38717
38717
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38718
38718
|
}
|
|
38719
38719
|
//#endregion
|
|
38720
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38720
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.364_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ab425f72401d7fdafd758a9245ae51b4/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38721
38721
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38722
38722
|
const searchParams = new URLSearchParams();
|
|
38723
38723
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38729,7 +38729,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38729
38729
|
return searchParams;
|
|
38730
38730
|
}
|
|
38731
38731
|
//#endregion
|
|
38732
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38732
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.364_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ab425f72401d7fdafd758a9245ae51b4/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38733
38733
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38734
38734
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38735
38735
|
}
|
|
@@ -38744,7 +38744,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38744
38744
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38745
38745
|
}
|
|
38746
38746
|
//#endregion
|
|
38747
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38747
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.364_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ab425f72401d7fdafd758a9245ae51b4/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38748
38748
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38749
38749
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38750
38750
|
}
|
|
@@ -38764,7 +38764,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38764
38764
|
});
|
|
38765
38765
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38766
38766
|
//#endregion
|
|
38767
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38767
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.364_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ab425f72401d7fdafd758a9245ae51b4/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38768
38768
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38769
38769
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38770
38770
|
signal,
|
|
@@ -38775,12 +38775,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38775
38775
|
})).json();
|
|
38776
38776
|
}
|
|
38777
38777
|
//#endregion
|
|
38778
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38778
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.364_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ab425f72401d7fdafd758a9245ae51b4/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38779
38779
|
async function getStatus(httpClient, signal) {
|
|
38780
38780
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38781
38781
|
}
|
|
38782
38782
|
//#endregion
|
|
38783
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38783
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.364_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ab425f72401d7fdafd758a9245ae51b4/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38784
38784
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38785
38785
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38786
38786
|
signal,
|
|
@@ -38808,7 +38808,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38808
38808
|
return response.json();
|
|
38809
38809
|
}
|
|
38810
38810
|
//#endregion
|
|
38811
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38811
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.364_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ab425f72401d7fdafd758a9245ae51b4/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38812
38812
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38813
38813
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38814
38814
|
}
|
|
@@ -43201,6 +43201,12 @@ async function getArchivedProjectsClassic(httpClient, organization_id, workspace
|
|
|
43201
43201
|
async function getArchivedProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
43202
43202
|
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}`, { signal })).json();
|
|
43203
43203
|
}
|
|
43204
|
+
async function restoreArchivedProject(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43205
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}/restore`, {
|
|
43206
|
+
signal,
|
|
43207
|
+
json: data
|
|
43208
|
+
})).json();
|
|
43209
|
+
}
|
|
43204
43210
|
//#endregion
|
|
43205
43211
|
//#region ../focus-queries/dist/archived-tasks/requests.ts
|
|
43206
43212
|
async function getArchivedTasksClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, project_id } = {}, signal) {
|
|
@@ -46353,6 +46359,37 @@ const generatedFocusOperations = [
|
|
|
46353
46359
|
]));
|
|
46354
46360
|
}
|
|
46355
46361
|
},
|
|
46362
|
+
{
|
|
46363
|
+
id: "focus.archived-projects.restore",
|
|
46364
|
+
family: "focus",
|
|
46365
|
+
resource: "archived-projects",
|
|
46366
|
+
action: "restore",
|
|
46367
|
+
title: "Restore Archived Projects",
|
|
46368
|
+
description: "Restore Archived Projects.",
|
|
46369
|
+
safety: "update",
|
|
46370
|
+
destructive: false,
|
|
46371
|
+
cli: {
|
|
46372
|
+
group: ["archived-projects"],
|
|
46373
|
+
command: "restore",
|
|
46374
|
+
interactive: "default"
|
|
46375
|
+
},
|
|
46376
|
+
mcp: { entityTool: "archived-projects" },
|
|
46377
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
46378
|
+
payload: /* @__PURE__ */ looseObject({ request_id: /* @__PURE__ */ string$1() }),
|
|
46379
|
+
project_id: /* @__PURE__ */ number$2()
|
|
46380
|
+
}),
|
|
46381
|
+
execute: (input, { client }) => {
|
|
46382
|
+
const data = input;
|
|
46383
|
+
return client.runGeneratedRequest("restoreArchivedProject", () => callGeneratedRequest(restoreArchivedProject, [
|
|
46384
|
+
client.httpClient,
|
|
46385
|
+
client.organizationId,
|
|
46386
|
+
client.workspaceIdNumber,
|
|
46387
|
+
data.project_id,
|
|
46388
|
+
data.payload ?? data.data ?? data,
|
|
46389
|
+
void 0
|
|
46390
|
+
]));
|
|
46391
|
+
}
|
|
46392
|
+
},
|
|
46356
46393
|
{
|
|
46357
46394
|
id: "focus.archived-tasks.get",
|
|
46358
46395
|
family: "focus",
|
|
@@ -61113,7 +61150,7 @@ function registerWorkspaceTools(server) {
|
|
|
61113
61150
|
//#region src/package-version.ts
|
|
61114
61151
|
function mcpPackageVersion() {
|
|
61115
61152
|
try {
|
|
61116
|
-
return "1.13.
|
|
61153
|
+
return "1.13.270";
|
|
61117
61154
|
} catch {
|
|
61118
61155
|
return "unknown";
|
|
61119
61156
|
}
|
|
@@ -61295,7 +61332,7 @@ import_main.default.config({
|
|
|
61295
61332
|
quiet: true,
|
|
61296
61333
|
ignore: ["MISSING_ENV_FILE"]
|
|
61297
61334
|
});
|
|
61298
|
-
const packageVersion = "1.13.
|
|
61335
|
+
const packageVersion = "1.13.270";
|
|
61299
61336
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
61300
61337
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
61301
61338
|
function resolvePublicUrls() {
|
|
@@ -61415,4 +61452,4 @@ function bootstrapServer(options = {}) {
|
|
|
61415
61452
|
//#endregion
|
|
61416
61453
|
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 };
|
|
61417
61454
|
|
|
61418
|
-
//# sourceMappingURL=src-
|
|
61455
|
+
//# sourceMappingURL=src-q4AzONjF.js.map
|