Raju Dandigam (@raju_dandigam), the maintainer of AgentInspect, describes an installed-package test in Test the npm Package, Not Just the Monorepo. The case is a tracing adapter for the MCP SDK. A tool can return the expected result even when the adapter quietly misses part of the trace, so a green application assertion leaves a second question unanswered.
Count executions independently of tracing
The test installs pinned versions of the published AgentInspect packages and the MCP SDK. It connects a real SDK client and server using their in-memory transport. The server counts calls to a synthetic echo handler, and the consumer lists the tools and invokes echo through the wrapped client. The fixture checks the tool response and then reads persisted tracing data. One handler execution and two recorded starts are expected because listing tools and invoking the handler are distinct operations. A trace with only the echo event would therefore fail the test even if the call succeeded.
Exercise the public entry points
Dandigam runs separate CommonJS and ESM consumers. That separation matters when a build accidentally places two copies of a module that holds run context into the output. An application can create a context that the adapter never sees. Public entry points also let a consumer check whether wrapping preserves the SDK client's identity and ordinary behavior. In this fixture, the wrapped client still has the expected type and can ping the server.
Report the matrix one cell at a time
Dandigam reports the same one-execution, two-start result for both module systems on Linux with Node 24.22.1 and macOS arm64 with Node 22.22.3. Those results describe the pinned packages and the in-memory fixture. Native Windows, HTTP and stdio transports, and reconnect behavior lie outside that run. The release question is which of those boundaries has its own evidence today, especially when a source test and a consumer install reach different code paths.