# mcp.Instance.CloseContext

- **Module:** mcp.Instance
- **Package:** github.com/libtmux/libtmux-go/mcp
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/mcp/instance_lifecycle.go#L24
- **Page:** https://libtmux.org/en/go/latest/mcp/reference/mcp-instance-closecontext/

```
mcp.Instance.CloseContext(ctx: context.Context) -> error
```

CloseContext starts shutdown unconditionally. ctx bounds only this call's wait; a later call can resume waiting for the same shutdown.
