# LibTmux::MCP::Application#invite_shell

**MCP concept example** A working example of the core library. It can change without notice.

- **Module:** LibTmux::MCP
- **Package:** libtmux-mcp
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/d8ce4bbee0ca7748a81929f81f7d8d07f8c51267/gems/libtmux-mcp/lib/libtmux/mcp/application.rb#L104
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.3/mcp/reference/libtmux-mcp-application-invite_shell/

```
def invite_shell: (
  ::LibTmux::EntityRef,
  ?timeout: ::Numeric?,
  ?expires_in: ::Numeric,
  ?cancellation: untyped
) -> ::LibTmux::MCP::_ShellInvitation
```

Behavior: MCP application.

Behavior contract: MCP application.

## Parameters

- `arg1` (`::LibTmux::EntityRef`)
- `timeout` (`::Numeric?`)
- `expires_in` (`::Numeric`)
- `cancellation` (`untyped`)
