@togglhq/mcp 1.13.3 → 1.13.4
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
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-C5j3sKEw.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.4";
|
|
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-C5j3sKEw.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -39796,7 +39796,7 @@ async function resolveApiTokenIdentity(options) {
|
|
|
39796
39796
|
organizationId = hostedMcpOrganizationId;
|
|
39797
39797
|
organizationSource = "api";
|
|
39798
39798
|
} else throw new ApiTokenAuthError(`Could not determine the organization for workspace ${workspaceId}: API keys cannot list organizations. Set ${TOGGL_ORGANIZATION_ID_ENV} (app URLs read focus.toggl.com/<organization_id>/workspaces/<workspace_id>/…).`);
|
|
39799
|
-
const probe = await getJson(`${api}/organizations/${organizationId}/workspaces/${workspaceId}/
|
|
39799
|
+
const probe = await getJson(`${api}/organizations/${organizationId}/workspaces/${workspaceId}/projects?per_page=1`, token, options);
|
|
39800
39800
|
if (probe.status === 401) throw new ApiTokenAuthError(INVALID_KEY_MESSAGE, 401);
|
|
39801
39801
|
if (probe.status === 403 || probe.status === 404) throw new ApiTokenAuthError(`This API key has no access to workspace ${workspaceId} in organization ${organizationId}. Check ${TOGGL_ORGANIZATION_ID_ENV} and ${TOGGL_WORKSPACE_ID_ENV}.`, probe.status);
|
|
39802
39802
|
if (probe.status >= 400) throw new ApiTokenAuthError(`Could not verify access to workspace ${workspaceId} in organization ${organizationId} (${probe.status}).`, probe.status);
|
|
@@ -56727,7 +56727,7 @@ function registerWorkspaceTools(server) {
|
|
|
56727
56727
|
//#region src/package-version.ts
|
|
56728
56728
|
function mcpPackageVersion() {
|
|
56729
56729
|
try {
|
|
56730
|
-
return "1.13.
|
|
56730
|
+
return "1.13.4";
|
|
56731
56731
|
} catch {
|
|
56732
56732
|
return "unknown";
|
|
56733
56733
|
}
|
|
@@ -56908,7 +56908,7 @@ import_main.default.config({
|
|
|
56908
56908
|
quiet: true,
|
|
56909
56909
|
ignore: ["MISSING_ENV_FILE"]
|
|
56910
56910
|
});
|
|
56911
|
-
const packageVersion = "1.13.
|
|
56911
|
+
const packageVersion = "1.13.4";
|
|
56912
56912
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
56913
56913
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
56914
56914
|
function resolvePublicUrls() {
|
|
@@ -57028,4 +57028,4 @@ function bootstrapServer(options = {}) {
|
|
|
57028
57028
|
//#endregion
|
|
57029
57029
|
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 };
|
|
57030
57030
|
|
|
57031
|
-
//# sourceMappingURL=src-
|
|
57031
|
+
//# sourceMappingURL=src-C5j3sKEw.js.map
|