Skip to main content
Glama

okfshare CLI и MCP-сервер

npm: okfshare npm: @okfshare/mcp npm: @okfshare/agent-installer Site

Клиентская часть okfshare с открытым исходным кодом: общие версионируемые знания для ИИ-агентов, которые пишут код.

Опубликуйте валидированный пакет Markdown один раз. Каждый авторизованный агент работает с одной и той же неизменяемой ревизией и цитатами на уровни строк, которые можно проверить. Размещённый сервис хранит ревизии, цитаты и аутентификацию рабочих пространств; в этом репозитории находятся инструменты, которые агенты реально запускают.

Пакеты

Пакет

Команда

Назначение

okfshare

npx okfshare@latest

CLI: setup, publish, search, context, diff, rollback

@okfshare/mcp

npx @okfshare/mcp@latest

MCP-сервер для Claude Desktop, Cursor, opencode, Codex

@okfshare/agent-installer

okf-agent

Устанавливает навыки okfshare в инструментарий агентов

Related MCP server: JacBrain

Быстрый старт

# 1. One-time onboarding (device pairing in your browser)
npx okfshare@latest setup

# 2. Validate and publish a folder of Markdown
npx okfshare@latest validate ./knowledge
npx okfshare@latest publish ./knowledge --visibility public --yes

# 3. Any teammate's agent retrieves cited context
npx okfshare@latest context SHARE_ID "how do we handle db migrations"

Для headless/CI-окружений укажите заранее подготовленные учётные данные через переменную окружения OKFSHARE_TOKEN (только проверяйте, что переменная существует, никогда не логируйте её), затем выполните проверку с помощью whoami и doctor.

Настройка MCP

claude mcp add okfshare -- npx @okfshare/mcp@latest

Или для любого MCP-клиента:

{
  "mcpServers": {
    "okfshare": {
      "command": "npx",
      "args": ["@okfshare/mcp@latest"]
    }
  }
}

Инструменты: whoami, doctor, list_shares, search_share, search_workspace, get_context, pull_bundle, publish_bundle. Манифест реестра: server.json.

Почему цитаты важны

Поиск возвращает файл, точные строки и неизменяемую ревизию, из которой они взяты. Когда агент утверждает: «наша договорённость говорит X», вы можете проверить это за секунды — и цитата будет означать то же самое и завтра, потому что содержимое ревизии никогда не изменяется на месте.

Формат Open Knowledge

Пакеты — это Markdown со структурированным frontmatter: type, title, description, tags, sources и события верификации. Формат намеренно небольшой и остаётся читаемым в любом редакторе. В худшем случае у вас останутся просто файлы — без привязки.

Разработка

pnpm install
pnpm check   # typecheck + test + build across all packages
  • Node 20+ и pnpm 10.

  • Пакеты обращаются к API на размещённой стороне сервиса https://okfshare.app; для разработки локальный сервер не требуется.

  • Инструкцию по приёмке изменений см. в CONTRIBUTING.md, информацию о сообщении об уязвимостях — в SECURITY.md.

Ссылки

Лицензия

Apache-2.0. См. NOTICE — лицензия на код не даёт прав на имя okfshare или его бренд.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables humans and AI coding agents to collaboratively write to a shared knowledge base with conflict-safe claims, code-anchored staleness detection, and synchronized human/agent documentation via MCP and REST.
    AGPL 3.0
  • A
    license
    B
    quality
    B
    maintenance
    Enables AI coding agents to store and retrieve versioned project knowledge and compiler-verified Jac snippets, so they can reuse relevant context across tasks and validate candidate code with the Jac compiler.
    3
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables humans and AI coding agents such as Claude Code, Codex, Cursor, and Gemini CLI to pass in-progress work between each other through shared, versioned, authenticated context that preserves decisions, artifacts, evidence, review history, and authorship. It exposes identity, search, retrieval, review, continuation, publishing, and portability tools over a Streamable HTTP endpoint.
    2
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI coding agents to create, search, read, write, and manage persistent structured repository context such as facts, decisions, regressions, preferences, sessions, and changelog entries. This helps agents orient themselves, avoid repeating past mistakes, and retain knowledge across coding sessions.
    48 npm
    2
    MIT