Files
Synapse/crates/synapse-server/Cargo.toml
T
dasemuandClaude Opus 5.5 8459838d01 feat(server): serve MCP over Streamable HTTP at /v1/graphs/{id}/mcp
Enabled by SYNAPSE_MCP_TOKEN (own bearer tokens, constant-time check),
write tools with SYNAPSE_MCP_ALLOW_WRITE=1, Host allowlist via
SYNAPSE_MCP_ALLOWED_HOSTS. Stateless JSON responses; tools run on the shared
graph handle and wake SSE subscribers after writes. Never creates graphs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:13:44 +01:00

39 lines
1.3 KiB
TOML

[package]
name = "synapse-server"
version = "0.1.0"
edition.workspace = true
license.workspace = true
description = "Self-hosted Synapse sync server (axum): multi-graph op-log sync, blobs, read API"
[lib]
name = "synapse_server"
[[bin]]
name = "synapse-server"
path = "src/main.rs"
[dependencies]
synapse-core.workspace = true
# Shared wire types (single source of truth for the protocol).
synapse-sync = { path = "../synapse-sync" }
# MCP tools and Streamable HTTP service mounted at /v1/graphs/{id}/mcp.
synapse-mcp = { path = "../synapse-mcp" }
serde.workspace = true
serde_json.workspace = true
chrono.workspace = true
# HTTP framework (routing, SSE, streaming bodies).
axum = "0.8"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "sync", "time", "fs", "io-util", "signal", "process"] }
tokio-util = { version = "0.7", features = ["io"] }
futures-util = "0.3"
# Constant-time token comparison (blake3::Hash equality) and blob verification.
blake3 = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Per-request tracing spans.
tower-http = { version = "0.6", features = ["trace"] }
[dev-dependencies]
tempfile = "3"
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls-webpki-roots", "json"] }