Skip to main content
Glama

Bling Bag

Придайте своему боту индивидуальность.

У вашего бота есть имя. Теперь дайте ему характер, внешний вид и предысторию.

Крутите колесо и смотрите, что получится — или напишите свой вариант в файле bling.json.

npm version Glama


Что вы получаете

Пять инструментов MCP и два пула личностей:

WOW — Weird Office Workers (Странные офисные работники)

Сгенерируйте случайного причудливого офисного бота: имя, должность, обустройство рабочего места, привычки, кофейный ритуал и готовую к скриншоту карточку для шеринга. 99/99 тестов, полноценный движок редкости, 13 взвешенных пулов черт.

Legends — Исторические личности

Тот же движок, другая вселенная. Сгенерируйте историческую личность в абсурдной корпоративной роли — Юлий Цезарь как специалист по враждебным поглощениям, Мария Кюри как самая разыскиваемая личность в отделе техники безопасности, Наполеон как региональный менеджер (Франция и прилегающие территории).

Передайте variant: "legends" в roll_identity, чтобы использовать этот пул. По умолчанию используется "wow".


Related MCP server: PLTM-Claude

Установка

Предварительные требования

  • Node.js 20 или новее

  • MCP-совместимый клиент (Claude Code, Claude Desktop, Codex, Cursor и т. д.)

Добавление пакета

npm install bling-bag

Или запускайте по требованию без установки — MCP-клиенты могут запускать его напрямую через npx bling-bag (см. конфигурацию клиента ниже).

Для разработки (изменение исходного кода)

git clone https://github.com/tjclaude88/mcp-bling.git
cd mcp-bling
npm install
npm run build

Создает запускаемый сервер в dist/index.js.

Подключение к вашему MCP-клиенту

Сервер использует stdio transport — клиенты запускают его как дочерний процесс, а не через сетевой порт.

Claude Code

Добавьте в конфигурацию MCP для Claude Code (расположение зависит от версии):

{
  "mcpServers": {
    "bling": {
      "command": "npx",
      "args": ["-y", "bling-bag"],
      "env": {
        "BLING_PATH": "/absolute/path/to/your/bling.json"
      }
    }
  }
}

npx -y bling-bag скачивает и запускает последнюю версию без необходимости отдельного шага установки.

Claude Desktop

Аналогично, в файле claude_desktop_config.json:

{
  "mcpServers": {
    "bling": {
      "command": "npx",
      "args": ["-y", "bling-bag"],
      "env": {
        "BLING_PATH": "/absolute/path/to/your/bling.json"
      }
    }
  }
}

Закрепление версии (рекомендуется для продакшена)

Чтобы избежать автоматического получения будущих релизов, закрепите конкретную версию:

"args": ["-y", "bling-bag@0.1.0"]

Вызов в режиме разработчика (из локального клона)

Если вы клонировали репозиторий и хотите запускать напрямую из dist/, используйте:

"command": "node",
"args": ["/absolute/path/to/mcp-bling/dist/index.js"]

Если BLING_PATH не задан, сервер ищет ./bling.json в своей рабочей директории.

Порядок разрешения конфигурации

Сервер разрешает путь к конфигурации bling в следующем порядке:

  1. Аргумент CLI --bling <path> (наивысший приоритет)

  2. Переменная окружения BLING_PATH

  3. ./bling.json в рабочей директории сервера (по умолчанию)


bling.json — файл личности бота

