[package]
name = "browser-mcp-rust-server"
version = "1.0.0"
edition = "2021"
authors = ["Browser MCP Bridge"]
description = "MCP compliant high-performance Rust server for browser extension bridge"
license = "MIT"
[dependencies]
# Official MCP Rust SDK (rmcp) with StreamableHTTP transport
rmcp = { version = "0.2", features = ["server", "transport-streamable-http-server"] }
# Async runtime and core utilities
tokio = { version = "1.35", features = ["full"] }
tokio-util = { version = "0.7", features = ["codec"] }
futures-util = "0.3"
async-trait = "0.1"
# HTTP server for WebSocket connections (browser extensions)
axum = { version = "0.7", features = ["ws"] }
tower = { version = "0.4", features = ["timeout"] }
tower-http = { version = "0.5", features = ["cors"] }
# Serialization and JSON processing
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# High-performance data structures
dashmap = "5.5" # Lock-free concurrent HashMap
parking_lot = "0.12" # Fast mutex and RwLock
# Utilities
uuid = { version = "1.8", features = ["v4", "serde"] }
anyhow = "1.0" # Error context
chrono = { version = "0.4", features = ["serde"] }
regex = "1.10"
# Observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Performance optimization profile
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
opt-level = 3
[[bin]]
name = "mcp-compliant-server"
path = "src/main_mcp_compliant.rs"