Skip to main content
Glama

vocabit-mcp

CI npm license

MCP-сервер для Vocabit, приложения для карточек. Он позволяет ИИ-ассистенту записывать учебный набор в реальное приложение на реальном телефоне, а затем считывать, как учащийся на самом деле с ним справился.

Большинство MCP-серверов читают из API. Этот замыкает цикл:

flowchart LR
    A["Assistant<br/>teaches a topic"] --> B["create_study_set"]
    B --> C["Set appears in the<br/>Vocabit app"]
    C --> D["Learner works<br/>through it"]
    D --> E["get_set_results"]
    E -->|weak cards| A

Интересный инструмент — не create_study_set — что угодно может генерировать карточки. Это get_set_results: какие карточки учащийся отметил как сложные, до каких он вообще не дошёл, сколько повторений потребовалось каждой. Следующий набор строится на основе этого, а не на догадке.

Попробуйте за 30 секунд

Никакого бэкенда, аккаунта или API-ключа:

npx -y vocabit-mcp --demo

Демо-режим запускает тот же сервер против Vocabit в памяти с двумя предзаполненными наборами. Создайте набор, запросите результаты — и детерминированный подставной учащийся уже проработает его, что будет помечено в ответе как симуляция, чтобы это никогда не спутали с реальными данными.

Чтобы поэкспериментировать с UI:

npx @modelcontextprotocol/inspector npx -y vocabit-mcp --demo

Related MCP server: inoh-mcp

Установка

Сервер указан в MCP Registry как io.github.JohnBilousov/vocabit-mcp, так что клиенты, читающие реестр, могут найти его самостоятельно.

claude mcp add vocabit -- npx -y vocabit-mcp
{
  "mcpServers": {
    "vocabit": {
      "command": "npx",
      "args": ["-y", "vocabit-mcp"],
      "env": {
        "VOCABIT_BASE_URL": "https://your-vocabit-backend.example.com",
        "VOCABIT_AGENT_KEY": "your-agent-key"
      }
    }
  }
}

Уберите блок env, чтобы запустить в демо-режиме.

Инструменты

Инструмент

Что делает

vocabit_health

Проверяет соединение и режим, в котором находится сервер.

create_study_set

Публикует набор в приложение учащегося. Возвращает deep link, открывающий его на устройстве.

list_study_sets

Последние наборы, сначала новые, каждый с краткой сводкой прогресса.

get_study_set

Полное содержимое одного набора, плюс тема и заметки, прикреплённые ассистентом.

get_set_results

Обратная связь. Статус каждой карточки, weakCards, untouchedCards, карточки к повторению.

update_study_set

Переименовать, перетегировать или добавить карточки — обычно следующий шаг после чтения результатов.

notify_learner

Уведомление в Telegram, что набор ожидает.

delete_study_set

Удалить набор из приложения. История изучения сохраняется.

Также доступны: ресурс vocabit://set/{setId} (набор в виде JSON, доступен для перечисления) и промпт study-session, который проводит через весь цикл.

Состояния карточек

Прогресс берётся из движка интервальных повторений приложения, а не от ассистента:

Статус

Значение

new

Никогда не повторялась.

struggling

Учащийся отметил как сложную.

learning

Отмечена как хорошая.

mastered

Отмечена как лёгкая.

Набор сообщает completed: true, как только ни одной карточки не остаётся в new.

Живой режим

Укажите серверу на бэкенд Vocabit с включённым agent API:

export VOCABIT_BASE_URL=https://your-vocabit-backend.example.com
export VOCABIT_AGENT_KEY=...   # must match one of AGENT_API_KEYS on the backend
npx -y vocabit-mcp

Переменная

Назначение

VOCABIT_BASE_URL

Базовый URL бэкенда.

VOCABIT_AGENT_KEY

Отправляется как X-Agent-Key.

VOCABIT_USER_ID

Firebase UID учащегося. Необязательно; у бэкенда есть значение по умолчанию.

VOCABIT_TERM_LANGUAGE / VOCABIT_DEFINITION_LANGUAGE

Значения по умолчанию для новых наборов, например de / en.

VOCABIT_TELEGRAM_ID

Получатель для notify_learner.

VOCABIT_TIMEOUT_MS

Таймаут запроса, по умолчанию 20000.

VOCABIT_DEMO

1 принудительно включает демо-режим.

Если не заданы ни URL, ни ключ, сервер запускается в демо-режиме. Если задан ровно один — он отказывается запускаться: половина конфигурации — это ошибка, а не подсказка.

Заметки по дизайну

Демо-режим — полноценный клиент, а не заглушка. HttpVocabitClient и DemoVocabitClient реализуют один и тот же интерфейс VocabitClient, поэтому ни один инструмент не имеет ветки «мы притворяемся?». Рецензент может запустить сервер до получения учётных данных, а тестовый набор проверяет реальную поверхность инструментов через реальный MCP-транспорт, а не мокает SDK.

Ошибки восстанавливаемы, а не фатальны. Неудачный вызов возвращается как isError с собственным сообщением бэкенда плюс подсказкой для модели — 404 говорит «вызовите list_study_sets, чтобы увидеть, какие наборы существуют», 401 — «или запустите с VOCABIT_DEMO=1». Взаимоисключающие аргументы отклоняются с объяснением, а не наугад.

Схемы вывода остаются свободными по краям. Идентифицирующие поля обязательны; всё остальное необязательно, так что бэкенд, добавляющий поле, не превращает работающий инструмент в ошибку валидации.

Аннотации честны. delete_study_set помечен как destructiveHint, инструменты чтения — readOnlyHint. notify_learner отправляет сообщение реальному человеку, и его описание говорит использовать его экономно.

