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 37ac814 commit 37dec5aCopy full SHA for 37dec5a
client/transport/sse.go
@@ -45,6 +45,12 @@ func WithHeaders(headers map[string]string) ClientOption {
45
}
46
47
48
+func WithHttpClient(httpClient *http.Client) ClientOption {
49
+ return func(sc *SSE) {
50
+ sc.httpClient = httpClient
51
+ }
52
+}
53
+
54
// NewSSE creates a new SSE-based MCP client with the given base URL.
55
// Returns an error if the URL is invalid.
56
func NewSSE(baseURL string, options ...ClientOption) (*SSE, error) {
go.mod
@@ -1,6 +1,6 @@
1
module github.com/mark3labs/mcp-go
2
3
-go 1.23
+go 1.23.0
4
5
require (
6
github.com/google/uuid v1.6.0
0 commit comments