testsprite-mcp
v0.0.48The TestSprite MCP plugin brings fully automated software testing into your coding workflow.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
testsprite_bootstrap
BEFORE calling this tool, check if testsprite_tests/tmp/config.json exists in the project. If config.json EXISTS, DO NOT call this tool - proceed directly with other tools instead. This tool is ONLY for first-time project initialization when no configuration exists. NEVER call for: adding new test cases, modifying tests, re-running tests, or any operation on an already-configured project. Note: this MCP tests a locally-running app — it tunnels your local server, so make sure it's running before you proceed.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path of current project root |
testScope * | string | The scope of the test: - codebase: entire codebase; - diff: staged changes that has not been commited; |
type * | string | The type of test, can be detected from the codebase |
localPort | number | The localPort of the local service is usually defined in the codebase, such as in the Dockerfile. Alternatively, you can determine it based on the language and framework used in the project. |
pathname | string | Webpage path (without domain). Defaults to an empty string if not provided. |
testsprite_generate_code_summary
Analyze the project repository and summarize the codebase.
| Parameter | Type | Description |
|---|---|---|
projectRootPath * | string | Absolute path of current project root |
testsprite_generate_standardized_prd
Generate a structured standard PRD.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path of current project root |
testsprite_generate_frontend_test_plan
Generate test plan for frontend test.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path of current project root |
needLogin | boolean | Whether to include login in the test plan, only for frontend test |
testsprite_generate_backend_test_plan
Generate a backend test plan with Testsprite.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path of current project root |
testsprite_generate_code_and_execute
Generate and execute tests. Before calling this tool, ensure the local project is running — preferably in production mode (e.g. `npm run build && npm run start` for Next.js, `npm run build && npm run preview` for Vite). If you started the project with a production build+serve command, set serverMode to 'production' (note: serverMode is also auto-detected from the running process). If running a dev server (e.g. npm run dev), leave serverMode as default — frontend tests will be limited to 15 high-priority tests to prevent dev server overload. If local server is running and test plan is alrea…
| Parameter | Type | Description |
|---|---|---|
projectName * | string | The name is the name of the root directory of the current project |
projectPath * | string | Absolute path of current project root |
additionalInstruction | string | Additional instructions for test generation and execution, set to empty string if not specified by the user |
serverMode | string | Whether the local server is running in production or development mode. AI should detect this from how the server was started (build+start = production, dev = development). Defaults to development. |
testIds | array | The test ids of the test plan, default is empty array, means all test plan will be applied |
testsprite_open_test_result_dashboard
Open an interactive web dashboard to review and modify finished test cases. Use this tool when users want to review test results, fix failing tests, or modify test steps. The dashboard displays all test cases with their execution status, allows users to view test details, edit individual steps, and re-run tests from any step. Prerequisites: (1) Tests must have been generated first using 'testsprite_generate_code_and_execute', (2) Local project must be running on the configured port for re-running tests.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path of current project root |
modificationContext | string | Context about the test results or modifications to review |
testsprite_check_account_info
Check the current user's TestSprite account: name, email, workspace, plan (or Paused), and remaining credits.