@togglhq/mcp 1.13.69 → 1.13.70
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-DxCDkgcp.js → src-B5XrdYdH.js} +73 -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-B5XrdYdH.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.70";
|
|
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-B5XrdYdH.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -35504,7 +35504,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
35504
35504
|
notes: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35505
35505
|
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35506
35506
|
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35507
|
-
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35507
|
+
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Deprecated: use POST or DELETE .../tasks/{task_id}/pinned. Sets the current user's own pin only."))),
|
|
35508
35508
|
position: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(1)))),
|
|
35509
35509
|
priority: /* @__PURE__ */ optional(/* @__PURE__ */ picklist([
|
|
35510
35510
|
"none",
|
|
@@ -35542,7 +35542,7 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
|
35542
35542
|
notes: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35543
35543
|
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35544
35544
|
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35545
|
-
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35545
|
+
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Deprecated: use POST or DELETE .../tasks/{task_id}/pinned. Sets the current user's own pin only."))),
|
|
35546
35546
|
position: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(1)))),
|
|
35547
35547
|
priority: /* @__PURE__ */ optional(/* @__PURE__ */ picklist([
|
|
35548
35548
|
"none",
|
|
@@ -38208,6 +38208,12 @@ async function getTaskWithParentsClassic(httpClient, organization_id, workspace_
|
|
|
38208
38208
|
})
|
|
38209
38209
|
}).json();
|
|
38210
38210
|
}
|
|
38211
|
+
async function pinTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
38212
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/pinned`, { signal }).json();
|
|
38213
|
+
}
|
|
38214
|
+
async function unpinTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
38215
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/pinned`, { signal }).json();
|
|
38216
|
+
}
|
|
38211
38217
|
async function restoreTask(httpClient, organization_id, workspace_id, task_id, scope, signal) {
|
|
38212
38218
|
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/restore`, {
|
|
38213
38219
|
signal,
|
|
@@ -38480,7 +38486,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38480
38486
|
]))
|
|
38481
38487
|
});
|
|
38482
38488
|
//#endregion
|
|
38483
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38489
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38484
38490
|
async function getInvitations(httpClient, signal) {
|
|
38485
38491
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38486
38492
|
}
|
|
@@ -38497,7 +38503,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38497
38503
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38498
38504
|
}
|
|
38499
38505
|
//#endregion
|
|
38500
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38506
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38501
38507
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38502
38508
|
const searchParams = new URLSearchParams();
|
|
38503
38509
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38509,7 +38515,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38509
38515
|
return searchParams;
|
|
38510
38516
|
}
|
|
38511
38517
|
//#endregion
|
|
38512
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38518
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38513
38519
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38514
38520
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38515
38521
|
}
|
|
@@ -38523,7 +38529,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38523
38529
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38524
38530
|
}
|
|
38525
38531
|
//#endregion
|
|
38526
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38532
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38527
38533
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38528
38534
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38529
38535
|
}
|
|
@@ -38543,7 +38549,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38543
38549
|
});
|
|
38544
38550
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38545
38551
|
//#endregion
|
|
38546
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38552
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38547
38553
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38548
38554
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38549
38555
|
signal,
|
|
@@ -38554,12 +38560,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38554
38560
|
})).json();
|
|
38555
38561
|
}
|
|
38556
38562
|
//#endregion
|
|
38557
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38563
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38558
38564
|
async function getStatus(httpClient, signal) {
|
|
38559
38565
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38560
38566
|
}
|
|
38561
38567
|
//#endregion
|
|
38562
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38568
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38563
38569
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38564
38570
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38565
38571
|
signal,
|
|
@@ -38587,7 +38593,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38587
38593
|
return response.json();
|
|
38588
38594
|
}
|
|
38589
38595
|
//#endregion
|
|
38590
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38596
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38591
38597
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38592
38598
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38593
38599
|
}
|
|
@@ -53161,6 +53167,33 @@ const generatedFocusOperations = [
|
|
|
53161
53167
|
return client.listTasks(data);
|
|
53162
53168
|
}
|
|
53163
53169
|
},
|
|
53170
|
+
{
|
|
53171
|
+
id: "focus.tasks.pin",
|
|
53172
|
+
family: "focus",
|
|
53173
|
+
resource: "tasks",
|
|
53174
|
+
action: "pin",
|
|
53175
|
+
title: "Pin Tasks",
|
|
53176
|
+
description: "Pin Tasks.",
|
|
53177
|
+
safety: "update",
|
|
53178
|
+
destructive: false,
|
|
53179
|
+
cli: {
|
|
53180
|
+
group: ["tasks"],
|
|
53181
|
+
command: "pin",
|
|
53182
|
+
interactive: "default"
|
|
53183
|
+
},
|
|
53184
|
+
mcp: { entityTool: "tasks" },
|
|
53185
|
+
inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
|
|
53186
|
+
execute: (input, { client }) => {
|
|
53187
|
+
const data = input;
|
|
53188
|
+
return client.runGeneratedRequest("pinTask", () => callGeneratedRequest(pinTask, [
|
|
53189
|
+
client.httpClient,
|
|
53190
|
+
client.organizationId,
|
|
53191
|
+
client.workspaceIdNumber,
|
|
53192
|
+
data.task_id,
|
|
53193
|
+
void 0
|
|
53194
|
+
]));
|
|
53195
|
+
}
|
|
53196
|
+
},
|
|
53164
53197
|
{
|
|
53165
53198
|
id: "focus.tasks.restore",
|
|
53166
53199
|
family: "focus",
|
|
@@ -53285,6 +53318,33 @@ const generatedFocusOperations = [
|
|
|
53285
53318
|
]));
|
|
53286
53319
|
}
|
|
53287
53320
|
},
|
|
53321
|
+
{
|
|
53322
|
+
id: "focus.tasks.unpin",
|
|
53323
|
+
family: "focus",
|
|
53324
|
+
resource: "tasks",
|
|
53325
|
+
action: "unpin",
|
|
53326
|
+
title: "Unpin Tasks",
|
|
53327
|
+
description: "Unpin Tasks.",
|
|
53328
|
+
safety: "delete",
|
|
53329
|
+
destructive: true,
|
|
53330
|
+
cli: {
|
|
53331
|
+
group: ["tasks"],
|
|
53332
|
+
command: "unpin",
|
|
53333
|
+
interactive: "default"
|
|
53334
|
+
},
|
|
53335
|
+
mcp: { entityTool: "tasks" },
|
|
53336
|
+
inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
|
|
53337
|
+
execute: (input, { client }) => {
|
|
53338
|
+
const data = input;
|
|
53339
|
+
return client.runGeneratedRequest("unpinTask", () => callGeneratedRequest(unpinTask, [
|
|
53340
|
+
client.httpClient,
|
|
53341
|
+
client.organizationId,
|
|
53342
|
+
client.workspaceIdNumber,
|
|
53343
|
+
data.task_id,
|
|
53344
|
+
void 0
|
|
53345
|
+
]));
|
|
53346
|
+
}
|
|
53347
|
+
},
|
|
53288
53348
|
{
|
|
53289
53349
|
id: "focus.tasks.update",
|
|
53290
53350
|
family: "focus",
|
|
@@ -57871,7 +57931,7 @@ function registerWorkspaceTools(server) {
|
|
|
57871
57931
|
//#region src/package-version.ts
|
|
57872
57932
|
function mcpPackageVersion() {
|
|
57873
57933
|
try {
|
|
57874
|
-
return "1.13.
|
|
57934
|
+
return "1.13.70";
|
|
57875
57935
|
} catch {
|
|
57876
57936
|
return "unknown";
|
|
57877
57937
|
}
|
|
@@ -58052,7 +58112,7 @@ import_main.default.config({
|
|
|
58052
58112
|
quiet: true,
|
|
58053
58113
|
ignore: ["MISSING_ENV_FILE"]
|
|
58054
58114
|
});
|
|
58055
|
-
const packageVersion = "1.13.
|
|
58115
|
+
const packageVersion = "1.13.70";
|
|
58056
58116
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
58057
58117
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
58058
58118
|
function resolvePublicUrls() {
|
|
@@ -58172,4 +58232,4 @@ function bootstrapServer(options = {}) {
|
|
|
58172
58232
|
//#endregion
|
|
58173
58233
|
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 };
|
|
58174
58234
|
|
|
58175
|
-
//# sourceMappingURL=src-
|
|
58235
|
+
//# sourceMappingURL=src-B5XrdYdH.js.map
|