@togglhq/mcp 1.12.5 → 1.12.6
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-gEFohsVR.js → src-DYYXLriL.js} +18 -17
- 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-DYYXLriL.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.12.
|
|
165
|
+
const packageVersion = "1.12.6";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -35173,7 +35173,7 @@ const ProjectPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
35173
35173
|
estimate_source: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["manual", "tasks"])),
|
|
35174
35174
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
|
|
35175
35175
|
fixed_fee: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(ProjectFixedFeePayloadSchema)),
|
|
35176
|
-
name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35176
|
+
name: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ minLength(1))),
|
|
35177
35177
|
parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35178
35178
|
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35179
35179
|
private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -35201,7 +35201,7 @@ const ProjectPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
|
35201
35201
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
|
|
35202
35202
|
fixed_fee: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(ProjectFixedFeePayloadSchema)),
|
|
35203
35203
|
groups: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(ProjectBulkGroupEntrySchema))),
|
|
35204
|
-
name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35204
|
+
name: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ minLength(1))),
|
|
35205
35205
|
parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35206
35206
|
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35207
35207
|
private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -35262,7 +35262,7 @@ const TaskBulkRestorePayloadSchema = /* @__PURE__ */ object({ task_ids: /* @__PU
|
|
|
35262
35262
|
const TaskBulkUnarchivePayloadSchema = /* @__PURE__ */ object({ task_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
|
|
35263
35263
|
const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
35264
35264
|
after_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35265
|
-
allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */
|
|
35265
|
+
allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["percent", "flat"])),
|
|
35266
35266
|
assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
|
|
35267
35267
|
auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
35268
35268
|
billable: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
@@ -35272,7 +35272,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
35272
35272
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())), /* @__PURE__ */ description("Send together with start_date; must be on or after start_date."))),
|
|
35273
35273
|
estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
|
|
35274
35274
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
|
|
35275
|
-
name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35275
|
+
name: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ minLength(1))),
|
|
35276
35276
|
notes: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35277
35277
|
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35278
35278
|
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
@@ -35300,7 +35300,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
35300
35300
|
const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
35301
35301
|
id: /* @__PURE__ */ number(),
|
|
35302
35302
|
after_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35303
|
-
allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */
|
|
35303
|
+
allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["percent", "flat"])),
|
|
35304
35304
|
assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
|
|
35305
35305
|
auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
35306
35306
|
billable: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
@@ -35310,7 +35310,7 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
|
35310
35310
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())), /* @__PURE__ */ description("Send together with start_date; must be on or after start_date."))),
|
|
35311
35311
|
estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
|
|
35312
35312
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
|
|
35313
|
-
name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35313
|
+
name: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ minLength(1))),
|
|
35314
35314
|
notes: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35315
35315
|
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35316
35316
|
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
@@ -38215,7 +38215,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38215
38215
|
]))
|
|
38216
38216
|
});
|
|
38217
38217
|
//#endregion
|
|
38218
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38218
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38219
38219
|
async function getInvitations(httpClient, signal) {
|
|
38220
38220
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38221
38221
|
}
|
|
@@ -38232,7 +38232,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38232
38232
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38233
38233
|
}
|
|
38234
38234
|
//#endregion
|
|
38235
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38235
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38236
38236
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38237
38237
|
const searchParams = new URLSearchParams();
|
|
38238
38238
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38244,7 +38244,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38244
38244
|
return searchParams;
|
|
38245
38245
|
}
|
|
38246
38246
|
//#endregion
|
|
38247
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38247
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38248
38248
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38249
38249
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38250
38250
|
}
|
|
@@ -38258,7 +38258,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38258
38258
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38259
38259
|
}
|
|
38260
38260
|
//#endregion
|
|
38261
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38261
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38262
38262
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38263
38263
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38264
38264
|
}
|
|
@@ -38278,7 +38278,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38278
38278
|
});
|
|
38279
38279
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38280
38280
|
//#endregion
|
|
38281
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38281
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38282
38282
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38283
38283
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38284
38284
|
signal,
|
|
@@ -38289,12 +38289,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38289
38289
|
})).json();
|
|
38290
38290
|
}
|
|
38291
38291
|
//#endregion
|
|
38292
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38292
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38293
38293
|
async function getStatus(httpClient, signal) {
|
|
38294
38294
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38295
38295
|
}
|
|
38296
38296
|
//#endregion
|
|
38297
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38297
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38298
38298
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38299
38299
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38300
38300
|
signal,
|
|
@@ -38322,7 +38322,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38322
38322
|
return response.json();
|
|
38323
38323
|
}
|
|
38324
38324
|
//#endregion
|
|
38325
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38325
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38326
38326
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38327
38327
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38328
38328
|
}
|
|
@@ -45558,6 +45558,7 @@ const generatedFocusOperations = [
|
|
|
45558
45558
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
45559
45559
|
milestone_id: /* @__PURE__ */ number$2(),
|
|
45560
45560
|
payload: /* @__PURE__ */ looseObject({
|
|
45561
|
+
color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
45561
45562
|
due_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
45562
45563
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
45563
45564
|
project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
@@ -56528,7 +56529,7 @@ function registerWorkspaceTools(server) {
|
|
|
56528
56529
|
//#region src/package-version.ts
|
|
56529
56530
|
function mcpPackageVersion() {
|
|
56530
56531
|
try {
|
|
56531
|
-
return "1.12.
|
|
56532
|
+
return "1.12.6";
|
|
56532
56533
|
} catch {
|
|
56533
56534
|
return "unknown";
|
|
56534
56535
|
}
|
|
@@ -56709,7 +56710,7 @@ import_main.default.config({
|
|
|
56709
56710
|
quiet: true,
|
|
56710
56711
|
ignore: ["MISSING_ENV_FILE"]
|
|
56711
56712
|
});
|
|
56712
|
-
const packageVersion = "1.12.
|
|
56713
|
+
const packageVersion = "1.12.6";
|
|
56713
56714
|
function resolvePublicUrls() {
|
|
56714
56715
|
return {
|
|
56715
56716
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -56814,4 +56815,4 @@ function bootstrapServer(options = {}) {
|
|
|
56814
56815
|
//#endregion
|
|
56815
56816
|
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 };
|
|
56816
56817
|
|
|
56817
|
-
//# sourceMappingURL=src-
|
|
56818
|
+
//# sourceMappingURL=src-DYYXLriL.js.map
|