MCPcopy
hub / github.com/docker/docker-agent / clientSession

Struct clientSession

pkg/tools/mcp/mcp.go:610–612  ·  view source on GitHub ↗

clientSession adapts an mcpClient's Wait/Close to the lifecycle.Session interface. The underlying client is shared across reconnects: a fresh gomcp.ClientSession is created internally by the client each Initialize.

Source from the content-addressed store, hash-verified

608// interface. The underlying client is shared across reconnects: a fresh
609// gomcp.ClientSession is created internally by the client each Initialize.
610type clientSession struct {
611 client mcpClient
612}
613
614func (s *clientSession) Wait() error { return s.client.Wait() }
615func (s *clientSession) Close(ctx context.Context) error { return s.client.Close(ctx) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected