mcpkit

Test it

Use the generated package scripts and the CLI test command without assuming more than the repository currently implements.

The generated projects include Vitest-based test scripts.

Generated project scripts

For basic, http, and auth:

"test": "vitest run",
"test:watch": "vitest"

For full, the same scripts exist and there is also:

"validate": "tsc --noEmit && vitest run"

Run tests in the generated project

npm run test

Use the CLI test command

mcpkit test

Verified options:

  • --watch
  • --coverage
  • --verbose

Current implementation detail: mcpkit test shells out to npx vitest or npx vitest run.

Inside a generated project, prefer the package scripts first because they are visible in the scaffold and remain usable even if you stop using the global CLI.

On this page