minipainter

io.github.ArturSkowronski由 GitHub 账号 ArturSkowronski 发布v0.7.3更新于 Oct 24, 2026

Local-first miniature-paint inventory and cross-brand color matching for AI agents.

已验证STDIO仅桌面位置与生活文件与存储

概览

AI 生成的概览

本地优先的微缩模型涂料登记工具,让助手搜索内置涂料目录、跨品牌匹配颜色,并记录你实际拥有的涂料。

可以做什么
在内置的 1,607 款涂料目录(Citadel、Army Painter、Vallejo、AK)中按名称、用途、系列或近似颜色搜索和查看涂料,结果优先显示已拥有的涂料,并给出每款涂料的 RGB 信息。按颜色或描述匹配最接近的涂料,包括跨品牌近似色。列出、标记为已拥有或未拥有本地库存文件中的涂料,使建议优先采用你手头有的涂料。彩色终端界面和命令行在助手之外提供同一套目录与库存功能。
适用场景
适合希望助手从自己现有涂料中推荐颜色、而不是随机给色的微缩模型涂装者,也适合为某个特定色调寻找其他品牌的近似替代。
运行要求
通过 npx(npm 包 minipainter)或源码在本地以 stdio 运行;需要 Node.js 18 或更高版本,以及类 POSIX 的 shell(Linux、macOS、WSL)。目录已内置,无需配置;库存默认位于 ~/.minipainting/inventory.json,可用 INVENTORY_PATH 覆盖。未声明身份验证。
安装前请注意
助手可以修改你的库存:标记已拥有和标记未拥有的工具会写入库存文件,请检查变更。库存路径可通过 INVENTORY_PATH 配置,只应指向你打算修改的文件。RGB 值仅为近似参考色,不保证最终涂装效果。README 还描述了自托管 HTTP 模式,其 /mcp 端点没有身份验证,同步端点由 INVENTORY_SYNC_TOKEN 保护;该模式与本地安装相互独立

安装

在 SourceWeft 中

  1. 打开 控制台中的 minipainter,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MINIPAINTER

The paint bench, indexed.

[CI] [npm]

Site: arturskowronski.github.io/minipainter

minipainter is a local-first paint registry for miniature-painting workflows. It exists for one practical reason: AI paint suggestions are much more useful when they understand the paints you actually own.

The project gives you:

  • a deterministic local catalog (1,607 paints across Citadel, Army Painter, Vallejo, AK) and inventory
  • owned-first paint lookup and cross-brand color matching
  • a colored terminal UI (TUI) that shows each paint's real RGB as a swatch
  • MCP servers for both Claude Desktop and ChatGPT
  • a CLI surface designed for both humans and agent workflows

The colored TUI

The ledger TUI is a real colored terminal app: a MINIPAINTER banner, gold section frames, green OWNED / red MISSING status, and a truecolor swatch of every paint's own RGB. Color turns on for a TTY and honors NO_COLOR.

[MINIPAINTER terminal UI — catalog]

Why This Exists

Most paint advice workflows break at the same point: they recommend paints you do not have on hand.

minipainter is built to solve that exact problem:

  • keep a local record of what is in your paint rack
  • search it quickly by name, role, family, and approximate color
  • prepare a stable inventory foundation for a future AI skill that can inspect links, photos, and model images

The long-term goal is not “AI picks random colors for miniatures.” The goal is “AI reasons from your actual inventory first, then suggests stronger alternatives only when useful.”

Feature Highlights

  • Owned-first matching: lookups and recommendations can prioritize paints you already have.
  • Catalog in repo, inventory in your home: paint records live in data/catalog/; what you own lives in ~/.minipainting/inventory.json and follows you across projects.
  • RGB-aware search: approximate RGB values help with nearest-color matching.
  • Colored TUI: terminal ledger with per-paint RGB swatches and OWNED/MISSING status.
  • Agent-friendly CLI: deterministic command output for AI integration (Claude + ChatGPT MCP).

