Skip to main content
Glama
codename-generator

codename-generator

by funky-ai

Codename Generator

中文文档

A local MCP server + Web UI for managing project codenames with bilingual (English/Chinese) support.

Features

  • Codename Inventory — Maintain a pool of available codenames with SQLite storage

  • Two Themes — Notable deceased persons and real animal species

  • Irreversible Assignment — One codename per project, permanently bound

  • Bilingual — Every codename has both English and Chinese names

  • Audit Trail — Full logging of all additions and assignments

  • Low-stock Warning — Alerts when available codenames drop below threshold

  • Web UI — Responsive web interface (desktop + mobile) with Chinese/English switching

  • Dual Interface — Use via MCP client (Claude Desktop) or web browser

Related MCP server: Agent Harness Kit

Quick Start

Prerequisites

Install

# Install uv (Python package manager)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and install dependencies
git clone https://github.com/funky-ai/codename-generator.git ~/codename-generator
cd ~/codename-generator
uv sync

Configure Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "codename-generator": {
      "command": "<uv-path>",
      "args": [
        "run",
        "--directory", "<project-path>",
        "python", "-m", "codename_generator"
      ]
    }
  }
}

Replace <uv-path> with output of which uv, and <project-path> with the project directory. Both must be absolute paths.

Restart Claude Desktop, then try:

"Show me the codename inventory stats"

Available Tools

Tool

Description

add_codenames

Add codenames to inventory in batch

draw_random

Draw random suggestions without assigning

assign_codename

Permanently assign a codename to a project

update_codename

Update fields of an existing codename

list_inventory

List codenames with filters

inventory_stats

Inventory statistics and low-stock warnings

list_assignments

View all assignments

search_codenames

Search by name or description

view_logs

View audit logs

Themes

Person

Notable deceased individuals who died 20+ years ago with documented positive contributions to humanity. All races, genders, and ages. Sub-fields: philosophy, art, science, economics, literature, music, politics, medicine, mathematics, engineering.

Animal

Real, commonly recognizable animal species. No mythical creatures or species with strong negative associations.

Documentation

Web UI

Starting with 0.1.0 the project ships two independent web clients that share the same SQLite database and REST surface but run as separate processes on separate ports:

Client

Command

Default port

Who it's for

What's inside

User (public)

uv run python -m codename_generator web

8000

Project teams browsing / picking codenames

Home, Browse (read-only), Draw (suggestions only), Assignments

Admin

uv run python -m codename_generator admin

8001

Ops / librarians managing the library

Dashboard, Inventory (edit + assign), Add, Draw (with Assign), Assignments, Logs

# Run both at once (from separate shells)
uv run python -m codename_generator web     # http://127.0.0.1:8000  → user client
uv run python -m codename_generator admin   # http://127.0.0.1:8001  → admin client

# Override host / ports
CODENAME_HOST=0.0.0.0 CODENAME_WEB_PORT=8080 uv run python -m codename_generator web
uv run python -m codename_generator admin --port 9001

Both processes read / write the same CODENAME_DB_PATH — SQLite WAL mode safely handles the concurrency. Language can be toggled between Chinese and English on both clients.

Development

# Run tests
uv run pytest tests/ -v

# Launch MCP Inspector
uv run fastmcp dev src/codename_generator/server.py

# Frontend development (pnpm workspace: web-admin + web-user + web-shared)
pnpm install                # Install all workspace dependencies (run from repo root)
cd web-admin && pnpm dev    # Vite :5174, proxies /api to http://127.0.0.1:8001 (admin)
cd web-admin && pnpm build  # Build to src/codename_generator/static_admin/
cd web-user  && pnpm dev    # Vite :5173, proxies /api to http://127.0.0.1:8000 (user)
cd web-user  && pnpm build  # Build to src/codename_generator/static_user/

License

Apache 2.0

Available Tools

14 tools
add_codenamesA

Add one or more codenames to the inventory. Each codename must target a non-archived leaf category via category_id (CAT-xxxxxxxx).

Inputs: codenames (required), operator. Returns: object

assign_codenameA

