@togglhq/mcp 1.13.0 → 1.13.1
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-Wi0RVSpx.js → src-5RYMrZge.js} +11 -11
- 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-5RYMrZge.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.1";
|
|
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-5RYMrZge.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -56439,12 +56439,12 @@ function registerWorkspaceTools(server) {
|
|
|
56439
56439
|
const runApiTokenAuth = async () => {
|
|
56440
56440
|
const status = await apiTokenStatus();
|
|
56441
56441
|
if (!status.ok) return mcpFailure(status.message);
|
|
56442
|
-
return
|
|
56442
|
+
return mcpJson({
|
|
56443
56443
|
authenticated: true,
|
|
56444
56444
|
requires_workspace_selection: false,
|
|
56445
56445
|
...describeApiTokenIdentity(status.identity),
|
|
56446
56446
|
message: "Signed in with TOGGL_API_TOKEN. No browser sign-in runs and nothing is saved to ~/.toggl/focus-tools.json."
|
|
56447
|
-
}
|
|
56447
|
+
});
|
|
56448
56448
|
};
|
|
56449
56449
|
const runAuth = async ({ workspace_id, accounts_api_url, focus_api_url }) => {
|
|
56450
56450
|
if (isApiTokenMode()) return runApiTokenAuth();
|
|
@@ -56496,12 +56496,12 @@ function registerWorkspaceTools(server) {
|
|
|
56496
56496
|
};
|
|
56497
56497
|
const runLogout = async () => {
|
|
56498
56498
|
pendingAuthContext = null;
|
|
56499
|
-
if (isApiTokenMode()) return
|
|
56499
|
+
if (isApiTokenMode()) return mcpJson({
|
|
56500
56500
|
logged_out: false,
|
|
56501
56501
|
auth_mode: "api_token",
|
|
56502
56502
|
removed_config: false,
|
|
56503
56503
|
message: "This server authenticates with TOGGL_API_TOKEN, so there is no stored session to clear. Remove TOGGL_API_TOKEN from the MCP server config to sign out. Saved OAuth profiles were left untouched."
|
|
56504
|
-
}
|
|
56504
|
+
});
|
|
56505
56505
|
const removed = clearConfig();
|
|
56506
56506
|
return mcpJson({
|
|
56507
56507
|
logged_out: true,
|
|
@@ -56524,12 +56524,12 @@ function registerWorkspaceTools(server) {
|
|
|
56524
56524
|
if (params.refresh) return mcpFailure(mcpOAuthRequiredMessage("workspace-list refresh"));
|
|
56525
56525
|
const status = await apiTokenStatus();
|
|
56526
56526
|
if (!status.ok) return mcpFailure(status.message);
|
|
56527
|
-
return
|
|
56527
|
+
return mcpJson([{
|
|
56528
56528
|
workspace_id: status.identity.workspace_id,
|
|
56529
56529
|
organization_id: status.identity.organization_id,
|
|
56530
56530
|
active: true,
|
|
56531
56531
|
auth_mode: "api_token"
|
|
56532
|
-
}]
|
|
56532
|
+
}]);
|
|
56533
56533
|
}
|
|
56534
56534
|
try {
|
|
56535
56535
|
if (params.refresh) await refreshMcpWorkspaces();
|
|
@@ -56612,11 +56612,11 @@ function registerWorkspaceTools(server) {
|
|
|
56612
56612
|
}, async (_ctx) => {
|
|
56613
56613
|
if (isApiTokenMode()) {
|
|
56614
56614
|
const status = await apiTokenStatus();
|
|
56615
|
-
return
|
|
56615
|
+
return mcpJson({
|
|
56616
56616
|
auth_mode: "api_token",
|
|
56617
56617
|
active: status.ok ? describeApiTokenIdentity(status.identity) : { error: status.message },
|
|
56618
56618
|
message: API_TOKEN_PROFILES_MESSAGE
|
|
56619
|
-
}
|
|
56619
|
+
});
|
|
56620
56620
|
}
|
|
56621
56621
|
return mcpJson(listMcpProfiles().map((row) => ({
|
|
56622
56622
|
name: row.name,
|
|
@@ -56721,7 +56721,7 @@ function registerWorkspaceTools(server) {
|
|
|
56721
56721
|
//#region src/package-version.ts
|
|
56722
56722
|
function mcpPackageVersion() {
|
|
56723
56723
|
try {
|
|
56724
|
-
return "1.13.
|
|
56724
|
+
return "1.13.1";
|
|
56725
56725
|
} catch {
|
|
56726
56726
|
return "unknown";
|
|
56727
56727
|
}
|
|
@@ -56902,7 +56902,7 @@ import_main.default.config({
|
|
|
56902
56902
|
quiet: true,
|
|
56903
56903
|
ignore: ["MISSING_ENV_FILE"]
|
|
56904
56904
|
});
|
|
56905
|
-
const packageVersion = "1.13.
|
|
56905
|
+
const packageVersion = "1.13.1";
|
|
56906
56906
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
56907
56907
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
56908
56908
|
function resolvePublicUrls() {
|
|
@@ -57022,4 +57022,4 @@ function bootstrapServer(options = {}) {
|
|
|
57022
57022
|
//#endregion
|
|
57023
57023
|
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 };
|
|
57024
57024
|
|
|
57025
|
-
//# sourceMappingURL=src-
|
|
57025
|
+
//# sourceMappingURL=src-5RYMrZge.js.map
|