"Not signed in"
No auth.json in the config directory. Sign in: ww login --email you@example.com. If the MCP
server runs with a different WW_HOME or user than your terminal, it looks in another place; check
file in the ww status output and set WW_HOME in the client's env block if needed.
"The WW session has expired" / "Sign in again"
The WW session lasts a few hours. The client signs in again by itself only if it finds a password:
WW_EMAIL and WW_PASSWORD in the environment, or an entry in the system credential store. Check
passwordSource in ww status: null means neither exists. Fix it with one of:
ww login --email you@example.com --save-password(desktop)WW_EMAILandWW_PASSWORDin the server's environment (servers)
"Sign-in failed (HTTP 401)"
Wrong e-mail or password, or the account has no password login (social login only). Check that you
can sign in on the WW website with exactly these values, and that the region matches your WW site
(WW_REGION, default de). Repeated failures can trigger WW's own protection; wait before retrying.
Region problems
Only de is tested. With another region, sign-in or calls can fail with HTTP 404, 403 or unexpected
answers. Check the value (de, com, co.uk; no dots in front, no www). Invalid values are
refused with "Invalid region". Please report what works and what does not.
"Token request failed" / "No id_token received"
The sign-in worked, but the follow-up request that exchanges the session for a token was refused. Usually the session expired in between: sign in again. If it happens right after a fresh sign-in, the WW login flow may have changed; see API changes.
HTTP 401 or 403 on a tool call
The client renews the token once and retries. If it still fails, the session is dead: sign in again
(ww login or the ww_login tool). A 403 on a specific path can also mean your plan does not include that feature.
HTTP 404
Wrong path or ID. For ww_api_call, check the path against api.md. IDs must come from
ww_search_food, ww_frequent_and_recent or ww_tracked.
Credential store problems
| Message | Meaning and fix |
|---|---|
libsecret (secret-tool) is not available: required tool not found | Install libsecret-tools (Debian, Ubuntu) and make sure a keyring daemon runs. On headless servers use WW_PASSWORD instead. |
macOS Keychain: storing the password failed (exit code N) | The Keychain is locked or access was denied. Unlock it and retry. |
Windows Credential Manager: storing the password failed | Needs Windows PowerShell 5.1 (powershell.exe). PowerShell 7 alone is not enough. This path is the least tested; please report. |
Without a store, sign in without --save-password and use WW_PASSWORD, or sign in again when the session expires.
The ww_login page does not open
The tool returns the URL. Open it in a browser on the same computer. It only works locally (127.0.0.1)
and for 10 minutes; after 5 failed sign-ins it closes. Start ww_login again for a new link. On a
remote machine without a browser use ww login in a terminal.
Nothing happens in the AI client
- Restart the client after changing its configuration.
- Run the server by hand:
npx -y unofficial-weightwatchers-mcp. It should printww: MCP server running (stdio).on stderr and wait. nodenot found by the client: use the absolute path ofnodeincommand.- Use the MCP inspector:
npx @modelcontextprotocol/inspector npx -y unofficial-weightwatchers-mcp.
"Invalid arguments"
A tool call failed validation: the message names the parameter. Dates must be real YYYY-MM-DD
dates, IDs must be IDs returned by other tools, and unknown parameters are rejected.
Output is cut off
Results over 40000 characters are truncated. Narrow the request (limit, a single day).
API changes
The WW API is private and can change without notice. If a tool that worked stops working with unexpected answers, check the open issues and api.md. When reporting, include the tool name, the HTTP status and the error text, but no tokens, no passwords and no health values.