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.
| 608 | // interface. The underlying client is shared across reconnects: a fresh |
| 609 | // gomcp.ClientSession is created internally by the client each Initialize. |
| 610 | type clientSession struct { |
| 611 | client mcpClient |
| 612 | } |
| 613 | |
| 614 | func (s *clientSession) Wait() error { return s.client.Wait() } |
| 615 | func (s *clientSession) Close(ctx context.Context) error { return s.client.Close(ctx) } |
nothing calls this directly
no outgoing calls
no test coverage detected