From 888debee0077a32b10f4680c28a17caf88385ae6 Mon Sep 17 00:00:00 2001 From: Seto Elkahfi <1797197+setoelkahfi@users.noreply.github.com> Date: Mon, 3 Aug 2026 11:10:52 +0200 Subject: [PATCH] Add --version flag to xcrs and document cargo install xcrs previously had no --version flag; `xcrs --version` errored. Add `#[command(version)]` so it reports its crate version, matching `smb` and the version recorded in the MCP registry. Also document that `xcrs` is installed via `cargo install xcrs` from crates.io, not Homebrew, since `brew install smbcloud-cli` ships only the `smb` binary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- crates/xcrs/src/main.rs | 1 + docs/mcp.md | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/crates/xcrs/src/main.rs b/crates/xcrs/src/main.rs index 71edb8d..9f3b8ee 100644 --- a/crates/xcrs/src/main.rs +++ b/crates/xcrs/src/main.rs @@ -5,6 +5,7 @@ use xcrs::{IosAppTest, XcodeCommandLineTools}; #[derive(Debug, Parser)] #[command(name = "xcrs")] +#[command(version)] #[command(about = "Cross-platform mobile and TV app automation")] struct Cli { /// Run as a standalone Model Context Protocol server over stdio. diff --git a/docs/mcp.md b/docs/mcp.md index bf5e106..f681831 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -259,6 +259,12 @@ smb --mcp --scope automation xcrs --mcp ``` +> **Installing `xcrs`:** the standalone binary is published to +> [crates.io](https://crates.io/crates/xcrs) — install it with +> `cargo install xcrs`. It is **not** distributed through Homebrew; `brew +> install smbcloud-cli` only provides the `smb` binary (use `smb --mcp --scope +> automation` for the same tools without a separate install). + Both commands expose the same target-aware tools with the same names. Tool names do not repeat the server brand because MCP clients already namespace them by server.