Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

mcp.policy.Builder

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

struct mcp.policy.Builder
structoverload [source]
structoverload [source]
struct mcp.policy.Builder

Assembles a TmuxTools with the parts the environment usually supplies.

Members

environment_values

environment_values ( mut , names : BTreeSet<String> ) → Self
method [source]
method [source]
environment_values

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

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.

caller

caller ( mut , caller : Option<CallerIdentity> ) → Self
method [source]
method [source]
caller

Say where this process is running, rather than reading the environment.

selection

selection ( mut , selection : Selection ) → Self
method [source]
method [source]
selection

Choose the startup-frozen unordered tool surface.

Discussed in Rust MCP API

socket_provenance

socket_provenance ( mut , provenance : SocketProvenance ) → Self
method [source]
method [source]
socket_provenance

Record only the socket/configuration provenance startup established.

build

build ( self ) → TmuxTools
method [source]
method [source]
build

Build the server with its startup-frozen tool selection.

Panics

Panics if native tool metadata violates the capability contract.

try_build

try_build ( self ) → Result<TmuxTools, SurfaceError>
method [source]
method [source]
try_build

Build the server after validating every named tool against the manifest.

Errors

Returns an error if the native routes or requested selection are invalid.

Esc

Type to search.