Context Sync logo

Context Sync

Community
Intina47

Local persistent memory store for LLM applications including continue.dev, cursor, claude desktop, github copilot, codex, antigravity, etc.

PublisherIntina47
Repositorycontext-sync
LanguageTypeScript
Forks
19
Stars
190
Available tools
54
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Context Sync exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 54 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    190 stars and 19 forks from the linked repository.

Context Sync

Local-first project memory for AI coding tools over MCP.

Context Sync gives an agent a persistent memory layer for a codebase:

  • project identity and tech stack
  • active work, decisions, constraints, and caveats
  • structured file exploration
  • git-aware context
  • optional read-only Notion lookup

Context Sync

What It Does

Context Sync is built for session continuity. Instead of relying on a model to remember earlier conversations, it stores the project context that matters and makes it retrievable through a small MCP tool surface.

The current core tools are:

  • set_project
  • remember
  • recall
  • read_file
  • search
  • structure
  • git
  • notion

Install

Install globally:

bash
npm install -g @context-sync/server

Auto-configuration runs during global install. After install, restart your AI tool.

If you install locally instead of globally, auto-config does not run. Use the manual config guide in docs/CONFIG.md.

Verify

Check that context-sync appears in your MCP tool list:

  • Claude Desktop: open the tools list
  • Cursor: open the tools list
  • VS Code / Copilot Chat Agent mode: check tools
  • Continue.dev: open the Continue panel
  • Codex CLI: codex mcp list
  • Claude Code: claude mcp list

If auto-config fails, use docs/TROUBLESHOOTING.md and docs/CONFIG.md.

Optional Notion Setup

Run the setup wizard if you want Notion integration:

bash
context-sync-setup

or:

bash
npx context-sync-setup

Notion support is intentionally read-only at the tool surface:

  • notion({ action: "search", query: "..." })
  • notion({ action: "read", pageId: "..." })

First-Time Workflow

Start every new session by setting the project first:

text
1. set_project({ path: "/absolute/path/to/project" })
2. recall()
3. structure({ depth: 2 })
4. read_file({ path: "src/index.ts" })
5. remember({ type: "decision", content: "Use SQLite for local storage" })

Recommended pattern:

  • set_project once per project/session start
  • recall to recover context
  • structure and search to explore
  • read_file for focused inspection
  • remember when something should survive the current session

Git Integration

When you run set_project inside a git repository, Context Sync can install hooks for automatic context capture.

Installed hooks:

  • post-commit
  • pre-push
  • post-merge
  • post-checkout

Hooks are marked with Context Sync Auto-Hook, and existing hooks are backed up first.

The git tool supports:

  • status
  • context
  • hotspots
  • coupling
  • blame
  • analysis

Data And Config

Default locations:

  • Database: ~/.context-sync/data.db
  • Config: ~/.context-sync/config.json
  • Install status: ~/.context-sync/install-status.json

Custom database options:

  • CLI: context-sync --db-path /absolute/path/to/db
  • Env var: CONTEXT_SYNC_DB_PATH

See docs/DATA.md for storage details.

Supported Platforms

  • Claude Desktop
  • Cursor
  • VS Code + GitHub Copilot
  • Continue.dev
  • Zed
  • Windsurf
  • Codeium
  • TabNine
  • Codex CLI
  • Claude Code
  • Antigravity

Docs

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "intina47-context-sync": {
      "command": "npx",
      "args": [
        "-y",
        "@context-sync/server"
      ]
    }
  }
}

