[package]
name = "codelens-mcp"
version.workspace = true
edition.workspace = true
license.workspace = true
description.workspace = true
repository.workspace = true
readme = "README.md"
keywords.workspace = true
categories.workspace = true
homepage.workspace = true

[[bin]]
name = "codelens-mcp"
path = "src/main.rs"

[dependencies]
anyhow.workspace = true
axum = { workspace = true, optional = true }
tokio = { workspace = true, optional = true }
tokio-stream = { workspace = true, optional = true }
uuid = { workspace = true, optional = true }
serde.workspace = true
serde_json.workspace = true
codelens-engine = { path = "../codelens-engine", version = "=1.8.0" }
thiserror.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true

[dev-dependencies]
tower = { workspace = true }
tokio = { workspace = true }
http-body-util = { workspace = true }

[features]
default = ["semantic"]
semantic = ["codelens-engine/semantic"]
http = ["dep:axum", "dep:tokio", "dep:uuid", "dep:tokio-stream"]
