@togglhq/mcp 1.5.23 → 1.5.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/README.md +4 -10
- package/build/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,13 +7,7 @@ A local MCP (Model Context Protocol) server that connects to the Toggl 2.0 API.
|
|
|
7
7
|
[](https://vscode.dev/redirect/mcp/install?name=toggl&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40togglhq%2Fmcp%22%5D%2C%22env%22%3A%7B%7D%7D)
|
|
8
8
|
[](https://cursor.com/install-mcp?name=toggl&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB0b2dnbGhxL21jcCJdfQ%3D%3D)
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
```
|
|
13
|
-
https://cursor.com/install-mcp?name=toggl&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB0b2dnbGhxL21jcCJdfQ%3D%3D
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
After install, run `npx @togglhq/mcp auth` once to sign in. For Claude Code and Claude Desktop, see **Add to your MCP client** below.
|
|
10
|
+
On first use, call the **auth** MCP tool to sign in (opens your browser). For Claude Code and Claude Desktop, see **Add to your MCP client** below.
|
|
17
11
|
|
|
18
12
|
## Install
|
|
19
13
|
|
|
@@ -22,7 +16,7 @@ npm install @togglhq/mcp
|
|
|
22
16
|
# or: pnpm add @togglhq/mcp
|
|
23
17
|
```
|
|
24
18
|
|
|
25
|
-
Authenticate:
|
|
19
|
+
Authenticate once the MCP server is connected — call the **auth** tool (opens your browser). Or from a terminal:
|
|
26
20
|
|
|
27
21
|
```bash
|
|
28
22
|
npx @togglhq/mcp auth
|
|
@@ -60,11 +54,11 @@ Restart Claude Desktop after saving.
|
|
|
60
54
|
|
|
61
55
|
## Authentication
|
|
62
56
|
|
|
63
|
-
Uses **OAuth2 with PKCE** via the Toggl Accounts service. Credentials are stored in `~/.toggl/focus-tools.json` (mode 0600). Access tokens refresh automatically —
|
|
57
|
+
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).
|
|
64
58
|
|
|
65
59
|
> **Upgrading from an older version?** Sessions previously stored at `~/.toggl-focus-mcp/config.json` are still read automatically — no re-authentication needed.
|
|
66
60
|
|
|
67
|
-
> **Unified config vs legacy file:** MCP **logout** only removes credentials when there is a matching profile row under **`~/.toggl/focus-tools.json`** with **`active.mcp`** set.
|
|
61
|
+
> **Unified config vs legacy file:** MCP **logout** only removes credentials when there is a matching profile row under **`~/.toggl/focus-tools.json`** with **`active.mcp`** set. Call **`auth`** once to migrate into the unified file if logout reports nothing was cleared (or run `npx @togglhq/mcp auth` from a terminal).
|
|
68
62
|
|
|
69
63
|
### CI or headless environments
|
|
70
64
|
|
package/build/index.js
CHANGED
|
@@ -45953,7 +45953,7 @@ import_main.default.config({
|
|
|
45953
45953
|
quiet: true,
|
|
45954
45954
|
ignore: ["MISSING_ENV_FILE"]
|
|
45955
45955
|
});
|
|
45956
|
-
const packageVersion = "1.5.
|
|
45956
|
+
const packageVersion = "1.5.24";
|
|
45957
45957
|
function resolvePublicUrls() {
|
|
45958
45958
|
return {
|
|
45959
45959
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|