Skip to content

Install the CLI

How-to guide

Prerequisite: Node.js 20 or newer (node --version). Nothing else. The headless browser used for signing in is downloaded automatically the first time you sign in.

Run any command through the published package:

Terminal window
npx -y -p sap-fiori-timesheet-mcp xflow-timesheet sso
npx -y -p sap-fiori-timesheet-mcp xflow-timesheet std days

Good for trying it out; a little slower to start, and you keep the long prefix.

Terminal window
xflow-timesheet sso # sign in once in a real browser window
xflow-timesheet doctor # checks Node, session, browser profile and MCP registrations

Optionally register the MCP server for your editor from the same install:

Terminal window
xflow-timesheet install-mcp --client claude-code # or: claude-desktop | cursor | vscode

See Other MCP clients for what that writes and where.

Path Content
~/.config/xflow-timesheet/session.json The SAP session cookies (file mode 0600).
~/.config/xflow-timesheet/profile/ A dedicated browser profile that remembers your identity-provider sign-in (mode 0700).
Playwright’s browser cache (for example ~/Library/Caches/ms-playwright on macOS) The Chromium build used for signing in, shared by every install on the machine.

Both locations can be moved with environment variables; see the configuration reference. Why these two files exist and what they mean for security is explained in How authentication works.