Install the CLI
How-to guide
Terminal window Terminal window Terminal window
Terminal window
Terminal window
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:
npx -y -p sap-fiori-timesheet-mcp xflow-timesheet ssonpx -y -p sap-fiori-timesheet-mcp xflow-timesheet std daysGood for trying it out; a little slower to start, and you keep the long prefix.
git clone https://github.com/arno-vel-bept/sap-fiori-timesheet-mcp.gitcd sap-fiori-timesheet-mcpnpm install && npm run build # or: pnpm install && pnpm buildnpm link # puts xflow-timesheet and xflow-timesheet-mcp on your PATHTwo commands, easy to update with git pull && npm run build, and easy to patch.
Hand someone a single file:
npm run build && npm pack # on your machine → sap-fiori-timesheet-mcp-<version>.tgznpm install -g sap-fiori-timesheet-mcp-<version>.tgz # on the target machineThen, once
Section titled “Then, once”xflow-timesheet sso # sign in once in a real browser windowxflow-timesheet doctor # checks Node, session, browser profile and MCP registrationsOptionally register the MCP server for your editor from the same install:
xflow-timesheet install-mcp --client claude-code # or: claude-desktop | cursor | vscodeSee Other MCP clients for what that writes and where.
What gets created on your machine
Section titled “What gets created on your machine”| 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.