@togglhq/mcp 1.13.188 → 1.13.190
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-BmLgBl8c.js → src-B_uZ9B5q.js} +70 -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-B_uZ9B5q.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.190";
|
|
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-B_uZ9B5q.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -38667,7 +38667,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38667
38667
|
]))
|
|
38668
38668
|
});
|
|
38669
38669
|
//#endregion
|
|
38670
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38670
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.317_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_fb87d8d7a9794668d872ee6e9ebb6865/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38671
38671
|
async function getInvitations(httpClient, signal) {
|
|
38672
38672
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38673
38673
|
}
|
|
@@ -38684,7 +38684,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38684
38684
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38685
38685
|
}
|
|
38686
38686
|
//#endregion
|
|
38687
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38687
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.317_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_fb87d8d7a9794668d872ee6e9ebb6865/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38688
38688
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38689
38689
|
const searchParams = new URLSearchParams();
|
|
38690
38690
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38696,7 +38696,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38696
38696
|
return searchParams;
|
|
38697
38697
|
}
|
|
38698
38698
|
//#endregion
|
|
38699
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38699
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.317_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_fb87d8d7a9794668d872ee6e9ebb6865/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38700
38700
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38701
38701
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38702
38702
|
}
|
|
@@ -38711,7 +38711,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38711
38711
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38712
38712
|
}
|
|
38713
38713
|
//#endregion
|
|
38714
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38714
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.317_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_fb87d8d7a9794668d872ee6e9ebb6865/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38715
38715
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38716
38716
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38717
38717
|
}
|
|
@@ -38731,7 +38731,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38731
38731
|
});
|
|
38732
38732
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38733
38733
|
//#endregion
|
|
38734
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38734
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.317_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_fb87d8d7a9794668d872ee6e9ebb6865/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38735
38735
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38736
38736
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38737
38737
|
signal,
|
|
@@ -38742,12 +38742,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38742
38742
|
})).json();
|
|
38743
38743
|
}
|
|
38744
38744
|
//#endregion
|
|
38745
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38745
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.317_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_fb87d8d7a9794668d872ee6e9ebb6865/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38746
38746
|
async function getStatus(httpClient, signal) {
|
|
38747
38747
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38748
38748
|
}
|
|
38749
38749
|
//#endregion
|
|
38750
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38750
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.317_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_fb87d8d7a9794668d872ee6e9ebb6865/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38751
38751
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38752
38752
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38753
38753
|
signal,
|
|
@@ -38775,7 +38775,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38775
38775
|
return response.json();
|
|
38776
38776
|
}
|
|
38777
38777
|
//#endregion
|
|
38778
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38778
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.317_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_fb87d8d7a9794668d872ee6e9ebb6865/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38779
38779
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38780
38780
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38781
38781
|
}
|
|
@@ -43066,6 +43066,9 @@ async function connectAiSource(httpClient, organization_id, workspace_id, source
|
|
|
43066
43066
|
json: data
|
|
43067
43067
|
})).json();
|
|
43068
43068
|
}
|
|
43069
|
+
async function getAiUsage(httpClient, organization_id, workspace_id, signal) {
|
|
43070
|
+
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/usage`, { signal })).json();
|
|
43071
|
+
}
|
|
43069
43072
|
async function runAiView(httpClient, organization_id, workspace_id, data, signal) {
|
|
43070
43073
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
43071
43074
|
signal,
|
|
@@ -43467,6 +43470,12 @@ async function deleteCustomFieldOption(httpClient, organization_id, workspace_id
|
|
|
43467
43470
|
if ([204, 205].includes(response.status)) return null;
|
|
43468
43471
|
return response.json();
|
|
43469
43472
|
}
|
|
43473
|
+
async function bulkPatchUserCustomFieldValues(httpClient, organization_id, workspace_id, data, signal) {
|
|
43474
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/users/custom-field-values/bulk`, {
|
|
43475
|
+
signal,
|
|
43476
|
+
json: data
|
|
43477
|
+
})).json();
|
|
43478
|
+
}
|
|
43470
43479
|
async function patchUserCustomFieldValues(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
43471
43480
|
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/users/${user_id}/custom-field-values`, {
|
|
43472
43481
|
signal,
|
|
@@ -45373,6 +45382,29 @@ const generatedFocusOperations = [
|
|
|
45373
45382
|
void 0
|
|
45374
45383
|
]))
|
|
45375
45384
|
},
|
|
45385
|
+
{
|
|
45386
|
+
id: "focus.ai.get-usage",
|
|
45387
|
+
family: "focus",
|
|
45388
|
+
resource: "ai",
|
|
45389
|
+
action: "get-usage",
|
|
45390
|
+
title: "Get Usage Ai",
|
|
45391
|
+
description: "Get Usage Ai.",
|
|
45392
|
+
safety: "read",
|
|
45393
|
+
destructive: false,
|
|
45394
|
+
cli: {
|
|
45395
|
+
group: ["ai"],
|
|
45396
|
+
command: "get-usage",
|
|
45397
|
+
interactive: "hidden"
|
|
45398
|
+
},
|
|
45399
|
+
mcp: { entityTool: "ai" },
|
|
45400
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
45401
|
+
execute: (_input, { client }) => client.runGeneratedRequest("getAiUsage", () => callGeneratedRequest(getAiUsage, [
|
|
45402
|
+
client.httpClient,
|
|
45403
|
+
client.organizationId,
|
|
45404
|
+
client.workspaceIdNumber,
|
|
45405
|
+
void 0
|
|
45406
|
+
]))
|
|
45407
|
+
},
|
|
45376
45408
|
{
|
|
45377
45409
|
id: "focus.ai.next-ai-actions",
|
|
45378
45410
|
family: "focus",
|
|
@@ -46552,6 +46584,33 @@ const generatedFocusOperations = [
|
|
|
46552
46584
|
]));
|
|
46553
46585
|
}
|
|
46554
46586
|
},
|
|
46587
|
+
{
|
|
46588
|
+
id: "focus.custom-fields.bulk-patch-user-custom-field-values",
|
|
46589
|
+
family: "focus",
|
|
46590
|
+
resource: "custom-fields",
|
|
46591
|
+
action: "bulk-patch-user-custom-field-values",
|
|
46592
|
+
title: "Bulk Patch User Custom Field Values Custom Fields",
|
|
46593
|
+
description: "Bulk Patch User Custom Field Values Custom Fields.",
|
|
46594
|
+
safety: "update",
|
|
46595
|
+
destructive: false,
|
|
46596
|
+
cli: {
|
|
46597
|
+
group: ["custom-fields", "bulk"],
|
|
46598
|
+
command: "patch-user-custom-field-values",
|
|
46599
|
+
interactive: "default"
|
|
46600
|
+
},
|
|
46601
|
+
mcp: { entityTool: "custom-fields" },
|
|
46602
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
|
|
46603
|
+
execute: (input, { client }) => {
|
|
46604
|
+
const data = input;
|
|
46605
|
+
return client.runGeneratedRequest("bulkPatchUserCustomFieldValues", () => callGeneratedRequest(bulkPatchUserCustomFieldValues, [
|
|
46606
|
+
client.httpClient,
|
|
46607
|
+
client.organizationId,
|
|
46608
|
+
client.workspaceIdNumber,
|
|
46609
|
+
data.payload ?? data.data ?? data,
|
|
46610
|
+
void 0
|
|
46611
|
+
]));
|
|
46612
|
+
}
|
|
46613
|
+
},
|
|
46555
46614
|
{
|
|
46556
46615
|
id: "focus.custom-fields.create",
|
|
46557
46616
|
family: "focus",
|
|
@@ -59670,7 +59729,7 @@ function registerWorkspaceTools(server) {
|
|
|
59670
59729
|
//#region src/package-version.ts
|
|
59671
59730
|
function mcpPackageVersion() {
|
|
59672
59731
|
try {
|
|
59673
|
-
return "1.13.
|
|
59732
|
+
return "1.13.190";
|
|
59674
59733
|
} catch {
|
|
59675
59734
|
return "unknown";
|
|
59676
59735
|
}
|
|
@@ -59851,7 +59910,7 @@ import_main.default.config({
|
|
|
59851
59910
|
quiet: true,
|
|
59852
59911
|
ignore: ["MISSING_ENV_FILE"]
|
|
59853
59912
|
});
|
|
59854
|
-
const packageVersion = "1.13.
|
|
59913
|
+
const packageVersion = "1.13.190";
|
|
59855
59914
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
59856
59915
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
59857
59916
|
function resolvePublicUrls() {
|
|
@@ -59971,4 +60030,4 @@ function bootstrapServer(options = {}) {
|
|
|
59971
60030
|
//#endregion
|
|
59972
60031
|
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 };
|
|
59973
60032
|
|
|
59974
|
-
//# sourceMappingURL=src-
|
|
60033
|
+
//# sourceMappingURL=src-B_uZ9B5q.js.map
|