@togglhq/mcp 1.13.5 → 1.13.7
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-CibXAEy0.js → src-bH3IlaaL.js} +15 -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-bH3IlaaL.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.7";
|
|
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-bH3IlaaL.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -38381,6 +38381,8 @@ const WorkspaceAssignmentRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38381
38381
|
track_working_hours: /* @__PURE__ */ object$2({ working_hours_in_minutes: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("New value of working hours (in minutes) for the workspace user being edited, required.")) })
|
|
38382
38382
|
}),
|
|
38383
38383
|
track_role_id: /* @__PURE__ */ number$2(),
|
|
38384
|
+
view_edit_billable_rates: /* @__PURE__ */ boolean$1(),
|
|
38385
|
+
view_edit_labor_costs: /* @__PURE__ */ boolean$1(),
|
|
38384
38386
|
work_role_id: /* @__PURE__ */ number$2(),
|
|
38385
38387
|
workspace_id: /* @__PURE__ */ number$2()
|
|
38386
38388
|
});
|
|
@@ -38396,6 +38398,8 @@ const InvitationsRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38396
38398
|
workspace_id: /* @__PURE__ */ number$2(),
|
|
38397
38399
|
focus_role_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
38398
38400
|
track_role_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
38401
|
+
view_edit_billable_rates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
38402
|
+
view_edit_labor_costs: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
38399
38403
|
work_role_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
38400
38404
|
}))
|
|
38401
38405
|
})),
|
|
@@ -38426,7 +38430,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38426
38430
|
]))
|
|
38427
38431
|
});
|
|
38428
38432
|
//#endregion
|
|
38429
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38433
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.209_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d2a4b0d61ad12fb988f1bc2044740ca5/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38430
38434
|
async function getInvitations(httpClient, signal) {
|
|
38431
38435
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38432
38436
|
}
|
|
@@ -38443,7 +38447,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38443
38447
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38444
38448
|
}
|
|
38445
38449
|
//#endregion
|
|
38446
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38450
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.209_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d2a4b0d61ad12fb988f1bc2044740ca5/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38447
38451
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38448
38452
|
const searchParams = new URLSearchParams();
|
|
38449
38453
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38455,7 +38459,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38455
38459
|
return searchParams;
|
|
38456
38460
|
}
|
|
38457
38461
|
//#endregion
|
|
38458
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38462
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.209_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d2a4b0d61ad12fb988f1bc2044740ca5/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38459
38463
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38460
38464
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38461
38465
|
}
|
|
@@ -38469,7 +38473,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38469
38473
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38470
38474
|
}
|
|
38471
38475
|
//#endregion
|
|
38472
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38476
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.209_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d2a4b0d61ad12fb988f1bc2044740ca5/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38473
38477
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38474
38478
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38475
38479
|
}
|
|
@@ -38489,7 +38493,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38489
38493
|
});
|
|
38490
38494
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38491
38495
|
//#endregion
|
|
38492
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38496
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.209_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d2a4b0d61ad12fb988f1bc2044740ca5/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38493
38497
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38494
38498
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38495
38499
|
signal,
|
|
@@ -38500,12 +38504,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38500
38504
|
})).json();
|
|
38501
38505
|
}
|
|
38502
38506
|
//#endregion
|
|
38503
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38507
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.209_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d2a4b0d61ad12fb988f1bc2044740ca5/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38504
38508
|
async function getStatus(httpClient, signal) {
|
|
38505
38509
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38506
38510
|
}
|
|
38507
38511
|
//#endregion
|
|
38508
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38512
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.209_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d2a4b0d61ad12fb988f1bc2044740ca5/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38509
38513
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38510
38514
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38511
38515
|
signal,
|
|
@@ -38533,7 +38537,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38533
38537
|
return response.json();
|
|
38534
38538
|
}
|
|
38535
38539
|
//#endregion
|
|
38536
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38540
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.209_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d2a4b0d61ad12fb988f1bc2044740ca5/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38537
38541
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38538
38542
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38539
38543
|
}
|
|
@@ -56752,7 +56756,7 @@ function registerWorkspaceTools(server) {
|
|
|
56752
56756
|
//#region src/package-version.ts
|
|
56753
56757
|
function mcpPackageVersion() {
|
|
56754
56758
|
try {
|
|
56755
|
-
return "1.13.
|
|
56759
|
+
return "1.13.7";
|
|
56756
56760
|
} catch {
|
|
56757
56761
|
return "unknown";
|
|
56758
56762
|
}
|
|
@@ -56933,7 +56937,7 @@ import_main.default.config({
|
|
|
56933
56937
|
quiet: true,
|
|
56934
56938
|
ignore: ["MISSING_ENV_FILE"]
|
|
56935
56939
|
});
|
|
56936
|
-
const packageVersion = "1.13.
|
|
56940
|
+
const packageVersion = "1.13.7";
|
|
56937
56941
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
56938
56942
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
56939
56943
|
function resolvePublicUrls() {
|
|
@@ -57053,4 +57057,4 @@ function bootstrapServer(options = {}) {
|
|
|
57053
57057
|
//#endregion
|
|
57054
57058
|
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 };
|
|
57055
57059
|
|
|
57056
|
-
//# sourceMappingURL=src-
|
|
57060
|
+
//# sourceMappingURL=src-bH3IlaaL.js.map
|