pub struct McpSettings {
pub mode: McpMode,
pub status_api_url: String,
pub api_token: Option<String>,
pub mcp_token: Option<String>,
pub remote_host: Option<String>,
pub release_tag: Option<String>,
pub bin_dir: Option<PathBuf>,
pub install_ssh_key: bool,
}Expand description
Settings shared by tools and HTTP server.
Fields§
§mode: McpModePC vs box execution mode (HORTO_MCP_MODE).
status_api_url: StringBase URL of horto-os-ui-status-api (HORTO_STATUS_API_URL).
api_token: Option<String>Status-api bearer (HORTO_API_TOKEN).
mcp_token: Option<String>Bearer required for Streamable HTTP. Falls back to api_token.
remote_host: Option<String>SSH target host for PC privileged tools (HORTO_REMOTE_HOST).
release_tag: Option<String>Release tag for remote CLI install (HORTO_RELEASE_TAG).
bin_dir: Option<PathBuf>Local directory of ecosystem binaries (HORTO_BIN_DIR).
install_ssh_key: boolWhen true, offer SSH key install on remote probe (HORTO_INSTALL_SSH_KEY).
Implementations§
Source§impl McpSettings
impl McpSettings
Trait Implementations§
Source§impl Clone for McpSettings
impl Clone for McpSettings
Source§fn clone(&self) -> McpSettings
fn clone(&self) -> McpSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for McpSettings
impl RefUnwindSafe for McpSettings
impl Send for McpSettings
impl Sync for McpSettings
impl Unpin for McpSettings
impl UnsafeUnpin for McpSettings
impl UnwindSafe for McpSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more