@togglhq/mcp 1.13.334 → 1.13.335
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-C2caR06h.js → src-BPaPiq0T.js} +44 -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-BPaPiq0T.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.335";
|
|
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-BPaPiq0T.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -38521,6 +38521,12 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
|
|
|
38521
38521
|
if ([204, 205].includes(response.status)) return null;
|
|
38522
38522
|
return response.json();
|
|
38523
38523
|
}
|
|
38524
|
+
async function seedTimeEntriesWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38525
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/seed`, {
|
|
38526
|
+
signal,
|
|
38527
|
+
json: data
|
|
38528
|
+
})).json();
|
|
38529
|
+
}
|
|
38524
38530
|
async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, project_id, type, order_by, archived, include_taskless, project_completed, project_draft, expand_calendar_event, include_lock_reason }, signal) {
|
|
38525
38531
|
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
|
|
38526
38532
|
signal,
|
|
@@ -38713,7 +38719,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38713
38719
|
]))
|
|
38714
38720
|
});
|
|
38715
38721
|
//#endregion
|
|
38716
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38722
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38717
38723
|
async function getInvitations(httpClient, signal) {
|
|
38718
38724
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38719
38725
|
}
|
|
@@ -38730,7 +38736,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38730
38736
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38731
38737
|
}
|
|
38732
38738
|
//#endregion
|
|
38733
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38739
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38734
38740
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38735
38741
|
const searchParams = new URLSearchParams();
|
|
38736
38742
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38742,7 +38748,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38742
38748
|
return searchParams;
|
|
38743
38749
|
}
|
|
38744
38750
|
//#endregion
|
|
38745
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38751
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38746
38752
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38747
38753
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38748
38754
|
}
|
|
@@ -38757,7 +38763,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38757
38763
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38758
38764
|
}
|
|
38759
38765
|
//#endregion
|
|
38760
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38766
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38761
38767
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38762
38768
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38763
38769
|
}
|
|
@@ -38777,7 +38783,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38777
38783
|
});
|
|
38778
38784
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38779
38785
|
//#endregion
|
|
38780
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38786
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38781
38787
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38782
38788
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38783
38789
|
signal,
|
|
@@ -38788,12 +38794,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38788
38794
|
})).json();
|
|
38789
38795
|
}
|
|
38790
38796
|
//#endregion
|
|
38791
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38797
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38792
38798
|
async function getStatus(httpClient, signal) {
|
|
38793
38799
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38794
38800
|
}
|
|
38795
38801
|
//#endregion
|
|
38796
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38802
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38797
38803
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38798
38804
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38799
38805
|
signal,
|
|
@@ -38821,7 +38827,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38821
38827
|
return response.json();
|
|
38822
38828
|
}
|
|
38823
38829
|
//#endregion
|
|
38824
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38830
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.410_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_2ec371b632639c7db09489560d2d9f55/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38825
38831
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38826
38832
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38827
38833
|
}
|
|
@@ -57776,6 +57782,33 @@ const generatedFocusOperations = [
|
|
|
57776
57782
|
]));
|
|
57777
57783
|
}
|
|
57778
57784
|
},
|
|
57785
|
+
{
|
|
57786
|
+
id: "focus.time-entries.seed",
|
|
57787
|
+
family: "focus",
|
|
57788
|
+
resource: "time-entries",
|
|
57789
|
+
action: "seed",
|
|
57790
|
+
title: "Seed Time Entries",
|
|
57791
|
+
description: "Seed Time Entries.",
|
|
57792
|
+
safety: "update",
|
|
57793
|
+
destructive: false,
|
|
57794
|
+
cli: {
|
|
57795
|
+
group: ["time-entries"],
|
|
57796
|
+
command: "seed",
|
|
57797
|
+
interactive: "hidden"
|
|
57798
|
+
},
|
|
57799
|
+
mcp: { entityTool: "time-entries" },
|
|
57800
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ unknown$1() }),
|
|
57801
|
+
execute: (input, { client }) => {
|
|
57802
|
+
const data = input;
|
|
57803
|
+
return client.runGeneratedRequest("seedTimeEntriesWithOrg", () => callGeneratedRequest(seedTimeEntriesWithOrg, [
|
|
57804
|
+
client.httpClient,
|
|
57805
|
+
client.organizationId,
|
|
57806
|
+
client.workspaceIdNumber,
|
|
57807
|
+
data.payload ?? data.data ?? data,
|
|
57808
|
+
void 0
|
|
57809
|
+
]));
|
|
57810
|
+
}
|
|
57811
|
+
},
|
|
57779
57812
|
{
|
|
57780
57813
|
id: "focus.time-entries.set-day-duration",
|
|
57781
57814
|
family: "focus",
|
|
@@ -61988,7 +62021,7 @@ function registerWorkspaceTools(server) {
|
|
|
61988
62021
|
//#region src/package-version.ts
|
|
61989
62022
|
function mcpPackageVersion() {
|
|
61990
62023
|
try {
|
|
61991
|
-
return "1.13.
|
|
62024
|
+
return "1.13.335";
|
|
61992
62025
|
} catch {
|
|
61993
62026
|
return "unknown";
|
|
61994
62027
|
}
|
|
@@ -62170,7 +62203,7 @@ import_main.default.config({
|
|
|
62170
62203
|
quiet: true,
|
|
62171
62204
|
ignore: ["MISSING_ENV_FILE"]
|
|
62172
62205
|
});
|
|
62173
|
-
const packageVersion = "1.13.
|
|
62206
|
+
const packageVersion = "1.13.335";
|
|
62174
62207
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
62175
62208
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
62176
62209
|
function resolvePublicUrls() {
|
|
@@ -62290,4 +62323,4 @@ function bootstrapServer(options = {}) {
|
|
|
62290
62323
|
//#endregion
|
|
62291
62324
|
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 };
|
|
62292
62325
|
|
|
62293
|
-
//# sourceMappingURL=src-
|
|
62326
|
+
//# sourceMappingURL=src-BPaPiq0T.js.map
|