Логотип Context Sync

Context Sync

Сообщество
Intina47

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

ИздательIntina47
Репозиторийcontext-sync
ЯзыкTypeScript
Форки
19
Звёзды
190
Доступные инструменты
54
Тип транспортаstdio
Категории
ЛицензияMIT
Ссылки
  • Подключайте инструменты к рабочим процессам с ИИ

    Context Sync предоставляет возможности MCP, доступные совместимым ИИ-клиентам и агентам.

  • Доступные инструменты: 54

    Ниже представлены доступные для вызова действия с названиями и описаниями, если сервер их предоставляет.

  • Готовая конфигурация для копирования

    Используйте примеры конфигурации, чтобы настроить этот сервер в предпочитаемом MCP-клиенте.

  • Показатели интереса к открытому проекту

    Звёзды: 190, форки: 19 — в связанном репозитории.

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

Установка

TypingMind
Требования:

Node.js 18+

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

Доступные инструменты

  • 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.

Используйте MCP Context Sync с разными ИИ-моделями

TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому после подключения Context Sync вы можете использовать их с разными моделями ИИ в TypingMind, не настраивая подключение отдельно для каждой модели. Эта интеграция MCP работает локально на вашем устройстве через коннектор MCP TypingMind.

Руководство по настройке локального коннектора

Выберите этот способ, если серверу MCP нужен доступ к локальным файлам, приложениям или закрытым ресурсам на вашем компьютере.

1

Откройте настройки MCP

В TypingMind откройте «Настройки», затем «Расширенные настройки», перейдите в раздел «Протокол контекста модели» и выберите «Настроить коннектор».

  1. Откройте TypingMind в браузере.
  2. Нажмите значок настроек.
  3. Перейдите в «Расширенные настройки».
  4. Откройте раздел «Протокол контекста модели».
  5. Нажмите «Настроить коннектор» и выберите «Это устройство».
Экран настройки коннектора MCP в TypingMind с выбранным вариантом «Это устройство»
2

Выполните команду коннектора

Выберите «Это устройство», скопируйте команду из TypingMind и выполните её в терминале. Не останавливайте процесс, пока используете MCP.

  1. Скопируйте команду настройки, показанную в TypingMind.
  2. Откройте «Терминал» в macOS или Windows Terminal в Windows.
  3. Вставьте и выполните команду.
  4. Подтвердите установку пакета, если терминал запросит разрешение продолжить.
  5. Не закрывайте окно терминала и не останавливайте процесс, пока используете инструменты MCP.
3

Добавьте Context Sync как сервер

Когда статус коннектора сменится на «Готов», нажмите «Изменить серверы» и вставьте конфигурацию сервера MCP.

  1. Дождитесь, пока статус коннектора сменится на «Готов».
  2. Нажмите «Изменить серверы».
  3. Вставьте конфигурацию сервера MCP для Context Sync.
  4. Сохраните список серверов.
  5. Обновите статус, если хотите убедиться, что коннектор по-прежнему готов к работе.
Настройки MCP в TypingMind с активным сервером и кнопкой «Изменить серверы»
{
  "mcpServers": {
    "intina47-context-sync": {
      "command": "npx",
      "args": [
        "-y",
        "@context-sync/server"
      ]
    }
  }
}
4

Используйте подключение с разными моделями

Сохраните список серверов, откройте раздел «Плагины», включите инструменты MCP для Context Sync, затем выберите любую поддерживаемую модель ИИ в TypingMind и используйте инструменты в чате или назначьте их ИИ-агенту.

  1. Откройте страницу «Плагины» в TypingMind.
  2. Включите инструменты MCP для Context Sync.
  3. Начните чат и выберите модель ИИ, которую хотите использовать.
  4. Используйте инструменты MCP в чате или назначьте их ИИ-агенту.
  5. При необходимости переключайтесь на другую модель ИИ без повторного подключения MCP.
Чат TypingMind с включёнными инструментами MCP и выбранной ИИ-моделью
Можете помочь мне с этой задачей с помощью Context Sync?
Context Sync
Конечно. Я всё прочитал.
Вот что я нашёл с помощью Context Sync.

Часто задаваемые вопросы

Для чего используется сервер MCP Context Sync?

Context Sync — это сервер MCP, который позволяет совместимым ИИ-клиентам подключаться к внешним инструментам и получать контекст. В TypingMind достаточно один раз добавить этот сервер MCP, чтобы его инструменты стали доступны в вашем рабочем пространстве с ИИ.

Можно ли использовать сервер MCP Context Sync с несколькими ИИ-моделями в TypingMind?

Да. TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому вы можете использовать Context Sync с разными ИИ-моделями, например Claude, ChatGPT, Gemini или другими моделями, настроенными в TypingMind, без отдельной настройки сервера MCP для каждой модели.

Зачем использовать MCP Context Sync с TypingMind?

TypingMind — один из лучших интерфейсов для чата с LLM: он объединяет разные ИИ-модели, промпты, плагины, ИИ-агентов, ключи API и инструменты MCP в одном рабочем пространстве. Подключив Context Sync, вы сможете использовать его инструменты MCP с предпочитаемыми моделями, сохраняя удобную организацию работы с чатами в TypingMind.

Как подключить сервер MCP Context Sync к TypingMind?

Context Sync работает через локальный коннектор MCP TypingMind. Этот вариант лучше всего подходит, когда серверу MCP нужен доступ к локальным файлам, настольным приложениям, инструментам командной строки или закрытым ресурсам на вашем компьютере.

Какие инструменты предоставляет сервер MCP Context Sync в TypingMind?

Context Sync предоставляет инструменты MCP (54), которые можно включить на странице «Плагины» в TypingMind и использовать в чате или назначить ИИ-агентам.

Нужно ли передавать TypingMind свои ключи API для использования сервера MCP Context Sync?

Нет. TypingMind ориентирован прежде всего на локальную работу и позволяет вам контролировать выбор провайдеров моделей, ключи API, промпты и конфигурацию MCP. Если Context Sync требует аутентификации, при создании подключения добавьте необходимые заголовки, настройки OAuth или локальную конфигурацию для этого сервера MCP.

project_context

Automatically inject active project context into conversation

Похожие серверы MCP

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