We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0e968a commit 807d5b7Copy full SHA for 807d5b7
client/sse.go
@@ -53,6 +53,12 @@ func WithSSEReadTimeout(timeout time.Duration) ClientOption {
53
}
54
55
56
+func WithHTTPClient(client *http.Client) ClientOption {
57
+ return func(sc *SSEMCPClient) {
58
+ sc.httpClient = client
59
+ }
60
+}
61
+
62
// NewSSEMCPClient creates a new SSE-based MCP client with the given base URL.
63
// Returns an error if the URL is invalid.
64
func NewSSEMCPClient(baseURL string, options ...ClientOption) (*SSEMCPClient, error) {
0 commit comments