@togglhq/mcp 1.13.362 → 1.14.0
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/README.md +26 -0
- package/build/cli.js +2 -2
- package/build/index.js +1 -1
- package/build/{src-DI5YCPP6.js → src-g5pldSDF.js} +20366 -1130
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,6 +54,32 @@ Add to your Claude Desktop config file:
|
|
|
54
54
|
|
|
55
55
|
Restart Claude Desktop after saving.
|
|
56
56
|
|
|
57
|
+
## Hosted mode
|
|
58
|
+
|
|
59
|
+
If your MCP client can add a remote MCP server, prefer connecting it straight to Toggl's hosted MCP at `https://focus.toggl.com/mcp` (EU: `https://focus.eu.toggl.com/mcp`); the client handles sign-in itself.
|
|
60
|
+
|
|
61
|
+
For clients that only run local servers, this package can relay the hosted MCP instead. It is off unless you choose it, and an existing install never switches on its own:
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"mcpServers": {
|
|
66
|
+
"toggl": {
|
|
67
|
+
"command": "npx",
|
|
68
|
+
"args": ["@togglhq/mcp"],
|
|
69
|
+
"env": { "TOGGL_MCP_MODE": "hosted" }
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
In the `.mcpb` bundles, set **Connection mode** to `hosted`. Set it back to `local` (or remove `TOGGL_MCP_MODE`) and restart to return to the local tools, profiles and `TOGGL_API_TOKEN`, unchanged.
|
|
76
|
+
|
|
77
|
+
- **Sign-in:** call **hosted-sign-in** (opens your browser) or run `npx @togglhq/mcp auth --hosted` (`--manual` for headless machines). The hosted sign-in is separate from CLI and local MCP profiles and is stored in `~/.toggl/mcp-hosted.json` (mode 0600); refreshing it never touches `focus-tools.json`. **hosted-sign-out** forgets it; **hosted-status** shows the mode, region and sign-in state.
|
|
78
|
+
- **Workspace:** use the hosted `list_workspaces` and `select_workspace` tools. Nothing is selected for you, and the selection is account-wide: it changes the active workspace for every hosted Toggl MCP connection on your account (for example claude.ai). Local profiles and `workspace-switch` do not apply here.
|
|
79
|
+
- **Changes:** in apps that show MCP Apps cards, a hosted tool with its own card is confirmed there. Every other hosted change first returns a `confirm_token` and a summary; repeating the call with that token runs that one action once. Failed calls are never retried; check before repeating.
|
|
80
|
+
- **Not supported in hosted mode:** `TOGGL_API_TOKEN`, custom or staging `TOGGL_FOCUS_API_URL` / `TOGGL_ACCOUNTS_API_URL` (only the exact US and EU addresses; for EU set both to `https://focus.eu.toggl.com` and `https://accounts.eu.toggl.com`), profile pinning, and the local entity tools. The server reports these instead of falling back to local mode.
|
|
81
|
+
- **Limitation:** the sign-in asks Toggl Accounts for the hosted `focus` scope and the `/mcp` resource, but the hosted server does not yet check a token's audience, so the hosted grant is not technically limited to `/mcp`.
|
|
82
|
+
|
|
57
83
|
## Authentication
|
|
58
84
|
|
|
59
85
|
Uses **OAuth2 with PKCE** via the Toggl Accounts service. Credentials are stored in `~/.toggl/focus-tools.json` (mode 0600). Access tokens refresh automatically — call **auth** again (or run `npx @togglhq/mcp auth`) to switch workspaces or if your refresh token expires (after 4 weeks of inactivity).
|
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-g5pldSDF.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.
|
|
165
|
+
const packageVersion = "1.14.0";
|
|
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-g5pldSDF.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|