pdftract/crates/pdftract-cli/Cargo.toml
jedarden 210c40de8c feat(pdftract-mcp): add MCP server implementation changes
Changes from Phase 6.7 child beads that were not committed earlier:

- Add subtle dependency for constant-time token comparison
- Add root directory for path-traversal protection in HTTP+SSE transport
- Update MCP server state to support --root flag
- Minor fixes and improvements across MCP modules

These changes support the 7 closed child beads:
- pdftract-5xq16: JSON-RPC 2.0 framing layer
- pdftract-67tm8: stdio transport
- pdftract-g0ro2: HTTP+SSE transport
- pdftract-24kut: transport mutual exclusion enforcement
- pdftract-1rami: tool catalog (10 tools)
- pdftract-6696g: path-traversal protection
- pdftract-zltqd: bearer-token auth

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 03:09:56 -04:00

58 lines
1.5 KiB
TOML

[package]
name = "pdftract-cli"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
publish = true
[[bin]]
name = "pdftract"
path = "src/main.rs"
test = true
[[bin]]
name = "generate_lzw_fixtures"
path = "../../tests/fixtures/generate_lzw_fixtures_main.rs"
[lib]
name = "pdftract_cli"
path = "src/lib.rs"
default-run = "pdftract"
[dependencies]
anyhow = { workspace = true }
async-stream = "0.3"
axum = { version = "0.7", features = ["json"] }
chrono = { version = "0.4", features = ["serde"] }
clap = { version = "4.5", features = ["derive"] }
hyper = { version = "1.0", features = ["full"] }
hyper-util = { version = "0.1", features = ["full"] }
http-body-util = "0.1"
lzw = { workspace = true }
pdftract-core = { path = "../pdftract-core" }
regex = "1.10"
secrecy = { workspace = true }
serde = { workspace = true, features = ["derive"] }
subtle = "2.6"
sha2 = "0.10"
serde_json = "1.0"
schemars = { version = "0.8", features = ["derive"] }
tempfile = "3"
tera = "1"
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
tower = { version = "0.5", features = ["full"] }
tower-http = { version = "0.5", features = ["cors", "trace", "limit", "compression-full"] }
tracing = { workspace = true }
walkdir = "2"
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[dev-dependencies]
jsonschema = "0.18"
reqwest = { version = "0.12", features = ["blocking", "json", "rustls-tls"], default-features = false }
schemars = { version = "0.8", features = ["derive"] }