@togglhq/mcp 1.13.336 → 1.13.338
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-DvFskCJl.js → src-B8ljhrwS.js} +100 -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-B8ljhrwS.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.338";
|
|
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-B8ljhrwS.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -35069,6 +35069,8 @@ const ProjectSchema = /* @__PURE__ */ object({
|
|
|
35069
35069
|
client_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35070
35070
|
color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35071
35071
|
completed_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35072
|
+
converted_from_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("Set on a conversion response or a single-project read of a recurring template made from an existing project: that project's id."))),
|
|
35073
|
+
converted_to_template_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("Set on a single-project read of a project that was made recurring: the id of its recurring template."))),
|
|
35072
35074
|
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
|
|
35073
35075
|
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35074
35076
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
@@ -35164,6 +35166,8 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
|
|
|
35164
35166
|
client_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35165
35167
|
color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35166
35168
|
completed_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35169
|
+
converted_from_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("Set on a conversion response or a single-project read of a recurring template made from an existing project: that project's id."))),
|
|
35170
|
+
converted_to_template_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("Set on a single-project read of a project that was made recurring: the id of its recurring template."))),
|
|
35167
35171
|
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
|
|
35168
35172
|
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35169
35173
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
@@ -38719,7 +38723,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38719
38723
|
]))
|
|
38720
38724
|
});
|
|
38721
38725
|
//#endregion
|
|
38722
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38726
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.414_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_eec3ec74b8e8522b9b150d5578b1f4b4/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38723
38727
|
async function getInvitations(httpClient, signal) {
|
|
38724
38728
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38725
38729
|
}
|
|
@@ -38736,7 +38740,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38736
38740
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38737
38741
|
}
|
|
38738
38742
|
//#endregion
|
|
38739
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38743
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.414_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_eec3ec74b8e8522b9b150d5578b1f4b4/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38740
38744
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38741
38745
|
const searchParams = new URLSearchParams();
|
|
38742
38746
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38748,7 +38752,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38748
38752
|
return searchParams;
|
|
38749
38753
|
}
|
|
38750
38754
|
//#endregion
|
|
38751
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38755
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.414_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_eec3ec74b8e8522b9b150d5578b1f4b4/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38752
38756
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38753
38757
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38754
38758
|
}
|
|
@@ -38763,7 +38767,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38763
38767
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38764
38768
|
}
|
|
38765
38769
|
//#endregion
|
|
38766
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38770
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.414_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_eec3ec74b8e8522b9b150d5578b1f4b4/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38767
38771
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38768
38772
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38769
38773
|
}
|
|
@@ -38783,7 +38787,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38783
38787
|
});
|
|
38784
38788
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38785
38789
|
//#endregion
|
|
38786
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38790
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.414_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_eec3ec74b8e8522b9b150d5578b1f4b4/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38787
38791
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38788
38792
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38789
38793
|
signal,
|
|
@@ -38794,12 +38798,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38794
38798
|
})).json();
|
|
38795
38799
|
}
|
|
38796
38800
|
//#endregion
|
|
38797
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38801
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.414_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_eec3ec74b8e8522b9b150d5578b1f4b4/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38798
38802
|
async function getStatus(httpClient, signal) {
|
|
38799
38803
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38800
38804
|
}
|
|
38801
38805
|
//#endregion
|
|
38802
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38806
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.414_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_eec3ec74b8e8522b9b150d5578b1f4b4/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38803
38807
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38804
38808
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38805
38809
|
signal,
|
|
@@ -38827,7 +38831,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38827
38831
|
return response.json();
|
|
38828
38832
|
}
|
|
38829
38833
|
//#endregion
|
|
38830
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38834
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.414_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_eec3ec74b8e8522b9b150d5578b1f4b4/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38831
38835
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38832
38836
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38833
38837
|
}
|
|
@@ -43152,6 +43156,14 @@ async function dayRebuildName(httpClient, organization_id, workspace_id, data, s
|
|
|
43152
43156
|
json: data
|
|
43153
43157
|
})).json();
|
|
43154
43158
|
}
|
|
43159
|
+
async function dayRebuildSaveOutcomes(httpClient, organization_id, workspace_id, data, signal) {
|
|
43160
|
+
const response = await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/outcomes`, {
|
|
43161
|
+
signal,
|
|
43162
|
+
json: data
|
|
43163
|
+
});
|
|
43164
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43165
|
+
return response.json();
|
|
43166
|
+
}
|
|
43155
43167
|
async function dayRebuildProjectHints(httpClient, organization_id, workspace_id, data, signal) {
|
|
43156
43168
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/project-hints`, {
|
|
43157
43169
|
signal,
|
|
@@ -45829,6 +45841,76 @@ const generatedFocusOperations = [
|
|
|
45829
45841
|
]));
|
|
45830
45842
|
}
|
|
45831
45843
|
},
|
|
45844
|
+
{
|
|
45845
|
+
id: "focus.ai.day-rebuild-save-outcomes",
|
|
45846
|
+
family: "focus",
|
|
45847
|
+
resource: "ai",
|
|
45848
|
+
action: "day-rebuild-save-outcomes",
|
|
45849
|
+
title: "Day Rebuild Save Outcomes Ai",
|
|
45850
|
+
description: "Day Rebuild Save Outcomes Ai.",
|
|
45851
|
+
safety: "update",
|
|
45852
|
+
destructive: false,
|
|
45853
|
+
cli: {
|
|
45854
|
+
group: ["ai"],
|
|
45855
|
+
command: "day-rebuild-save-outcomes",
|
|
45856
|
+
interactive: "default"
|
|
45857
|
+
},
|
|
45858
|
+
mcp: { entityTool: "ai" },
|
|
45859
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
45860
|
+
app_version: /* @__PURE__ */ string$1(),
|
|
45861
|
+
drafts: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
45862
|
+
client_uuid: /* @__PURE__ */ string$1(),
|
|
45863
|
+
day: /* @__PURE__ */ string$1(),
|
|
45864
|
+
description: /* @__PURE__ */ picklist$1([
|
|
45865
|
+
"same",
|
|
45866
|
+
"edited",
|
|
45867
|
+
"unknown"
|
|
45868
|
+
]),
|
|
45869
|
+
minutes: /* @__PURE__ */ number$2(),
|
|
45870
|
+
personal: /* @__PURE__ */ boolean$1(),
|
|
45871
|
+
project: /* @__PURE__ */ picklist$1([
|
|
45872
|
+
"same",
|
|
45873
|
+
"edited",
|
|
45874
|
+
"unknown"
|
|
45875
|
+
]),
|
|
45876
|
+
split: /* @__PURE__ */ boolean$1(),
|
|
45877
|
+
status: /* @__PURE__ */ picklist$1([
|
|
45878
|
+
"open",
|
|
45879
|
+
"logged",
|
|
45880
|
+
"dismissed",
|
|
45881
|
+
"merged",
|
|
45882
|
+
"covered",
|
|
45883
|
+
"removed",
|
|
45884
|
+
"skipped",
|
|
45885
|
+
"expired",
|
|
45886
|
+
"replaced"
|
|
45887
|
+
]),
|
|
45888
|
+
time: /* @__PURE__ */ picklist$1([
|
|
45889
|
+
"same",
|
|
45890
|
+
"edited",
|
|
45891
|
+
"unknown"
|
|
45892
|
+
]),
|
|
45893
|
+
approach: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["group", "decide"])),
|
|
45894
|
+
made_at: /* @__PURE__ */ optional$1(apiDateTimeString),
|
|
45895
|
+
run_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
45896
|
+
})),
|
|
45897
|
+
os: /* @__PURE__ */ picklist$1([
|
|
45898
|
+
"mac",
|
|
45899
|
+
"windows",
|
|
45900
|
+
"linux"
|
|
45901
|
+
])
|
|
45902
|
+
}) }),
|
|
45903
|
+
execute: (input, { client }) => {
|
|
45904
|
+
const data = input;
|
|
45905
|
+
return client.runGeneratedRequest("dayRebuildSaveOutcomes", () => callGeneratedRequest(dayRebuildSaveOutcomes, [
|
|
45906
|
+
client.httpClient,
|
|
45907
|
+
client.organizationId,
|
|
45908
|
+
client.workspaceIdNumber,
|
|
45909
|
+
data.payload ?? data.data ?? data,
|
|
45910
|
+
void 0
|
|
45911
|
+
]));
|
|
45912
|
+
}
|
|
45913
|
+
},
|
|
45832
45914
|
{
|
|
45833
45915
|
id: "focus.ai.day-rebuild-save-review",
|
|
45834
45916
|
family: "focus",
|
|
@@ -50039,6 +50121,8 @@ const generatedFocusOperations = [
|
|
|
50039
50121
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
50040
50122
|
payload: /* @__PURE__ */ looseObject({
|
|
50041
50123
|
auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
50124
|
+
completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
|
|
50125
|
+
convert: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
50042
50126
|
estimate_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
50043
50127
|
"manual",
|
|
50044
50128
|
"tasks",
|
|
@@ -50050,6 +50134,11 @@ const generatedFocusOperations = [
|
|
|
50050
50134
|
currency: /* @__PURE__ */ string$1()
|
|
50051
50135
|
})),
|
|
50052
50136
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
50137
|
+
rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
50138
|
+
"expire",
|
|
50139
|
+
"carry_all",
|
|
50140
|
+
"carry_over"
|
|
50141
|
+
])),
|
|
50053
50142
|
rrule: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
50054
50143
|
}),
|
|
50055
50144
|
project_id: /* @__PURE__ */ number$2()
|
|
@@ -62021,7 +62110,7 @@ function registerWorkspaceTools(server) {
|
|
|
62021
62110
|
//#region src/package-version.ts
|
|
62022
62111
|
function mcpPackageVersion() {
|
|
62023
62112
|
try {
|
|
62024
|
-
return "1.13.
|
|
62113
|
+
return "1.13.338";
|
|
62025
62114
|
} catch {
|
|
62026
62115
|
return "unknown";
|
|
62027
62116
|
}
|
|
@@ -62203,7 +62292,7 @@ import_main.default.config({
|
|
|
62203
62292
|
quiet: true,
|
|
62204
62293
|
ignore: ["MISSING_ENV_FILE"]
|
|
62205
62294
|
});
|
|
62206
|
-
const packageVersion = "1.13.
|
|
62295
|
+
const packageVersion = "1.13.338";
|
|
62207
62296
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
62208
62297
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
62209
62298
|
function resolvePublicUrls() {
|
|
@@ -62323,4 +62412,4 @@ function bootstrapServer(options = {}) {
|
|
|
62323
62412
|
//#endregion
|
|
62324
62413
|
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 };
|
|
62325
62414
|
|
|
62326
|
-
//# sourceMappingURL=src-
|
|
62415
|
+
//# sourceMappingURL=src-B8ljhrwS.js.map
|