Skip to content

Commit ea7355e

Browse files
fixes #141
1 parent ed87cb1 commit ea7355e

File tree

1 file changed

+3
-2
lines changed
  • cmd/docker-mcp/internal/gateway

1 file changed

+3
-2
lines changed

cmd/docker-mcp/internal/gateway/run.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ func (g *Gateway) Run(ctx context.Context) error {
164164
_, _ = req.Session.ListRoots(ctx, &mcp.ListRootsParams{})
165165
},
166166
CompletionHandler: nil,
167-
InitializedHandler: func(_ context.Context, _ *mcp.InitializedRequest) {
168-
log("- Client initialized")
167+
InitializedHandler: func(_ context.Context, req *mcp.InitializedRequest) {
168+
clientInfo := req.Session.InitializeParams().ClientInfo
169+
log(fmt.Sprintf("- Client initialized %s@%s %s", clientInfo.Name, clientInfo.Version, clientInfo.Title))
169170
},
170171
HasPrompts: true,
171172
HasResources: true,

0 commit comments

Comments
 (0)