Provar MCP Server
io.github.ProvarTesting由 GitHub 账号 ProvarTesting 发布v1.6.5更新于 Oct 24, 2026
Provar MCP: AI-powered Salesforce test automation. Generate, validate, migrate, and run tests.
概览
一个本地 MCP 服务器,让 AI 助手生成、校验、迁移并运行 Provar Salesforce 测试自动化项目。
- 可以做什么
- 检查项目并描述 Salesforce 组织,包括下载元数据以及编译 PageObject 和 PageControl 源码。编写并校验 Page Object、测试用例、测试套件和测试计划,并编辑属性文件。生成、加载、校验、读取和设置 ProvarDX 自动化配置。连接 Provar Quality Hub,检索测试用例、运行测试、轮询报告并中止运行。运行 Provar Automation 测试和 ANT 构建,并处理 NitroX 组件。
- 适用场景
- 适合已使用 Provar 进行 Salesforce 测试自动化的团队,希望由助手搭建、检查或迁移测试资产,并在编辑器中发起测试运行。若不使用 Provar Automation 或 Quality Hub,则意义不大。
- 运行要求
- 通过 npx 或全局 sf 插件安装,以 stdio 在本地运行。需要 Node.js 18–24(不支持 25 及以上)以及已激活许可证的 Provar Automation IDE。完整校验和 Quality Hub 功能需要经 sf provar auth login 获取的 API 密钥,存于凭据文件或 PROVAR_API_KEY 环境变量。文件访问仅限 --allowed-paths 指定的路径。
安装
在 SourceWeft 中
- 打开 控制台中的 Provar MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@provartesting/provardx-cli
[Version] [Downloads/week] [License] [Get Access]
What is the ProvarDX CLI?
The Provar DX CLI is a Salesforce CLI plugin for Provar customers who want to automate the execution of tests using Provar Automation, and the reporting of test results and other quality-related metrics to Provar Quality Hub.
Installation, Update, and Uninstall
Requires Node.js 18–24 (LTS 22 recommended). Node 25+ is not yet supported due to a breaking change in a transitive dependency. Check with node --version.
Install the plugin
Update plugins
Uninstall the plugin
MCP Server (AI-Assisted Quality)
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.
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.
Quick setup
Requires: Provar Automation IDE installed with an activated license. Node.js 18–24 must be on your PATH.
Option A — Zero-install (recommended for Claude Desktop)
No prior setup needed. Paste this into your Claude Desktop config file and restart the app:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
npx -y downloads the package automatically on first use — no sf or separate install step required.
Claude Code — run once to register the server:
Option B — Global sf plugin install
Prefer a persistent global install? Install once, then use the sf command:
Claude Desktop config using the global install:
Windows (Claude Desktop): Use
sf.cmdinstead ofsfif the server fails to start.
Claude Code using the global install:
📖 docs/mcp.md — full setup, all 43 tools, 6 resources, 11 MCP prompts, troubleshooting.
Commands
sf provar auth loginsf provar auth rotatesf provar auth statussf provar auth clearsf provar mcp startsf provar config getsf provar config setsf provar automation config generatesf provar automation config loadsf provar automation config validatesf provar automation config getsf provar automation config setsf provar automation setupsf provar automation project compilesf provar automation metadata downloadsf provar automation test runsf provar quality-hub connectsf provar quality-hub displaysf provar quality-hub opensf provar quality-hub testcase retrievesf provar quality-hub test runsf provar quality-hub test run reportsf provar quality-hub test run abortsf provar manager connect(deprecated — usesf provar quality-hub connect)sf provar manager display(deprecated — usesf provar quality-hub display)sf provar manager open(deprecated — usesf provar quality-hub open)sf provar manager testcase retrieve(deprecated — usesf provar quality-hub testcase retrieve)sf provar manager test run(deprecated — usesf provar quality-hub test run)sf provar manager test run report(deprecated — usesf provar quality-hub test run report)sf provar manager test run abort(deprecated — usesf provar quality-hub test run abort)
sf provar auth login
Log in to Provar Quality Hub and store your API key.
sf provar auth rotate
Rotate your stored API key without re-authenticating via browser.
sf provar auth status
Show the current API key configuration and validate it against Quality Hub.
sf provar auth clear
Remove the stored API key.
sf provar mcp start
Start a local MCP server for Provar tools over stdio transport.
📖 Full tool documentation and client configuration: docs/mcp.md
sf provar config get
Retrieve a value from the specified JSON file.
sf provar config set
Set one or more properties in the specified JSON file.
sf provar automation config generate
Generate a boilerplate ProvarDX properties file.
sf provar automation config load
Validate and load a ProvarDX properties file for later use.
sf provar automation config validate
Check if the loaded properties file has all the required properties set.
sf provar automation config get
Retrieve a value from the loaded properties file.
sf provar automation config set
Set one or more properties in the loaded properties file.
sf provar automation setup
Download and install Provar Automation.
sf provar automation project compile
Compile PageObject and PageControl Java source files into object code.
sf provar automation metadata download
Download any required metadata for a specified Provar Salesforce connection.
sf provar automation test run
Run the tests as specified in the loaded properties file.
sf provar quality-hub connect
Connect to a Provar Quality Hub org.
sf provar quality-hub display
Display information about the connected Provar Quality Hub org.
sf provar quality-hub open
Open Provar Quality Hub in a browser.
sf provar quality-hub testcase retrieve
Retrieve test cases related to the provided user stories or metadata components.
sf provar quality-hub test run
Run tests via Provar Quality Hub.
sf provar quality-hub test run report
Check or poll for the status of a Quality Hub test run.
sf provar quality-hub test run abort
Abort an in-progress test run triggered via Provar Quality Hub.
Deprecated commands: The
sf provar manager *commands below are retained for backwards compatibility and will print a deprecation warning when used. Use the equivalentsf provar quality-hub *commands above for all new pipelines.
sf provar manager connect
Load the alias or username to be used in subsequent commands to connect to Provar Manager.
sf provar manager display
Display information about the connected Provar Manager org.
sf provar manager open
Open Provar Manager in a browser.
sf provar manager testcase retrieve
Retrieve test cases related to the provided user stories (issues) or metadata components, for a given test project.
sf provar manager test run
Run tests via Provar Manager.
sf provar manager test run report
Check or poll for the status of a test run operation.
sf provar manager test run abort
Abort an in-progress test run triggered via Provar Manager.
来源:README.md,提交 2a64edf
工具
0版本历史
1- v1.6.5最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分