Screenshots

Hero Screen

Full-screen TUI with banner, catalog, detail panel, and command strip.

text
See: docs/assets/hero.txt

[Hero Screen]

Search View

Filtered lookup for a semantic search like bone.

text
See: docs/assets/search.txt

[Search View]

Owned View

Inventory-only presentation focused on what is already bound to your collection.

text
See: docs/assets/owned.txt

[Owned View]

CLI Flow

Representative command-line usage for search, ownership updates, and color matching.

text
See: docs/assets/cli.txt

[CLI Flow]

Run with Docker (Postgres)

The whole stack — MCP/HTTP server plus a Postgres that stores your inventory — starts with one command. Inventory persists in a named volume, so it survives container restarts and docker compose down / recreation (only down -v wipes it).

bash
docker compose up --build        # http://localhost:3000
  • GET /health — liveness
  • GET /api/inventory — owned paints (from Postgres)
  • POST /mcp — MCP for Claude Desktop · POST /mcp/v3 — MCP for ChatGPT (search/fetch)

Storage is selected by DATABASE_URL: set it (as docker-compose.yml does) for Postgres, leave it unset to use a local JSON inventory file (unchanged local behavior). See .env.example.

Deploy

Any Docker + Postgres host works (Fly.io, Railway, a VPS…). For a one-click remote MCP server with a managed database, the repo ships a Render Blueprint (render.yaml) that provisions the web service and Postgres together and wires DATABASE_URL automatically:

[Deploy to Render]

The reference deployment warpaint-mcp.fly.dev runs on Fly.io with Fly Managed Postgres — see docs/deploy-fly.md for the fly mpg attach + migration steps.

Install

The fastest way — run it straight from npm with npx, no clone, no install:

bash
npx minipainter paint search bonenpx minipainter match color "#d2c29b"npx minipainter tui

Or install it globally to get the short mpaint command everywhere:

bash
npm install -g minipaintermpaint paint search bonempaint match color "#d2c29b"

The catalog is bundled, so search and matching work on first run with nothing to configure. Your inventory lives at ~/.minipainting/inventory.json, created automatically the first time you mark a paint owned (legacy ~/.warpaint/ is auto-migrated).

Requirements:

  • Node.js 18 or newer
  • POSIX-ish shell (Linux, macOS, WSL)

From source

To hack on it, clone and run against the working tree:

bash
git clone https://github.com/ArturSkowronski/minipainter.gitcd minipainternpm installnode src/cli.mjs paint search bone

After that you have four usage modes:

  • CLI / TUI — see Quickstart below
  • Self-hosted HTTP server — a single Docker-friendly runtime with JSON storage and API endpoints
  • Local MCP for Claude Desktop — see Claude Desktop MCP Setup
  • Remote MCP for Claude mobile/web — see Remote MCP

Quickstart

Initialize the local inventory at ~/.minipainting/inventory.json:

bash
node src/cli.mjs catalog sync

Search paints:

bash
node src/cli.mjs paint search blacknode src/cli.mjs paint search bone --json

Inspect one paint:

bash
node src/cli.mjs paint show "Abaddon Black" --json

Mark paints as owned or missing:

bash
node src/cli.mjs inventory own "Abaddon Black"node src/cli.mjs inventory unown "Abaddon Black"node src/cli.mjs inventory list

Run semantic or color matching:

bash
node src/cli.mjs match describe bonenode src/cli.mjs match color "#d2c29b"

Launch the TUI:

bash
node src/cli.mjs tui

Run the MCP server locally:

bash
node src/mcp-server.mjs

Run the self-hosted HTTP server locally:

bash
DATA_DIR=.minipainting-data node src/mcp-http-server.mjs

TUI Workflow

