[package]
edition = "2024"
name = "database-mcp"
version = "0.6.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A single-binary MCP server for MySQL, MariaDB, PostgreSQL, and SQLite"
homepage = "https://database.haymon.ai"
readme = "README.md"
keywords = [
"mcp",
"database",
"mysql",
"postgresql",
"sqlite",
]
categories = [
"database",
"command-line-utilities",
]
license = "MIT"
repository = "https://github.com/haymon-ai/database"
[[bin]]
name = "database-mcp"
path = "src/main.rs"
[[test]]
name = "approval_mysql"
path = "tests/approval/mysql.rs"
[[test]]
name = "approval_postgres"
path = "tests/approval/postgres.rs"
[[test]]
name = "approval_sqlite"
path = "tests/approval/sqlite.rs"
[[test]]
name = "functional_mysql"
path = "tests/functional/mysql.rs"
[[test]]
name = "functional_postgres"
path = "tests/functional/postgres.rs"
[[test]]
name = "functional_sqlite"
path = "tests/functional/sqlite.rs"
[dependencies.axum]
version = "0.8"
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[dependencies.database-mcp-config]
version = "0.6.1"
[dependencies.database-mcp-mysql]
version = "0.6.1"
[dependencies.database-mcp-postgres]
version = "0.6.1"
[dependencies.database-mcp-server]
version = "0.6.1"
[dependencies.database-mcp-sqlite]
version = "0.6.1"
[dependencies.mimalloc]
version = "0.1"
[dependencies.rmcp]
version = "1.3"
features = [
"macros",
"server",
"transport-io",
"transport-streamable-http-server",
]
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
[dependencies.tower-http]
version = "0.6"
features = ["cors"]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dev-dependencies.database-mcp-config]
version = "0.6.1"
[dev-dependencies.database-mcp-mysql]
version = "0.6.1"
[dev-dependencies.database-mcp-postgres]
version = "0.6.1"
[dev-dependencies.database-mcp-server]
version = "0.6.1"
[dev-dependencies.database-mcp-sqlite]
version = "0.6.1"
[dev-dependencies.insta]
version = "1"
features = [
"json",
"redactions",
]
[dev-dependencies.rmcp]
version = "1.3"
features = [
"client",
"macros",
"server",
"transport-io",
"transport-streamable-http-server",
]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.tower-http]
version = "0.6"
features = ["cors"]
[lints.clippy]
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
struct_excessive_bools = "allow"
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true