CLI
Your endpoint, linked in one command
The mcphosting-cli links Claude Code or Cursor to your hosted MCP endpoint and lets you file and review tasks without leaving the terminal. For driving a full Assistant run, call the runs API directly — see the API reference.
Install
npm install -g mcphosting-cliOr run any command on demand with npx mcphosting-cli. Once installed, run mcphosting-cli login to authenticate with your Bearer mcph_* key.
Commands
mcphosting-cli login [--key mcph_...] [--url <site>]Save and verify your Bearer mcph_* key. Prompts if you omit --key, then calls /api/v1/me so a bad key fails immediately rather than on your next command.
Example
$ mcphosting-cli login
Paste your BusinessMCP API key (mcph_...): ****************************
Site URL [https://businessmcp.com]:
Logged in to "Acme Inc" (growth plan). Config saved to ~/.mcphosting.jsonmcphosting-cli link [claude|claude-desktop|cursor|vscode|chatgpt|claude-ai]Point a client at your hosted MCP endpoint. With "claude" it shells out to the Claude Code CLI and registers the server for you; the others print a paste-ready config. ChatGPT and Claude.ai print the URL ALONE — they sign in over OAuth and have no bearer-token field, so there is no key to paste.
Example
$ mcphosting-cli link claude
Added MCP server businessmcp to Claude Code.
Linked — Claude Code can now drive your BusinessMCP dashboard.
$ mcphosting-cli link cursor
Add this MCP server to your client config (Cursor: .cursor/mcp.json):
{
"mcpServers": {
"businessmcp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://businessmcp.com/api/mcp",
"--header",
"Authorization: Bearer mcph_..."
]
}
}
}mcphosting-cli run "<question>" [--deep] [--thread <id>] [--json]Queue a full analyst run against your own business data and print the reply. Same engine as the dashboard Assistant and the MCP endpoint, so the answer is the same answer. --deep raises the tool budget and asks it to verify every number. Add --no-wait to get the thread id straight back, then poll it with run --thread <id> --resume. If a run hits its tool budget mid-investigation the CLI says so instead of printing the partial answer as if it were final.
Example
$ mcphosting-cli run "which channel converted best last month?"
Thinking.....
Organic Search converted best at 4.1% (312 of 7,584 sessions), ahead of
Direct at 2.8%. Paid Social is the outlier: 1,902 sessions, 0.4%.
https://businessmcp.com/dashboard/assistant?thread=…mcphosting-cli contacts [--stage lead] [--segment <id>] [--json]Page the read API from the terminal. contacts walks the identity graph, accounts walks your B2B account objects, events walks one row per session. Every one takes --limit and --cursor, and --json prints the raw payload for jq.
Example
$ mcphosting-cli contacts --stage lead --limit 3
ana@northwind.example lead Ana Ruiz — Northwind
dev@kumocloud.example lead Dev Patel — Kumo Cloud
finance@lumen.example lead — Lumen Labsmcphosting-cli export <analytics|sessions|contacts> [--range 30d] [--out f.csv]The same CSV the dashboard exports, scoped by your key’s policy — revenue columns come back blank without the revenue class. Writes to stdout unless you pass --out.
Example
$ mcphosting-cli export contacts --out contacts.csv
Wrote 1,284 rows to contacts.csvmcphosting-cli track <goal> [--user <id>] [--revenue 49]Write into the Events API from a script or a cron job: record a server-side conversion, stitch a user id to a contact, or upsert an account. track --file takes a JSON array or NDJSON, up to 500 events a call.
Example
$ mcphosting-cli track trial_converted --user u_8812 --revenue 49
Accepted 1 event(s).mcphosting-cli tools [search]What your endpoint actually exposes, from the public catalogue — every tool with its description, whether it writes, and the plan it needs.
Example
$ mcphosting-cli tools heatmap
get_heatmaps read [growth+] Click, scroll and frustration data for a page…
1 of 95 tools matching "heatmap".mcphosting-cli whoamiShow which workspace and plan the saved key belongs to, and the site it targets.
Example
$ mcphosting-cli whoami
Workspace: Acme Inc
Plan: growth
Key: mcph_9f2a11c…
Site: https://businessmcp.commcphosting-cli task create <title> | task listFile a task into the dashboard, or list the open ones. Accepts --dept and --message on create.
Example
$ mcphosting-cli task create "Audit paid social ROAS" --dept Marketing
Task created: th_7b21
https://businessmcp.com/dashboard/assistant
$ mcphosting-cli task list
[in-progress ] Marketing Audit paid social ROAS
[todo ] Sales Follow up with inbound from Tuesdaymcphosting-cli statusOpen task counts by status.
Example
$ mcphosting-cli status
Workspace tasks: 6 open
todo: 4
in-progress: 2mcphosting-cli openPrint your dashboard URL.
Example
$ mcphosting-cli open
https://businessmcp.com/dashboardBuilding an integration?
The CLI wraps the platform API. See the full reference for raw curl and JSON.