-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
107 lines (89 loc) · 2.72 KB
/
Cargo.toml
File metadata and controls
107 lines (89 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[package]
name = "seren-mcp"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
description = "MCP server for SerenDB - AI assistant integration"
repository = "https://github.com/seren/seren"
keywords = ["seren", "mcp", "ai", "database"]
[[bin]]
name = "seren-mcp"
path = "src/main.rs"
[features]
default = []
# Enable production observability (OpenTelemetry tracing + Prometheus /metrics endpoint)
telemetry = [
"dep:tracing-opentelemetry",
"dep:opentelemetry",
"dep:opentelemetry_sdk",
"dep:opentelemetry-otlp",
"dep:prometheus",
]
[dependencies]
# Workspace - shared API client
seren = { path = "../api" }
jiff = { workspace = true }
# MCP SDK
rmcp = { workspace = true }
schemars = { workspace = true }
tokio-util = { workspace = true }
# Web server
axum = { workspace = true }
tower = { workspace = true }
tower-http = { workspace = true }
# Async runtime
tokio = { workspace = true }
# Database (token storage)
sqlx = { workspace = true }
# Auth
oauth2 = { workspace = true }
argon2 = { workspace = true }
jsonwebtoken = { workspace = true }
arc-swap = { workspace = true }
aes-gcm = { workspace = true }
# Serialization
serde = { workspace = true }
serde_json = { workspace = true }
# Error handling
thiserror = { workspace = true }
anyhow = { workspace = true }
# HTTP client (for SQL proxy)
reqwest = { workspace = true }
urlencoding = { workspace = true }
# Logging & Telemetry
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
# OpenTelemetry (optional - for hosted/production deployments)
tracing-opentelemetry = { version = "0.32", optional = true }
opentelemetry = { version = "0.31", optional = true }
opentelemetry_sdk = { version = "0.31", features = ["rt-tokio"], optional = true }
opentelemetry-otlp = { version = "0.31", features = ["http-proto", "reqwest-client"], optional = true }
# Metrics (optional - for production deployments)
prometheus = { version = "0.14", default-features = false, optional = true }
# Ethereum wallet
alloy = { workspace = true }
hex = { workspace = true }
# Config
toml = { workspace = true }
etcetera = { workspace = true }
# Utils
uuid = { workspace = true }
rand = { workspace = true }
sha2 = { workspace = true }
subtle = { workspace = true }
base64 = { workspace = true }
async-trait = { workspace = true }
async-stream = { workspace = true }
futures = { workspace = true }
time = { workspace = true }
html-escape = { workspace = true }
tower_governor = { workspace = true }
lru = "0.16.3"
tokio-stream = "0.1.18"
[dev-dependencies]
temp-env = { version = "0.3", features = ["async_closure"] }
tempfile = "3"
testcontainers = "0.27"
testcontainers-modules = { version = "0.15", features = ["postgres"] }
wiremock = "0.6"