mcp.policy.Builder
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
-
Assembles a
TmuxToolswith the parts the environment usually supplies.
Members
-
Allow tools to return the values of these tmux environment variables.
None are allowed by default:
show_environmentreports names and state, andget_tmux_variablesrefuses 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 ( mut , caller : Option<CallerIdentity> ) Self
-
Say where this process is running, rather than reading the environment.
-
Choose the startup-frozen unordered tool surface.
Discussed in Rust MCP API
- socket_provenance ( mut , provenance : SocketProvenance ) Self
-
Record only the socket/configuration provenance startup established.
-
Build the server with its startup-frozen tool selection.
Panics
Panics if native tool metadata violates the capability contract.
- try_build ( self ) Result<TmuxTools, SurfaceError>
-
Build the server after validating every named tool against the manifest.
Errors
Returns an error if the native routes or requested selection are invalid.