@togglhq/mcp 1.13.221 → 1.13.223
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-Co_XKN01.js → src-BPBg1XwH.js} +98 -13
- 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-BPBg1XwH.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.223";
|
|
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-BPBg1XwH.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -37545,7 +37545,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
|
|
|
37545
37545
|
})
|
|
37546
37546
|
})).json();
|
|
37547
37547
|
}
|
|
37548
|
-
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, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration, include_designations, include_shared_report_receiver, has_designations } = {}, signal) {
|
|
37548
|
+
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, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration, include_designations, include_shared_report_receiver, has_role_in_products, has_designations } = {}, signal) {
|
|
37549
37549
|
const response = await httpClient.get(`organizations/${organization_id}/users`, {
|
|
37550
37550
|
signal,
|
|
37551
37551
|
searchParams: buildSearchParams$2({
|
|
@@ -37571,6 +37571,7 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
37571
37571
|
include_calendar_integration,
|
|
37572
37572
|
include_designations,
|
|
37573
37573
|
include_shared_report_receiver,
|
|
37574
|
+
has_role_in_products,
|
|
37574
37575
|
has_designations
|
|
37575
37576
|
}, true)
|
|
37576
37577
|
});
|
|
@@ -38681,7 +38682,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38681
38682
|
]))
|
|
38682
38683
|
});
|
|
38683
38684
|
//#endregion
|
|
38684
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38685
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38685
38686
|
async function getInvitations(httpClient, signal) {
|
|
38686
38687
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38687
38688
|
}
|
|
@@ -38698,7 +38699,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38698
38699
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38699
38700
|
}
|
|
38700
38701
|
//#endregion
|
|
38701
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38702
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38702
38703
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38703
38704
|
const searchParams = new URLSearchParams();
|
|
38704
38705
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38710,7 +38711,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38710
38711
|
return searchParams;
|
|
38711
38712
|
}
|
|
38712
38713
|
//#endregion
|
|
38713
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38714
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38714
38715
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38715
38716
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38716
38717
|
}
|
|
@@ -38725,7 +38726,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38725
38726
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38726
38727
|
}
|
|
38727
38728
|
//#endregion
|
|
38728
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38729
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38729
38730
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38730
38731
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38731
38732
|
}
|
|
@@ -38745,7 +38746,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38745
38746
|
});
|
|
38746
38747
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38747
38748
|
//#endregion
|
|
38748
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38749
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38749
38750
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38750
38751
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38751
38752
|
signal,
|
|
@@ -38756,12 +38757,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38756
38757
|
})).json();
|
|
38757
38758
|
}
|
|
38758
38759
|
//#endregion
|
|
38759
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38760
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38760
38761
|
async function getStatus(httpClient, signal) {
|
|
38761
38762
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38762
38763
|
}
|
|
38763
38764
|
//#endregion
|
|
38764
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38765
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38765
38766
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38766
38767
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38767
38768
|
signal,
|
|
@@ -38789,7 +38790,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38789
38790
|
return response.json();
|
|
38790
38791
|
}
|
|
38791
38792
|
//#endregion
|
|
38792
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38793
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38793
38794
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38794
38795
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38795
38796
|
}
|
|
@@ -43060,6 +43061,24 @@ async function undoAiChange(httpClient, organization_id, workspace_id, conversat
|
|
|
43060
43061
|
searchParams: buildSearchParams$2({ product })
|
|
43061
43062
|
})).json();
|
|
43062
43063
|
}
|
|
43064
|
+
async function stopAiTurn(httpClient, organization_id, workspace_id, conversation_id, product, signal) {
|
|
43065
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/stop`, {
|
|
43066
|
+
signal,
|
|
43067
|
+
searchParams: buildSearchParams$2({ product })
|
|
43068
|
+
})).json();
|
|
43069
|
+
}
|
|
43070
|
+
async function attachAiTurn(httpClient, organization_id, workspace_id, conversation_id, { after, product, lastEventID } = {}, signal) {
|
|
43071
|
+
const response = await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/stream`, {
|
|
43072
|
+
signal,
|
|
43073
|
+
headers: { "Last-Event-ID": lastEventID },
|
|
43074
|
+
searchParams: buildSearchParams$2({
|
|
43075
|
+
after,
|
|
43076
|
+
product
|
|
43077
|
+
})
|
|
43078
|
+
});
|
|
43079
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43080
|
+
return response.json();
|
|
43081
|
+
}
|
|
43063
43082
|
async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
|
|
43064
43083
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
43065
43084
|
signal,
|
|
@@ -43639,13 +43658,14 @@ async function deleteACustomReport(httpClient, workspace_id, id, signal) {
|
|
|
43639
43658
|
}
|
|
43640
43659
|
//#endregion
|
|
43641
43660
|
//#region ../focus-queries/dist/designations/requests.ts
|
|
43642
|
-
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { designation_id, name, include_members, has_members, page, per_page, order_by } = {}, signal) {
|
|
43661
|
+
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { designation_id, name, include_members, has_role_in_products, has_members, page, per_page, order_by } = {}, signal) {
|
|
43643
43662
|
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
43644
43663
|
signal,
|
|
43645
43664
|
searchParams: buildSearchParams$2({
|
|
43646
43665
|
designation_id,
|
|
43647
43666
|
name,
|
|
43648
43667
|
include_members,
|
|
43668
|
+
has_role_in_products,
|
|
43649
43669
|
has_members,
|
|
43650
43670
|
page,
|
|
43651
43671
|
per_page,
|
|
@@ -45296,6 +45316,39 @@ const generatedFocusOperations = [
|
|
|
45296
45316
|
]));
|
|
45297
45317
|
}
|
|
45298
45318
|
},
|
|
45319
|
+
{
|
|
45320
|
+
id: "focus.ai.attach-ai-turn",
|
|
45321
|
+
family: "focus",
|
|
45322
|
+
resource: "ai",
|
|
45323
|
+
action: "attach-ai-turn",
|
|
45324
|
+
title: "Attach Ai Turn Ai",
|
|
45325
|
+
description: "Attach Ai Turn Ai.",
|
|
45326
|
+
safety: "read",
|
|
45327
|
+
destructive: false,
|
|
45328
|
+
cli: {
|
|
45329
|
+
group: ["ai"],
|
|
45330
|
+
command: "attach-ai-turn",
|
|
45331
|
+
interactive: "hidden"
|
|
45332
|
+
},
|
|
45333
|
+
mcp: { entityTool: "ai" },
|
|
45334
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
45335
|
+
after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45336
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
45337
|
+
lastEventID: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45338
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
45339
|
+
}),
|
|
45340
|
+
execute: (input, { client }) => {
|
|
45341
|
+
const data = input;
|
|
45342
|
+
return client.runGeneratedRequest("attachAiTurn", () => callGeneratedRequest(attachAiTurn, [
|
|
45343
|
+
client.httpClient,
|
|
45344
|
+
client.organizationId,
|
|
45345
|
+
client.workspaceIdNumber,
|
|
45346
|
+
data.conversation_id,
|
|
45347
|
+
data,
|
|
45348
|
+
void 0
|
|
45349
|
+
]));
|
|
45350
|
+
}
|
|
45351
|
+
},
|
|
45299
45352
|
{
|
|
45300
45353
|
id: "focus.ai.connect-ai-source",
|
|
45301
45354
|
family: "focus",
|
|
@@ -45910,6 +45963,37 @@ const generatedFocusOperations = [
|
|
|
45910
45963
|
]));
|
|
45911
45964
|
}
|
|
45912
45965
|
},
|
|
45966
|
+
{
|
|
45967
|
+
id: "focus.ai.stop-ai-turn",
|
|
45968
|
+
family: "focus",
|
|
45969
|
+
resource: "ai",
|
|
45970
|
+
action: "stop-ai-turn",
|
|
45971
|
+
title: "Stop Ai Turn Ai",
|
|
45972
|
+
description: "Stop Ai Turn Ai.",
|
|
45973
|
+
safety: "update",
|
|
45974
|
+
destructive: false,
|
|
45975
|
+
cli: {
|
|
45976
|
+
group: ["ai"],
|
|
45977
|
+
command: "stop-ai-turn",
|
|
45978
|
+
interactive: "default"
|
|
45979
|
+
},
|
|
45980
|
+
mcp: { entityTool: "ai" },
|
|
45981
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
45982
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
45983
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
45984
|
+
}),
|
|
45985
|
+
execute: (input, { client }) => {
|
|
45986
|
+
const data = input;
|
|
45987
|
+
return client.runGeneratedRequest("stopAiTurn", () => callGeneratedRequest(stopAiTurn, [
|
|
45988
|
+
client.httpClient,
|
|
45989
|
+
client.organizationId,
|
|
45990
|
+
client.workspaceIdNumber,
|
|
45991
|
+
data.conversation_id,
|
|
45992
|
+
data.product,
|
|
45993
|
+
void 0
|
|
45994
|
+
]));
|
|
45995
|
+
}
|
|
45996
|
+
},
|
|
45913
45997
|
{
|
|
45914
45998
|
id: "focus.ai.undo-ai-change",
|
|
45915
45999
|
family: "focus",
|
|
@@ -47991,6 +48075,7 @@ const generatedFocusOperations = [
|
|
|
47991
48075
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
47992
48076
|
designation_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
47993
48077
|
has_members: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
48078
|
+
has_role_in_products: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
47994
48079
|
include_members: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
47995
48080
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
47996
48081
|
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -60872,7 +60957,7 @@ function registerWorkspaceTools(server) {
|
|
|
60872
60957
|
//#region src/package-version.ts
|
|
60873
60958
|
function mcpPackageVersion() {
|
|
60874
60959
|
try {
|
|
60875
|
-
return "1.13.
|
|
60960
|
+
return "1.13.223";
|
|
60876
60961
|
} catch {
|
|
60877
60962
|
return "unknown";
|
|
60878
60963
|
}
|
|
@@ -61054,7 +61139,7 @@ import_main.default.config({
|
|
|
61054
61139
|
quiet: true,
|
|
61055
61140
|
ignore: ["MISSING_ENV_FILE"]
|
|
61056
61141
|
});
|
|
61057
|
-
const packageVersion = "1.13.
|
|
61142
|
+
const packageVersion = "1.13.223";
|
|
61058
61143
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
61059
61144
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
61060
61145
|
function resolvePublicUrls() {
|
|
@@ -61174,4 +61259,4 @@ function bootstrapServer(options = {}) {
|
|
|
61174
61259
|
//#endregion
|
|
61175
61260
|
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 };
|
|
61176
61261
|
|
|
61177
|
-
//# sourceMappingURL=src-
|
|
61262
|
+
//# sourceMappingURL=src-BPBg1XwH.js.map
|