Skip to content

ci: run a stdio smoke test in pr-check - #32

Open
jinho-yeom wants to merge 5 commits into
mainfrom
ci/stdio-smoke-test
Open

jinho-yeom wants to merge 5 commits into
mainfrom
ci/stdio-smoke-test

Conversation

@jinho-yeom

Copy link
Copy Markdown
Member

Why

pr-check only installs and builds, so a server that crashes on startup or drops a tool still passes. #18 was merged with "stdio smoke test" in its title, but the test was dropped before merge.

What

Notes

  • A PR that adds or removes a tool must update EXPECTED_TOOLS.
  • No network calls, no change to src or the published package.

Verified

Local with pnpm 9.15.9: passes in under 1 s. Early exit, non-JSON stdout, and no reply each fail with their own message.

jinho-yeom and others added 5 commits November 17, 2026 23:18
Bring back scripts/smoke-test.mjs as it was in the first commit of #18 (d6209a1), unchanged. It spawns dist/server.js, sends initialize and tools/list, and compares the tool names.

Co-authored-by: Dillion Verma <hello@dillion.io>
searchRegistryItems was removed in #26.
A server that crashed at startup left the requests pending, so the test waited 15 s and reported no response. Listen for the child exit and report the exit code.
A stray console.log in the server breaks MCP stdio clients. The test failed on it with a raw SyntaxError stack. Report the offending line.
pr-check only installed and built, so a server that builds but fails to start or drops a tool passed.
@jinho-yeom

Copy link
Copy Markdown
Member Author

@dillionverma Re-adding the smoke test from #18 in #32, since pr-check only runs tsc and I'm changing src a lot for 3.0.0.
Shout if you dropped it on purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant