testsprite-mcp

v0.0.48
@testsprite/testsprite-mcp Checked 4 days ago Published 1 month ago

The 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.

ParameterTypeDescription
projectPath *stringAbsolute path of current project root
testScope *stringThe scope of the test: - codebase: entire codebase; - diff: staged changes that has not been commited;
type *stringThe type of test, can be detected from the codebase
localPortnumberThe 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.
pathnamestringWebpage path (without domain). Defaults to an empty string if not provided.

testsprite_generate_code_summary

Analyze the project repository and summarize the codebase.

ParameterTypeDescription
projectRootPath *stringAbsolute path of current project root

testsprite_generate_standardized_prd

Generate a structured standard PRD.

ParameterTypeDescription
projectPath *stringAbsolute path of current project root

testsprite_generate_frontend_test_plan

Generate test plan for frontend test.

ParameterTypeDescription
projectPath *stringAbsolute path of current project root
needLoginbooleanWhether to include login in the test plan, only for frontend test

testsprite_generate_backend_test_plan

Generate a backend test plan with Testsprite.

ParameterTypeDescription
projectPath *stringAbsolute 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…

ParameterTypeDescription
projectName *stringThe name is the name of the root directory of the current project
projectPath *stringAbsolute path of current project root
additionalInstructionstringAdditional instructions for test generation and execution, set to empty string if not specified by the user
serverModestringWhether 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.
testIdsarrayThe 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.

ParameterTypeDescription
projectPath *stringAbsolute path of current project root
modificationContextstringContext 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.