-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Add configurable timeout and automatic retry logic to connect().
Currently if a server is slow to respond or temporarily unavailable, the connection just fails. We should support:
const server = await connect("http://localhost:3000/mcp", {
timeout: 10000, // 10 second timeout
retries: 3, // retry up to 3 times
retryDelay: 1000, // 1 second between retries
});Implementation notes:
- Wrap the transport connection in a timeout using
AbortController - On failure, retry with exponential backoff up to
retriestimes - Throw a clear error message after all retries are exhausted
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers