@togglhq/mcp 1.13.203 → 1.13.205
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-32PO0hTz.js → src-Dpk6suP9.js} +21 -12
- 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-Dpk6suP9.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.205";
|
|
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-Dpk6suP9.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -35105,6 +35105,10 @@ const ClientSchema = /* @__PURE__ */ object({
|
|
|
35105
35105
|
toggl_user_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35106
35106
|
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
35107
35107
|
});
|
|
35108
|
+
const InvoicedAmountSchema = /* @__PURE__ */ object({
|
|
35109
|
+
amount_minor: /* @__PURE__ */ number(),
|
|
35110
|
+
currency: /* @__PURE__ */ string()
|
|
35111
|
+
});
|
|
35108
35112
|
const PaginatedClientsSchema = /* @__PURE__ */ object({
|
|
35109
35113
|
data: /* @__PURE__ */ array(ClientSchema),
|
|
35110
35114
|
page: /* @__PURE__ */ number(),
|
|
@@ -35153,6 +35157,10 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
|
|
|
35153
35157
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35154
35158
|
filtered_task_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35155
35159
|
fixed_fee: /* @__PURE__ */ optional(ProjectFixedFeeSchema),
|
|
35160
|
+
invoicing: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ object({
|
|
35161
|
+
agreement: /* @__PURE__ */ picklist(["hourly", "fixed_fee"]),
|
|
35162
|
+
invoiced: /* @__PURE__ */ nullable(/* @__PURE__ */ array(InvoicedAmountSchema))
|
|
35163
|
+
}), /* @__PURE__ */ description("Invoicing is set only with include_invoicing, under the invoices_v2 beta flag, on an unlocked project that invoicing knows."))),
|
|
35156
35164
|
parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35157
35165
|
picker_parent_group_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35158
35166
|
rate: /* @__PURE__ */ optional(EffectiveProjectRatesSummarySchema),
|
|
@@ -37698,7 +37706,7 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
37698
37706
|
}
|
|
37699
37707
|
//#endregion
|
|
37700
37708
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
37701
|
-
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, include_picker_pinned_tasks, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, task_occurrence_window_date, task_occurrence_window_days, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, project_id, estimate_source, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
|
|
37709
|
+
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, include_picker_pinned_tasks, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, task_occurrence_window_date, task_occurrence_window_days, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, project_id, estimate_source, user_id, only_me, include_rates, include_rollover, include_invoicing, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
|
|
37702
37710
|
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37703
37711
|
signal,
|
|
37704
37712
|
searchParams: buildSearchParams$2({
|
|
@@ -37735,6 +37743,7 @@ async function getProjectsClassic(httpClient, organization_id, workspace_id, { m
|
|
|
37735
37743
|
only_me,
|
|
37736
37744
|
include_rates,
|
|
37737
37745
|
include_rollover,
|
|
37746
|
+
include_invoicing,
|
|
37738
37747
|
include_idle_recurring_templates,
|
|
37739
37748
|
collapse_recurring,
|
|
37740
37749
|
include_drafts,
|
|
@@ -38668,7 +38677,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38668
38677
|
]))
|
|
38669
38678
|
});
|
|
38670
38679
|
//#endregion
|
|
38671
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38680
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38672
38681
|
async function getInvitations(httpClient, signal) {
|
|
38673
38682
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38674
38683
|
}
|
|
@@ -38685,7 +38694,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38685
38694
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38686
38695
|
}
|
|
38687
38696
|
//#endregion
|
|
38688
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38697
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38689
38698
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38690
38699
|
const searchParams = new URLSearchParams();
|
|
38691
38700
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38697,7 +38706,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38697
38706
|
return searchParams;
|
|
38698
38707
|
}
|
|
38699
38708
|
//#endregion
|
|
38700
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38709
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38701
38710
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38702
38711
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38703
38712
|
}
|
|
@@ -38712,7 +38721,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38712
38721
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38713
38722
|
}
|
|
38714
38723
|
//#endregion
|
|
38715
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38724
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38716
38725
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38717
38726
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38718
38727
|
}
|
|
@@ -38732,7 +38741,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38732
38741
|
});
|
|
38733
38742
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38734
38743
|
//#endregion
|
|
38735
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38744
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38736
38745
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38737
38746
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38738
38747
|
signal,
|
|
@@ -38743,12 +38752,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38743
38752
|
})).json();
|
|
38744
38753
|
}
|
|
38745
38754
|
//#endregion
|
|
38746
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38755
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38747
38756
|
async function getStatus(httpClient, signal) {
|
|
38748
38757
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38749
38758
|
}
|
|
38750
38759
|
//#endregion
|
|
38751
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38760
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38752
38761
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38753
38762
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38754
38763
|
signal,
|
|
@@ -38776,7 +38785,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38776
38785
|
return response.json();
|
|
38777
38786
|
}
|
|
38778
38787
|
//#endregion
|
|
38779
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38788
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38780
38789
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38781
38790
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38782
38791
|
}
|
|
@@ -60747,7 +60756,7 @@ function registerWorkspaceTools(server) {
|
|
|
60747
60756
|
//#region src/package-version.ts
|
|
60748
60757
|
function mcpPackageVersion() {
|
|
60749
60758
|
try {
|
|
60750
|
-
return "1.13.
|
|
60759
|
+
return "1.13.205";
|
|
60751
60760
|
} catch {
|
|
60752
60761
|
return "unknown";
|
|
60753
60762
|
}
|
|
@@ -60929,7 +60938,7 @@ import_main.default.config({
|
|
|
60929
60938
|
quiet: true,
|
|
60930
60939
|
ignore: ["MISSING_ENV_FILE"]
|
|
60931
60940
|
});
|
|
60932
|
-
const packageVersion = "1.13.
|
|
60941
|
+
const packageVersion = "1.13.205";
|
|
60933
60942
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
60934
60943
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
60935
60944
|
function resolvePublicUrls() {
|
|
@@ -61049,4 +61058,4 @@ function bootstrapServer(options = {}) {
|
|
|
61049
61058
|
//#endregion
|
|
61050
61059
|
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 };
|
|
61051
61060
|
|
|
61052
|
-
//# sourceMappingURL=src-
|
|
61061
|
+
//# sourceMappingURL=src-Dpk6suP9.js.map
|