@togglhq/mcp 1.13.68 → 1.13.69
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-gYulc-AO.js → src-DxCDkgcp.js} +180 -3
- 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-DxCDkgcp.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.69";
|
|
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-DxCDkgcp.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -42565,6 +42565,27 @@ async function sendAiMessage(httpClient, organization_id, workspace_id, conversa
|
|
|
42565
42565
|
json: data
|
|
42566
42566
|
}).json();
|
|
42567
42567
|
}
|
|
42568
|
+
async function applyAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
42569
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, { signal }).json();
|
|
42570
|
+
}
|
|
42571
|
+
async function discardAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
42572
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, { signal }).json();
|
|
42573
|
+
}
|
|
42574
|
+
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
42575
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal }).json();
|
|
42576
|
+
}
|
|
42577
|
+
async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
|
|
42578
|
+
return await httpClient.get(`ai/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
42579
|
+
signal,
|
|
42580
|
+
searchParams: buildSearchParams$2({ q })
|
|
42581
|
+
}).json();
|
|
42582
|
+
}
|
|
42583
|
+
async function runAiView(httpClient, organization_id, workspace_id, data, signal) {
|
|
42584
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
42585
|
+
signal,
|
|
42586
|
+
json: data
|
|
42587
|
+
}).json();
|
|
42588
|
+
}
|
|
42568
42589
|
//#endregion
|
|
42569
42590
|
//#region ../focus-queries/dist/archived-projects/requests.ts
|
|
42570
42591
|
async function getArchivedProjectsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, client_id } = {}, signal) {
|
|
@@ -44243,6 +44264,72 @@ function callGeneratedRequest(request, args) {
|
|
|
44243
44264
|
return request(...args);
|
|
44244
44265
|
}
|
|
44245
44266
|
const generatedFocusOperations = [
|
|
44267
|
+
{
|
|
44268
|
+
id: "focus.ai.apply-ai-change",
|
|
44269
|
+
family: "focus",
|
|
44270
|
+
resource: "ai",
|
|
44271
|
+
action: "apply-ai-change",
|
|
44272
|
+
title: "Apply Ai Change Ai",
|
|
44273
|
+
description: "Apply Ai Change Ai.",
|
|
44274
|
+
safety: "update",
|
|
44275
|
+
destructive: false,
|
|
44276
|
+
cli: {
|
|
44277
|
+
group: ["ai"],
|
|
44278
|
+
command: "apply-ai-change",
|
|
44279
|
+
interactive: "default"
|
|
44280
|
+
},
|
|
44281
|
+
mcp: { entityTool: "ai" },
|
|
44282
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44283
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
44284
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
44285
|
+
view_id: /* @__PURE__ */ string$1()
|
|
44286
|
+
}),
|
|
44287
|
+
execute: (input, { client }) => {
|
|
44288
|
+
const data = input;
|
|
44289
|
+
return client.runGeneratedRequest("applyAiChange", () => callGeneratedRequest(applyAiChange, [
|
|
44290
|
+
client.httpClient,
|
|
44291
|
+
client.organizationId,
|
|
44292
|
+
client.workspaceIdNumber,
|
|
44293
|
+
data.conversation_id,
|
|
44294
|
+
data.message_id,
|
|
44295
|
+
data.view_id,
|
|
44296
|
+
void 0
|
|
44297
|
+
]));
|
|
44298
|
+
}
|
|
44299
|
+
},
|
|
44300
|
+
{
|
|
44301
|
+
id: "focus.ai.discard-ai-change",
|
|
44302
|
+
family: "focus",
|
|
44303
|
+
resource: "ai",
|
|
44304
|
+
action: "discard-ai-change",
|
|
44305
|
+
title: "Discard Ai Change Ai",
|
|
44306
|
+
description: "Discard Ai Change Ai.",
|
|
44307
|
+
safety: "update",
|
|
44308
|
+
destructive: false,
|
|
44309
|
+
cli: {
|
|
44310
|
+
group: ["ai"],
|
|
44311
|
+
command: "discard-ai-change",
|
|
44312
|
+
interactive: "default"
|
|
44313
|
+
},
|
|
44314
|
+
mcp: { entityTool: "ai" },
|
|
44315
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44316
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
44317
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
44318
|
+
view_id: /* @__PURE__ */ string$1()
|
|
44319
|
+
}),
|
|
44320
|
+
execute: (input, { client }) => {
|
|
44321
|
+
const data = input;
|
|
44322
|
+
return client.runGeneratedRequest("discardAiChange", () => callGeneratedRequest(discardAiChange, [
|
|
44323
|
+
client.httpClient,
|
|
44324
|
+
client.organizationId,
|
|
44325
|
+
client.workspaceIdNumber,
|
|
44326
|
+
data.conversation_id,
|
|
44327
|
+
data.message_id,
|
|
44328
|
+
data.view_id,
|
|
44329
|
+
void 0
|
|
44330
|
+
]));
|
|
44331
|
+
}
|
|
44332
|
+
},
|
|
44246
44333
|
{
|
|
44247
44334
|
id: "focus.ai.get-messages",
|
|
44248
44335
|
family: "focus",
|
|
@@ -44274,6 +44361,63 @@ const generatedFocusOperations = [
|
|
|
44274
44361
|
]));
|
|
44275
44362
|
}
|
|
44276
44363
|
},
|
|
44364
|
+
{
|
|
44365
|
+
id: "focus.ai.run-ai-view",
|
|
44366
|
+
family: "focus",
|
|
44367
|
+
resource: "ai",
|
|
44368
|
+
action: "run-ai-view",
|
|
44369
|
+
title: "Run Ai View Ai",
|
|
44370
|
+
description: "Run Ai View Ai.",
|
|
44371
|
+
safety: "update",
|
|
44372
|
+
destructive: false,
|
|
44373
|
+
cli: {
|
|
44374
|
+
group: ["ai"],
|
|
44375
|
+
command: "run-ai-view",
|
|
44376
|
+
interactive: "default"
|
|
44377
|
+
},
|
|
44378
|
+
mcp: { entityTool: "ai" },
|
|
44379
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
44380
|
+
input: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44381
|
+
tool: /* @__PURE__ */ string$1()
|
|
44382
|
+
}) }),
|
|
44383
|
+
execute: (input, { client }) => {
|
|
44384
|
+
const data = input;
|
|
44385
|
+
return client.runGeneratedRequest("runAiView", () => callGeneratedRequest(runAiView, [
|
|
44386
|
+
client.httpClient,
|
|
44387
|
+
client.organizationId,
|
|
44388
|
+
client.workspaceIdNumber,
|
|
44389
|
+
data.payload ?? data.data ?? data,
|
|
44390
|
+
void 0
|
|
44391
|
+
]));
|
|
44392
|
+
}
|
|
44393
|
+
},
|
|
44394
|
+
{
|
|
44395
|
+
id: "focus.ai.search",
|
|
44396
|
+
family: "focus",
|
|
44397
|
+
resource: "ai",
|
|
44398
|
+
action: "search",
|
|
44399
|
+
title: "Search Ai",
|
|
44400
|
+
description: "Search Ai.",
|
|
44401
|
+
safety: "read",
|
|
44402
|
+
destructive: false,
|
|
44403
|
+
cli: {
|
|
44404
|
+
group: ["ai"],
|
|
44405
|
+
command: "search",
|
|
44406
|
+
interactive: "hidden"
|
|
44407
|
+
},
|
|
44408
|
+
mcp: { entityTool: "ai" },
|
|
44409
|
+
inputSchema: /* @__PURE__ */ looseObject({ q: /* @__PURE__ */ unknown$1() }),
|
|
44410
|
+
execute: (input, { client }) => {
|
|
44411
|
+
const data = input;
|
|
44412
|
+
return client.runGeneratedRequest("searchAi", () => callGeneratedRequest(searchAi, [
|
|
44413
|
+
client.httpClient,
|
|
44414
|
+
client.organizationId,
|
|
44415
|
+
client.workspaceIdNumber,
|
|
44416
|
+
data,
|
|
44417
|
+
void 0
|
|
44418
|
+
]));
|
|
44419
|
+
}
|
|
44420
|
+
},
|
|
44277
44421
|
{
|
|
44278
44422
|
id: "focus.ai.send-ai-message",
|
|
44279
44423
|
family: "focus",
|
|
@@ -44396,6 +44540,39 @@ const generatedFocusOperations = [
|
|
|
44396
44540
|
]));
|
|
44397
44541
|
}
|
|
44398
44542
|
},
|
|
44543
|
+
{
|
|
44544
|
+
id: "focus.ai.undo-ai-change",
|
|
44545
|
+
family: "focus",
|
|
44546
|
+
resource: "ai",
|
|
44547
|
+
action: "undo-ai-change",
|
|
44548
|
+
title: "Undo Ai Change Ai",
|
|
44549
|
+
description: "Undo Ai Change Ai.",
|
|
44550
|
+
safety: "update",
|
|
44551
|
+
destructive: false,
|
|
44552
|
+
cli: {
|
|
44553
|
+
group: ["ai"],
|
|
44554
|
+
command: "undo-ai-change",
|
|
44555
|
+
interactive: "default"
|
|
44556
|
+
},
|
|
44557
|
+
mcp: { entityTool: "ai" },
|
|
44558
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44559
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
44560
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
44561
|
+
view_id: /* @__PURE__ */ string$1()
|
|
44562
|
+
}),
|
|
44563
|
+
execute: (input, { client }) => {
|
|
44564
|
+
const data = input;
|
|
44565
|
+
return client.runGeneratedRequest("undoAiChange", () => callGeneratedRequest(undoAiChange, [
|
|
44566
|
+
client.httpClient,
|
|
44567
|
+
client.organizationId,
|
|
44568
|
+
client.workspaceIdNumber,
|
|
44569
|
+
data.conversation_id,
|
|
44570
|
+
data.message_id,
|
|
44571
|
+
data.view_id,
|
|
44572
|
+
void 0
|
|
44573
|
+
]));
|
|
44574
|
+
}
|
|
44575
|
+
},
|
|
44399
44576
|
{
|
|
44400
44577
|
id: "focus.alerts.create",
|
|
44401
44578
|
family: "focus",
|
|
@@ -57694,7 +57871,7 @@ function registerWorkspaceTools(server) {
|
|
|
57694
57871
|
//#region src/package-version.ts
|
|
57695
57872
|
function mcpPackageVersion() {
|
|
57696
57873
|
try {
|
|
57697
|
-
return "1.13.
|
|
57874
|
+
return "1.13.69";
|
|
57698
57875
|
} catch {
|
|
57699
57876
|
return "unknown";
|
|
57700
57877
|
}
|
|
@@ -57875,7 +58052,7 @@ import_main.default.config({
|
|
|
57875
58052
|
quiet: true,
|
|
57876
58053
|
ignore: ["MISSING_ENV_FILE"]
|
|
57877
58054
|
});
|
|
57878
|
-
const packageVersion = "1.13.
|
|
58055
|
+
const packageVersion = "1.13.69";
|
|
57879
58056
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
57880
58057
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
57881
58058
|
function resolvePublicUrls() {
|
|
@@ -57995,4 +58172,4 @@ function bootstrapServer(options = {}) {
|
|
|
57995
58172
|
//#endregion
|
|
57996
58173
|
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 };
|
|
57997
58174
|
|
|
57998
|
-
//# sourceMappingURL=src-
|
|
58175
|
+
//# sourceMappingURL=src-DxCDkgcp.js.map
|