[package]
name = "df-mcp"
version = "0.1.0"
edition = "2021"
description = "DevFlow MCP Server — 对外暴露数据层工具(JSON-RPC 2.0 over stdio)"

[dependencies]
df-storage = { path = "../df-storage" }
df-types = { path = "../df-types" }
# df-nodes: advance_task 复用推进链唯一 status 写入路径(advance_task_atomic,
# 含 is_valid_state+can_transition+同态拒绝三层校验),避免 MCP 直调底层
# advance_status_atomic 绕过状态机(防止外部客户端非法跳态 todo→done)。
df-nodes = { path = "../df-nodes" }
# df-project: bind_directory 复用技术栈探测(detect_stack)与路径规范化(normalize_path),
# 对齐 GUI tool_registry.rs::bind_dir_to_project,避免在本 crate 重复实现镜像。
df-project = { path = "../df-project" }
serde.workspace = true
serde_json.workspace = true
tokio.workspace = true
anyhow.workspace = true
tracing.workspace = true
uuid.workspace = true
futures = "0.3"
# HTTP (streamable HTTP) transport 层:axum Router(workspace 已锁 0.7.9,零新依赖树)
axum = { version = "0.7" }

[dev-dependencies]
tokio = { workspace = true, features = ["full", "test-util"] }
# 单测用 tower::ServiceExt::oneshot 直接打 Router
tower = { version = "0.5", features = ["util"] }
