Skip to main content

Synapse

Synapse MCP

Local-first AST code context for AI agents — without uploading source code to external services.

CI PyPI Python 3.12 | 3.13 | 3.14 MIT License

Quickstart

  1. Use Python >=3.12.
  2. Install Synapse as a managed CLI tool: uv tool install locker-room-tools-synapse-mcp.
  3. Connect it globally to your agent: synapse install codex
  4. Restart the agent once.

Replace codex with amp, antigravity, claude-code, cline, continue, copilot, copilot-vscode, crush, cursor, droid, gemini, goose, hermes, kimi, kiro, opencode, openclaw, qwen, roo, windsurf, or zed. No repository files are created. The first synapse_orient or synapse_inspect call initializes the local index and daemon automatically.

See Installation and lifecycle for upgrades, custom scopes, troubleshooting, and uninstall instructions. See MCP tools for tool contracts and recommended agent flows.

Development

Create a virtual environment and install the repository with development dependencies: uv venv && uv pip install -e ".[dev]". Then run synapse grammars install once.

The C# parser installs with Synapse. Indexing, watching, and the default MCP navigation tools load other parsers from the local grammar cache. Run synapse grammars install while online to populate it. Explicit setup operations, including synapse init and synapse install <agent>, can also download missing grammars.

Available MCP tools

Synapse exposes 19 deterministic MCP tools. The default profile is exactly two: synapse_orient (ranked, production-first matches for literal repository terms, with compact symbol handles) and synapse_inspect (one-snapshot batch inspection of selected symbols: definitions, bounded source, call-proven callers/callees plus neutral incoming and outgoing references, all with stored resolution, confidence, and usage kind). Both initialize and refresh the workspace automatically. The full profile adds initialization, symbol lookup, definitions, references, structural context, dependency navigation, project maps, indexing, daemon-health, and configuration/ignore-management tools. The complete parameter and response reference is in docs/tools.md.

Configuration

Ignore rules come from three layers, applied in order — the last matching rule wins, so a later layer can re-include what an earlier one ignored:

Layer Location Written by
built-in defaults packaged with Synapse negate a rule to turn it off
global ~/.config/synapse/ignore synapse ignore add ... --scope global
project <workspace>/.synapseignore synapse ignore ..., or agents over MCP

.synapseignore uses gitignore syntax — bare names (node_modules), directory-only rules (build/), root anchoring (/dist), globs (*.min.js, docs/**), # comments, and ! negation. Absolute paths and .. segments are rejected. .git is always ignored.

synapse ignore init --node --dotnet

init seeds the file from ecosystem templates; run synapse ignore presets to see all 14 and which ones your workspace matches. With no flags it detects them from marker files. Synapse also creates the file automatically the first time it initializes a recognizable workspace — it never touches an existing one, and you can opt out with SYNAPSE_NO_IGNORE_BOOTSTRAP=1 or "auto_ignore_bootstrap": false in .synapse/config.json.

.synapseignore is a plain, flat file with no managed sections. It is meant to be committed so the whole team indexes the same tree; Synapse only ever appends to it or removes an exact line.

synapse ignore list prints every effective rule in order with its layer, file, and line. Removing a rule that comes from a lower layer appends a negation rather than failing.

Earlier versions kept an ignored_directories list in config.json. That still works, but an ignore file supersedes it, and the first write migrates the entries across; synapse ignore migrate does it explicitly. watch.* settings stay in config.json and are unaffected.

A change needs no reindex: the next watch sweep purges newly-ignored files and picks up restored ones.

Watch daemon

Synapse requires a healthy dependency-free polling daemon before query tools can read an index. The navigation tools (or synapse_ensure_workspace on the full profile) start or repair it lazily, and the MCP entry point restores it for initialized workspaces after a reboot. Logs are written under the workspace data directory at logs/watch.log, and status is written to watch.json in the same data directory.

A running daemon is not by itself enough to answer a question. Before serving evidence the navigation tools also check that the index exists, the parsers are installed, and the stored relations were produced by the current extraction semantics — a Synapse upgrade therefore triggers one automatic rebuild rather than silently reusing stale relations.

Use synapse watch status --workspace . --json to inspect running, backend, pending, PID, timestamps, errors, and staleness_seconds. Stop a detached daemon with synapse watch stop --workspace .. For a bounded smoke check that performs one reconciliation sweep and exits, run synapse watch start --workspace . --foreground --once.

The shipped backend is currently polling-only. Its interval defaults to the user config watch.poll_interval_s; native OS event watching is intentionally deferred behind the core WatchBackend protocol.

Agent setup helpers

  • synapse install <agent> [--dry-run] [--offline] [--no-skill] [--no-hook] [--force] — writes the MCP entry, instructions, the managed skill, and (on agents that support context-injecting hooks: Claude Code, Qwen, Crush) a suggest-only pre-shell hook; see the support matrix and Hooks
  • synapse init --path <path> [--dry-run] [--offline]
  • synapse status --path <path> [--json]
  • synapse uninstall <agent> --global [--keep-skill] [--keep-hook] [--keep-instructions] [--keep-config] [--dry-run] — removes the MCP entry, managed skill, and hook; index/cache data is untouched
  • synapse setup <agent> --path <path> for advanced project-scoped integration
  • synapse mcp install <agent> --workspace <path> [--scope project|user] [--print]
  • synapse uninstall <agent> --path <path> [--scope project|user]
  • synapse doctor --path <path> [--agent <agent>] [--scope project|user]

Project setup, mcp install, manual indexing, serve, and foreground watch mode remain available for advanced integration and diagnostics.

Read docs/architecture.md before changing the project structure.

Metadata

Release files for locker-room-tools-synapse-mcp 0.6.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for locker-room-tools-synapse-mcp 0.6.6
File Size Uploaded Provenance Actions
locker_room_tools_synapse_mcp-0.6.6.tar.gz 490.5 kB With provenance Details for locker_room_tools_synapse_mcp-0.6.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for locker-room-tools-synapse-mcp 0.6.6
File Interpreter ABI Platform Actions
locker_room_tools_synapse_mcp-0.6.6-py3-none-any.whl Python 3 none any Details for locker_room_tools_synapse_mcp-0.6.6-py3-none-any.whl

Total release size: 732.7 kB

Release files / locker_room_tools_synapse_mcp-0.6.6.tar.gz

Download URL locker_room_tools_synapse_mcp-0.6.6.tar.gz
Size 490.5 kB
Tags Source
SHA-256 checksum
How to use checksums
955a8df4eb15dd2fa3052a11bc520fce4fdb24a744fd80a5d4682cdfc83d24c7
BLAKE2b-256 checksum
How to use checksums
07ca007d27307c72256da01c61b9eef0890173953ca636bb0af5df7ea7ac33b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Release files / locker_room_tools_synapse_mcp-0.6.6-py3-none-any.whl

Download URL locker_room_tools_synapse_mcp-0.6.6-py3-none-any.whl
Size 242.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0f7d3fff16cffffb5db434d7b58088e12f5759e18d99c43129bdf31f662eaec
BLAKE2b-256 checksum
How to use checksums
c43e649840746b7c490eb799e35aeccf8e413407793f7d0461ef3bce96f2e57c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Security for locker-room-tools-synapse-mcp 0.6.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for locker_room_tools_synapse_mcp-0.6.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page