Synapse MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Synapse MCP claim the auth refactor task and lock src/auth/ for me"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π§ Synapse MCP
Coordinate anything across AI coding agents β from system architecture down to terminal tests.
πΊπΈ English β’ π§π· PortuguΓͺs β’ π Live Website
Connect Claude Code, Antigravity, Codex, and Cursor to work on the same repository concurrently β without overwriting code, losing architectural context, or duplicating effort.
Zero Daemons. Zero Cloud. Zero Native Builds.
Synapse runs on Node's built-in node:sqlite driver (Node >= 22.13) in Write-Ahead Logging (WAL) mode. Every agent process communicates directly with .synapse/brain.db with sub-millisecond ACID concurrency.
β‘ Quick Start
# 1. Clone & Build
git clone https://github.com/holaluiz/synapse-mcp.git
cd synapse-mcp
npm install
npm run build
# 2. Auto-configure all detected AI clients on your system
npm run setup
# 3. Verify connection & diagnostics
npm run doctor
# 4. (Optional) Run the test suite, including a multi-process lock race
npm testRelated MCP server: vibecheck
π Supported AI Clients
Synapse detects your installed AI agents and idempotently configures their native MCP registration files with automatic backups (.synapse.backup):
Client | Interface | Native Config Location | Auto-Setup | Status |
Antigravity | IDE |
| :white_check_mark: | Verified |
Claude Code | Terminal |
| :white_check_mark: | Verified |
Codex | CLI / Sandbox |
| :white_check_mark: | Verified |
Cursor | IDE |
| :white_check_mark: | Verified |
OpenCode | CLI |
| :white_check_mark: | Supported |
Windsurf | IDE |
| Manual | Supported |
VS Code | IDE |
| Manual | Supported |
See docs/client-configuration.md for manual setup guides across Windows, macOS, and Linux.
ποΈ Architecture & Concurrency Model
When multiple agents run simultaneously, each agent launches its own isolated stdio process. Synapse bridges this isolation using an embedded SQLite WAL engine:
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Antigravity β β Claude Code β β Codex β
β (IDE Agent) β β (Terminal CLI) β β(Sandbox Runner) β
ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ
β stdio β stdio β stdio
βΌ βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Synapse MCP β β Synapse MCP β β Synapse MCP β
β Instance 1 β β Instance 2 β β Instance 3 β
ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ
β β β
βββββββββββββββββββββββββββΌββββββββββββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββ
β .synapse/brain.db (SQLite) β
β PRAGMA journal_mode = WAL; β
β PRAGMA busy_timeout = 5000; β
βββββββββββββββββββββββββββββββββββ€
β π File Locks & Task Board β
β π Architecture Decisions (ADRs)β
β β Investigation Unknowns β
β π§ Specialty Router & Handoffs β
β π Activity Audit Trail β
βββββββββββββββββββββββββββββββββββπ οΈ Complete MCP Tools Catalog
Synapse exposes 14 typed MCP tools designed specifically for multi-agent workflows:
1. Coordination & Anti-Collision
synapse_claim_task: Declares task ownership and places advisory locks on files, directories or globs (e.g.["src/auth/**"]). Patterns are compared by overlap, so a lock onsrc/auth/**blocks a claim onsrc/auth/login.ts. The check and the insert run in one SQLite write transaction, so two agents can never win the same files.synapse_release_task: Completes a task you own, clears its file locks, and records a work summary.force: trueclears stale locks left by a crashed agent (logged in the audit trail).synapse_get_tasks: Lists all active, pending, and blocked tasks, their handoff notes, and which files are currently locked.
2. Shared Memory & Architectural Decisions
synapse_record_decision: Saves an Architectural Decision Record (ADR) (context, decision, trade-offs) so no agent contradicts established conventions.synapse_record_knowledge: Stores reusable project conventions, secrets gotchas, or API patterns.synapse_query_memory: Fast indexed search across all decisions and knowledge entries.
3. Investigation Unknowns & Gaps (Inspired by REA)
synapse_record_unknown: Reports an unexplained error, missing requirement, or investigation gap for another agent to pick up.synapse_investigate_unknown: Marks an open gap asinvestigatingunder your name, so no other agent duplicates the investigation.synapse_resolve_unknown: Closes a gap with verified evidence or an explanation.synapse_list_unknowns: Lists all open, investigating, and resolved gaps sorted by severity.
4. Specialty Routing, Handoffs & Audit
synapse_recommend_agent: Evaluates task descriptions against the agent capability matrix (Antigravity for UI/IDE architecture, Claude Code for terminal/git/tests, Codex for isolated scripts).synapse_handoff_task: Transfers task ownership and file locks from the owning agent to another, with handoff notes the receiver sees insynapse_get_tasks.synapse_get_active_agents: Reports active agents seen in the last 15 minutes.synapse_get_activity: Reads the shared audit trail (claims, releases, handoffs, decisions, gaps), filterable by agent andsincetimestamp.
For full parameter schemas and examples, see docs/tools-reference.md.
π€ Collaboration Workflow in Practice
sequenceDiagram
autonumber
actor Dev as Developer
participant AG as Antigravity (IDE)
participant Syn as Synapse (.synapse/brain.db)
participant CC as Claude Code (CLI)
Dev->>AG: "Refactor auth and write integration tests"
AG->>Syn: synapse_claim_task("Refactor Auth", lock_patterns: ["src/auth/**"])
Syn-->>AG: Task claimed (task-101), locks acquired
AG->>Syn: synapse_record_decision("Use Argon2id for hashing")
AG->>Syn: synapse_record_unknown("Refresh token rotation window?")
AG->>Syn: synapse_handoff_task(to: "claude-code", task: "task-101", "Schema done. Run test suite.")
CC->>Syn: synapse_get_tasks()
Syn-->>CC: Task-101 assigned to you with locks
CC->>CC: Runs `npm test` in terminal & fixes token rotation
CC->>Syn: synapse_resolve_unknown("unk-202", "15 minute sliding window")
CC->>Syn: synapse_release_task("task-101", "Tests passing 100%")
Syn-->>CC: Locks freed, task marked completedπ Security & Local-First Privacy
100% Local-First: No data leaves your machine. The database resides in
.synapse/brain.db.Zero Telemetry: No tracking, phone-home, or third-party analytical endpoints.
Advisory Non-Destructive Locks: Synapse never changes filesystem permissions or hides files; locks are managed purely in database transactions.
Config Backups: Auto-setup creates
.synapse.backupbefore modifying any agent configuration file.
See SECURITY.md for vulnerability reporting guidelines.
π Deep Documentation
ποΈ Architecture & Concurrency Guide
π οΈ Complete Tools Reference
π Changelog
π License
MIT Β© Luiz / Um Cara Caramelo
Available Tools
14 toolssynapse_claim_taskA
Claim a task and lock file patterns to prevent collisions with other agents (Claude, Codex, Antigravity). Globs, directories and files are compared by overlap, so 'src/auth/**' blocks 'src/auth/login.ts'.
Inputs: title (required), agent_name (required), description, lock_patterns.
synapse_get_active_agentsARead-only
See which AI agents are currently active on this project and what they are working on
Inputs: no named parameters.
synapse_get_activityARead-only
Read the shared audit trail (claims, releases, handoffs, decisions, gaps), newest first. Use 'since' to catch up on what other agents did while you were away.
Inputs: limit, since, agent_name.
synapse_get_tasksARead-only
List all ongoing tasks, assigned agents, handoff notes, and currently locked files across all agents
Inputs: no named parameters.
synapse_handoff_taskA
Hand off a task you own and its file locks to another agent (e.g. Antigravity -> Claude Code for test runs). The notes are shown to the receiver in synapse_get_tasks.
Inputs: task_id (required), to_agent (required), from_agent (required), handoff_notes (required).
synapse_investigate_unknownA
Take ownership of an open gap by marking it 'investigating', so other agents don't duplicate the investigation
Inputs: agent_name (required), unknown_id (required).
synapse_list_unknownsARead-only
List unresolved questions, gaps, or bugs reported by any agent, most severe first
Inputs: status.
synapse_query_memoryBRead-only
Search shared decisions and knowledge base across the project
Inputs: query, category.
synapse_recommend_agentBRead-only
Consult the agent specialty matrix to determine which AI agent is best equipped for a given task
Inputs: task_description (required).
synapse_record_decisionB
Record an Architectural Decision Record (ADR) so other agents understand and respect key technical choices
Inputs: title (required), context (required), decision (required), agent_name (required), +1 more.
synapse_record_knowledgeB
Save project conventions, API patterns, configuration gotchas, or reusable knowledge for other agents
Inputs: topic (required), content (required), category (required), agent_name (required), +1 more.
synapse_record_unknownA
Flag an unresolved question, missing spec, or unexplained bug so another agent can investigate it
Inputs: question (required), agent_name (required), context, severity.
synapse_release_taskADestructive
Complete or release a task you own, freeing all associated file locks for other agents. Use force only to clear stale locks left by an agent that is gone.
Inputs: summary (required), task_id (required), agent_name (required), force, +1 more.
synapse_resolve_unknownB
Resolve an open gap with a verified explanation or fix
Inputs: agent_name (required), resolution (required), unknown_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 14 tools
Most tools target a distinct resource+action pair, and the task lifecycle (get/claim/release/handoff) and unknown lifecycle (record/investigate/resolve/list) are clearly delineated. The main overlap is between synapse_get_tasks, synapse_get_active_agents, and synapse_get_activity, which all surface agent state, though descriptions suggest different views (tasks vs agents vs audit trail).
All tools use snake_case with a consistent 'synapse_' prefix and a verb_noun structure, which is highly predictable. Minor deviation: listing operations alternate between 'get' (get_tasks, get_active_agents) and 'list' (list_unknowns), and 'query_memory' uses a different verb family.
14 tools sits squarely in the well-scoped 3-15 range. Each tool maps to a concrete coordination concern (task lifecycle, knowledge capture, gap tracking, agent orchestration) and earns its place without redundancy.
The surface covers task lifecycle, shared memory, unknown/gap handling, handoffs, and audit visibility, forming a coherent multi-agent coordination loop. Minor gaps exist: no update/edit operations for tasks, decisions, or knowledge entries, and no way to delete stale records or search tasks directly.
Maintenance
Related MCP Connectors
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Project management shared by people and AI agents, with persistent project state through MCP.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Shared memory for your AI tools: tasks, notes and context every tool can read and write over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides MCP tools for AI coding agents to coordinate on shared repositories, enabling task claiming, conflict detection, and plan management in real-time.MIT
- FlicenseAqualityBmaintenanceEnables coding agents to track and coordinate project work through a shared SQLite ledger, including task plans, session ancestry, claims, work locations, blockers, and commits via MCP tools.9-
- AlicenseNot gradedqualityBmaintenanceEnables coding agents in different editors and MCP clients to share messages, project context, notes, task ownership, handoffs, and advisory file claims through a local SQLite-backed coordination server. Supports MCP stdio, MCP Streamable HTTP, a JSON HTTP API, and a local CLI for multi-project agent collaboration.MIT
- AlicenseNot gradedqualityCmaintenanceEnables several AI agents, each connected through its own MCP client and server process, to coordinate through one shared SQLite database of projects, memories, tasks and handovers. Provides atomic task claiming with leases, subtask help requests and human-only approvals, so no two agents are given the same task and every write or refused call is recorded in an audit log.MIT