# mcp.ServerSession.Close

- **Module:** mcp.ServerSession
- **Package:** github.com/libtmux/libtmux-go/mcp
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/mcp/instance_lifecycle.go#L128
- **Page:** https://libtmux.org/en/go/latest/mcp/reference/mcp-serversession-close/

```
mcp.ServerSession.Close() -> error
```

Close stops scoped work, closes the transport, and joins SDK session cleanup.
