@togglhq/mcp 1.13.70 → 1.13.72
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-B5XrdYdH.js → src-SWoQ7LOL.js} +18 -18
- 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-SWoQ7LOL.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.72";
|
|
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-SWoQ7LOL.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -38486,7 +38486,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38486
38486
|
]))
|
|
38487
38487
|
});
|
|
38488
38488
|
//#endregion
|
|
38489
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38489
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.253_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_f06bac96af8749b5d3e6c878356bbc8b/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38490
38490
|
async function getInvitations(httpClient, signal) {
|
|
38491
38491
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38492
38492
|
}
|
|
@@ -38503,7 +38503,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38503
38503
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38504
38504
|
}
|
|
38505
38505
|
//#endregion
|
|
38506
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38506
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.253_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_f06bac96af8749b5d3e6c878356bbc8b/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38507
38507
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38508
38508
|
const searchParams = new URLSearchParams();
|
|
38509
38509
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38515,7 +38515,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38515
38515
|
return searchParams;
|
|
38516
38516
|
}
|
|
38517
38517
|
//#endregion
|
|
38518
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38518
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.253_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_f06bac96af8749b5d3e6c878356bbc8b/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38519
38519
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38520
38520
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38521
38521
|
}
|
|
@@ -38529,7 +38529,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38529
38529
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38530
38530
|
}
|
|
38531
38531
|
//#endregion
|
|
38532
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38532
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.253_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_f06bac96af8749b5d3e6c878356bbc8b/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38533
38533
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38534
38534
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38535
38535
|
}
|
|
@@ -38549,7 +38549,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38549
38549
|
});
|
|
38550
38550
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38551
38551
|
//#endregion
|
|
38552
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38552
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.253_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_f06bac96af8749b5d3e6c878356bbc8b/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38553
38553
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38554
38554
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38555
38555
|
signal,
|
|
@@ -38560,12 +38560,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38560
38560
|
})).json();
|
|
38561
38561
|
}
|
|
38562
38562
|
//#endregion
|
|
38563
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38563
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.253_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_f06bac96af8749b5d3e6c878356bbc8b/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38564
38564
|
async function getStatus(httpClient, signal) {
|
|
38565
38565
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38566
38566
|
}
|
|
38567
38567
|
//#endregion
|
|
38568
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38568
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.253_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_f06bac96af8749b5d3e6c878356bbc8b/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38569
38569
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38570
38570
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38571
38571
|
signal,
|
|
@@ -38593,7 +38593,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38593
38593
|
return response.json();
|
|
38594
38594
|
}
|
|
38595
38595
|
//#endregion
|
|
38596
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38596
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.253_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_f06bac96af8749b5d3e6c878356bbc8b/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38597
38597
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38598
38598
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38599
38599
|
}
|
|
@@ -42560,34 +42560,34 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
|
|
|
42560
42560
|
//#endregion
|
|
42561
42561
|
//#region ../focus-queries/dist/ai/requests.ts
|
|
42562
42562
|
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit } = {}, signal) {
|
|
42563
|
-
return await httpClient.get(`
|
|
42563
|
+
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
42564
42564
|
signal,
|
|
42565
42565
|
searchParams: buildSearchParams$2({ limit })
|
|
42566
42566
|
}).json();
|
|
42567
42567
|
}
|
|
42568
42568
|
async function sendAiMessage(httpClient, organization_id, workspace_id, conversation_id, data, signal) {
|
|
42569
|
-
return await httpClient.post(`
|
|
42569
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
42570
42570
|
signal,
|
|
42571
42571
|
json: data
|
|
42572
42572
|
}).json();
|
|
42573
42573
|
}
|
|
42574
42574
|
async function applyAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
42575
|
-
return await httpClient.post(`
|
|
42575
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, { signal }).json();
|
|
42576
42576
|
}
|
|
42577
42577
|
async function discardAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
42578
|
-
return await httpClient.post(`
|
|
42578
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, { signal }).json();
|
|
42579
42579
|
}
|
|
42580
42580
|
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
42581
|
-
return await httpClient.post(`
|
|
42581
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal }).json();
|
|
42582
42582
|
}
|
|
42583
42583
|
async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
|
|
42584
|
-
return await httpClient.get(`
|
|
42584
|
+
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
42585
42585
|
signal,
|
|
42586
42586
|
searchParams: buildSearchParams$2({ q })
|
|
42587
42587
|
}).json();
|
|
42588
42588
|
}
|
|
42589
42589
|
async function runAiView(httpClient, organization_id, workspace_id, data, signal) {
|
|
42590
|
-
return await httpClient.post(`
|
|
42590
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
42591
42591
|
signal,
|
|
42592
42592
|
json: data
|
|
42593
42593
|
}).json();
|
|
@@ -57931,7 +57931,7 @@ function registerWorkspaceTools(server) {
|
|
|
57931
57931
|
//#region src/package-version.ts
|
|
57932
57932
|
function mcpPackageVersion() {
|
|
57933
57933
|
try {
|
|
57934
|
-
return "1.13.
|
|
57934
|
+
return "1.13.72";
|
|
57935
57935
|
} catch {
|
|
57936
57936
|
return "unknown";
|
|
57937
57937
|
}
|
|
@@ -58112,7 +58112,7 @@ import_main.default.config({
|
|
|
58112
58112
|
quiet: true,
|
|
58113
58113
|
ignore: ["MISSING_ENV_FILE"]
|
|
58114
58114
|
});
|
|
58115
|
-
const packageVersion = "1.13.
|
|
58115
|
+
const packageVersion = "1.13.72";
|
|
58116
58116
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
58117
58117
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
58118
58118
|
function resolvePublicUrls() {
|
|
@@ -58232,4 +58232,4 @@ function bootstrapServer(options = {}) {
|
|
|
58232
58232
|
//#endregion
|
|
58233
58233
|
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 };
|
|
58234
58234
|
|
|
58235
|
-
//# sourceMappingURL=src-
|
|
58235
|
+
//# sourceMappingURL=src-SWoQ7LOL.js.map
|