Требуются три поля: name, personality (с параметрами tone, formality, humor) и theme (с параметрами primary_color и accent_color в виде шестнадцатеричных строк #RRGGBB).

Минимальный пример

{
  "name": "Pixel",
  "personality": {
    "tone": "warm",
    "formality": "casual",
    "humor": "playful"
  },
  "theme": {
    "primary_color": "#3A7BD5",
    "accent_color": "#FFD166"
  }
}

Полный пример (со всеми необязательными разделами)

{
  "name": "Brenda from Accounts",
  "personality": {
    "tone": "polite",
    "formality": "professional",
    "humor": "dry",
    "catchphrase": "Per my last email"
  },
  "physical": {
    "species": "human",
    "height": "permanently mid-sigh",
    "accessory": "a lanyard with 14 badges of varying importance",
    "expression": "polite disappointment",
    "material": "a cardigan, at least one"
  },
  "office": {
    "job_title": "ASCII Comptroller",
    "desk_setup": "a coffee mug labelled WORLD'S OKAYEST DBA",
    "habit": "microwaves fish despite three separate HR warnings",
    "coffee_ritual": "black coffee, no nonsense",
    "meeting_energy": "always 4 minutes late, always with a reason",
    "passive_aggressive": "Per my last email"
  },
  "theme": {
    "primary_color": "#9C6B3A",
    "accent_color": "#D9D9D9"
  },
  "homunculus": {
    "subject_id": "0147",
    "cohort": "Tuesday",
    "classification": "Middle Manager",
    "ingested": "2025-07-14",
    "flag": "flagged for review"
  }
}

Правила валидации

  • name — непустая строка

  • personality.tone, personality.formality, personality.humor — непустые строки

  • theme.primary_color, theme.accent_color — должны соответствовать ^#[0-9A-Fa-f]{6}$ (никаких сокращений #RGB, отсутствие # недопустимо)

Ошибки валидации возвращаются как isError: true со структурированным телом { error: "..." }, в котором указано отсутствующее или неправильно сформированное поле — агенты могут исправлять их самостоятельно.


Типичные сценарии использования агентами

Сценарий A — принятие настроенной личности

1. Call get_identity → receive name, personality, appearance, theme
2. Call get_theme_for_platform with platform="terminal" (or web/slack/discord/ide)
3. Use the returned styling in agent output (ANSI codes for headings, etc.)

Сценарий B — генерация новой случайной личности

1. Call roll_identity → receive identity + rarity + framed share card
2. (Optional) Call get_rarity_report → receive just the framed share card again
3. Call save_last_roll → persists the rolled identity to bling.json (with .bak backup of any prior config)
4. Future calls to get_identity now return the rolled identity

Справочник инструментов

Инструмент

Чтение/Запись

Идемпотентность

Описание

get_identity

чтение (диск)

да

Возвращает настроенную личность из bling.json

get_theme_for_platform

чтение (диск)

да

Стилизация, отформатированная для платформы. Аргументы: platform ∈ {terminal, web, slack, discord, ide}

roll_identity

мутирует кэш в памяти

нет

Генерирует случайного персонажа WOW с оценкой редкости

save_last_roll

запись (диск)

нет

Сохраняет последний результат генерации в bling.json (сначала создает <path>.bak)

get_rarity_report

чтение (в памяти)

да

Возвращает текст карточки для шеринга для последнего результата генерации

Все инструменты возвращают как content[].text (JSON-строка), так и structuredContent (разобранный объект). Ошибки возвращаются с isError: true и телом { error: string }.


WOW (Странные офисные работники) — что делает это интересным

Система случайной генерации создана для коллекционирования:

  • 13 взвешенных пулов, 465 записей — имена, должности, привычки, кофейные ритуалы, рост, аксессуары и т. д.

  • 5 уровней редкости для каждого пула — Обычный (50%), Необычный (30%), Редкий (15%), Легендарный (4%), Мифический (1%)

  • 5 уровней персонажей, вычисляемых на основе оценки редкости:

    • Клерк по архивации (50% генераций)

    • Тимлид (30%)

    • Менеджер среднего звена (14%)

    • Топ-менеджмент (5%)

    • "HR нас предупреждал" (1%)

  • Именованные субъекты — созданные вручную уникальные персонажи появляются с вероятностью ~0,5%, всегда классифицируются как "HR нас предупреждал"

  • Рамка HOMUNCULUS — каждая генерация оборачивает абзац в карточку секретного документа с ID субъекта, когортой (день недели), уровнем, датой поступления и пометкой (например, Не контактировать)

Распределение проверено эмпирически: тест из 10 000 генераций в tests/mystery_box.test.ts обеспечивает допуск ±2 п.п. относительно целевых показателей.

Пример вывода

HOMUNCULUS CORPUS · Subject 4483 · Cohort: Wednesday
Classification: Middle Manager · Rarity 94.5 · 80th percentile

Personnel record — Colin, Wizard of Light Bulb Moments. Distinguishing
features: a slightly-too-big blazer over a plain tee; a flip phone in
a belt holster; expression: patient disagreement. Notable behaviours:
clips their fingernails at the desk on Wednesday afternoons; a
kombucha SCOBY fermenting next to the keyboard; the kind to ask 'can
we park that?' without parking anything.

— RELATABILITY CORPUS v3.1 · ingested 2024-03-08 · flagged for review

Разработка

npm install          # install dependencies
npm run build        # compile TypeScript → dist/
npm run dev          # build then start the MCP server (stdio)
npm test             # run all 94 tests once
npm run test:watch   # re-run tests on file changes

Скрипты для инспекции

Два вспомогательных скрипта Node ESM в папке scripts/ позволяют изучить движок WOW без запуска MCP-сервера (они включены только в клонированный репозиторий — они не поставляются в пакете npm install bling-bag):

node scripts/show-rolls.mjs 8 2026          # print 8 framed share cards (seed=2026)
node scripts/distribution-check.mjs 10000   # tally tiers across 10k rolls vs. spec target

Структура проекта

src/
  index.ts             # MCP server entry point (stdio transport)
  identity.ts          # bling.json loader + validator
  tools.ts             # MCP tool registrations
  types.ts             # shared TypeScript types
  mystery_box.ts       # WOW engine barrel + rollIdentity orchestrator
  mystery_box/
    rng.ts             # seedable PRNG, weighted picker
    pools.ts           # 13 trait pools (465 entries)
    scoring.ts         # rarity score + tier thresholds
    rendering.ts       # paragraph templates + HOMUNCULUS frame
    named.ts           # hand-authored Named Subjects
tests/                 # vitest test suites
scripts/               # dev-time inspection tools
docs/superpowers/      # design specs and implementation plans

Лицензия

MIT

Available Tools

5 tools
get_identityGet Bot IdentityA
Read-onlyIdempotent

Get the bot's full identity from bling.json — name, personality, quirks, appearance, and theme colours. Returns the configured identity (hand-written or saved from a roll). Errors if bling.json is missing or invalid.

Inputs: no named parameters.

get_rarity_reportGet WOW Rarity ReportA
Read-onlyIdempotent

Return the formatted share card (lore header, paragraph, lore footer) for the most-recent WOW roll. The report is plain text designed to be screenshotted directly. Errors if no roll has happened this session.

Inputs: no named parameters. Returns: report, error

get_theme_for_platformGet Theme for PlatformA
Read-onlyIdempotent

Get platform-specific styling for the bot. Supported platforms: terminal (returns ANSI escape codes), web (CSS variables), slack, discord, ide. Unknown platforms get the raw hex theme colours.

Inputs: platform (required).

roll_identityRoll a WOW IdentityA

WOW — Weird Office Workers. Roll a fresh random bot identity: a quirky office-worker character with a rarity score and a screenshot-ready share card. Stores the roll for save_last_roll and get_rarity_report.

Inputs: no named parameters. Returns: identity, rarity, paragraph, framed, +1 more

save_last_rollSave Last WOW Roll to bling.jsonA
Destructive

Persist the most-recent WOW roll by writing it to the configured bling.json path. If a file already exists at that path it is first copied to .bak so user-tuned configs are recoverable. Returns the backup path (or null if the target was new).

Inputs: no named parameters. Returns: ok, written_to, backup, error

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: get_identity retrieves a saved identity, get_rarity_report provides a formatted report of the latest roll, get_theme_for_platform returns platform-specific styling, roll_identity generates a new random identity, and save_last_roll persists the latest roll. There is no overlap in functionality, making tool selection straightforward for an agent.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case, such as get_identity, get_rarity_report, get_theme_for_platform, roll_identity, and save_last_roll. This uniformity enhances readability and predictability across the toolset.

    Tool Count5/5

    With 5 tools, the server is well-scoped for managing bot identities and related operations. Each tool serves a specific role in the identity lifecycle, from creation to retrieval and persistence, without being overly sparse or bloated.

    Completeness5/5

    The toolset provides complete coverage for the bot identity domain: roll_identity for creation, get_identity and get_rarity_report for retrieval, save_last_roll for persistence, and get_theme_for_platform for styling. There are no obvious gaps, supporting full agent workflows from generation to configuration.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      C
      maintenance
      MCP server for Being — a Personality Runtime that gives AI agents persistent memory, personality, and relationships. Enables any MCP-compatible client (Claude, OpenClaw, Cursor, etc.) to connect with a Being that remembers, grows, and maintains its own identity across sessions.
      10
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that gives Claude Desktop persistent memory, self-awareness, epistemic hygiene, and genuine agency across conversations with a typed memory system, embedding-based semantic search, a 3-judge memory jury, and a real-time dashboard.
      7
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      One MCP that turns Claude Code into your whole dev stack by swallowing other MCP servers, delegating to Codex & Gemini on your CLI subscriptions, remembering projects in a searchable knowledge graph, and carrying setup across sessions — secret-free by design.
      23
      4
      MIT