The TUI is centered around three presentation areas:

  • FORGE CATALOG: visible paints in the current scope
  • SELECTED PIGMENT: the currently highlighted paint with provider, families, usage, and RGB
  • RITUAL COMMANDS: the command legend for the active session

Current TUI commands:

  • search <text>
  • owned
  • catalog
  • toggle
  • quit

Recommended use:

  1. start with catalog
  2. narrow with search bone, search black, or similar queries
  3. inspect the selected pigment panel
  4. toggle ownership as your collection changes

Project Direction

Implemented now:

  • local JSON registry
  • starter provider catalogs for Citadel and Army Painter
  • owned / missing inventory tracking
  • deterministic search and color matching
  • colored terminal presentation with per-paint swatches
  • local MCP server for Claude Desktop

Planned later:

  • a separate skill for parsing paint-set links
  • image-driven inventory fill from paint bottle photos
  • model-photo analysis that recommends owned paints first
  • stronger cross-provider equivalents and matching hints

Technical Notes

  • Built-in catalog data lives in data/catalog/ (Citadel and Army Painter, kept in version control)
  • Inventory file: ~/.minipainting/inventory.json — stores only owned paint ids in the form { "version": 1, "owned": ["citadel/abaddon-black", ...] }
  • Self-hosted server data directory: DATA_DIR (defaults to /data in Docker); inventory lives at <DATA_DIR>/inventory.json
  • The catalog and inventory are composed at runtime; saving never rewrites the catalog
  • IDs are stable by convention (provider + name slug); on load, owned ids missing from the catalog are reported as warnings instead of being silently dropped
  • A pre-existing project-local .minipainting/registry.json next to the inventory path is auto-migrated on first run
  • Legacy .warpaint/ data directories are auto-renamed to .minipainting/ on first run (both home and project-local variants)
  • Override the inventory location at the API surface with { inventoryPath } or { cwd } (the latter resolves to <cwd>/.minipainting/inventory.json, which is what the test suite uses for isolation)
  • RGB values are approximate reference colors for matching, not a guarantee of final painted appearance
  • MCP entrypoint: node src/mcp-server.mjs
  • MCP helper script: npm run mcp
  • HTTP server helper script: npm run server
  • README demo captures are reproducible via:
bash
npm run generate:demo

Claude Desktop MCP Setup

minipainter now includes a local MCP server so Claude Desktop can use your paint registry directly.

Example local MCP config:

json
{  "mcpServers": {    "minipainter": {      "command": "node",      "args": ["/absolute/path/to/minipainter/src/mcp-server.mjs"]    }  }}

After adding the server, Claude Desktop can call tools such as:

  • paint_search
  • paint_show
  • inventory_list
  • inventory_mark_owned
  • inventory_mark_unowned
  • match_color
  • match_describe

Suggested local flow:

  1. initialize your registry once with node src/cli.mjs catalog sync
  2. add the MCP server to Claude Desktop
  3. ask Claude to search paints or update ownership through the exposed tools

Agent Skill

For Claude Code, fetch the skill straight from the site, no clone required. It ships with the right guardrails baked in: JSON-only reads, product_format rules, failure handling.

bash
# project-scopedmkdir -p .claude/skills/minipaintercurl -fsSL https://arturskowronski.github.io/minipainter/SKILL.md \  -o .claude/skills/minipainter/SKILL.md

Or save it to ~/.claude/skills/minipainter/SKILL.md to use it everywhere.

Self-Hosted Docker

The Docker image runs a single HTTP server runtime designed for self-hosted use. Build it from the repo (no image is published to a registry yet):

bash
docker build -t minipainter .docker run -p 3000:3000 -v minipainting-data:/data minipainter

Or bring up the server together with Postgres in one step with docker compose up -d.

The server exposes:

  • GET /health
  • GET /api/paints
  • GET /api/paints/:paint
  • GET /api/inventory
  • PUT /api/inventory/:paint
  • DELETE /api/inventory/:paint
  • POST /api/match/color
  • POST /api/match/describe
  • POST /mcp