Available Tools

  • get_project_context

    Get the current project context including recent decisions and conversations

  • save_decision

    Save an important technical decision or architectural choice

  • save_conversation

    Save a conversation snippet for future reference

  • set_workspace

    Set workspace directory and initialize project. Automatically detects project type, validates path, and offers to initialize Context Sync features with user consent. This is the primary command for starting work on any project.

  • read_file

    Read a file from the current workspace

  • get_project_structure

    Get the file/folder structure of current workspace

  • scan_workspace

    Scan workspace and get overview of important files

  • create_file

    Preview file creation (does NOT create the file yet)

  • modify_file

    Preview file modification (does NOT modify the file yet)

  • delete_file

    Preview file deletion (does NOT delete the file yet)

  • apply_create_file

    Actually create the file after user approval

  • apply_modify_file

    Actually modify the file after user approval

  • apply_delete_file

    Actually delete the file after user approval

  • undo_file_change

    Undo the last modification to a file

  • search_files

    Search for files by name or pattern

  • search_content

    Search file contents for text or regex

  • find_symbol

    Find function, class, or variable definitions

  • git_status

    Check git repository status

  • git_diff

    View git diff for file(s)

  • git_branch_info

    Get git branch information

  • suggest_commit_message

    Suggest a commit message based on changes

  • analyze_dependencies

    Analyze import/export dependencies for a file. Returns all imports, exports, files that import this file, and circular dependencies.

  • get_dependency_tree

    Get a tree view of all dependencies for a file, showing nested imports up to a specified depth.

  • find_importers

    Find all files that import a given file. Useful for understanding what depends on this file.

  • detect_circular_deps

    Detect circular dependencies starting from a file. Shows all circular dependency chains.

  • analyze_call_graph

    Analyze the call graph for a function. Shows what functions it calls (callees) and what functions call it (callers).

  • find_callers

    Find all functions that call a given function. Useful for impact analysis.

  • trace_execution_path

    Trace all possible execution paths from one function to another. Shows the call chain.

  • get_call_tree

    Get a tree view of function calls starting from a given function.

  • find_type_definition

    Find where a type, interface, class, or enum is defined.

  • get_type_info

    Get complete information about a type including properties, methods, and usage.

  • find_type_usages

    Find all places where a type is used in the codebase.

  • switch_platform

    Switch between AI platforms (Claude ↔ Cursor) with full context handoff

  • get_platform_status

    Check which AI platforms have Context Sync configured

  • get_platform_context

    Get context specific to a platform (conversations, decisions)

  • discover_ai_platforms

    Discover and explore available AI platforms with setup information and compatibility details

  • get_platform_recommendations

    Get personalized AI platform recommendations based on user needs and current setup

  • setup_cursor

    Get instructions for setting up Context Sync in Cursor IDE

  • get_started

    Get started with Context Sync - shows installation status, current state, and guided next steps

  • debug_session

    Debug session state and project information for multi-project testing

  • get_performance_report

    Get performance metrics and statistics for database operations and system performance

  • todo_create

    Create a new todo item. If no projectId is specified, the todo will be automatically linked to the current active project (if any).

  • todo_get

    Get a specific todo item by ID

  • todo_list

    List todos with optional filters. Returns todos grouped by priority. By default, shows todos for the current active project. Use projectId parameter to view todos from other projects, or omit projectId to see all todos.

  • todo_update

    Update a todo item. Only provided fields will be updated.

  • todo_delete

    Delete a todo item

  • todo_complete

    Mark a todo as completed (shortcut for updating status)

  • todo_stats

    Get statistics about todos (counts by status, priority, overdue, etc.)

  • todo_tags

    Get a list of all unique tags used in todos

  • migrate_database

    Migrate and merge duplicate projects by normalized path. This tool helps clean up database duplicates caused by path variations (case differences, trailing slashes, package.json vs folder names). AI assistants can help users run this to clean up their Context Sync database.

  • get_migration_stats

    Get statistics about duplicate projects without running migration. Shows how many duplicates exist and what would be merged.

  • check_migration_suggestion

    Check if the user should be prompted for database migration based on current version and duplicate detection. Provides smart migration recommendations.

  • analyze_conversation_context

    Analyze recent conversation for important context that should be saved automatically. Detects decisions, todos, and insights that need to be preserved in Context Sync.

  • suggest_missing_context

    Analyze current project state and suggest what important context might be missing from Context Sync. Helps ensure comprehensive project documentation.

Use Context Sync MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Context Sync is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Context Sync as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Context Sync MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "intina47-context-sync": {
      "command": "npx",
      "args": [
        "-y",
        "@context-sync/server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Context Sync MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Context Sync MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Context Sync to help me with this task?
Context Sync
Sure. I read it.
Here is what I found using Context Sync.

Frequently asked questions

What is the Context Sync MCP server used for?

Context Sync is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Context Sync MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Context Sync with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Context Sync MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Context Sync connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Context Sync MCP to TypingMind?

Context Sync runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Context Sync MCP provide in TypingMind?

Context Sync exposes 54 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Context Sync MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Context Sync requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

project_context

Automatically inject active project context into conversation

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