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

mcp.policy.Selection

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

API reference · Markdown

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

The startup-frozen request for one MCP tool surface.

Discussed in Rust MCP API

Members

parse

parse ( toolsets : Option<&str> , include : Option<&str> , exclude : Option<&str> ) → Result<Self, SurfaceError>
method [source]
method [source]
parse

Parse the three list settings before any tmux connection is opened.

Errors

Returns an error for empty tokens or unknown tool and toolset names.

parse_for_socket

parse_for_socket ( toolsets : Option<&str> , include : Option<&str> , exclude : Option<&str> , default_teardown : bool ) → Result<Self, SurfaceError>
method [source]
method [source]
parse_for_socket

Parse a selection while applying the selected socket's provenance.

Errors

Returns an error for empty tokens or unknown tool and toolset names.

from_env

from_env ( default_teardown : bool ) → Result<Self, SurfaceError>
method [source]
method [source]
from_env

Read and validate the process-wide selection before serving MCP.

Errors

Returns an error for invalid UTF-8, malformed selections, or retired settings.

toolsets

toolsets ( self ) → &[Toolset]
method [source]
method [source]
toolsets

The startup-frozen toolsets in deterministic order.

Esc

Type to search.