@togglhq/mcp 1.13.124 → 1.13.126
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-DjFPcwVl.js → src-D4Oc1bVs.js} +167 -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-D4Oc1bVs.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.126";
|
|
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-D4Oc1bVs.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -35270,6 +35270,12 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
|
|
|
35270
35270
|
end_time: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35271
35271
|
foreground_color: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35272
35272
|
meeting_link: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35273
|
+
response_status: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ picklist([
|
|
35274
|
+
"accepted",
|
|
35275
|
+
"declined",
|
|
35276
|
+
"tentative",
|
|
35277
|
+
"needsAction"
|
|
35278
|
+
]))),
|
|
35273
35279
|
series_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35274
35280
|
series_timezone: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35275
35281
|
start_time: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
@@ -38530,7 +38536,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38530
38536
|
]))
|
|
38531
38537
|
});
|
|
38532
38538
|
//#endregion
|
|
38533
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38539
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38534
38540
|
async function getInvitations(httpClient, signal) {
|
|
38535
38541
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38536
38542
|
}
|
|
@@ -38547,7 +38553,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38547
38553
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38548
38554
|
}
|
|
38549
38555
|
//#endregion
|
|
38550
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38556
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38551
38557
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38552
38558
|
const searchParams = new URLSearchParams();
|
|
38553
38559
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38559,7 +38565,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38559
38565
|
return searchParams;
|
|
38560
38566
|
}
|
|
38561
38567
|
//#endregion
|
|
38562
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38568
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38563
38569
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38564
38570
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38565
38571
|
}
|
|
@@ -38574,7 +38580,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38574
38580
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38575
38581
|
}
|
|
38576
38582
|
//#endregion
|
|
38577
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38583
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38578
38584
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38579
38585
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38580
38586
|
}
|
|
@@ -38594,7 +38600,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38594
38600
|
});
|
|
38595
38601
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38596
38602
|
//#endregion
|
|
38597
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38603
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38598
38604
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38599
38605
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38600
38606
|
signal,
|
|
@@ -38605,12 +38611,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38605
38611
|
})).json();
|
|
38606
38612
|
}
|
|
38607
38613
|
//#endregion
|
|
38608
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38614
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38609
38615
|
async function getStatus(httpClient, signal) {
|
|
38610
38616
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38611
38617
|
}
|
|
38612
38618
|
//#endregion
|
|
38613
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38619
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38614
38620
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38615
38621
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38616
38622
|
signal,
|
|
@@ -38638,7 +38644,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38638
38644
|
return response.json();
|
|
38639
38645
|
}
|
|
38640
38646
|
//#endregion
|
|
38641
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38647
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38642
38648
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38643
38649
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38644
38650
|
}
|
|
@@ -42641,6 +42647,30 @@ async function discardAiChange(httpClient, organization_id, workspace_id, conver
|
|
|
42641
42647
|
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
42642
42648
|
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal }).json();
|
|
42643
42649
|
}
|
|
42650
|
+
async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
|
|
42651
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
42652
|
+
signal,
|
|
42653
|
+
json: data
|
|
42654
|
+
}).json();
|
|
42655
|
+
}
|
|
42656
|
+
async function dayRebuildName(httpClient, organization_id, workspace_id, data, signal) {
|
|
42657
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/name`, {
|
|
42658
|
+
signal,
|
|
42659
|
+
json: data
|
|
42660
|
+
}).json();
|
|
42661
|
+
}
|
|
42662
|
+
async function dayRebuildProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
42663
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/projects`, {
|
|
42664
|
+
signal,
|
|
42665
|
+
json: data
|
|
42666
|
+
}).json();
|
|
42667
|
+
}
|
|
42668
|
+
async function dayRebuildReadConnected(httpClient, organization_id, workspace_id, data, signal) {
|
|
42669
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/read-connected`, {
|
|
42670
|
+
signal,
|
|
42671
|
+
json: data
|
|
42672
|
+
}).json();
|
|
42673
|
+
}
|
|
42644
42674
|
async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
|
|
42645
42675
|
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
42646
42676
|
signal,
|
|
@@ -44454,6 +44484,132 @@ const generatedFocusOperations = [
|
|
|
44454
44484
|
]));
|
|
44455
44485
|
}
|
|
44456
44486
|
},
|
|
44487
|
+
{
|
|
44488
|
+
id: "focus.ai.day-rebuild-group",
|
|
44489
|
+
family: "focus",
|
|
44490
|
+
resource: "ai",
|
|
44491
|
+
action: "day-rebuild-group",
|
|
44492
|
+
title: "Day Rebuild Group Ai",
|
|
44493
|
+
description: "Day Rebuild Group Ai.",
|
|
44494
|
+
safety: "update",
|
|
44495
|
+
destructive: false,
|
|
44496
|
+
cli: {
|
|
44497
|
+
group: ["ai"],
|
|
44498
|
+
command: "day-rebuild-group",
|
|
44499
|
+
interactive: "hidden"
|
|
44500
|
+
},
|
|
44501
|
+
mcp: { entityTool: "ai" },
|
|
44502
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
|
|
44503
|
+
execute: (input, { client }) => {
|
|
44504
|
+
const data = input;
|
|
44505
|
+
return client.runGeneratedRequest("dayRebuildGroup", () => callGeneratedRequest(dayRebuildGroup, [
|
|
44506
|
+
client.httpClient,
|
|
44507
|
+
client.organizationId,
|
|
44508
|
+
client.workspaceIdNumber,
|
|
44509
|
+
data.payload ?? data.data ?? data,
|
|
44510
|
+
void 0
|
|
44511
|
+
]));
|
|
44512
|
+
}
|
|
44513
|
+
},
|
|
44514
|
+
{
|
|
44515
|
+
id: "focus.ai.day-rebuild-name",
|
|
44516
|
+
family: "focus",
|
|
44517
|
+
resource: "ai",
|
|
44518
|
+
action: "day-rebuild-name",
|
|
44519
|
+
title: "Day Rebuild Name Ai",
|
|
44520
|
+
description: "Day Rebuild Name Ai.",
|
|
44521
|
+
safety: "update",
|
|
44522
|
+
destructive: false,
|
|
44523
|
+
cli: {
|
|
44524
|
+
group: ["ai"],
|
|
44525
|
+
command: "day-rebuild-name",
|
|
44526
|
+
interactive: "hidden"
|
|
44527
|
+
},
|
|
44528
|
+
mcp: { entityTool: "ai" },
|
|
44529
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
|
|
44530
|
+
execute: (input, { client }) => {
|
|
44531
|
+
const data = input;
|
|
44532
|
+
return client.runGeneratedRequest("dayRebuildName", () => callGeneratedRequest(dayRebuildName, [
|
|
44533
|
+
client.httpClient,
|
|
44534
|
+
client.organizationId,
|
|
44535
|
+
client.workspaceIdNumber,
|
|
44536
|
+
data.payload ?? data.data ?? data,
|
|
44537
|
+
void 0
|
|
44538
|
+
]));
|
|
44539
|
+
}
|
|
44540
|
+
},
|
|
44541
|
+
{
|
|
44542
|
+
id: "focus.ai.day-rebuild-projects",
|
|
44543
|
+
family: "focus",
|
|
44544
|
+
resource: "ai",
|
|
44545
|
+
action: "day-rebuild-projects",
|
|
44546
|
+
title: "Day Rebuild Projects Ai",
|
|
44547
|
+
description: "Day Rebuild Projects Ai.",
|
|
44548
|
+
safety: "update",
|
|
44549
|
+
destructive: false,
|
|
44550
|
+
cli: {
|
|
44551
|
+
group: ["ai"],
|
|
44552
|
+
command: "day-rebuild-projects",
|
|
44553
|
+
interactive: "hidden"
|
|
44554
|
+
},
|
|
44555
|
+
mcp: { entityTool: "ai" },
|
|
44556
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
|
|
44557
|
+
execute: (input, { client }) => {
|
|
44558
|
+
const data = input;
|
|
44559
|
+
return client.runGeneratedRequest("dayRebuildProjects", () => callGeneratedRequest(dayRebuildProjects, [
|
|
44560
|
+
client.httpClient,
|
|
44561
|
+
client.organizationId,
|
|
44562
|
+
client.workspaceIdNumber,
|
|
44563
|
+
data.payload ?? data.data ?? data,
|
|
44564
|
+
void 0
|
|
44565
|
+
]));
|
|
44566
|
+
}
|
|
44567
|
+
},
|
|
44568
|
+
{
|
|
44569
|
+
id: "focus.ai.day-rebuild-read-connected",
|
|
44570
|
+
family: "focus",
|
|
44571
|
+
resource: "ai",
|
|
44572
|
+
action: "day-rebuild-read-connected",
|
|
44573
|
+
title: "Day Rebuild Read Connected Ai",
|
|
44574
|
+
description: "Day Rebuild Read Connected Ai.",
|
|
44575
|
+
safety: "update",
|
|
44576
|
+
destructive: false,
|
|
44577
|
+
cli: {
|
|
44578
|
+
group: ["ai"],
|
|
44579
|
+
command: "day-rebuild-read-connected",
|
|
44580
|
+
interactive: "hidden"
|
|
44581
|
+
},
|
|
44582
|
+
mcp: { entityTool: "ai" },
|
|
44583
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
44584
|
+
now: /* @__PURE__ */ string$1(),
|
|
44585
|
+
service: /* @__PURE__ */ string$1(),
|
|
44586
|
+
since: /* @__PURE__ */ string$1(),
|
|
44587
|
+
tools: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
44588
|
+
name: /* @__PURE__ */ string$1(),
|
|
44589
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44590
|
+
input_schema: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
44591
|
+
})),
|
|
44592
|
+
preferred_tools: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ string$1())),
|
|
44593
|
+
turns: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
44594
|
+
assistant_content: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
|
|
44595
|
+
tool_results: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
44596
|
+
tool_use_id: /* @__PURE__ */ string$1(),
|
|
44597
|
+
content: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44598
|
+
is_error: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
44599
|
+
}))
|
|
44600
|
+
})))
|
|
44601
|
+
}) }),
|
|
44602
|
+
execute: (input, { client }) => {
|
|
44603
|
+
const data = input;
|
|
44604
|
+
return client.runGeneratedRequest("dayRebuildReadConnected", () => callGeneratedRequest(dayRebuildReadConnected, [
|
|
44605
|
+
client.httpClient,
|
|
44606
|
+
client.organizationId,
|
|
44607
|
+
client.workspaceIdNumber,
|
|
44608
|
+
data.payload ?? data.data ?? data,
|
|
44609
|
+
void 0
|
|
44610
|
+
]));
|
|
44611
|
+
}
|
|
44612
|
+
},
|
|
44457
44613
|
{
|
|
44458
44614
|
id: "focus.ai.discard-ai-change",
|
|
44459
44615
|
family: "focus",
|
|
@@ -58502,7 +58658,7 @@ function registerWorkspaceTools(server) {
|
|
|
58502
58658
|
//#region src/package-version.ts
|
|
58503
58659
|
function mcpPackageVersion() {
|
|
58504
58660
|
try {
|
|
58505
|
-
return "1.13.
|
|
58661
|
+
return "1.13.126";
|
|
58506
58662
|
} catch {
|
|
58507
58663
|
return "unknown";
|
|
58508
58664
|
}
|
|
@@ -58683,7 +58839,7 @@ import_main.default.config({
|
|
|
58683
58839
|
quiet: true,
|
|
58684
58840
|
ignore: ["MISSING_ENV_FILE"]
|
|
58685
58841
|
});
|
|
58686
|
-
const packageVersion = "1.13.
|
|
58842
|
+
const packageVersion = "1.13.126";
|
|
58687
58843
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
58688
58844
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
58689
58845
|
function resolvePublicUrls() {
|
|
@@ -58803,4 +58959,4 @@ function bootstrapServer(options = {}) {
|
|
|
58803
58959
|
//#endregion
|
|
58804
58960
|
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 };
|
|
58805
58961
|
|
|
58806
|
-
//# sourceMappingURL=src-
|
|
58962
|
+
//# sourceMappingURL=src-D4Oc1bVs.js.map
|