mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-27 07:46:25 +00:00
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>
This commit is contained in:
1 parent
c0f0716d3b
commit
8459838d01
10 files changed
+367
-4
No files matched your search
@@ -16,6 +16,8 @@ path = "src/main.rs"
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user