@togglhq/mcp 1.13.67 → 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-Cl-sFqqP.js → src-DxCDkgcp.js} +255 -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,43 @@ 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
|
+
}
|
|
42589
|
+
//#endregion
|
|
42590
|
+
//#region ../focus-queries/dist/archived-projects/requests.ts
|
|
42591
|
+
async function getArchivedProjectsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, client_id } = {}, signal) {
|
|
42592
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects`, {
|
|
42593
|
+
signal,
|
|
42594
|
+
searchParams: buildSearchParams$2({
|
|
42595
|
+
page,
|
|
42596
|
+
per_page,
|
|
42597
|
+
name,
|
|
42598
|
+
client_id
|
|
42599
|
+
})
|
|
42600
|
+
}).json();
|
|
42601
|
+
}
|
|
42602
|
+
async function getArchivedProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
42603
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}`, { signal }).json();
|
|
42604
|
+
}
|
|
42568
42605
|
//#endregion
|
|
42569
42606
|
//#region ../focus-queries/dist/attachments/requests.ts
|
|
42570
42607
|
async function getWorkspaceAttachmentStorage(httpClient, organization_id, workspace_id, signal) {
|
|
@@ -44227,6 +44264,72 @@ function callGeneratedRequest(request, args) {
|
|
|
44227
44264
|
return request(...args);
|
|
44228
44265
|
}
|
|
44229
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
|
+
},
|
|
44230
44333
|
{
|
|
44231
44334
|
id: "focus.ai.get-messages",
|
|
44232
44335
|
family: "focus",
|
|
@@ -44258,6 +44361,63 @@ const generatedFocusOperations = [
|
|
|
44258
44361
|
]));
|
|
44259
44362
|
}
|
|
44260
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
|
+
},
|
|
44261
44421
|
{
|
|
44262
44422
|
id: "focus.ai.send-ai-message",
|
|
44263
44423
|
family: "focus",
|
|
@@ -44380,6 +44540,39 @@ const generatedFocusOperations = [
|
|
|
44380
44540
|
]));
|
|
44381
44541
|
}
|
|
44382
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
|
+
},
|
|
44383
44576
|
{
|
|
44384
44577
|
id: "focus.alerts.create",
|
|
44385
44578
|
family: "focus",
|
|
@@ -44485,6 +44678,65 @@ const generatedFocusOperations = [
|
|
|
44485
44678
|
return client.partialUpdateAlert(data.alert_id, data.payload ?? data.data ?? data);
|
|
44486
44679
|
}
|
|
44487
44680
|
},
|
|
44681
|
+
{
|
|
44682
|
+
id: "focus.archived-projects.get",
|
|
44683
|
+
family: "focus",
|
|
44684
|
+
resource: "archived-projects",
|
|
44685
|
+
action: "get",
|
|
44686
|
+
title: "Get Archived Projects",
|
|
44687
|
+
description: "Get Archived Projects.",
|
|
44688
|
+
safety: "read",
|
|
44689
|
+
destructive: false,
|
|
44690
|
+
cli: {
|
|
44691
|
+
group: ["archived-projects"],
|
|
44692
|
+
command: "get",
|
|
44693
|
+
interactive: "available"
|
|
44694
|
+
},
|
|
44695
|
+
mcp: { entityTool: "archived-projects" },
|
|
44696
|
+
inputSchema: /* @__PURE__ */ looseObject({ project_id: /* @__PURE__ */ number$2() }),
|
|
44697
|
+
execute: (input, { client }) => {
|
|
44698
|
+
const data = input;
|
|
44699
|
+
return client.runGeneratedRequest("getArchivedProject", () => callGeneratedRequest(getArchivedProject, [
|
|
44700
|
+
client.httpClient,
|
|
44701
|
+
client.organizationId,
|
|
44702
|
+
client.workspaceIdNumber,
|
|
44703
|
+
data.project_id,
|
|
44704
|
+
void 0
|
|
44705
|
+
]));
|
|
44706
|
+
}
|
|
44707
|
+
},
|
|
44708
|
+
{
|
|
44709
|
+
id: "focus.archived-projects.get-classic",
|
|
44710
|
+
family: "focus",
|
|
44711
|
+
resource: "archived-projects",
|
|
44712
|
+
action: "get-classic",
|
|
44713
|
+
title: "Get Classic Archived Projects",
|
|
44714
|
+
description: "Get Classic Archived Projects.",
|
|
44715
|
+
safety: "read",
|
|
44716
|
+
destructive: false,
|
|
44717
|
+
cli: {
|
|
44718
|
+
group: ["archived-projects"],
|
|
44719
|
+
command: "get-classic",
|
|
44720
|
+
interactive: "hidden"
|
|
44721
|
+
},
|
|
44722
|
+
mcp: { entityTool: "archived-projects" },
|
|
44723
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44724
|
+
client_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
44725
|
+
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
44726
|
+
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
44727
|
+
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
44728
|
+
}),
|
|
44729
|
+
execute: (input, { client }) => {
|
|
44730
|
+
const data = input;
|
|
44731
|
+
return client.runGeneratedRequest("getArchivedProjectsClassic", () => callGeneratedRequest(getArchivedProjectsClassic, [
|
|
44732
|
+
client.httpClient,
|
|
44733
|
+
client.organizationId,
|
|
44734
|
+
client.workspaceIdNumber,
|
|
44735
|
+
data,
|
|
44736
|
+
void 0
|
|
44737
|
+
]));
|
|
44738
|
+
}
|
|
44739
|
+
},
|
|
44488
44740
|
{
|
|
44489
44741
|
id: "focus.attachments.get-workspace-attachment-storage",
|
|
44490
44742
|
family: "focus",
|
|
@@ -57619,7 +57871,7 @@ function registerWorkspaceTools(server) {
|
|
|
57619
57871
|
//#region src/package-version.ts
|
|
57620
57872
|
function mcpPackageVersion() {
|
|
57621
57873
|
try {
|
|
57622
|
-
return "1.13.
|
|
57874
|
+
return "1.13.69";
|
|
57623
57875
|
} catch {
|
|
57624
57876
|
return "unknown";
|
|
57625
57877
|
}
|
|
@@ -57800,7 +58052,7 @@ import_main.default.config({
|
|
|
57800
58052
|
quiet: true,
|
|
57801
58053
|
ignore: ["MISSING_ENV_FILE"]
|
|
57802
58054
|
});
|
|
57803
|
-
const packageVersion = "1.13.
|
|
58055
|
+
const packageVersion = "1.13.69";
|
|
57804
58056
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
57805
58057
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
57806
58058
|
function resolvePublicUrls() {
|
|
@@ -57920,4 +58172,4 @@ function bootstrapServer(options = {}) {
|
|
|
57920
58172
|
//#endregion
|
|
57921
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 };
|
|
57922
58174
|
|
|
57923
|
-
//# sourceMappingURL=src-
|
|
58175
|
+
//# sourceMappingURL=src-DxCDkgcp.js.map
|