-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Summary
The src/mcp-client.ts module currently lacks dedicated unit tests. While it is indirectly tested through integration tests in src/toolsets/tests/stackone.mcp-fetch.spec.ts, having unit tests would improve test coverage and make it easier to catch regressions.
Current State
mcp-client.tsis a thin wrapper around MCP SDK'sClientandStreamableHTTPClientTransport- The
createMCPClientfunction creates and returns these instances along with anasyncDisposemethod - No dedicated unit tests exist for this module
Suggested Tests
- Verify
ClientandTransportare correctly initialised with provided options - Test that
asyncDisposeproperly callsclose()on both client and transport - Test header passing to transport
- Test error handling for invalid URLs
Related Files
src/mcp-client.tssrc/toolsets/tests/stackone.mcp-fetch.spec.ts(integration tests)
Metadata
Metadata
Assignees
Labels
No labels