@togglhq/mcp 1.13.146 → 1.13.148
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-xPTP-7Ad.js → src-CvuHzRT6.js} +83 -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-CvuHzRT6.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.148";
|
|
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-CvuHzRT6.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -38538,7 +38538,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38538
38538
|
]))
|
|
38539
38539
|
});
|
|
38540
38540
|
//#endregion
|
|
38541
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38541
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.298_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_73bb15fa6335af5eea6f87330fa9ba8a/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38542
38542
|
async function getInvitations(httpClient, signal) {
|
|
38543
38543
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38544
38544
|
}
|
|
@@ -38555,7 +38555,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38555
38555
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38556
38556
|
}
|
|
38557
38557
|
//#endregion
|
|
38558
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38558
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.298_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_73bb15fa6335af5eea6f87330fa9ba8a/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38559
38559
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38560
38560
|
const searchParams = new URLSearchParams();
|
|
38561
38561
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38567,7 +38567,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38567
38567
|
return searchParams;
|
|
38568
38568
|
}
|
|
38569
38569
|
//#endregion
|
|
38570
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38570
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.298_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_73bb15fa6335af5eea6f87330fa9ba8a/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38571
38571
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38572
38572
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38573
38573
|
}
|
|
@@ -38582,7 +38582,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38582
38582
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38583
38583
|
}
|
|
38584
38584
|
//#endregion
|
|
38585
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38585
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.298_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_73bb15fa6335af5eea6f87330fa9ba8a/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38586
38586
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38587
38587
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38588
38588
|
}
|
|
@@ -38602,7 +38602,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38602
38602
|
});
|
|
38603
38603
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38604
38604
|
//#endregion
|
|
38605
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38605
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.298_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_73bb15fa6335af5eea6f87330fa9ba8a/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38606
38606
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38607
38607
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38608
38608
|
signal,
|
|
@@ -38613,12 +38613,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38613
38613
|
})).json();
|
|
38614
38614
|
}
|
|
38615
38615
|
//#endregion
|
|
38616
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38616
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.298_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_73bb15fa6335af5eea6f87330fa9ba8a/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38617
38617
|
async function getStatus(httpClient, signal) {
|
|
38618
38618
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38619
38619
|
}
|
|
38620
38620
|
//#endregion
|
|
38621
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38621
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.298_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_73bb15fa6335af5eea6f87330fa9ba8a/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38622
38622
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38623
38623
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38624
38624
|
signal,
|
|
@@ -38646,7 +38646,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38646
38646
|
return response.json();
|
|
38647
38647
|
}
|
|
38648
38648
|
//#endregion
|
|
38649
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38649
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.298_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_73bb15fa6335af5eea6f87330fa9ba8a/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38650
38650
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38651
38651
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38652
38652
|
}
|
|
@@ -42846,6 +42846,15 @@ async function getAiConversations(httpClient, organization_id, workspace_id, { s
|
|
|
42846
42846
|
})
|
|
42847
42847
|
}).json();
|
|
42848
42848
|
}
|
|
42849
|
+
async function uploadAiAttachment(httpClient, organization_id, workspace_id, conversation_id, file, signal) {
|
|
42850
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/attachments`, {
|
|
42851
|
+
signal,
|
|
42852
|
+
body: toFormData({ file })
|
|
42853
|
+
}).json();
|
|
42854
|
+
}
|
|
42855
|
+
async function removeAiAttachment(httpClient, organization_id, workspace_id, conversation_id, attachment_id, signal) {
|
|
42856
|
+
return await httpClient.delete(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/attachments/${attachment_id}`, { signal }).json();
|
|
42857
|
+
}
|
|
42849
42858
|
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit } = {}, signal) {
|
|
42850
42859
|
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
42851
42860
|
signal,
|
|
@@ -45125,6 +45134,37 @@ const generatedFocusOperations = [
|
|
|
45125
45134
|
]));
|
|
45126
45135
|
}
|
|
45127
45136
|
},
|
|
45137
|
+
{
|
|
45138
|
+
id: "focus.ai.remove-ai-attachment",
|
|
45139
|
+
family: "focus",
|
|
45140
|
+
resource: "ai",
|
|
45141
|
+
action: "remove-ai-attachment",
|
|
45142
|
+
title: "Remove Ai Attachment Ai",
|
|
45143
|
+
description: "Remove Ai Attachment Ai.",
|
|
45144
|
+
safety: "delete",
|
|
45145
|
+
destructive: true,
|
|
45146
|
+
cli: {
|
|
45147
|
+
group: ["ai"],
|
|
45148
|
+
command: "remove-ai-attachment",
|
|
45149
|
+
interactive: "default"
|
|
45150
|
+
},
|
|
45151
|
+
mcp: { entityTool: "ai" },
|
|
45152
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
45153
|
+
attachment_id: /* @__PURE__ */ string$1(),
|
|
45154
|
+
conversation_id: /* @__PURE__ */ string$1()
|
|
45155
|
+
}),
|
|
45156
|
+
execute: (input, { client }) => {
|
|
45157
|
+
const data = input;
|
|
45158
|
+
return client.runGeneratedRequest("removeAiAttachment", () => callGeneratedRequest(removeAiAttachment, [
|
|
45159
|
+
client.httpClient,
|
|
45160
|
+
client.organizationId,
|
|
45161
|
+
client.workspaceIdNumber,
|
|
45162
|
+
data.conversation_id,
|
|
45163
|
+
data.attachment_id,
|
|
45164
|
+
void 0
|
|
45165
|
+
]));
|
|
45166
|
+
}
|
|
45167
|
+
},
|
|
45128
45168
|
{
|
|
45129
45169
|
id: "focus.ai.run-ai-view",
|
|
45130
45170
|
family: "focus",
|
|
@@ -45201,6 +45241,7 @@ const generatedFocusOperations = [
|
|
|
45201
45241
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
45202
45242
|
payload: /* @__PURE__ */ looseObject({
|
|
45203
45243
|
text: /* @__PURE__ */ string$1(),
|
|
45244
|
+
attachment_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ string$1())),
|
|
45204
45245
|
page_context: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
45205
45246
|
page: /* @__PURE__ */ string$1(),
|
|
45206
45247
|
version: /* @__PURE__ */ number$2(),
|
|
@@ -45337,6 +45378,37 @@ const generatedFocusOperations = [
|
|
|
45337
45378
|
]));
|
|
45338
45379
|
}
|
|
45339
45380
|
},
|
|
45381
|
+
{
|
|
45382
|
+
id: "focus.ai.upload-ai-attachment",
|
|
45383
|
+
family: "focus",
|
|
45384
|
+
resource: "ai",
|
|
45385
|
+
action: "upload-ai-attachment",
|
|
45386
|
+
title: "Upload Ai Attachment Ai",
|
|
45387
|
+
description: "Upload Ai Attachment Ai.",
|
|
45388
|
+
safety: "update",
|
|
45389
|
+
destructive: false,
|
|
45390
|
+
cli: {
|
|
45391
|
+
group: ["ai"],
|
|
45392
|
+
command: "upload-ai-attachment",
|
|
45393
|
+
interactive: "hidden"
|
|
45394
|
+
},
|
|
45395
|
+
mcp: { entityTool: "ai" },
|
|
45396
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
45397
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
45398
|
+
file: /* @__PURE__ */ unknown$1()
|
|
45399
|
+
}),
|
|
45400
|
+
execute: (input, { client }) => {
|
|
45401
|
+
const data = input;
|
|
45402
|
+
return client.runGeneratedRequest("uploadAiAttachment", () => callGeneratedRequest(uploadAiAttachment, [
|
|
45403
|
+
client.httpClient,
|
|
45404
|
+
client.organizationId,
|
|
45405
|
+
client.workspaceIdNumber,
|
|
45406
|
+
data.conversation_id,
|
|
45407
|
+
data.file,
|
|
45408
|
+
void 0
|
|
45409
|
+
]));
|
|
45410
|
+
}
|
|
45411
|
+
},
|
|
45340
45412
|
{
|
|
45341
45413
|
id: "focus.alerts.create",
|
|
45342
45414
|
family: "focus",
|
|
@@ -59232,7 +59304,7 @@ function registerWorkspaceTools(server) {
|
|
|
59232
59304
|
//#region src/package-version.ts
|
|
59233
59305
|
function mcpPackageVersion() {
|
|
59234
59306
|
try {
|
|
59235
|
-
return "1.13.
|
|
59307
|
+
return "1.13.148";
|
|
59236
59308
|
} catch {
|
|
59237
59309
|
return "unknown";
|
|
59238
59310
|
}
|
|
@@ -59413,7 +59485,7 @@ import_main.default.config({
|
|
|
59413
59485
|
quiet: true,
|
|
59414
59486
|
ignore: ["MISSING_ENV_FILE"]
|
|
59415
59487
|
});
|
|
59416
|
-
const packageVersion = "1.13.
|
|
59488
|
+
const packageVersion = "1.13.148";
|
|
59417
59489
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
59418
59490
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
59419
59491
|
function resolvePublicUrls() {
|
|
@@ -59533,4 +59605,4 @@ function bootstrapServer(options = {}) {
|
|
|
59533
59605
|
//#endregion
|
|
59534
59606
|
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 };
|
|
59535
59607
|
|
|
59536
|
-
//# sourceMappingURL=src-
|
|
59608
|
+
//# sourceMappingURL=src-CvuHzRT6.js.map
|