Разработка

git clone https://github.com/JohnBilousov/vocabit-mcp && cd vocabit-mcp
npm install
npm run build
npm test          # tool surface + full loop, plus the HTTP client against a mocked fetch
npm run lint      # eslint
npm run format    # prettier --write
npm run inspect   # demo mode in the MCP Inspector

CI запускает typecheck, lint, format:check, test и build при каждом push и pull request.

src/
  index.ts        CLI entry, stdio transport
  config.ts       env → Config, demo-mode resolution
  server.ts       tool / resource / prompt registration
  schemas.ts      zod input and output shapes
  format.ts       human-readable summaries next to structuredContent
  client/
    types.ts      wire types + VocabitClient contract
    http.ts       live backend
    mock.ts       in-memory backend for demo mode
test/
  server.test.ts       tool surface + full loop — over an in-memory MCP transport
  client/
    http.test.ts       query encoding, error-body parsing, timeouts — against a mocked fetch

Релиз

Публикация использует доверенную публикацию npm (OIDC) — никакого секрета NPM_TOKEN, ничего, что может утечь или истечь. Одноразовая настройка на npmjs.com, в разделе Settings → Trusted publishing → GitHub Actions пакета: организация JohnBilousov, этот репозиторий, имя файла workflow publish.yml.

Чтобы выпустить релиз: увеличьте версию в package.json, server.json и VERSION в src/server.ts вместе (тест проверяет, что они не расходятся), закоммитьте, запушьте, затем опубликуйте GitHub Release с соответствующим тегом vX.Y.Z. Это запускает .github/workflows/publish.yml, который прогоняет тестовый набор и публикует в npm с provenance — на странице пакета отображается проверенная ссылка на этот точный коммит и запуск workflow, а не просто имя в реестре.

Дорожная карта

  • Потоковый HTTP-транспорт наряду со stdio

  • Поддержка нескольких учащихся без UID по умолчанию на бэкенде

  • Карточки с аудиопроизношением

Лицензия

MIT © Ivan Bilousov

Available Tools

8 tools
create_study_setCreate a study setA

Build a flashcard set and publish it to the learner's Vocabit app. Returns a deep link that opens the set on their device. Prefer one focused topic and 8-15 cards per set — long sets get abandoned. Use the notes field for what you want to check afterwards; the learner never sees it.

Inputs: cards (required), title (required), notes, topic, +6 more. Returns: setId, title, userId, deepLink, +4 more

delete_study_setDelete a study setA
DestructiveIdempotent

Remove a set from the learner's app. Study history is kept on the backend, but the set disappears from their device. Ask before calling this.

Inputs: setId (required). Returns: setId, deleted

get_set_resultsGet how the learner didA
Read-only

Read back real study results for a set: which cards the learner marked hard (weakCards), which they never reached (untouchedCards), and per-card review counts. This is the feedback half of the loop — read it before writing the next set, and build the follow-up out of weakCards.

Inputs: setId (required), userId. Returns: cards, notes, setId, title, +7 more

get_study_setGet study set contentsA
Read-only

Read the full contents of a set — every card, plus the topic and notes you attached when you created it.

Inputs: setId (required). Returns: cards, notes, setId, title, +4 more

list_study_setsList study setsA
Read-only

List the sets you created for this learner, newest first, each with a progress summary. Use it to find a setId, or to see at a glance which sets were never opened.

Inputs: limit, topic, userId, includeProgress. Returns: sets, count

notify_learnerPing the learnerA

Send the learner a Telegram message that a set is waiting. Use sparingly — one ping per set, right after you create it.

Inputs: setId (required), text. Returns: setId, notified, telegramId

update_study_setUpdate a study setA
Idempotent

Change a set in place: retitle it, retag it, or add cards. Pass addCards to append (the usual case after reviewing results) or cards to replace the list wholesale — never both. Replacing the cards resets what the learner has already studied.

Inputs: setId (required), cards, notes, title, +4 more. Returns: setId, updated, cardCount

vocabit_healthCheck Vocabit connectionA
Read-only

Verify the server can reach Vocabit and report which mode it is in (live backend or in-memory demo). Call this first if anything else fails.

Inputs: no named parameters. Returns: mode, baseUrl, defaultUserId

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: health check, CRUD for study sets, results feedback, and learner notification. Even get_study_set and get_set_results are unambiguously separated—one retrieves content, the other study metrics. No two tools appear to do the same thing.

    Naming Consistency4/5

    Most tools follow a verb_noun pattern (create_study_set, list_study_sets, update_study_set, delete_study_set, get_study_set, get_set_results). However, vocabit_health deviates from the verb-first style and notify_learner uses a non-set object, so the pattern is not perfectly uniform but remains predictable.

    Tool Count5/5

    8 tools is well within the ideal 3-15 range and each earns its place in the set lifecycle. The count matches the server's scope—managing study sets with health check and notification—without redundancy or unnecessary bulk.

    Completeness5/5

    The tool surface covers the full lifecycle: create, read, update, delete, list, plus results feedback and learner notification. The feedback loop is closed by get_set_results informing update_study_set. Health check aids debugging. No obvious gaps that would cause agent failures.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to search the Inoh dictionary and create, update, or delete vocabulary flashcards in the user's Inoh account through natural language.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an AI assistant to act as the memory of a personal English-learning app: read progress and words due for review, run short practice conversations, and store sentences, corrections, new words, rubric scores, and checked exercises back to the user's dashboard. Also lets the assistant grow the flashcard deck and adjust word familiarity, which reschedules spaced-repetition reviews.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to programmatically create, validate, store, and hot-swap interactive quizzes and study bundles into a desktop learning application, with analytics and local REST integration.
      MIT