This project has a mixed test layout:
- TypeScript unit and e2e tests compiled into
dist/testanddist/tests - standalone JavaScript protocol and transport scripts under
test/
npm run build
npm testnpm test currently runs:
dist/test/unit-test-runner.jsdist/test/map-think-do.e2e.js basicdist/tests/plugin-manager.test.js
The unit runner covers core utilities, state management, memory stores, and orchestrator behavior.
npm run test:basic
npm run test:branch
npm run test:revision
npm run test:error
npm run test:perf
npm run test:allThese scripts exercise the MCP server through stdio and verify thought sequencing, branching, revision handling, error handling, and longer flows.
These are not part of the default npm test command, but they are useful when changing transport or protocol code:
node test/mcp-compliance.test.js
node test/transport-failure.test.jsPrompt evaluation lives under test/prompt-evaluation/.
npm run evalThat workflow is optional and separate from the core unit/e2e suite.
- The server must keep JSON-RPC traffic on
stdoutand logs onstderr. --debugincreases logging detail and may expose raw thought content.- Test logs are written under
logs/. - Structured e2e results are written under
test-results/.