MCPconceptAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

mcp.policy.Builder.environment_values

#[must_use] pub fn environment_values( mut self, names: BTreeSet<String> ) -> Self

Allow tools to return the values of these tmux environment variables.

Description#

None are allowed by default: show_environment reports names and state, and get_tmux_variables refuses a name the environment holds. A tmux server inherits the environment of the shell that started it, so its values are the user's tokens and keys.

Parameters
Esc

Type to search.

Reference previewOpen reference