@togglhq/mcp 1.11.219 → 1.11.221
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-D2RopWjX.js → src-BKCNU1H3.js} +21 -14
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as getProductAnalyticsDistinctId, c as resolvePublicSentryDsn, i as captureToolInvocation, l as shutdownProductAnalytics, n as runMcpCli, o as initProductAnalytics, r as PUBLIC_SENTRY_PRIVACY_OPTIONS, s as resolveProductAnalyticsDistinctId } from "./src-
|
|
2
|
+
import { a as getProductAnalyticsDistinctId, c as resolvePublicSentryDsn, i as captureToolInvocation, l as shutdownProductAnalytics, n as runMcpCli, o as initProductAnalytics, r as PUBLIC_SENTRY_PRIVACY_OPTIONS, s as resolveProductAnalyticsDistinctId } from "./src-BKCNU1H3.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.11.
|
|
165
|
+
const packageVersion = "1.11.221";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -35239,6 +35239,10 @@ const OrganizationUserResponseSchema = /* @__PURE__ */ object({
|
|
|
35239
35239
|
workspace_user_id: /* @__PURE__ */ number()
|
|
35240
35240
|
})),
|
|
35241
35241
|
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
|
|
35242
|
+
designations: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ object({
|
|
35243
|
+
id: /* @__PURE__ */ number(),
|
|
35244
|
+
name: /* @__PURE__ */ string()
|
|
35245
|
+
}))),
|
|
35242
35246
|
has_calendar_integration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("HasCalendarIntegration is true when the member has a calendar connected in Focus. The field is present only when the request sets include_calendar_integration to true and the calendar lookup succeeded. The field is absent when the lookup failed. Absent means unknown. It does not mean false. A member who connected a calendar in another product stays false here until they open the Focus calendar integrations page.")))
|
|
35243
35247
|
});
|
|
35244
35248
|
const ProjectBulkArchivePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
|
|
@@ -37341,7 +37345,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
|
|
|
37341
37345
|
})
|
|
37342
37346
|
}).json();
|
|
37343
37347
|
}
|
|
37344
|
-
async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
|
|
37348
|
+
async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration, include_designations } = {}, signal) {
|
|
37345
37349
|
const response = await httpClient.get(`organizations/${organization_id}/users`, {
|
|
37346
37350
|
signal,
|
|
37347
37351
|
searchParams: buildSearchParams$2({
|
|
@@ -37365,7 +37369,8 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
37365
37369
|
track_without_focus,
|
|
37366
37370
|
cf_filter,
|
|
37367
37371
|
include_custom_fields,
|
|
37368
|
-
include_calendar_integration
|
|
37372
|
+
include_calendar_integration,
|
|
37373
|
+
include_designations
|
|
37369
37374
|
}, true)
|
|
37370
37375
|
});
|
|
37371
37376
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
@@ -38310,7 +38315,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38310
38315
|
]))
|
|
38311
38316
|
});
|
|
38312
38317
|
//#endregion
|
|
38313
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38318
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38314
38319
|
async function getInvitations(httpClient, signal) {
|
|
38315
38320
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38316
38321
|
}
|
|
@@ -38327,7 +38332,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38327
38332
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38328
38333
|
}
|
|
38329
38334
|
//#endregion
|
|
38330
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38335
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38331
38336
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38332
38337
|
const searchParams = new URLSearchParams();
|
|
38333
38338
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38339,7 +38344,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38339
38344
|
return searchParams;
|
|
38340
38345
|
}
|
|
38341
38346
|
//#endregion
|
|
38342
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38347
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38343
38348
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38344
38349
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38345
38350
|
}
|
|
@@ -38353,7 +38358,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38353
38358
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38354
38359
|
}
|
|
38355
38360
|
//#endregion
|
|
38356
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38361
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38357
38362
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38358
38363
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38359
38364
|
}
|
|
@@ -38373,7 +38378,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38373
38378
|
});
|
|
38374
38379
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38375
38380
|
//#endregion
|
|
38376
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38381
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38377
38382
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38378
38383
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38379
38384
|
signal,
|
|
@@ -38384,12 +38389,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38384
38389
|
})).json();
|
|
38385
38390
|
}
|
|
38386
38391
|
//#endregion
|
|
38387
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38392
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38388
38393
|
async function getStatus(httpClient, signal) {
|
|
38389
38394
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38390
38395
|
}
|
|
38391
38396
|
//#endregion
|
|
38392
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38397
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38393
38398
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38394
38399
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38395
38400
|
signal,
|
|
@@ -38417,7 +38422,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38417
38422
|
return response.json();
|
|
38418
38423
|
}
|
|
38419
38424
|
//#endregion
|
|
38420
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38425
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38421
38426
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38422
38427
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38423
38428
|
}
|
|
@@ -42314,10 +42319,11 @@ async function patchUserCustomFieldValues(httpClient, organization_id, workspace
|
|
|
42314
42319
|
}
|
|
42315
42320
|
//#endregion
|
|
42316
42321
|
//#region ../focus-queries/dist/designations/requests.ts
|
|
42317
|
-
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { name, page, per_page, order_by } = {}, signal) {
|
|
42322
|
+
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { designation_id, name, page, per_page, order_by } = {}, signal) {
|
|
42318
42323
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
42319
42324
|
signal,
|
|
42320
42325
|
searchParams: buildSearchParams$2({
|
|
42326
|
+
designation_id,
|
|
42321
42327
|
name,
|
|
42322
42328
|
page,
|
|
42323
42329
|
per_page,
|
|
@@ -44797,6 +44803,7 @@ const generatedFocusOperations = [
|
|
|
44797
44803
|
},
|
|
44798
44804
|
mcp: { entityTool: "designations" },
|
|
44799
44805
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
44806
|
+
designation_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
44800
44807
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
44801
44808
|
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
44802
44809
|
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
@@ -56214,7 +56221,7 @@ function registerWorkspaceTools(server) {
|
|
|
56214
56221
|
//#region src/package-version.ts
|
|
56215
56222
|
function mcpPackageVersion() {
|
|
56216
56223
|
try {
|
|
56217
|
-
return "1.11.
|
|
56224
|
+
return "1.11.221";
|
|
56218
56225
|
} catch {
|
|
56219
56226
|
return "unknown";
|
|
56220
56227
|
}
|
|
@@ -56389,7 +56396,7 @@ import_main.default.config({
|
|
|
56389
56396
|
quiet: true,
|
|
56390
56397
|
ignore: ["MISSING_ENV_FILE"]
|
|
56391
56398
|
});
|
|
56392
|
-
const packageVersion = "1.11.
|
|
56399
|
+
const packageVersion = "1.11.221";
|
|
56393
56400
|
function resolvePublicUrls() {
|
|
56394
56401
|
return {
|
|
56395
56402
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -56454,4 +56461,4 @@ function bootstrapServer(options = {}) {
|
|
|
56454
56461
|
//#endregion
|
|
56455
56462
|
export { getProductAnalyticsDistinctId as a, resolvePublicSentryDsn as c, captureToolInvocation as i, shutdownProductAnalytics as l, runMcpCli as n, initProductAnalytics as o, PUBLIC_SENTRY_PRIVACY_OPTIONS as r, resolveProductAnalyticsDistinctId as s, bootstrapServer as t };
|
|
56456
56463
|
|
|
56457
|
-
//# sourceMappingURL=src-
|
|
56464
|
+
//# sourceMappingURL=src-BKCNU1H3.js.map
|