
Agent Mosaic Skill
io.github.Able-rip由 GitHub 账号 Able-rip 发布v1.0.2更新于 Nov 10, 2026
Convert photos to LEGO-style brick mosaic previews with AI-powered color quantization.
概览
本地 MCP 服务器,用色彩量化和 3D 渲染把本机照片转换成乐高风格积木马赛克预览图。
- 可以做什么
- 根据本地图片生成积木马赛克预览,可指定以凸点计的宽高(最大 64)以及方形或圆形颗粒
- 渲染前可选择清理白色或透明背景
- 可选择渲染风格,默认使用 3D
- 返回本地带水印的 PNG 预览图,以及解锁完整项目的链接
- 适用场景
- 适合想快速把照片做成乐高风格马赛克效果图、在采购积木或购买完整方案前先看设计效果的场景。
- 运行要求
- 通过 npx 作为本地进程运行,需要机器上安装 Node.js。图片需以本地绝对路径提供。未声明需要账号、API 密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 Agent Mosaic Skill,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
BMBrick Photo-to-LEGO-Mosaic Skill
Convert any local photo into a LEGO-style brick mosaic preview — directly from your AI agent.
@bmbrick/photo-to-lego-mosaic-skill is an MCP server that lets Claude, Cursor, Windsurf, and other AI agents transform local images into high-fidelity 3D brick mosaics using the same canonical engine as bmbrick.com.
Renamed from
@bmbrick/agent-mosaic-skill(the old name still works but is deprecated — please migrate to the new name for future updates).
Visual Previews
Generated with the generate_lego_mosaic tool (3D render mode):
Square Tiles (square_1x1)
Round Tiles (round_1x1)
For more case studies and mosaic examples, check out our Pinterest Showcase.
Quick Start
MCP Client Configuration
Claude Desktop (claude_desktop_config.json):
Cursor (.cursor/mcp.json):
Tool: generate_lego_mosaic
Returns: a local watermarked PNG preview + a link to unlock the full project at bmbrick.com.
Unlock Full Project
The preview is watermarked and intended for creative exploration. To get the complete deliverables — HD unwatermarked mosaic, brick-by-brick PDF instructions, parts list with ordering links, and CSV/XML placement matrices — visit bmbrick.com.
Features
- Same Engine as bmbrick.com — canonical color science, quantization, and 3D rendering pipeline
- Local & Private — all processing happens on your machine via Node.js
- Agent-Ready — ships with a
SKILL.mdfor seamless agent workflow integration - 3D Render Mode — InstancedMesh PBR rendering with realistic brick studs
Engineering Docs
Deep technical reference for the color quantization pipeline that powers this skill and bmbrick.com:
- Color quantization pipeline: principles, history, and lessons — current architecture, architectural decisions, verified principles, failed experiments from 25+ versions of iteration, and parameter sensitivity reference.
Migrating from @bmbrick/agent-mosaic-skill
If you were using the old name, the migration is one search/replace:
- Package name:
@bmbrick/agent-mosaic-skill→@bmbrick/photo-to-lego-mosaic-skill - MCP tool name (in your agent's tool list):
generate_bmbrick_mosaic→generate_lego_mosaic - Binary name (rare):
agent-mosaic-skill→photo-to-lego-mosaic-skill
The tool parameters (imagePath, columns, rows, etc.) and return shape are unchanged.
Development
License
Dual-licensed:
- MIT — MCP wrapper,
skill/directory, agent integration surface - Restricted —
dist/engine files: free to use and distribute as-is, but no de-obfuscation, reverse engineering, or redistribution of modified versions
See LICENSE for full terms.
来源:README.md,提交 43e0b59
工具
0版本历史
1- v1.0.2最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。