Skip to main content
Glama
README.md
# Current RMS connector for Claude

A local MCP server that lets Claude read, and carefully change, a [Current RMS](https://www.current-rms.com) account: jobs, gear, availability, crew, money, documents, the pull sheet and warehouse, and the inventory. Claude Desktop and Claude Code start it themselves over stdio; nothing is hosted.

Every change is a pair of tools: `preview_*` shows exactly what will happen and returns a `confirm_token`; `apply_*` does it only with that token and the same arguments, and is refused if the record changed in between. The person approves each change in the chat.

What the Current RMS API really does (and where it differs from its docs) is in [docs/FINDINGS.md](docs/FINDINGS.md). Read it before changing anything that writes.

## Install (Claude Desktop)

```bash
npm install
npm run pack        # builds build/current-rms-v<version>.mcpb and build/install-v<version>.md
```

Double-click the `.mcpb`, click **Install**, and fill in:

| Setting | |
| --- | --- |
| Current RMS subdomain | The first part of your web address: `yourcompany` for yourcompany.current-rms.com |
| API key | Your own key (System Setup › Integrations › API). Stored in the Mac's Keychain by Claude. |
| Time zone | Optional. Blank uses the Mac's time zone. |
| Default store | Optional. Blank uses the account's main store. |
| Allow writes | On to see the change tools. Every change still needs an OK in the chat. |

Quit Claude (⌘Q) and reopen it. `docs/install.md` is the plain-English setup sheet that `npm run pack` versions alongside the file.

## Install (Claude Code)

Save your API key in the Keychain once (it is never passed on the command line):

```bash
security add-generic-password -U -s current-rms-mcp -a "$USER" -w
npm install && npm run build
claude mcp add --transport stdio --scope user current-rms -e CURRENT_RMS_SUBDOMAIN=yourcompany -e ENABLE_WRITES=true -- node "$PWD/dist/index.js"
```

## Settings

| Variable | Default | |
| --- | --- | --- |
| `CURRENT_RMS_SUBDOMAIN` | (required) | Your account's subdomain |
| `CURRENT_RMS_API_KEY` | Keychain `current-rms-mcp` | Only the Desktop extension sets this |
| `TIMEZONE` | the Mac's time zone | Tools take and show local times |
| `ENABLE_WRITES` | `false` | Change tools aren't listed unless `true` |
| `DEFAULT_STORE` | the account's first store | Resolved by name |
| `JOB_NUMBER_PREFIX` | read from the account | Letters job numbers start with, so "1001" finds JOB1001 |

## Tools

Read tools (always on):

| Area | Tools |
| --- | --- |
| Jobs | `search_opportunities`, `get_opportunity`, `list_opportunity_items`, `job_financials`, `pipeline_summary`, `job_outcomes`, `job_changes`, `server_time` |
| Gear | `search_products`, `product_pricing`, `check_availability`, `find_asset`, `product_details`, `list_product_groups`, `stock_history` |
| People | `search_members`, `list_activities` |
| Documents | `list_job_documents`, `get_job_document`, `quote_status`, `list_invoices`, `list_custom_fields` |
| Warehouse | `warehouse_plan`, `list_quarantines`, `turnaround_check`, `check_service_dates` |

Change tools (with `ENABLE_WRITES=true`; each is `preview_<op>` + `apply_<op>`):

| Area | Operations |
| --- | --- |
| Jobs | `job_create`, `job_update`, `job_clone`, `status_change`, `deal_price`, `custom_fields` |
| Lines | `line_changes` (add, change, move, remove, groups, text lines, sub-rent) |
| Money | `job_cost`, `cost_update` |
| Crew & dates | `activity`, `service_dates` |
| Warehouse | `pull_sheet`, `copy_allocations`, `warehouse_status`, `quarantine`, `quarantine_release` |
| Inventory | `product_group`, `product_create`, `product_update`, `product_accessories`, `stock_assets`, `stock_quantity` |

`check_apply` says whether an apply with a given token ran (use it after a timeout, before retrying).

Writes are logged to `~/Library/Logs/current-rms-mcp/writes.log`. `job_changes` keeps snapshots in `~/Library/Application Support/current-rms-mcp/`.

## Develop

```bash
npm test                                    # unit tests against a local fixture server
npm run typecheck
npm run build
CURRENT_RMS_SUBDOMAIN=yourcompany node scripts/call.mjs --list
CURRENT_RMS_SUBDOMAIN=yourcompany node scripts/call.mjs get_opportunity '{"number":"JOB1001"}'
CURRENT_RMS_SUBDOMAIN=yourcompany ENABLE_WRITES=true node scripts/call.mjs --confirm preview_<op> '<json>'
```

`scripts/crms.sh METHOD PATH [BODY]` (and `scripts/crms.py`) call the API with the Keychain key without putting it in argv or output. Probe and test writes only on a dedicated test job and obviously named test products.

The version is set once, in `package.json`; bump it before building a new `.mcpb`.

## License

MIT. See [LICENSE](LICENSE). Current RMS is a trademark of its owner; this project is independent and not affiliated with or endorsed by Current RMS.