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>
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>
loadTypeIcons logs failures, only notifies on change and bumps iconsVersion;
every generation bump reloads it. The tree re-resolves label icons when
iconsVersion changes, without re-running the layout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Page header, All pages, quick switcher, recents, tabs, hub members, tag view,
linked references, related pages, type pill and the tree view; not the network
graph.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sidebar entry and tab route. Types: emoji, count, create, rename, delete.
Tags: count and sources; explicit tags can be renamed or deleted, hub and
type tags are locked with an explanation. AppState caches type icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
create_type, set_type_icon, rename_type and remove_type; TagDto carries the
icon and tag sources; PageBrief, TitleHit, BacklinkGroup and GraphNode
carry the page type. Bindings regenerated; MemoryBackend mirrors the core.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Schema v8 adds type_defs (name, icon, tombstone, hlc). create_type,
set_type_icon, remove_type and rename_type; rename_tag moves the icon and
type_catalog lists icons and defined-but-unused types.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Members of a hub are indexed under the hub's title in page_tags, tag_catalog and the
graph tag nodes, merged with a same-name type or tag. Hub rename, delete and
membership changes re-index the derived index (no ops). Schema v7 rebuilds it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tags are sorted and deduplicated by title_key in the migration and in
write_page_row (remote ops included). The migration runs in one transaction,
rebuilds page_tags once and repairs malformed tags/types values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tags no longer have pages. A page has at most one type, which implies a
tag of the same name. Tags are stored sorted. Adds rename_tag and
remove_tag. Schema v6 turns tag pages into notes and trims types to the
first one. History exports synapse-type:: and reads the old forms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>