# libtmux_mcp.prompts.register_prompts

- **Module:** libtmux_mcp.prompts
- **Package:** libtmux-mcp
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/prompts/__init__.py#L81
- **Page:** https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-prompts-register_prompts/

```
libtmux_mcp.prompts.register_prompts(mcp: FastMCP) -> None
```

Register the narrow prompt set with the MCP instance.

When ``LIBTMUX_MCP_PROMPTS_AS_TOOLS=1``, also install the
``PromptsAsTools`` transform so clients that only speak the MCP
tools protocol (some CLI agents and older SDKs) can still reach
the prompts as ``list_prompts`` / ``get_prompt`` tool calls.
