Skip to content

test(#414): MCP server E2E tests with real protocol clients - #416

Merged
admarble merged 1 commit into
mainfrom
feature/414-mcp-e2e-tests-real-protocol-client
Mar 24, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/414-mcp-e2e-tests-real-protocol-client

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds true end-to-end integration tests for the MCP server using real SDK clients (StdioClientTransport, SSEClientTransport) instead of mocks or InMemoryTransport
  • Tests the full path: Real MCP Client → stdio/SSE protocol → sequant serve → tool handler → response
  • Covers all 10 acceptance criteria: stdio E2E (tool/resource discovery, tool call, resource read), SSE E2E (SDK connection, health endpoint, multi-client rejection), graceful shutdown, SDK optional guard, and no test pollution

Test plan

  • All 8 E2E tests pass (npx vitest run __tests__/integration/mcp-e2e.integration.test.ts)
  • Full test suite passes (80/81 files — 1 pre-existing timeout in state-utils unrelated to changes)
  • Build passes (npm run build)
  • No changes to existing files — single new test file only

Closes #414

🤖 Generated with Claude Code

Adds true end-to-end integration tests that exercise the full path:
Real MCP SDK Client → stdio/SSE protocol → sequant serve → tool handler → response

Covers all 10 acceptance criteria:
- AC-1–4: Stdio E2E (tool/resource discovery, tool call, resource read)
- AC-5–7: SSE E2E (SDK connection, health endpoint, multi-client rejection)
- AC-8: Graceful shutdown (SIGTERM → clean disconnect)
- AC-9: SDK optional guard (skipIf pattern)
- AC-10: No test pollution (temp dirs, HOME override)
@admarble
admarble force-pushed the feature/414-mcp-e2e-tests-real-protocol-client branch from 8d716f6 to 3a7990d Compare March 24, 2026 21:00
@admarble
admarble merged commit c74105c into main Mar 24, 2026
5 checks passed
@admarble
admarble deleted the feature/414-mcp-e2e-tests-real-protocol-client branch March 24, 2026 21:00
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.

MCP server: add true E2E tests with real protocol client

1 participant