@togglhq/mcp 1.13.297 → 1.13.299
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-CFIAQqoB.js → src-D-k2RmDK.js} +79 -19
- 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-D-k2RmDK.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.299";
|
|
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-D-k2RmDK.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -34960,6 +34960,22 @@ const AlertRuleSchema = /* @__PURE__ */ object({
|
|
|
34960
34960
|
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
34961
34961
|
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
34962
34962
|
});
|
|
34963
|
+
const DtoAggregationFilterRequestSchema = /* @__PURE__ */ object({
|
|
34964
|
+
aggregation: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ object({
|
|
34965
|
+
function: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("One of `sum`, `avg`, `min`, `max`, `count`, `array` or `array_ordered`.")),
|
|
34966
|
+
property: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Property name, e.g. `user_name` or `project_custom_field:42`; see the endpoint description for every accepted name."))
|
|
34967
|
+
}), /* @__PURE__ */ description("Aggregation whose result is filtered, as in a HAVING clause."))),
|
|
34968
|
+
conditions: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ lazy(() => DtoAggregationsFilterRequestSchema), /* @__PURE__ */ description("Nested aggregation filters, combined by an `and` / `or` operator."))),
|
|
34969
|
+
operator: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Operator such as `>`, `<=` or `is between`, or `and` / `or` to combine `conditions`."))),
|
|
34970
|
+
property: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The aggregation written as `function(property)`, e.g. `sum(duration)`; send it or `aggregation`, not both."))),
|
|
34971
|
+
value: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ unknown(), /* @__PURE__ */ description("Value compared against the aggregated result.")))
|
|
34972
|
+
});
|
|
34973
|
+
const DtoFilterRequestSchema = /* @__PURE__ */ object({
|
|
34974
|
+
conditions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoFilterRequestSchema))),
|
|
34975
|
+
operator: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Operator such as `=`, `in` or `is between`, or `and` / `or` to combine `conditions`."))),
|
|
34976
|
+
property: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Property name, e.g. `user_name` or `project_custom_field:42`; see the endpoint description for every accepted name."))),
|
|
34977
|
+
value: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ unknown(), /* @__PURE__ */ description("Value compared against; an array for `in`, `contains one of` and the between operators.")))
|
|
34978
|
+
});
|
|
34963
34979
|
const ClientPayloadSchema = /* @__PURE__ */ object({
|
|
34964
34980
|
name: /* @__PURE__ */ string(),
|
|
34965
34981
|
address: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), /* @__PURE__ */ description("Omit to keep the stored value on update; send null or a blank string to clear it."))),
|
|
@@ -35099,23 +35115,7 @@ const TimeEntrySchema = /* @__PURE__ */ object({
|
|
|
35099
35115
|
tracked_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35100
35116
|
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
35101
35117
|
});
|
|
35102
|
-
const DtoAggregationFilterRequestSchema = /* @__PURE__ */ object({
|
|
35103
|
-
aggregation: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ object({
|
|
35104
|
-
function: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("One of `sum`, `avg`, `min`, `max`, `count`, `array` or `array_ordered`.")),
|
|
35105
|
-
property: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Property name, e.g. `user_name` or `project_custom_field:42`; see the endpoint description for every accepted name."))
|
|
35106
|
-
}), /* @__PURE__ */ description("Aggregation whose result is filtered, as in a HAVING clause."))),
|
|
35107
|
-
conditions: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ lazy(() => DtoAggregationsFilterRequestSchema), /* @__PURE__ */ description("Nested aggregation filters, combined by an `and` / `or` operator."))),
|
|
35108
|
-
operator: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Operator such as `>`, `<=` or `is between`, or `and` / `or` to combine `conditions`."))),
|
|
35109
|
-
property: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The aggregation written as `function(property)`, e.g. `sum(duration)`; send it or `aggregation`, not both."))),
|
|
35110
|
-
value: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ unknown(), /* @__PURE__ */ description("Value compared against the aggregated result.")))
|
|
35111
|
-
});
|
|
35112
35118
|
const DtoAggregationsFilterRequestSchema = /* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoAggregationFilterRequestSchema));
|
|
35113
|
-
const DtoFilterRequestSchema = /* @__PURE__ */ object({
|
|
35114
|
-
conditions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoFilterRequestSchema))),
|
|
35115
|
-
operator: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Operator such as `=`, `in` or `is between`, or `and` / `or` to combine `conditions`."))),
|
|
35116
|
-
property: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Property name, e.g. `user_name` or `project_custom_field:42`; see the endpoint description for every accepted name."))),
|
|
35117
|
-
value: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ unknown(), /* @__PURE__ */ description("Value compared against; an array for `in`, `contains one of` and the between operators.")))
|
|
35118
|
-
});
|
|
35119
35119
|
const InvoicedAmountSchema = /* @__PURE__ */ object({
|
|
35120
35120
|
amount_minor: /* @__PURE__ */ number(),
|
|
35121
35121
|
currency: /* @__PURE__ */ string()
|
|
@@ -45234,6 +45234,17 @@ async function emailUnsubscribePage(httpClient, token, signal) {
|
|
|
45234
45234
|
async function emailUnsubscribe(httpClient, token, signal) {
|
|
45235
45235
|
return (await httpClient.post(`email/unsubscribe/${token}`, { signal })).json();
|
|
45236
45236
|
}
|
|
45237
|
+
async function recordWorkspaceOpened(httpClient, organization_id, workspace_id, signal) {
|
|
45238
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/users/me/opened`, { signal })).json();
|
|
45239
|
+
}
|
|
45240
|
+
async function getLandingWorkspace(httpClient, { first_launch } = {}, signal) {
|
|
45241
|
+
const response = await httpClient.get(`users/me/landing-workspace`, {
|
|
45242
|
+
signal,
|
|
45243
|
+
searchParams: buildSearchParams$2({ first_launch })
|
|
45244
|
+
});
|
|
45245
|
+
if ([204, 205].includes(response.status)) return null;
|
|
45246
|
+
return response.json();
|
|
45247
|
+
}
|
|
45237
45248
|
async function getUserSettings(httpClient, signal) {
|
|
45238
45249
|
return (await httpClient.get(`users/me/settings`, { signal })).json();
|
|
45239
45250
|
}
|
|
@@ -59776,6 +59787,31 @@ const generatedFocusOperations = [
|
|
|
59776
59787
|
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
59777
59788
|
execute: (_input, { client }) => client.runGeneratedRequest("getDesktopUserSettings", () => callGeneratedRequest(getDesktopUserSettings, [client.httpClient, void 0]))
|
|
59778
59789
|
},
|
|
59790
|
+
{
|
|
59791
|
+
id: "focus.users.settings-get-landing-workspace",
|
|
59792
|
+
family: "focus",
|
|
59793
|
+
resource: "users",
|
|
59794
|
+
action: "settings-get-landing-workspace",
|
|
59795
|
+
title: "Settings Get Landing Workspace Users",
|
|
59796
|
+
description: "Settings Get Landing Workspace Users.",
|
|
59797
|
+
safety: "read",
|
|
59798
|
+
destructive: false,
|
|
59799
|
+
cli: {
|
|
59800
|
+
group: ["users", "settings"],
|
|
59801
|
+
command: "get-landing-workspace",
|
|
59802
|
+
interactive: "hidden"
|
|
59803
|
+
},
|
|
59804
|
+
mcp: { entityTool: "users" },
|
|
59805
|
+
inputSchema: /* @__PURE__ */ looseObject({ first_launch: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()) }),
|
|
59806
|
+
execute: (input, { client }) => {
|
|
59807
|
+
const data = input;
|
|
59808
|
+
return client.runGeneratedRequest("getLandingWorkspace", () => callGeneratedRequest(getLandingWorkspace, [
|
|
59809
|
+
client.httpClient,
|
|
59810
|
+
data,
|
|
59811
|
+
void 0
|
|
59812
|
+
]));
|
|
59813
|
+
}
|
|
59814
|
+
},
|
|
59779
59815
|
{
|
|
59780
59816
|
id: "focus.users.settings-list",
|
|
59781
59817
|
family: "focus",
|
|
@@ -59821,6 +59857,7 @@ const generatedFocusOperations = [
|
|
|
59821
59857
|
"do_nothing",
|
|
59822
59858
|
"match_existing"
|
|
59823
59859
|
])),
|
|
59860
|
+
current_workspace_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["explicit", "inferred"])),
|
|
59824
59861
|
date_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
59825
59862
|
"US",
|
|
59826
59863
|
"EU",
|
|
@@ -59894,6 +59931,29 @@ const generatedFocusOperations = [
|
|
|
59894
59931
|
]));
|
|
59895
59932
|
}
|
|
59896
59933
|
},
|
|
59934
|
+
{
|
|
59935
|
+
id: "focus.users.settings-record-workspace-opened",
|
|
59936
|
+
family: "focus",
|
|
59937
|
+
resource: "users",
|
|
59938
|
+
action: "settings-record-workspace-opened",
|
|
59939
|
+
title: "Settings Record Workspace Opened Users",
|
|
59940
|
+
description: "Settings Record Workspace Opened Users.",
|
|
59941
|
+
safety: "update",
|
|
59942
|
+
destructive: false,
|
|
59943
|
+
cli: {
|
|
59944
|
+
group: ["users", "settings"],
|
|
59945
|
+
command: "record-workspace-opened",
|
|
59946
|
+
interactive: "default"
|
|
59947
|
+
},
|
|
59948
|
+
mcp: { entityTool: "users" },
|
|
59949
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
59950
|
+
execute: (_input, { client }) => client.runGeneratedRequest("recordWorkspaceOpened", () => callGeneratedRequest(recordWorkspaceOpened, [
|
|
59951
|
+
client.httpClient,
|
|
59952
|
+
client.organizationId,
|
|
59953
|
+
client.workspaceIdNumber,
|
|
59954
|
+
void 0
|
|
59955
|
+
]))
|
|
59956
|
+
},
|
|
59897
59957
|
{
|
|
59898
59958
|
id: "focus.users.settings-update-desktop",
|
|
59899
59959
|
family: "focus",
|
|
@@ -61586,7 +61646,7 @@ function registerWorkspaceTools(server) {
|
|
|
61586
61646
|
//#region src/package-version.ts
|
|
61587
61647
|
function mcpPackageVersion() {
|
|
61588
61648
|
try {
|
|
61589
|
-
return "1.13.
|
|
61649
|
+
return "1.13.299";
|
|
61590
61650
|
} catch {
|
|
61591
61651
|
return "unknown";
|
|
61592
61652
|
}
|
|
@@ -61768,7 +61828,7 @@ import_main.default.config({
|
|
|
61768
61828
|
quiet: true,
|
|
61769
61829
|
ignore: ["MISSING_ENV_FILE"]
|
|
61770
61830
|
});
|
|
61771
|
-
const packageVersion = "1.13.
|
|
61831
|
+
const packageVersion = "1.13.299";
|
|
61772
61832
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
61773
61833
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
61774
61834
|
function resolvePublicUrls() {
|
|
@@ -61888,4 +61948,4 @@ function bootstrapServer(options = {}) {
|
|
|
61888
61948
|
//#endregion
|
|
61889
61949
|
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 };
|
|
61890
61950
|
|
|
61891
|
-
//# sourceMappingURL=src-
|
|
61951
|
+
//# sourceMappingURL=src-D-k2RmDK.js.map
|