@togglhq/mcp 1.13.22 → 1.13.24
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-DavExieV.js → src-BZSMoXOl.js} +171 -8
- 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-BZSMoXOl.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.24";
|
|
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-BZSMoXOl.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -37593,7 +37593,7 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
37593
37593
|
}
|
|
37594
37594
|
//#endregion
|
|
37595
37595
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
37596
|
-
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, task_occurrence_window_date, task_occurrence_window_days, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id,
|
|
37596
|
+
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, task_occurrence_window_date, task_occurrence_window_days, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
|
|
37597
37597
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37598
37598
|
signal,
|
|
37599
37599
|
searchParams: buildSearchParams$2({
|
|
@@ -37623,7 +37623,6 @@ async function getProjectsClassic(httpClient, organization_id, workspace_id, { m
|
|
|
37623
37623
|
client_id,
|
|
37624
37624
|
creator_id,
|
|
37625
37625
|
tag_id,
|
|
37626
|
-
assignee_user_id,
|
|
37627
37626
|
project_id,
|
|
37628
37627
|
user_id,
|
|
37629
37628
|
only_me,
|
|
@@ -42509,6 +42508,20 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
|
|
|
42509
42508
|
return [...messages.slice(0, included), `(+${messages.length - included} more)`].join("; ");
|
|
42510
42509
|
}
|
|
42511
42510
|
//#endregion
|
|
42511
|
+
//#region ../focus-queries/dist/ai/requests.ts
|
|
42512
|
+
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit } = {}, signal) {
|
|
42513
|
+
return await httpClient.get(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
42514
|
+
signal,
|
|
42515
|
+
searchParams: buildSearchParams$2({ limit })
|
|
42516
|
+
}).json();
|
|
42517
|
+
}
|
|
42518
|
+
async function sendAiMessage(httpClient, organization_id, workspace_id, conversation_id, data, signal) {
|
|
42519
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
42520
|
+
signal,
|
|
42521
|
+
json: data
|
|
42522
|
+
}).json();
|
|
42523
|
+
}
|
|
42524
|
+
//#endregion
|
|
42512
42525
|
//#region ../focus-queries/dist/attachments/requests.ts
|
|
42513
42526
|
async function getWorkspaceAttachmentStorage(httpClient, organization_id, workspace_id, signal) {
|
|
42514
42527
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/attachments/storage`, { signal }).json();
|
|
@@ -43087,7 +43100,7 @@ async function restoreMilestone(httpClient, workspace_id, milestone_id, signal)
|
|
|
43087
43100
|
}
|
|
43088
43101
|
//#endregion
|
|
43089
43102
|
//#region ../focus-queries/dist/project-groups/requests.ts
|
|
43090
|
-
async function getProjectGroupsClassic(httpClient, organization_id, workspace_id, group, { page, per_page, order_by, project_order_by, projects_per_group, include_group_totals, include_unassigned, archived, completed, private: private_, name, client_id, creator_id, tag_id, parent_project_id,
|
|
43103
|
+
async function getProjectGroupsClassic(httpClient, organization_id, workspace_id, group, { page, per_page, order_by, project_order_by, projects_per_group, include_group_totals, include_unassigned, archived, completed, private: private_, name, client_id, creator_id, tag_id, parent_project_id, project_id, start_date, end_date, user_id, only_me, include_drafts, include_recurring_series, cf_filter } = {}, signal) {
|
|
43091
43104
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
|
|
43092
43105
|
signal,
|
|
43093
43106
|
searchParams: buildSearchParams$2({
|
|
@@ -43106,7 +43119,6 @@ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id
|
|
|
43106
43119
|
creator_id,
|
|
43107
43120
|
tag_id,
|
|
43108
43121
|
parent_project_id,
|
|
43109
|
-
assignee_user_id,
|
|
43110
43122
|
project_id,
|
|
43111
43123
|
start_date,
|
|
43112
43124
|
end_date,
|
|
@@ -44101,6 +44113,158 @@ function callGeneratedRequest(request, args) {
|
|
|
44101
44113
|
return request(...args);
|
|
44102
44114
|
}
|
|
44103
44115
|
const generatedFocusOperations = [
|
|
44116
|
+
{
|
|
44117
|
+
id: "focus.ai.get-messages",
|
|
44118
|
+
family: "focus",
|
|
44119
|
+
resource: "ai",
|
|
44120
|
+
action: "get-messages",
|
|
44121
|
+
title: "Get Messages Ai",
|
|
44122
|
+
description: "Get Messages Ai.",
|
|
44123
|
+
safety: "read",
|
|
44124
|
+
destructive: false,
|
|
44125
|
+
cli: {
|
|
44126
|
+
group: ["ai"],
|
|
44127
|
+
command: "get-messages",
|
|
44128
|
+
interactive: "hidden"
|
|
44129
|
+
},
|
|
44130
|
+
mcp: { entityTool: "ai" },
|
|
44131
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44132
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
44133
|
+
limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
44134
|
+
}),
|
|
44135
|
+
execute: (input, { client }) => {
|
|
44136
|
+
const data = input;
|
|
44137
|
+
return client.runGeneratedRequest("getAiMessages", () => callGeneratedRequest(getAiMessages, [
|
|
44138
|
+
client.httpClient,
|
|
44139
|
+
client.organizationId,
|
|
44140
|
+
client.workspaceIdNumber,
|
|
44141
|
+
data.conversation_id,
|
|
44142
|
+
data,
|
|
44143
|
+
void 0
|
|
44144
|
+
]));
|
|
44145
|
+
}
|
|
44146
|
+
},
|
|
44147
|
+
{
|
|
44148
|
+
id: "focus.ai.send-ai-message",
|
|
44149
|
+
family: "focus",
|
|
44150
|
+
resource: "ai",
|
|
44151
|
+
action: "send-ai-message",
|
|
44152
|
+
title: "Send Ai Message Ai",
|
|
44153
|
+
description: "Send Ai Message Ai.",
|
|
44154
|
+
safety: "update",
|
|
44155
|
+
destructive: false,
|
|
44156
|
+
cli: {
|
|
44157
|
+
group: ["ai"],
|
|
44158
|
+
command: "send-ai-message",
|
|
44159
|
+
interactive: "hidden"
|
|
44160
|
+
},
|
|
44161
|
+
mcp: { entityTool: "ai" },
|
|
44162
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44163
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
44164
|
+
payload: /* @__PURE__ */ looseObject({
|
|
44165
|
+
text: /* @__PURE__ */ string$1(),
|
|
44166
|
+
page_context: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
44167
|
+
date_range: /* @__PURE__ */ looseObject({
|
|
44168
|
+
from: /* @__PURE__ */ string$1(),
|
|
44169
|
+
preset: /* @__PURE__ */ string$1(),
|
|
44170
|
+
to: /* @__PURE__ */ string$1()
|
|
44171
|
+
}),
|
|
44172
|
+
extra: /* @__PURE__ */ unknown$1(),
|
|
44173
|
+
filters: /* @__PURE__ */ looseObject({
|
|
44174
|
+
entities: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
44175
|
+
id: /* @__PURE__ */ number$2(),
|
|
44176
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
44177
|
+
"project",
|
|
44178
|
+
"task",
|
|
44179
|
+
"client",
|
|
44180
|
+
"tag",
|
|
44181
|
+
"member",
|
|
44182
|
+
"team",
|
|
44183
|
+
"status",
|
|
44184
|
+
"time_entry"
|
|
44185
|
+
]),
|
|
44186
|
+
name: /* @__PURE__ */ string$1()
|
|
44187
|
+
})),
|
|
44188
|
+
search: /* @__PURE__ */ string$1()
|
|
44189
|
+
}),
|
|
44190
|
+
focus: /* @__PURE__ */ looseObject({
|
|
44191
|
+
id: /* @__PURE__ */ number$2(),
|
|
44192
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
44193
|
+
"project",
|
|
44194
|
+
"task",
|
|
44195
|
+
"client",
|
|
44196
|
+
"tag",
|
|
44197
|
+
"member",
|
|
44198
|
+
"team",
|
|
44199
|
+
"status",
|
|
44200
|
+
"time_entry"
|
|
44201
|
+
]),
|
|
44202
|
+
name: /* @__PURE__ */ string$1()
|
|
44203
|
+
}),
|
|
44204
|
+
groups: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
44205
|
+
items: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
44206
|
+
id: /* @__PURE__ */ number$2(),
|
|
44207
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
44208
|
+
"project",
|
|
44209
|
+
"task",
|
|
44210
|
+
"client",
|
|
44211
|
+
"tag",
|
|
44212
|
+
"member",
|
|
44213
|
+
"team",
|
|
44214
|
+
"status",
|
|
44215
|
+
"time_entry"
|
|
44216
|
+
]),
|
|
44217
|
+
name: /* @__PURE__ */ string$1()
|
|
44218
|
+
})),
|
|
44219
|
+
label: /* @__PURE__ */ string$1(),
|
|
44220
|
+
ref: /* @__PURE__ */ looseObject({
|
|
44221
|
+
id: /* @__PURE__ */ number$2(),
|
|
44222
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
44223
|
+
"project",
|
|
44224
|
+
"task",
|
|
44225
|
+
"client",
|
|
44226
|
+
"tag",
|
|
44227
|
+
"member",
|
|
44228
|
+
"team",
|
|
44229
|
+
"status",
|
|
44230
|
+
"time_entry"
|
|
44231
|
+
]),
|
|
44232
|
+
name: /* @__PURE__ */ string$1()
|
|
44233
|
+
})
|
|
44234
|
+
})),
|
|
44235
|
+
items: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
44236
|
+
id: /* @__PURE__ */ number$2(),
|
|
44237
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
44238
|
+
"project",
|
|
44239
|
+
"task",
|
|
44240
|
+
"client",
|
|
44241
|
+
"tag",
|
|
44242
|
+
"member",
|
|
44243
|
+
"team",
|
|
44244
|
+
"status",
|
|
44245
|
+
"time_entry"
|
|
44246
|
+
]),
|
|
44247
|
+
name: /* @__PURE__ */ string$1()
|
|
44248
|
+
})),
|
|
44249
|
+
page: /* @__PURE__ */ string$1(),
|
|
44250
|
+
page_label: /* @__PURE__ */ string$1(),
|
|
44251
|
+
url: /* @__PURE__ */ string$1(),
|
|
44252
|
+
version: /* @__PURE__ */ number$2()
|
|
44253
|
+
}))
|
|
44254
|
+
})
|
|
44255
|
+
}),
|
|
44256
|
+
execute: (input, { client }) => {
|
|
44257
|
+
const data = input;
|
|
44258
|
+
return client.runGeneratedRequest("sendAiMessage", () => callGeneratedRequest(sendAiMessage, [
|
|
44259
|
+
client.httpClient,
|
|
44260
|
+
client.organizationId,
|
|
44261
|
+
client.workspaceIdNumber,
|
|
44262
|
+
data.conversation_id,
|
|
44263
|
+
data.payload ?? data.data ?? data,
|
|
44264
|
+
void 0
|
|
44265
|
+
]));
|
|
44266
|
+
}
|
|
44267
|
+
},
|
|
44104
44268
|
{
|
|
44105
44269
|
id: "focus.alerts.create",
|
|
44106
44270
|
family: "focus",
|
|
@@ -46941,7 +47105,6 @@ const generatedFocusOperations = [
|
|
|
46941
47105
|
mcp: { entityTool: "projects" },
|
|
46942
47106
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
46943
47107
|
archived: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
46944
|
-
assignee_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
46945
47108
|
cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
46946
47109
|
client_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
46947
47110
|
completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -56763,7 +56926,7 @@ function registerWorkspaceTools(server) {
|
|
|
56763
56926
|
//#region src/package-version.ts
|
|
56764
56927
|
function mcpPackageVersion() {
|
|
56765
56928
|
try {
|
|
56766
|
-
return "1.13.
|
|
56929
|
+
return "1.13.24";
|
|
56767
56930
|
} catch {
|
|
56768
56931
|
return "unknown";
|
|
56769
56932
|
}
|
|
@@ -56944,7 +57107,7 @@ import_main.default.config({
|
|
|
56944
57107
|
quiet: true,
|
|
56945
57108
|
ignore: ["MISSING_ENV_FILE"]
|
|
56946
57109
|
});
|
|
56947
|
-
const packageVersion = "1.13.
|
|
57110
|
+
const packageVersion = "1.13.24";
|
|
56948
57111
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
56949
57112
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
56950
57113
|
function resolvePublicUrls() {
|
|
@@ -57064,4 +57227,4 @@ function bootstrapServer(options = {}) {
|
|
|
57064
57227
|
//#endregion
|
|
57065
57228
|
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 };
|
|
57066
57229
|
|
|
57067
|
-
//# sourceMappingURL=src-
|
|
57230
|
+
//# sourceMappingURL=src-BZSMoXOl.js.map
|