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,
pub skipped_entries: 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,
skipped_entries: 0,
};
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.
skipped_entries: usizeNumber of symlinked entries skipped while walking
~/.claude/servers/ — any symlinked entry (a server-id directory, an
intermediate subdirectory, or a file) encountered at any depth.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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§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
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
key and return true if they are equal.