mcp: MCP server calling application use cases

This commit is contained in:
2026-07-12 03:31:08 +02:00
parent 56d742a74c
commit c869e9ab84
10 changed files with 980 additions and 1 deletions

39
crates/mcp/Cargo.toml Normal file
View File

@@ -0,0 +1,39 @@
[package]
name = "mcp"
version = "0.1.0"
edition = "2024"
[[bin]]
name = "k-tv-mcp"
path = "src/main.rs"
[features]
default = ["sqlite", "jellyfin"]
sqlite = ["dep:adapter-sqlite", "infra-wiring/sqlite"]
postgres = ["dep:adapter-postgres", "infra-wiring/postgres"]
jellyfin = ["dep:adapter-jellyfin"]
[dependencies]
domain = { workspace = true }
application = { workspace = true }
infra-wiring = { workspace = true }
adapter-auth = { workspace = true }
adapter-event-publisher = { workspace = true }
adapter-sqlite = { workspace = true, optional = true }
adapter-postgres = { workspace = true, optional = true }
adapter-jellyfin = { workspace = true, optional = true }
rmcp = { version = "0.1", features = ["server", "transport-io"] }
tokio = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
anyhow = "1"
thiserror = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
chrono = { workspace = true }
uuid = { workspace = true }
schemars = "0.8"
async-trait = { workspace = true }
dotenvy = "0.15"