pub struct SetupResult {
pub node_version: String,
pub mcp_config_path: String,
pub mcp_config_found: bool,
pub servers_dir_found: bool,
pub files_made_executable: usize,
}Expand description
Structured result of the environment setup checks.
Captures every check run performs so it can be rendered as JSON,
plain text, or the default human-readable pretty summary via
crate::formatters::format_output.
§Examples
use mcp_execution_cli::commands::setup::SetupResult;
let result = SetupResult {
node_version: "20.10.0".to_string(),
mcp_config_path: "/home/user/.claude/mcp.json".to_string(),
mcp_config_found: true,
servers_dir_found: true,
files_made_executable: 3,
};
assert_eq!(result.files_made_executable, 3);Fields§
§node_version: StringDetected Node.js version (e.g. "20.10.0"), without the leading v.
mcp_config_path: StringPath where ~/.claude/mcp.json is expected.
mcp_config_found: boolWhether ~/.claude/mcp.json exists.
servers_dir_found: boolWhether ~/.claude/servers/ exists. Always false on non-Unix
platforms, since file permissions are not checked there.
files_made_executable: usizeNumber of .ts files made executable under ~/.claude/servers/.
Always 0 on non-Unix platforms.
Trait Implementations§
Source§impl Clone for SetupResult
impl Clone for SetupResult
Source§fn clone(&self) -> SetupResult
fn clone(&self) -> SetupResult
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 moreSource§impl Debug for SetupResult
impl Debug for SetupResult
impl Eq for SetupResult
Source§impl PartialEq for SetupResult
impl PartialEq for SetupResult
Source§fn eq(&self, other: &SetupResult) -> bool
fn eq(&self, other: &SetupResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SetupResult
impl Serialize for SetupResult
impl StructuralPartialEq for SetupResult
Auto Trait Implementations§
impl Freeze for SetupResult
impl RefUnwindSafe for SetupResult
impl Send for SetupResult
impl Sync for SetupResult
impl Unpin for SetupResult
impl UnsafeUnpin for SetupResult
impl UnwindSafe for SetupResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.