File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ func main() {
54
54
// Create client with the transport
55
55
c = client .NewClient (stdioTransport )
56
56
57
+ // Start the client
58
+ if err := c .Start (ctx ); err != nil {
59
+ log .Fatalf ("Failed to start client: %v" , err )
60
+ }
61
+
57
62
// Set up logging for stderr if available
58
63
if stderr , ok := client .GetStderr (c ); ok {
59
64
go func () {
@@ -84,11 +89,6 @@ func main() {
84
89
c = client .NewClient (httpTransport )
85
90
}
86
91
87
- // Start the client
88
- if err := c .Start (ctx ); err != nil {
89
- log .Fatalf ("Failed to start client: %v" , err )
90
- }
91
-
92
92
// Set up notification handler
93
93
c .OnNotification (func (notification mcp.JSONRPCNotification ) {
94
94
fmt .Printf ("Received notification: %s\n " , notification .Method )
You can’t perform that action at this time.
0 commit comments