Skip to content

Commit 97f72fb

Browse files
committed
initial clap setup
1 parent c31b010 commit 97f72fb

File tree

3 files changed

+132
-0
lines changed

3 files changed

+132
-0
lines changed

Cargo.lock

Lines changed: 121 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ authors = ["Alex Rozgo <[email protected]>"]
77

88
[dependencies]
99
anyhow = "1"
10+
clap = { version = "4.5", features = ["derive"] }
1011
tracing = "0.1"
1112
tracing-subscriber = { version = "0.3", features = [
1213
"env-filter",

src/main.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
use anyhow::Result;
2+
use clap::Parser;
23
use rmcp::{ServiceExt, transport::stdio};
34
use tracing_subscriber::{self, EnvFilter};
45

56
pub mod counter;
67
pub mod developer;
78

9+
#[derive(Parser)]
10+
#[command(name = "developer")]
11+
#[command(about = "A developer MCP server")]
12+
#[command(version)]
13+
struct Cli {
14+
// No commands for now, just basic CLI structure
15+
}
16+
817
#[tokio::main]
918
async fn main() -> Result<(), Box<dyn std::error::Error>> {
19+
let _cli = Cli::parse();
1020
tracing_subscriber::fmt()
1121
.with_env_filter(EnvFilter::from_default_env().add_directive(tracing::Level::DEBUG.into()))
1222
.with_writer(std::io::stderr)

0 commit comments

Comments
 (0)