You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: fix MCP setup instructions with correct Claude Code commands
- Add Quick start sections to both README and docs/mcp.md with
numbered steps and a provardx.ping verify step
- Fix Claude Code section: replace non-existent /mcp add slash command
and .claude/mcp.json path with correct `claude mcp add -s user|project|local`
commands and real config file locations (.mcp.json, settings.local.json)
- Move license requirement before client configuration in docs/mcp.md
since it is a startup blocker
- Add Windows note: use sf.cmd in Claude Desktop when sf is not found
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+29-12Lines changed: 29 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,28 +35,45 @@ $ sf plugins uninstall @provartesting/provardx-cli
35
35
36
36
The Provar DX CLI includes a built-in **Model Context Protocol (MCP) server** that connects AI assistants (Claude Desktop, Claude Code, Cursor) directly to your Provar project. Once connected, an AI agent can inspect your project structure, generate Page Objects and test cases, validate every level of the test hierarchy with quality scores, and work with NitroX (Hybrid Model) component page objects for LWC, Screen Flow, Industry Components, Experience Cloud, and HTML5.
37
37
38
-
Validation runs in two modes: **local only** (structural rules, no key required) or **Quality Hub API** (170+ rules, quality scoring — requires a `pv_k_` API key). Run `sf provar auth login` to authenticate and unlock full validation. Don't have an account? **[Request access](https://aqqlrlhga7.execute-api.us-east-1.amazonaws.com/dev/auth/request-access)**.
38
+
Validation runs in two modes: **local only** (structural rules, no key required) or **Quality Hub API** (170+ rules, quality scoring — requires a `pv_k_` API key). Don't have an account? **[Request access](https://aqqlrlhga7.execute-api.us-east-1.amazonaws.com/dev/auth/request-access)**.
39
+
40
+
## Quick setup
41
+
42
+
**Requires:** Provar Automation IDE installed with an activated license.
39
43
40
44
```sh
41
-
sf provar mcp start --allowed-paths /path/to/your/provar/project
45
+
# 1. Install the plugin (if not already installed)
46
+
sf plugins install @provartesting/provardx-cli@beta
47
+
48
+
# 2. (Optional) Authenticate for full 170+ rule validation
49
+
sf provar auth login
42
50
```
43
51
44
-
📖 **See [docs/mcp.md](https://github.com/ProvarTesting/provardx-cli/blob/main/docs/mcp.md) for full setup and tool documentation.**
52
+
**Claude Code** — run once to register the server:
45
53
46
-
## License Validation
54
+
```sh
55
+
claude mcp add provar -s user -- sf provar mcp start --allowed-paths /path/to/your/provar/project
56
+
```
47
57
48
-
The MCP server verifies your Provar license before accepting any connections. Validation is automatic — no extra flags are required for standard usage.
58
+
**Claude Desktop** — add to your config file and restart the app:
1.**Auto-detection** — the server reads `~/Provar/.licenses/*.properties` (the same files written by Provar's IDE plugins). If a valid, activated license is found the server starts immediately.
53
-
2.**Cache** — successful validations are cached at `~/Provar/.licenses/.mcp-license-cache.json` (2 h TTL). Subsequent starts within the TTL window skip the disk scan.
54
-
3.**Grace fallback** — if the IDE license files cannot be found or read and the cache is stale (but ≤ 48 h old), the server starts with a warning on stderr using the cached result so CI pipelines are not broken by transient local file-access issues.
55
-
4.**Fail closed** — if no valid license is detected the command exits with a non-zero exit code and a clear error message.
Copy file name to clipboardExpand all lines: docs/mcp.md
+83-33Lines changed: 83 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,55 @@ The Provar DX CLI ships with a built-in **Model Context Protocol (MCP) server**
61
61
62
62
-**Node.js 18–24** (LTS 22 recommended). Node 25+ is not supported — a transitive dependency (`buffer-equal-constant-time`) crashes on startup. Check with `node --version`.
63
63
-**Salesforce CLI** (`sf`) ≥ 2.x
64
+
-**Provar Automation IDE** installed with an activated license (see [License requirement](#license-requirement) below)
65
+
66
+
## Quick start
67
+
68
+
```sh
69
+
# 1. Install the plugin
70
+
sf plugins install @provartesting/provardx-cli@beta
71
+
72
+
# 2. (Optional) Authenticate for full 170+ rule validation
73
+
sf provar auth login
74
+
75
+
# 3. Connect your AI assistant — pick one client below
76
+
```
77
+
78
+
**Claude Code** (one-time, works across all your projects):
79
+
80
+
```sh
81
+
claude mcp add provar -s user -- sf provar mcp start --allowed-paths /path/to/your/provar/project
82
+
```
83
+
84
+
**Claude Desktop** — edit your config file, then restart the app:
> **Windows (Claude Desktop):** If `sf` is not found, use `sf.cmd` as the command instead.
101
+
102
+
**Verify it's working** — ask your AI assistant: _"Call provardx.ping with message hello"_. You should get `{ "message": "hello" }` back.
103
+
104
+
---
105
+
106
+
## License requirement
107
+
108
+
The MCP server requires **Provar Automation IDE** to be installed on the same machine with an activated license. At startup the server reads `~/Provar/.licenses/*.properties` and verifies that at least one license is in the `Activated` state and was last verified online within the past 48 hours.
109
+
110
+
If the license check fails, the server exits with a clear error message explaining the reason (not found, stale, or expired). Open Provar Automation IDE to refresh the license online, then retry.
111
+
112
+
---
64
113
65
114
## Starting the server
66
115
@@ -90,12 +139,22 @@ sf provar mcp start -a /workspace/project-a -a /workspace/project-b
90
139
91
140
## Client configuration
92
141
93
-
### Claude Desktop
142
+
### Claude Code
94
143
95
-
Add a `provar` entry to your Claude Desktop MCP configuration file.
144
+
The simplest approach is the `claude mcp add` CLI command:
145
+
146
+
```sh
147
+
# User-scoped — works across all your projects
148
+
claude mcp add provar -s user -- sf provar mcp start --allowed-paths /path/to/your/provar/project
149
+
150
+
# Project-scoped, shared — creates .mcp.json in project root (commit to source control)
151
+
claude mcp add provar -s project -- sf provar mcp start --allowed-paths /path/to/your/provar/project
152
+
153
+
# Project-scoped, private — stored in .claude/settings.local.json (not committed)
154
+
claude mcp add provar -s local -- sf provar mcp start --allowed-paths /path/to/your/provar/project
@@ -125,26 +185,16 @@ Add the server to your project's `.claude/mcp.json` (project-scoped) or `~/.clau
125
185
}
126
186
```
127
187
128
-
Alternatively, run directly from a Claude Code session:
188
+
> **Windows:** If `sf` is not found, use `sf.cmd` as the command. Claude Desktop may not inherit the full shell PATH, so `sf.cmd` (the npm-installed wrapper) is more reliable.
129
189
130
-
```
131
-
/mcp add provar sf provar mcp start --allowed-paths /path/to/project
132
-
```
190
+
Restart Claude Desktop after saving the file. The Provar tools will appear in the tool list.
133
191
134
192
### Cursor / other MCP clients
135
193
136
194
Any MCP client that supports the **stdio transport** can use this server. Point `command` at `sf` (or the full path to the Salesforce CLI binary) and pass `["provar", "mcp", "start"]` as arguments, plus `--allowed-paths` as appropriate for your project layout.
137
195
138
196
---
139
197
140
-
## License requirement
141
-
142
-
The MCP server requires **Provar Automation IDE** to be installed on the same machine with an activated license. At startup the server reads `~/Provar/.licenses/*.properties` and verifies that at least one icense is in the `Activated` state and was last verified online within the past 48 hours.
143
-
144
-
If the license check fails, the server exits with a clear error message explaining the reason (not found, stale, or expired). Open Provar Automation IDE to refresh the license online, then retry.
145
-
146
-
---
147
-
148
198
## Authentication — Quality Hub API
149
199
150
200
The `provar.testcase.validate` tool can run in two modes depending on whether an API key is configured.
@@ -365,20 +415,20 @@ Validates an XML test case for schema correctness (validity score) and best prac
0 commit comments