@countfinancial/cli
v0.1.6
Published
COUNT Partner CLI — OAuth login and local MCP server for Claude Code, Cursor, and agents.
Downloads
1,158
Readme
COUNT CLI (@countfinancial/cli)
Command-line tool for partner integrations that need low-friction OAuth login and a local MCP server for Claude Code, Cursor, and other agent runtimes.
The MCP server is bundled inside this package — no separate npm install required.
Install
npm install -g @countfinancial/cliQuick start
1. Create a partner app
Open COUNT Partners, create an app, and add this redirect URI:
http://127.0.0.1:17845/callback2. Save credentials
count init \
--client-id "<your-client-id>" \
--client-secret "<your-client-secret>"3. Sign in
count loginThis opens partner-signin, lets you pick a workspace, stores access/refresh tokens in ~/.count/credentials.json, and returns you to the terminal.
4. Run MCP locally
count mcpOr print Claude Code configuration:
count mcp print-configCommands
| Command | Description |
| --- | --- |
| count init | Save client_id / client_secret |
| count login | Browser OAuth login + token storage |
| count logout | Delete ~/.count/credentials.json |
| count status | Show whether credentials/tokens are present |
| count mcp | Start the local COUNT Partner MCP stdio server |
| count mcp print-config | Emit MCP JSON for Claude Code / Cursor |
Environment
The CLI reads the API host from count init --api-url (default https://api.getcount.com).
Stored credentials live at:
~/.count/credentials.jsonFile mode is 600.
Docs
- Full guide:
docs/count-cli.md - Partner API reference: developers.getcount.com