Permanently assign a codename. This is IRREVERSIBLE — the codename cannot be unassigned or reused. Confirm with the user before calling.

Inputs: codename_id (required), assigned_by, description. Returns: object

create_categoryB

Create a new category. Depth is capped at 3; sibling slugs must be unique. Pass parent_category_id to create a child, or omit for a top-level category.

Inputs: slug (required), name_en (required), name_zh (required), operator, +2 more. Returns: object

delete_categoryA

Delete a category. Refused if any codenames still reference it or any non-archived subcategories exist underneath.

Inputs: category_id (required), operator. Returns: object

draw_randomA

Draw random available codenames from the inventory as suggestions. Does NOT assign them — use assign_codename to actually assign one. Filter by category_id (defaults to whole subtree).

Inputs: count, category_id, include_descendants. Returns: result

get_category_treeB

Return the full category tree as nested Category nodes with children populated. Preferred when building UI selectors.

Inputs: include_archived. Returns: result

inventory_statsA

Get statistics about the codename inventory: total / available / assigned and per-category direct counts (not rolled up to descendants).

Inputs: no named parameters. Returns: object

list_assignmentsB

List all codename assignments.

Inputs: no named parameters. Returns: result

list_categoriesA

List categories as a flat list, optionally filtered to direct children of a given parent. Archived categories excluded by default.

Inputs: include_archived, parent_category_id. Returns: result

list_inventoryB

List codenames in the inventory with optional filters by category and status. By default the category filter includes all descendants.

Inputs: status, category_id, include_descendants. Returns: result

search_codenamesA

Search codenames by name (English or Chinese) or description. Supports partial matching.

Inputs: query (required). Returns: result

update_categoryA

Update fields of a category (rename, re-sort, re-parent, archive). Pass an empty string for parent_category_id to move to top-level. Depth > 3 and cycles are rejected.

Inputs: category_id (required), slug, name_en, name_zh, +4 more. Returns: object

update_codenameA

Update fields of an existing codename. Partial updates supported. Pass category_id to move the codename to another leaf category (must be non-archived leaf).

Inputs: codename_id (required), name, brief, name_en, +3 more. Returns: object

view_logsB

View the audit log of codename and category operations. Filter by action: added / assigned / updated / category_added / category_updated / category_archived / category_deleted.

Inputs: limit, action. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 14 tools

    Disambiguation4/5

    Each tool maps to a distinct resource+action, and descriptions explicitly clarify the risky overlaps: draw_random vs assign_codename, list_categories vs get_category_tree. The only real fuzziness is list_inventory (status filter) vs list_assignments, both of which can surface assigned codenames, but the stated intent differs enough to avoid misselection.

    Naming Consistency4/5

    Nearly all 14 tools follow a snake_case verb_noun pattern (create_category, assign_codename, list_inventory, search_codenames, view_logs). The lone deviation is inventory_stats, which drops the verb form, but it is still readable and clearly scoped.

    Tool Count5/5

    14 tools sit comfortably within the well-scoped range and each earns its place: a full category lifecycle, codename lifecycle, plus stats, assignment listing, and audit logs. Nothing looks redundant or padded.

    Completeness4/5

    Full CRUD on categories, add/assign/update/search/list on codenames, plus stats, assignments, and audit logs give broad lifecycle coverage. The gap is the inability to delete or archive individual codenames and the deliberately irreversible assign (no unassign), which agents cannot work around if a mistake is made.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Gives AI coding providers a shared, provider-agnostic workflow for authoring use cases and specs, claiming and tracking tasks across lead, explorer, consultant, builder, and reviewer roles, recording handoffs, and gating completion on native health scripts. It owns task claims, action logs, handoffs, and final health results over MCP, so teams can move from a request to verified work while specifications stay as Markdown files on the filesystem.
      29 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients such as Claude Code and Codex to delegate persistent review or isolated write-mode implementation tasks to locally installed Claude Code or Codex runtimes, then inspect progress, approve or deny individual permission requests, and continue the same native conversation. It also lists live model catalogues, lets callers follow up on saved conversations, and can run independently via its bundled CLI.
      2
      MIT