diff --git a/README.md b/README.md index fcfe3b8..d851948 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help + -h, --help Print help + -V, --version Print version ``` ### Using the stdio protocol diff --git a/src/cli.rs b/src/cli.rs index fee28a3..02219ea 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -24,6 +24,7 @@ use std::path::PathBuf; /// Elastic MCP server #[derive(Debug, Parser)] +#[command(version)] pub struct Cli { /// Container mode: change default http address, rewrite localhost to the host's address #[clap(global=true, long, env = "CONTAINER_MODE")]