Optional runtime configuration:

  • PORT — listen port, defaults to 3000
  • DATA_DIR — persistent state directory, defaults to /data in Docker
  • AUTH_TOKEN — protects /api/* and /mcp with Authorization: Bearer ...
  • INVENTORY_SYNC_TOKEN — protects the legacy /inventory sync endpoint

Remote MCP (Claude Mobile)

For Claude mobile or web, the stdio MCP server above is not reachable. Run minipainter-mcp-http instead — a Streamable HTTP MCP transport exposing the same tools, plus GET/POST /inventory for syncing the local inventory.

Local smoke test

bash
export INVENTORY_SYNC_TOKEN=$(openssl rand -hex 32)export PORT=3000export INVENTORY_PATH=$HOME/.minipainting/inventory.jsonnpm run mcp:http

Then in another shell:

bash
curl -s http://localhost:3000/healthcurl -s -X POST http://localhost:3000/mcp \  -H "Content-Type: application/json" \  -H "Accept: application/json, text/event-stream" \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
# Sync endpoint (bearer-token protected)curl -s -H "Authorization: Bearer $INVENTORY_SYNC_TOKEN" \     http://localhost:3000/inventory

Deploy to Fly.io

The repo ships a Dockerfile and fly.toml. Full recipe in docs/deploy-fly.md. Short version:

bash
fly launch --no-deploy --copy-config --name <your-app-name>fly volumes create inventory_data --region <your-region> --size 1fly secrets set INVENTORY_SYNC_TOKEN="$(openssl rand -hex 32)"fly deploy

Connect Claude

In Claude (mobile or web), add a custom connector:

  • URL: https://<your-app-name>.fly.dev/mcp

The /mcp endpoint currently has no authentication — anyone with the URL can call tools. Use the obscurity of the URL plus Fly's network controls for now; add per-user auth before sharing the URL.

Environment variables

VariableRequiredPurpose
INVENTORY_SYNC_TOKENfor /inventoryBearer token protecting GET/POST /inventory; when unset, sync returns 503
INVENTORY_PATHnoPath to inventory.json; default ~/.minipainting/inventory.json locally, /data/inventory.json in the Docker image
INVENTORY_JSONnoOne-time seed JSON; only used when INVENTORY_PATH is absent on first boot
WARPAINT_INVENTORY_JSONnoLegacy alias of INVENTORY_JSON
MCP_SERVER_NAMEnoServer name in MCP handshake + startup log; default paint-inventory
PORTno (default 3000)TCP port to listen on

Known limitations

  • /mcp has no authentication yet. The bearer token only protects /inventory.
  • Stateless transport: no long-running SSE tool streams (the tools are fast so this is fine).

Self-hosting your own MCP

The MCP server is generic — only the CLI (mpaint) is branded. To run your own instance:

  1. Fork or clone the repo.

  2. (Optional) rename your Fly app in fly.toml.

  3. Create a Fly volume and set secrets:

    bash
    fly volumes create inventory_data --size 1 --region <your-region>fly secrets set INVENTORY_SYNC_TOKEN=$(openssl rand -hex 24)# Optional one-time seed:fly secrets set INVENTORY_JSON="$(cat ~/.minipainting/inventory.json)"
  4. (Optional) name your MCP server (shown in the MCP handshake and startup logs):

    bash
    fly secrets set MCP_SERVER_NAME=my-paints
  5. Deploy:

    bash
    fly deploy
  6. Register the remote in your local CLI and sync:

    bash
    mpaint sync add default \  --url https://my-app.fly.dev \  --token <token-from-step-3>mpaint sync push

After this, your local inventory and the deployed MCP stay in sync via mpaint sync push (upload local → remote) and mpaint sync pull --force (overwrite local from remote).

License

MIT © Artur Skowronski

来源:README.md,提交 fe3fd9b

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.7.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分