#![allow(missing_docs)]
#[test]
fn mcp_stdio_binary_is_available() {
let stdio_crate = std::path::Path::new("../notedthat-mcp-stdio");
assert!(
stdio_crate.exists(),
"notedthat-mcp-stdio crate must exist at {}",
stdio_crate.display()
);
let cargo_toml = stdio_crate.join("Cargo.toml");
let content = std::fs::read_to_string(&cargo_toml)
.expect("Failed to read notedthat-mcp-stdio Cargo.toml");
assert!(
content.contains("[[bin]]") && content.contains("name = \"notedthat-mcp-stdio\""),
"notedthat-mcp-stdio must have a [[bin]] target in Cargo.toml"
);
}