Commit 8655eaa
committed
✅ test: add MCP smoke-test infrastructure and initial e2e test suites
Introduce an in-process MCP test harness that boots a real server with
InMemoryTransport, injects a capturing command executor, and exposes
an MCP client for end-to-end assertions.
Includes four smoke-test suites: CLI surface (help/version/tools),
MCP discovery (listTools coverage), MCP invocation (callTool with
mocked commands), and session management (defaults round-trip).
Adds test-only reset/override hooks in command.ts, server-state.ts,
tool-registry.ts, and debugger/tool-context.ts to support singleton
teardown between test runs. Separates smoke tests from unit tests via
a dedicated vitest.smoke.config.ts and a new test:smoke npm script.1 parent f0bd066 commit 8655eaa
23 files changed
Lines changed: 3787 additions & 2 deletions
File tree
- src
- mcp/tools/debugging/__tests__
- server
- smoke-tests
- __tests__
- utils
- debugger
- execution
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
0 commit comments