mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 23:36:20 +00:00
feat(mcp): add synapse-mcp server with stdio binary
Read tools (search, get_page, get_journal, list_pages, backlinks, related, list_tags, list_types, hubs, timeline, journal_links) and page-curation write tools behind --allow-write (create_page, append_blocks, update_block, delete_block, set_page_type, set_page_tags, set_page_hub). Journals are read-only. Reads run in a rolled-back transaction; writes in BEGIN IMMEDIATE through the Graph API so they are logged as ops and sync. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c8f7cdaf92
commit
c0f0716d3b
9 files changed
+3308
No files matched your search
@@ -0,0 +1,31 @@
|
||||
[package]
|
||||
name = "synapse-mcp"
|
||||
version = "0.1.0"
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
description = "MCP (Model Context Protocol) server over a Synapse graph: stdio binary + Streamable HTTP service"
|
||||
|
||||
[lib]
|
||||
name = "synapse_mcp"
|
||||
|
||||
[[bin]]
|
||||
name = "synapse-mcp"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
synapse-core.workspace = true
|
||||
# Logseq-style Markdown outline parser (write tools turn Markdown into nested blocks).
|
||||
synapse-import = { path = "../synapse-import" }
|
||||
chrono.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
uuid.workspace = true
|
||||
rusqlite.workspace = true
|
||||
# Request parts (the HTTP server passes the graph to tools through their extensions).
|
||||
http = "1"
|
||||
# Official MCP SDK: protocol types, tool router/schemas, stdio and Streamable HTTP transports.
|
||||
rmcp = { version = "3.7", features = ["server", "macros", "transport-io", "transport-streamable-http-server"] }
|
||||
tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-std"] }
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3"
|
||||
Reference in new issue
Block a user