uiforge-mcp 0.15.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- uiforge_mcp-0.15.0/.editorconfig +18 -0
- uiforge_mcp-0.15.0/.gitattributes +20 -0
- uiforge_mcp-0.15.0/.gitignore +68 -0
- uiforge_mcp-0.15.0/CHANGELOG.md +134 -0
- uiforge_mcp-0.15.0/CODE_OF_CONDUCT.md +11 -0
- uiforge_mcp-0.15.0/CONTRIBUTING.md +36 -0
- uiforge_mcp-0.15.0/LICENSE +26 -0
- uiforge_mcp-0.15.0/PKG-INFO +214 -0
- uiforge_mcp-0.15.0/README.md +157 -0
- uiforge_mcp-0.15.0/README.tr.md +155 -0
- uiforge_mcp-0.15.0/SECURITY.md +32 -0
- uiforge_mcp-0.15.0/THIRD_PARTY_LICENSES.md +58 -0
- uiforge_mcp-0.15.0/configs/README.md +161 -0
- uiforge_mcp-0.15.0/docs/COMPATIBILITY.md +50 -0
- uiforge_mcp-0.15.0/docs/GUIDE.md +158 -0
- uiforge_mcp-0.15.0/docs/SHOWCASES.md +143 -0
- uiforge_mcp-0.15.0/examples/demo.py +168 -0
- uiforge_mcp-0.15.0/examples/demo_animation.py +130 -0
- uiforge_mcp-0.15.0/examples/demo_banner.py +540 -0
- uiforge_mcp-0.15.0/examples/demo_components.py +73 -0
- uiforge_mcp-0.15.0/examples/demo_design_tools.py +99 -0
- uiforge_mcp-0.15.0/examples/demo_materials.py +56 -0
- uiforge_mcp-0.15.0/examples/demo_pbr_maps.py +95 -0
- uiforge_mcp-0.15.0/examples/demo_racing.py +241 -0
- uiforge_mcp-0.15.0/examples/demo_shading.py +154 -0
- uiforge_mcp-0.15.0/examples/demo_workflow.py +168 -0
- uiforge_mcp-0.15.0/examples/run_all.py +21 -0
- uiforge_mcp-0.15.0/llms.txt +34 -0
- uiforge_mcp-0.15.0/pyproject.toml +104 -0
- uiforge_mcp-0.15.0/server.json +37 -0
- uiforge_mcp-0.15.0/skill/uiforge-mcp/SKILL.md +368 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/__init__.py +5 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/__main__.py +4 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/animation.py +414 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/bangers/Bangers-Regular.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/bangers/OFL.txt +93 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/barlowcondensed/BarlowCondensed-Bold.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/barlowcondensed/BarlowCondensed-BoldItalic.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/barlowcondensed/BarlowCondensed-Medium.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/barlowcondensed/BarlowCondensed-MediumItalic.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/barlowcondensed/BarlowCondensed-Regular.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/barlowcondensed/BarlowCondensed-SemiBold.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/barlowcondensed/BarlowCondensed-SemiBoldItalic.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/barlowcondensed/OFL.txt +93 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/bebasneue/BebasNeue-Regular.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/bebasneue/OFL.txt +93 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/cinzel/Cinzel[wght].ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/cinzel/OFL.txt +93 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/fredoka/Fredoka[wdth,wght].ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/fredoka/OFL.txt +93 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/inter/Inter[opsz,wght].ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/inter/OFL.txt +93 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/jetbrainsmono/JetBrainsMono[wght].ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/jetbrainsmono/OFL.txt +93 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/michroma/Michroma-Regular.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/michroma/OFL.txt +93 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansArabic-Bold.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansArabic-Regular.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansBengali-Bold.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansBengali-Regular.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansDevanagari-Bold.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansDevanagari-Regular.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansHebrew-Bold.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansHebrew-Regular.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansTamil-Bold.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansTamil-Regular.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansThai-Bold.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/NotoSansThai-Regular.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/noto/OFL.txt +93 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/orbitron/OFL.txt +93 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/orbitron/Orbitron[wght].ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/rajdhani/OFL.txt +93 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/rajdhani/Rajdhani-Bold.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/rajdhani/Rajdhani-Medium.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/assets/fonts/rajdhani/Rajdhani-SemiBold.ttf +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/autolayout.py +263 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/binding.py +249 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/cli.py +586 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/colors.py +161 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/core.py +259 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/desktop_export.py +789 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/effects.py +735 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/engines.py +233 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/export.py +258 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/fonts.py +212 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/frames.py +448 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/geometry.py +455 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/gpu.py +142 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/gpu_wgpu.py +648 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/icons.py +291 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/layout.py +227 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/lint.py +87 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/live.py +408 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/lottie.py +525 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/materials.py +435 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/pbr.py +702 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/pdfexport.py +327 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/profiles.py +329 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/psd.py +117 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/py.typed +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/raster.py +113 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/reference.py +222 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/render.py +3012 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/screenshot.py +472 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/server.py +4250 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/shader.py +630 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/shaping.py +677 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/store.py +1074 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/studio_app.py +424 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/studio_ui.py +510 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/svgexport.py +430 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/svgimport.py +310 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/tokens.py +344 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/tools_delivery.py +1975 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/tools_design.py +693 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/tools_workflow.py +680 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/ui_assets/brand/emblem.png +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/ui_assets/brand/starter_rpg.png +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/ui_assets/brand/starter_saas.png +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/ui_assets/brand/starter_tactical.png +0 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/ui_assets/index.html +610 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/ui_assets/studio.css +560 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/ui_assets/studio.js +1665 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/vectorize.py +134 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/viewing.py +125 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/webexport.py +1281 -0
- uiforge_mcp-0.15.0/src/uiforge_mcp/widgets.py +412 -0
- uiforge_mcp-0.15.0/tests/test_anim_quality.py +50 -0
- uiforge_mcp-0.15.0/tests/test_batch1.py +101 -0
- uiforge_mcp-0.15.0/tests/test_batch10.py +129 -0
- uiforge_mcp-0.15.0/tests/test_batch2_text.py +77 -0
- uiforge_mcp-0.15.0/tests/test_batch3_fx.py +94 -0
- uiforge_mcp-0.15.0/tests/test_batch4_layout.py +97 -0
- uiforge_mcp-0.15.0/tests/test_batch5_vector_pdf.py +48 -0
- uiforge_mcp-0.15.0/tests/test_batch6_lottie.py +101 -0
- uiforge_mcp-0.15.0/tests/test_batch7_web.py +70 -0
- uiforge_mcp-0.15.0/tests/test_design_tools.py +84 -0
- uiforge_mcp-0.15.0/tests/test_figma_parity.py +214 -0
- uiforge_mcp-0.15.0/tests/test_gpu.py +47 -0
- uiforge_mcp-0.15.0/tests/test_images_materials.py +98 -0
- uiforge_mcp-0.15.0/tests/test_layer_formats.py +44 -0
- uiforge_mcp-0.15.0/tests/test_security.py +42 -0
- uiforge_mcp-0.15.0/tests/test_server.py +1373 -0
- uiforge_mcp-0.15.0/tests/test_shader.py +83 -0
- uiforge_mcp-0.15.0/tests/test_stress.py +71 -0
- uiforge_mcp-0.15.0/tests/test_text_engine.py +144 -0
- uiforge_mcp-0.15.0/tests/test_tool_errors.py +55 -0
- uiforge_mcp-0.15.0/tests/test_v12_features.py +253 -0
- uiforge_mcp-0.15.0/tests/test_v13_features.py +338 -0
- uiforge_mcp-0.15.0/tests/test_v14_features.py +265 -0
- uiforge_mcp-0.15.0/tests/test_v15_modes_and_quality.py +377 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# EditorConfig helps keep formatting consistent across editors and operating systems.
|
|
2
|
+
# https://editorconfig.org
|
|
3
|
+
|
|
4
|
+
root = true
|
|
5
|
+
|
|
6
|
+
[*]
|
|
7
|
+
charset = utf-8
|
|
8
|
+
end_of_line = lf
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
trim_trailing_whitespace = true
|
|
11
|
+
indent_style = space
|
|
12
|
+
indent_size = 4
|
|
13
|
+
|
|
14
|
+
[*.{yml,yaml,toml,json,js,css,html}]
|
|
15
|
+
indent_size = 2
|
|
16
|
+
|
|
17
|
+
[*.md]
|
|
18
|
+
trim_trailing_whitespace = false
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Binary assets (prevent diff corruption / text conversion)
|
|
2
|
+
*.png binary
|
|
3
|
+
*.gif binary
|
|
4
|
+
*.webp binary
|
|
5
|
+
*.jpg binary
|
|
6
|
+
*.jpeg binary
|
|
7
|
+
*.ico binary
|
|
8
|
+
*.ttf binary
|
|
9
|
+
*.otf binary
|
|
10
|
+
*.psd binary
|
|
11
|
+
*.pdf binary
|
|
12
|
+
*.mp4 binary
|
|
13
|
+
*.webm binary
|
|
14
|
+
*.lottie binary
|
|
15
|
+
|
|
16
|
+
# GitHub Linguist hints (keep repo language stats focused on source code)
|
|
17
|
+
docs/** linguist-documentation
|
|
18
|
+
examples/** linguist-documentation
|
|
19
|
+
configs/** linguist-documentation
|
|
20
|
+
skill/** linguist-documentation
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Python bytecode & caches
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.so
|
|
6
|
+
.Python
|
|
7
|
+
|
|
8
|
+
# Packaging & distribution
|
|
9
|
+
build/
|
|
10
|
+
dist/
|
|
11
|
+
*.egg-info/
|
|
12
|
+
*.egg
|
|
13
|
+
*.whl
|
|
14
|
+
MANIFEST
|
|
15
|
+
.sdist_check/
|
|
16
|
+
|
|
17
|
+
# Virtual environments
|
|
18
|
+
.venv/
|
|
19
|
+
venv/
|
|
20
|
+
env/
|
|
21
|
+
ENV/
|
|
22
|
+
|
|
23
|
+
# Testing, linting, typing & coverage
|
|
24
|
+
.pytest_cache/
|
|
25
|
+
.ruff_cache/
|
|
26
|
+
.mypy_cache/
|
|
27
|
+
.tox/
|
|
28
|
+
.nox/
|
|
29
|
+
.hypothesis/
|
|
30
|
+
.coverage
|
|
31
|
+
.coverage.*
|
|
32
|
+
htmlcov/
|
|
33
|
+
coverage.xml
|
|
34
|
+
|
|
35
|
+
# Secrets & local environment variables
|
|
36
|
+
.env
|
|
37
|
+
.env.*
|
|
38
|
+
!.env.example
|
|
39
|
+
credentials.json
|
|
40
|
+
*.pem
|
|
41
|
+
*.key
|
|
42
|
+
|
|
43
|
+
# Local AI tools, IDEs & editors
|
|
44
|
+
.claude/
|
|
45
|
+
.cursor/
|
|
46
|
+
.codex/
|
|
47
|
+
.opencode/
|
|
48
|
+
.gemini/
|
|
49
|
+
.vscode/
|
|
50
|
+
.idea/
|
|
51
|
+
*.swp
|
|
52
|
+
*.swo
|
|
53
|
+
|
|
54
|
+
# Local UIForge workspace & regenerated demo artifacts
|
|
55
|
+
.uiforge/
|
|
56
|
+
examples/out/
|
|
57
|
+
examples/_*/
|
|
58
|
+
examples/*.psd
|
|
59
|
+
examples/*_strip.png
|
|
60
|
+
examples/components.png
|
|
61
|
+
examples/hud_mockup.png
|
|
62
|
+
|
|
63
|
+
# Logs & OS junk
|
|
64
|
+
*.log
|
|
65
|
+
.DS_Store
|
|
66
|
+
._*
|
|
67
|
+
Thumbs.db
|
|
68
|
+
desktop.ini
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.15.0 - 2026-11-26
|
|
4
|
+
|
|
5
|
+
- **Three Seamless Runtime Modes (`Human UI`, `MCP`, `Combined`):** added a dedicated `uiforge` CLI entrypoint (defaults to Human Mode Studio UI) alongside `uiforge-mcp` (defaults to MCP Mode), plus explicit `ui`, `mcp`, `combined`, `serve --mode mcp|ui|combined` subcommands and `UIFORGE_MODE` env support.
|
|
6
|
+
- **Standalone Human Mode Studio UI (`studio_ui.py`, `ui_assets/`):** built a zero-CDN, 100% offline original design studio ("Obsidian Forge Atelier" + Light Studio theme) with UIForge-forged PBR brand emblem and 3 real starter templates (`Tactical Sci-Fi HUD`, `Fantasy RPG Forge`, `Desktop & SaaS App`), **`Ctrl+K` Command Palette**, **8-point interactive resize handles**, **magnetic smart snap guides**, **`Shift+Click` multi-select & distribute**, **double-click inline text editing**, **live Cook-Torrance PBR Tuner + custom material swatches**, **Color-Blindness & `Pseudo-Long`/`Pseudo-RTL` Vision Simulator**, **Multi-Device Responsive Matrix**, **Visual Variations Explorer**, **CSS `:root` / Tailwind v4 `@theme` / `oklch()` / shadcn HSL token importer** (`tokens.py` + `set_theme(tokens=...)`), **Quick Motion Preset Builder + `dotLottie v2`/GIF export**, WCAG 2.2 keyboard navigation & focus-trapped dialogs, version snapshots + Pixel Visual Diff, one-click Export Center with inline code copy & sandboxed HTML preview, GPU & optional MCP IDE setup, and `--app` frameless native window launcher.
|
|
7
|
+
- **MCP-Independent Shared Core & Concurrency Hardening (`core.py`, `store.py`, `server.py`):** extracted shared `invoke_operation()`, `render_view()`, and thread-safe `ActivityLog` into `core.py` so Human Studio UI and MCP Mode execute the exact same engine logic with zero duplication; added `MCP_AVAILABLE` runtime shim so Human Mode boots and executes all 97 core operations with zero `mcp` SDK installed; hardened `Store` with re-entrant `threading.RLock`, per-write unique `tempfile.mkstemp` + `os.fsync` + retry `os.replace`, and cross-process `sync_from_disk()` for safe single-process and multi-process Combined Mode collaboration.
|
|
8
|
+
- **Code Quality & Slop Cleanup:** refactored 408-line monolithic `render_widget()` in `widgets.py` into focused per-widget renderers (`_render_slider`, `_render_toggle`, `_render_dropdown`, `_render_input`, `_render_scroll`), deduplicated render+overlay logic across `live.py` and `studio_app.py`, replaced silent `except Exception: pass` blocks in `store.py` with structured logging, silenced benign Windows keep-alive `ConnectionResetError` tracebacks in HTTP servers, removed unused imports across engine modules, and added OpenAI Codex (`~/.codex/config.toml`) support to `uiforge-mcp setup`.
|
|
9
|
+
- **Comprehensive Documentation Overhaul & Real UI Showcases:** updated every Markdown document in the repository (`README.md`, `README.tr.md`, `docs/GUIDE.md`, `docs/COMPATIBILITY.md`, `configs/README.md`, `skill/uiforge-mcp/SKILL.md`, `SECURITY.md`, `CONTRIBUTING.md`, `THIRD_PARTY_LICENSES.md`, PR template), added root `llms.txt`, removed stale/contradictory claims and vendor-specific bias, and embedded 4 real Studio UI screenshots captured from live Chrome CDP sessions.
|
|
10
|
+
|
|
11
|
+
## 0.14.0 - 2026-11-26
|
|
12
|
+
|
|
13
|
+
- **Security Hardening & Single-Source Versioning:** fixed version drift across `__init__.py`, `pyproject.toml` and `export_atlas` (`__version__ = "0.14.0"`); hardened `binding.py` AST evaluator against exponentiation (`9**9**9`) and string-multiplication (`'a' * 10**6`) DoS bombs; added constant-time `BearerAuthMiddleware` (`--auth-token` / `UIFORGE_MCP_AUTH_TOKEN`), non-loopback bind protection, and automatic export path sandboxing (`--sandbox-exports` / `UIFORGE_MCP_SANDBOX_EXPORTS`) for remote Streamable HTTP MCP deployments.
|
|
14
|
+
- **Modular Toolsets, Schema Compression & MCP Progress:** added `--toolset` (`full | core | game | desktop | web`) and `--compact` (`UIFORGE_MCP_TOOLSET`, `UIFORGE_MCP_COMPACT_TOOLS`) cutting LLM context overhead by up to **77%** (`core + compact`: ~7.8K tokens vs ~35K full); exposed token footprint metrics in `uiforge-mcp doctor`; wired non-blocking `report_progress()` notifications for long exports.
|
|
15
|
+
- **Pure-MIT Built-in Vector Icon Library (`icons.py`, `add_icon`, `uiforge://icons`):** 142 originally authored 24×24 geometric vector icons (UI, navigation, media, RPG, FPS, racing, sci-fi, shop) instantiated as editable native `path` elements supporting PBR materials, glows, strokes, gradients, animations, and `batch` ops.
|
|
16
|
+
- **Complete Native Interactive Widget Suite (`add_slider`, `add_toggle`, `add_dropdown`):** expanded first-class widgets beyond `input` and `scroll` to include Slider, Toggle (switch & checkbox), and Dropdown/ComboBox — rendered on canvas with live `set_binding` sync and exported as genuine native controls across Web/React (TSX/Tailwind), Godot 4 (`HSlider`, `CheckButton`/`CheckBox`, `OptionButton`), Unity UI Toolkit (`<ui:Slider>`, `<ui:Toggle>`, `<ui:DropdownField>`), Unity uGUI (`Slider`, `Toggle`, `Dropdown`), Roblox, Unreal Engine UMG (`USlider`, `UCheckBox`, `UComboBoxString`), C#/.NET (`WPF`, `Avalonia`, `WinUI 3`), C++ `Qt 6 QML`, and C++17 `Dear ImGui`.
|
|
17
|
+
- **Unreal Engine UMG Screen Exporter (`export_screen(engine="unreal")`):** generates a complete UE 5.5–5.8 Python `WidgetBlueprint` builder (`WBP_<Name>_build_umg.py`) importing PNG slices (`TC_EDITOR_ICON`, `TEXTUREGROUP_UI`) and constructing a `CanvasPanel` hierarchy with 9-slice `SlateBrush` margins, responsive `Anchors`, `Image`, `TextBlock`, `EditableTextBox`, `ScrollBox`, `Slider`, `CheckBox`, and `ComboBoxString`.
|
|
18
|
+
- **3D Diegetic Perspective Tilt & Curved Visor HUD (`perspective` / `visor_curve`):** OpenCV-accelerated premultiplied-RGBA projective homography (`rotate_x`, `rotate_y`, `rotate_z`, `fov`) and cylindrical cockpit/helmet HUD curvature (`visor_curve`) on any element or layer.
|
|
19
|
+
- **SEP-1865 MCP App Studio (`studio_app.py`, `open_studio`, `ui://uiforge/studio.html`) & Live Preview v2 (`live.py`):** self-contained interactive studio runnable inline or in a host side pane (`aux_pane` / `global` entrypoints) with zero-token app-only tools (`studio_app_state`, `studio_app_render`), plus upgraded localhost Live Studio v2 featuring click-to-inspect element boxes, layer visibility toggles, state preview switcher, live `set_binding` variable sliders, and animation timeline scrubber.
|
|
20
|
+
- **Smart Screenshot v2, Pixel Visual Diff & Extended WCAG Audit:** upgraded `import_screenshot` with sibling row/column layout-group inference, pill toggle detection, and automatic `$ss_*` theme token binding; added `canvas_version(action="visual_diff")` rendering Before | After | Diff Heatmap PNGs with `changed_pct` / MAE metrics; extended `review_canvas` WCAG contrast checks to `input` and `dropdown` widgets with suggested high-contrast colors and structured `wcag` summary.
|
|
21
|
+
- **Multi-OS CI & PyPI Release Workflow:** expanded GitHub Actions CI to `ubuntu-latest`, `macos-latest`, `windows-latest` + `ruff` syntax/bug lint, and added `.github/workflows/release.yml` for PyPI trusted publishing.
|
|
22
|
+
|
|
23
|
+
## 0.13.0 - 2026-11-25
|
|
24
|
+
|
|
25
|
+
- **Cross-GPU WebGPU Compute Backend (`gpu_wgpu.py`, `[wgpu]` extra):** modular pluggable backend registry (`UIFORGE_MCP_GPU=auto|cuda|wgpu|cpu`) compiling sandboxed shader ASTs to WGSL `@compute` with bit-exact `u32` lattice hashing (`max_diff < 1e-4` vs CPU, **32× faster** at 512×512 on RTX 4060 Ti Vulkan) plus a WGSL Cook-Torrance GGX PBR compute shader (**7.1× faster** than CPU). Targets Vulkan, DirectX 12 and Metal through `wgpu-py` (physically verified on NVIDIA RTX 4060 Ti Vulkan/D3D12; AMD, Intel and Apple Silicon architecturally targeted via standard WGSL, not physically tested).
|
|
26
|
+
- **Custom `.hdr` & `.exr` HDRI Environment Maps (IBL):** pure-Python Radiance `.hdr` (RGBE + RLE) decoder and pure-Python OpenEXR `.exr` (uncompressed / ZIPS / ZIP HALF & FLOAT) decoder, plus workspace-level `set_theme(environment=...)` and canvas-level `update_canvas(environment=...)` IBL settings that automatically light all PBR materials.
|
|
27
|
+
- **AAA Procedural Frame Generator Upgrade (`frames.py`):** upgraded `add_frame` to 9 presets (adding `royal_ornate` and `fantasy_parchment`) with symmetrical cubic-Bézier corner filigree scrollwork, winged gemstone crests, bottom fleur-de-lis finials, forged iron corner hinge clasps, perimeter blacksmith rivet rings, tactical HUD telemetry rulers, LED indicators, and warning chevrons.
|
|
28
|
+
- **dotLottie v2.0 Interactive State Machines (`lottie.py`):** upgraded `export_animation(..., format="dotlottie")` to the official dotLottie v2.0 spec (`manifest.json` `version: "2"`, `a/<id>.json` animations, `s/<id>.json` state machine synthesized from `set_interaction` + `set_binding` + animations with `PlaybackState`, `Transition`/`Tweened`, `PointerEnter`/`PointerExit`/`PointerDown`/`PointerUp`/`Click`/`OnComplete`, and typed `inputs`/`guards`).
|
|
29
|
+
- **First-Class Interactive `Scroll` and `Input` Widgets (`widgets.py`, `add_input`, `add_scroll`):** realistic canvas rendering (with shaped `TextLayout` focus caret, password masking, labels, clipped scrollable rows and proportional scrollbars) + native control export across Web/React (`<input>` + `overflow: auto`), Godot 4 (`LineEdit` + `ScrollContainer`), Unity UI Toolkit (`<ui:TextField>` + `<ui:ScrollView>`), Unity uGUI (`InputField` + `ScrollRect`), Roblox (`TextBox` + `ScrollingFrame`), and all desktop targets.
|
|
30
|
+
- **C# / .NET & C++ Desktop UI Exporters (`desktop_export.py`):** extended `export_screen(engine=...)` with 5 native desktop frameworks: `"wpf"` (.NET Framework 4.8 & .NET 8/9 `.xaml` + `.xaml.cs` + `INotifyPropertyChanged` ViewModel), `"avalonia"` (cross-platform `.axaml`), `"winui"` (WinUI 3 `.xaml`), `"qt-qml"` (C++ Qt 6 `.qml`), and `"imgui"` (C++17 Dear ImGui self-contained `_ui.hpp`).
|
|
31
|
+
- **Screenshot-to-Editable-Canvas (`screenshot.py`, `import_screenshot`):** OpenCV SIMD K-means palette extraction, hierarchical `RETR_TREE` card/button/circle segmentation with corner-radius estimation, solid vs linear gradient & border detection, and optional local OCR (`rapidocr_onnxruntime` / `pytesseract`) with OpenCV text-line heuristic fallback.
|
|
32
|
+
- **Configurable Quality Tiers & Visual Style Presets (`profiles.py`):** 4 real rendering/geometry quality tiers (`simple`, `standard`, `advanced`, `aaa`) and 9 visual style presets (`kids`, `cartoon`, `stylized`, `minimal`, `web_saas`, `scifi`, `dark_fantasy`, `realistic`, `photorealistic`) wired into `set_theme`, `update_canvas`, `add_frame(preset="auto")`, `Renderer` SS/noise/PBR pipeline, plus bugfix expanding `"material"` inside named string theme styles.
|
|
33
|
+
- **GPU Architecture Installer & Multi-IDE CLI (`cli.py`, `configs/README.md`):** hardware GPU auto-detector (`doctor`), architecture-grouped pip extras (`[nvidia]`, `[amd]`, `[intel]`, `[apple]`, `[cpu]`, `[ocr]`), Streamable HTTP transport (`serve --transport http` for ChatGPT MCP Connectors), and one-command safe-merge config installer (`setup opencode|claude|vscode|visualstudio|antigravity|cursor|windsurf|chatgpt --write`).
|
|
34
|
+
- **2026 API Compatibility Audit (`docs/COMPATIBILITY.md`):** Exa-verified API audit + Godot 4.5 `CanvasTexture` inverted smoothness `specular_texture` fix + Unreal Engine 5.5–5.8 `export_pbr_maps(engine="unreal")` automated Python importer (`TC_NORMALMAP` / `TC_MASKS` / `TC_DEFAULT`), physically verified live in local Unreal Engine 5.8.4, Blender 5.3.0, .NET 8 WPF (`dotnet build` 0 errors / 0 warnings), Chromium Playwright, `tsc`, and FFmpeg 9.0.2.
|
|
35
|
+
|
|
36
|
+
## 0.12.0 - 2026-11-25
|
|
37
|
+
|
|
38
|
+
- **Performance engine (OpenCV SIMD + Fused CUDA 12):** added `opencv-python-headless` for native C++ AVX2/NEON `distanceTransform` (~2.8 ms at 512x512, ~9x faster than NumPy JFA), Scharr normal gradients, `GaussianBlur`, exact Euclidean disc morphology, and `remap` liquid-glass refraction; full `float32` pixel pipeline; AST-to-CUDA fused `ElementwiseKernel` compilation on NVIDIA GPUs (3.3-5.7 ms at 1024x1024); bit-exact uint32 noise hash across CPU and GPU; 128 MB LRU element render cache; static-layer baking in animation exports (4.7x faster); cropped shader/PBR/layer-style bounding boxes; streaming `ffmpeg` stdin video encoding; PackBits RLE PSD compression.
|
|
39
|
+
- **Photorealistic Cook-Torrance GGX PBR engine (`pbr.py`, `style.pbr`):** full linear-HDR dual-lobe Cook-Torrance GGX BRDF with perspective camera view vectors, curvature edge wear, 5 studio HDRI light tents (`bright`, `warm`, `dark`, `sunset`, `cyberpunk`) plus optional custom equirectangular `.hdr`/`.png`/`.jpg` IBL (`env_map`), clearcoat lacquer, linear & radial bowtie anisotropy, subsurface scattering wrap, crevice AO, HDR emission, ACES filmic tone mapping, layer-level PBR styling, and flip-safe light mirroring.
|
|
40
|
+
- **Engine PBR Texture Map Export (`export_pbr_maps`):** bakes any 2D UI canvas into Albedo, Tangent Normal (OpenGL `+Y` and Unreal DirectX `-Y`), Roughness, Metallic, AO, Height, ORM-packed, and Emissive PNGs — plus ready Godot 4 `CanvasTexture .tres` for dynamic in-engine 2D lighting.
|
|
41
|
+
- **Parametric AAA Frame Builder (`add_frame`):** generates 100% editable vector + PBR borders across 7 presets (`rpg_gold`, `scifi_hud`, `cyber_tech`, `glass_card`, `medieval_iron`, `luxury_minimal`, `cartoon_thick`) returning the exact `inner_box` safe area.
|
|
42
|
+
- **New export formats & AI Ergonomics:** compressed **dotLottie (`.lottie`)** multi-animation archive (`export_animation(..., animation="all", format="dotlottie")`), **TypeScript React (`.tsx`)** (`export_react(..., typescript=True)`), industry-standard **TexturePacker / Godot `AtlasTexture` / Unity / CSS** sprite atlases (`export_atlas(..., format=...)`), expanded atomic `batch` ops (`add_frame`, `set_pin`, `set_state`, `set_binding`, `set_interaction`, `set_link`, `align_elements`, `arrange_elements`, `delete_layer`), native MCP Resources & Prompts, atomic JSON writes in `store.py`.
|
|
43
|
+
- **Legal & license hygiene:** replaced LGPL-3.0 `python-bidi` with a clean pure-Python MIT Unicode UAX #9 BiDi resolver in `shaping.py`; added `THIRD_PARTY_LICENSES.md` documenting all dependencies and bundled SIL OFL-1.1 fonts; rebuilt hero banner and showcase examples.
|
|
44
|
+
- **39 built-in materials (+16 new):** rebuilt all 39 materials on Cook-Torrance GGX PBR & domain-warped shaders (`gold`, `silver`, `chrome`, `bronze`, `copper`, `steel`, `iron`, `radial_metal`, `hammered_gold`, `rust`, `wood`, `stone`, `runic_stone`, `marble`, `obsidian`, `jade`, `gem`, `ruby`, `emerald`, `lava`, `ice`, `leather`, `paper`, `aged_parchment`, `fabric`, `carbon_twill`, `wax_seal`, `enamel`, `glass`, `liquid_glass`, `hologram`, `energy_shield`, `foil_holographic`, `neon`, `plastic`, `candy_gloss`, `clay_3d`, `rubber`, `jelly`). Fixed `theme.json` persistence for custom materials and `light: null` / `pbr: null` overrides.
|
|
45
|
+
- **Reactive data binding (`set_binding`):** canvas variables and sandboxed AST expressions driving bar widths, colours, visibility and `{placeholders}`; live override in `preview(..., data=...)`, `window.uiforgeSetData()` in web export, `data` prop in React, and typed controllers in engines.
|
|
46
|
+
- **Engine controllers & Unity uGUI (`export_screen`):** added `engine="unity-ugui"` C# Canvas/RectTransform builder; automatic interactive controller generation (`_controller.gd` for Godot 4 with gamepad `focus_neighbor_*`, `Controller.cs` for Unity UI Toolkit) wired to `set_binding`, `set_interaction` and optional `sfx` audio events.
|
|
47
|
+
- **Live Preview Studio (`live_preview`):** zero-dependency localhost (`127.0.0.1`) HTTP + SSE live browser previewer that auto-reloads on every edit with IDs, safe-area guides, backdrop switcher and cursor coordinate inspection.
|
|
48
|
+
- **Web / React upgrades:** Tailwind CSS utility mode (`export_react(..., css="tailwind")`), keyboard arrow + Web Gamepad API focus navigation, `onSfx` hook, and Git-friendly `.uiforge/` auto-detected project-local workspace mode.
|
|
49
|
+
|
|
50
|
+
## 0.11.0 - 2026-11-16
|
|
51
|
+
|
|
52
|
+
- `set_interaction`: a state machine (hover / press / click / key / animation-end triggers; play, states, navigation) that runs in web and React output and is listed in the animation JSON.
|
|
53
|
+
- `export_react`: React components (JSX + CSS + runtime, images imported).
|
|
54
|
+
- `export_animation` MP4 / WebM video (ffmpeg; `[video]` extra).
|
|
55
|
+
- `make_variations`: alternative palette / shape / type directions with a comparison sheet.
|
|
56
|
+
- DESIGN.md import (`set_theme(tokens=...)`) and export (`export_theme("design.md")`).
|
|
57
|
+
- Custom materials: `set_theme(materials=...)`.
|
|
58
|
+
- Web: state looks now beat inline styles (hover / pressed CSS did not apply before).
|
|
59
|
+
|
|
60
|
+
## 0.10.0 - 2026-11-16
|
|
61
|
+
|
|
62
|
+
- 23 ready materials (`style.material`): metals, wood, stone, marble, leather, fabric, paper, rust, lava, ice, gem, plastic, rubber, jelly, glass, neon, hologram; tintable, seedable, animatable.
|
|
63
|
+
- Images: `crop`, `cutout` background removal, `zoom` / `focus` pan and zoom (also on image fills), animated GIF / APNG / WebP and sprite sheets via `frame`, sub-pixel placement.
|
|
64
|
+
|
|
65
|
+
## 0.9.0 - 2026-11-16
|
|
66
|
+
|
|
67
|
+
- Lottie: plain shapes and text export as vector shape layers (solid / gradient fill, stroke, animated colour).
|
|
68
|
+
- Animation: `motion` property moves along a path (optional rotate), `motion_blur` in export_animation.
|
|
69
|
+
- Style: `feather` softens edges.
|
|
70
|
+
- Skill rewritten; code comments removed.
|
|
71
|
+
|
|
72
|
+
## 0.8.0 - 2026-11-16
|
|
73
|
+
|
|
74
|
+
Layout, components, effects, text and export additions:
|
|
75
|
+
|
|
76
|
+
- Live auto layout (re-flows on every change), fill / min / max sizing, grid spans, group items.
|
|
77
|
+
- Component variants (states named prop=value), optional parts (hide / show), slots.
|
|
78
|
+
- Number tokens, W3C DTCG token import / export, letter case, spring easing, diamond gradients.
|
|
79
|
+
- Glass refraction, progressive blur, noise modes, edge texture, luminance masks and clips, per-fill blend,
|
|
80
|
+
image crop and exposure / temperature / shadows / highlights.
|
|
81
|
+
- Line ends (arrows...), tapered / variable-width / wiggly strokes.
|
|
82
|
+
- Text: lists, paragraph spacing, indent, OpenType features, variable axes, vertical trim, colour emoji,
|
|
83
|
+
text on any path, text to vector outlines.
|
|
84
|
+
- vectorize_image, path simplify, find_elements, restyle replace_text, version diff, notes, focus order.
|
|
85
|
+
- New outputs: vector PDF (export_pdf), Lottie (export_animation lottie) and websites (export_web: HTML / CSS
|
|
86
|
+
with links, overlays, hover states, CSS animations, View Transitions, responsive pins).
|
|
87
|
+
- Fix: export_theme had lost its tool registration.
|
|
88
|
+
|
|
89
|
+
## 0.7.0 - 2026-11-15
|
|
90
|
+
|
|
91
|
+
- Server instructions cut to ~1.8k characters: clients truncate long instructions (Claude Code near 4k),
|
|
92
|
+
which hid half the reference. The full reference now comes from the read-only `guide(topic)` tool.
|
|
93
|
+
- `make_palette`: OKLCH colour scales (50-950) with WCAG text contrast per step and accent hues.
|
|
94
|
+
- `restyle`: replace a colour or font across every canvas and theme style, or set props by filter.
|
|
95
|
+
- `path_ops`: flatten, offset (grow / shrink) and outline stroke, turning shapes and lines into paths.
|
|
96
|
+
- `review_canvas` design lint: near-miss alignment, radius / stroke / text-size sprawl, hard-coded colours.
|
|
97
|
+
|
|
98
|
+
## 0.6.0 - 2026-11-15
|
|
99
|
+
|
|
100
|
+
- SVG export keeps more as vector: stripes / dots / grid fills become SVG patterns, single-side strokes
|
|
101
|
+
stay vector, shadows and glows use the standard filter chain Figma itself writes (several shadows on
|
|
102
|
+
one shape no longer shadow each other), and frosted-glass panels carry the blurred scene behind them.
|
|
103
|
+
- `export_svg(image_scale=...)`: sharper embedded pictures for large prints.
|
|
104
|
+
- `export_png(preset="ios" | "android" | "web")`: the whole density set in one call.
|
|
105
|
+
- English README with a Turkish version, banner, badges, issue and pull-request templates, changelog.
|
|
106
|
+
|
|
107
|
+
## 0.5.0 - 2026-11-14
|
|
108
|
+
|
|
109
|
+
- Optional GPU acceleration: `pip install "uiforge-mcp[gpu]"` (CuPy, CUDA 12) runs shader fills and large
|
|
110
|
+
blurs on an NVIDIA GPU, with an automatic CPU fallback.
|
|
111
|
+
|
|
112
|
+
## 0.4.0 - 2026-11-14
|
|
113
|
+
|
|
114
|
+
- Background blur (frosted glass), single-side strokes, ellipsis truncation, underline / strikethrough,
|
|
115
|
+
named version history (`canvas_version`).
|
|
116
|
+
- Security policy, contributing guide, code of conduct, Windows CI, trademark notice.
|
|
117
|
+
|
|
118
|
+
## 0.3.0 - 2026-11-14
|
|
119
|
+
|
|
120
|
+
- Exact boolean shapes, smoothed corners, fill stacks, variable modes, auto-layout wrap, editable vector
|
|
121
|
+
SVG export, parallel animation frames.
|
|
122
|
+
- One-line `uvx` install, tool annotations (read-only / destructive), layered JPG / WebP / SVG layer export.
|
|
123
|
+
- Every tool error explains how to recover; allow-listed values in generated engine scripts; render size limit.
|
|
124
|
+
|
|
125
|
+
## 0.2.0 - 2026-11-14
|
|
126
|
+
|
|
127
|
+
- Multilingual text engine (HarfBuzz shaping, bidi, Noto fallback fonts, CJK line breaking).
|
|
128
|
+
- Shader fills, designer workflow tools (states, templates, string tables, pins, prototypes, engine scenes).
|
|
129
|
+
- Components, arrays, cut-outs, SVG import, self-review.
|
|
130
|
+
|
|
131
|
+
## 0.1.0 - 2026-11-13
|
|
132
|
+
|
|
133
|
+
- First release: shapes, text, styles, layers and lighting, keyframe animation, 9-slice export for
|
|
134
|
+
Unity, Unreal, Roblox and Godot.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Code of conduct
|
|
2
|
+
|
|
3
|
+
This project follows the [Contributor Covenant, version 2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).
|
|
4
|
+
|
|
5
|
+
In short: be respectful and constructive, assume good intent, and keep discussions about the work.
|
|
6
|
+
Harassment, insults, discrimination and publishing other people's private information are not
|
|
7
|
+
accepted in issues, pull requests or any other project space.
|
|
8
|
+
|
|
9
|
+
Report unacceptable behaviour privately to the maintainer through the contact options on the
|
|
10
|
+
maintainer's GitHub profile. Reports are handled confidentially, and the maintainer may remove
|
|
11
|
+
content or block participants who break these rules.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Contributing to UIForge (`uiforge-mcp`)
|
|
2
|
+
|
|
3
|
+
Thanks for helping make UIForge better! Bug reports, real showcases, engine improvements, Studio UI polish, and pull requests are welcome.
|
|
4
|
+
|
|
5
|
+
## Development Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git clone https://github.com/TENETTE/uiforge-mcp
|
|
9
|
+
cd uiforge-mcp
|
|
10
|
+
uv venv && uv pip install -e ".[dev]"
|
|
11
|
+
uv run pytest -q
|
|
12
|
+
uv run ruff check src tests
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Plain `python -m venv .venv` + `pip install -e ".[dev]"` works as well (Python 3.10+).
|
|
16
|
+
|
|
17
|
+
## Architecture Rules
|
|
18
|
+
|
|
19
|
+
- **Shared core, zero duplication:** Business logic, rendering, widgets, and exporters belong in the MCP-independent core (`core.py`, `store.py`, `render.py`, `pbr.py`, `widgets.py`, `export.py`, `tools_delivery.py`, `desktop_export.py`, `webexport.py`). Never duplicate engine logic separately for MCP vs Studio UI.
|
|
20
|
+
- **Keep Human Mode MCP-free at runtime:** `uiforge` / `uiforge ui` must continue to boot and execute core operations cleanly even if the `mcp` package is absent (`MCP_AVAILABLE = False`).
|
|
21
|
+
- **Maintain Combined Mode safety:** Any new state mutation in `Store` must hold `self._lock`, persist atomically via `_atomic_write`, and update `_disk_stamps` / `_notify()` so in-process and cross-process Combined Mode stay consistent.
|
|
22
|
+
- **Stay local and deterministic:** Zero outbound network calls, zero diffusion/image-generation models, and no heavy mandatory dependencies without discussion in an issue first.
|
|
23
|
+
|
|
24
|
+
## Before Opening a Pull Request
|
|
25
|
+
|
|
26
|
+
- Run the full test suite (`pytest -q`) and `ruff check src tests`, and add tests covering new behaviour or bug fixes across relevant modes (`mcp`, `ui`, `combined`).
|
|
27
|
+
- Tool errors must explain clearly what went wrong and how to fix it (see `tests/test_tool_errors.py`).
|
|
28
|
+
- Any value interpolated into generated scripts (Unreal Python, Unity C#, Godot GDScript/`.tscn`, Roblox Luau, WPF/Avalonia/WinUI XAML, Qt QML, Dear ImGui C++, HTML/TSX) must be validated or escaped (see `tests/test_security.py`).
|
|
29
|
+
- Only add fonts or media under an open license (e.g. MIT, SIL OFL-1.1) and include the license file alongside them + update `THIRD_PARTY_LICENSES.md`.
|
|
30
|
+
- If a change affects CLI flags, modes, or tools, update docstrings, `README.md`, `README.tr.md`, `docs/GUIDE.md`, `skill/uiforge-mcp/SKILL.md`, and `llms.txt` as needed.
|
|
31
|
+
|
|
32
|
+
## Reporting Bugs
|
|
33
|
+
|
|
34
|
+
Open an issue with the tool calls or UI steps (plus canvas JSON from `get_canvas` if applicable), what you expected, and what happened. Report security vulnerabilities privately via [SECURITY.md](SECURITY.md).
|
|
35
|
+
|
|
36
|
+
By contributing you agree that your work is released under the [MIT License](LICENSE).
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 TENETTE and uiforge-mcp contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---------------------------------------------------------------------------
|
|
24
|
+
Bundled fonts (src/uiforge_mcp/assets/fonts/) are not covered by this
|
|
25
|
+
license: each is distributed under the SIL Open Font License 1.1, included as
|
|
26
|
+
OFL.txt in its folder. Images you create with this software are yours.
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: uiforge-mcp
|
|
3
|
+
Version: 0.15.0
|
|
4
|
+
Summary: Local deterministic UI design studio & MCP server (Human UI Mode, MCP Mode, Combined Mode). PBR materials, animations, game engines, .NET/C++ desktop & web/React.
|
|
5
|
+
Project-URL: Homepage, https://github.com/TENETTE/uiforge-mcp
|
|
6
|
+
Project-URL: Repository, https://github.com/TENETTE/uiforge-mcp
|
|
7
|
+
Project-URL: Documentation, https://github.com/TENETTE/uiforge-mcp#readme
|
|
8
|
+
Project-URL: Changelog, https://github.com/TENETTE/uiforge-mcp/blob/main/CHANGELOG.md
|
|
9
|
+
Project-URL: Issues, https://github.com/TENETTE/uiforge-mcp/issues
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: godot,mcp,model-context-protocol,pbr,qt,roblox,svg,ui-design,ui-studio,uiforge,unity,unreal,wpf
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: Games/Entertainment
|
|
23
|
+
Classifier: Topic :: Multimedia :: Graphics :: Editors :: Vector-Based
|
|
24
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
25
|
+
Requires-Python: >=3.10
|
|
26
|
+
Requires-Dist: mcp>=1.2
|
|
27
|
+
Requires-Dist: numpy>=1.24
|
|
28
|
+
Requires-Dist: opencv-python-headless>=4.10
|
|
29
|
+
Requires-Dist: pillow>=10.1
|
|
30
|
+
Requires-Dist: pyclipper>=1.3
|
|
31
|
+
Requires-Dist: uharfbuzz>=0.39
|
|
32
|
+
Provides-Extra: amd
|
|
33
|
+
Requires-Dist: wgpu>=0.19; extra == 'amd'
|
|
34
|
+
Provides-Extra: apple
|
|
35
|
+
Requires-Dist: wgpu>=0.19; extra == 'apple'
|
|
36
|
+
Provides-Extra: cpu
|
|
37
|
+
Provides-Extra: desktop
|
|
38
|
+
Requires-Dist: pywebview>=5.0; extra == 'desktop'
|
|
39
|
+
Provides-Extra: dev
|
|
40
|
+
Requires-Dist: pytest>=7; extra == 'dev'
|
|
41
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
42
|
+
Provides-Extra: gpu
|
|
43
|
+
Requires-Dist: cupy-cuda12x[ctk]>=13.4; extra == 'gpu'
|
|
44
|
+
Requires-Dist: wgpu>=0.19; extra == 'gpu'
|
|
45
|
+
Provides-Extra: intel
|
|
46
|
+
Requires-Dist: wgpu>=0.19; extra == 'intel'
|
|
47
|
+
Provides-Extra: nvidia
|
|
48
|
+
Requires-Dist: cupy-cuda12x[ctk]>=13.4; extra == 'nvidia'
|
|
49
|
+
Requires-Dist: wgpu>=0.19; extra == 'nvidia'
|
|
50
|
+
Provides-Extra: ocr
|
|
51
|
+
Requires-Dist: rapidocr-onnxruntime>=1.3; extra == 'ocr'
|
|
52
|
+
Provides-Extra: video
|
|
53
|
+
Requires-Dist: imageio-ffmpeg>=0.5; extra == 'video'
|
|
54
|
+
Provides-Extra: wgpu
|
|
55
|
+
Requires-Dist: wgpu>=0.19; extra == 'wgpu'
|
|
56
|
+
Description-Content-Type: text/markdown
|
|
57
|
+
|
|
58
|
+
<div align="center">
|
|
59
|
+
|
|
60
|
+
**English** · [Türkçe](README.tr.md)
|
|
61
|
+
|
|
62
|
+
<a href="#quick-start">
|
|
63
|
+
<img src="docs/banner.png" alt="UIForge (uiforge-mcp) — Deterministic UI Design Studio & MCP Server" width="100%" />
|
|
64
|
+
</a>
|
|
65
|
+
|
|
66
|
+
<br />
|
|
67
|
+
|
|
68
|
+
**100% local, MIT-licensed UI design studio & MCP server — use the standalone visual Studio UI, connect any MCP AI client, or edit live together on one workspace.**
|
|
69
|
+
|
|
70
|
+
<p>
|
|
71
|
+
<a href="https://github.com/TENETTE/uiforge-mcp/actions/workflows/tests.yml"><img src="https://img.shields.io/github/actions/workflow/status/TENETTE/uiforge-mcp/tests.yml?branch=main&style=flat-square&label=tests" alt="CI Tests" /></a>
|
|
72
|
+
<a href="pyproject.toml"><img src="https://img.shields.io/badge/python-3.10%2B-3776ab?style=flat-square&logo=python&logoColor=white" alt="Python 3.10+" /></a>
|
|
73
|
+
<a href="#three-modes"><img src="https://img.shields.io/badge/modes-Human_UI_%7C_MCP_%7C_Combined-e89b3c?style=flat-square" alt="Modes" /></a>
|
|
74
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-22c55e?style=flat-square" alt="MIT License" /></a>
|
|
75
|
+
</p>
|
|
76
|
+
|
|
77
|
+
<p>
|
|
78
|
+
<a href="#quick-start">Quick Start</a> ·
|
|
79
|
+
<a href="#three-modes">Three Modes</a> ·
|
|
80
|
+
<a href="#highlights">Highlights</a> ·
|
|
81
|
+
<a href="#export-targets">Exports</a> ·
|
|
82
|
+
<a href="#benchmarks">Benchmarks</a> ·
|
|
83
|
+
<a href="docs/SHOWCASES.md">Showcases</a> ·
|
|
84
|
+
<a href="configs/README.md">IDE Setup</a>
|
|
85
|
+
</p>
|
|
86
|
+
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Quick Start
|
|
92
|
+
|
|
93
|
+
Requires Python **3.10+** and [uv](https://docs.astral.sh/uv/) (or `pip`). Zero subscriptions, zero cloud calls, zero diffusion hallucinations.
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
# 1. Human Mode — open the standalone Studio UI (no MCP or AI IDE required)
|
|
97
|
+
uvx --from git+https://github.com/TENETTE/uiforge-mcp uiforge
|
|
98
|
+
uvx --from git+https://github.com/TENETTE/uiforge-mcp uiforge ui --app # frameless desktop window
|
|
99
|
+
|
|
100
|
+
# 2. Combined Mode — Studio UI + MCP server synced live on the same workspace
|
|
101
|
+
uvx --from git+https://github.com/TENETTE/uiforge-mcp uiforge combined
|
|
102
|
+
|
|
103
|
+
# 3. MCP Mode — auto-configure your AI client (opencode, claude, codex, vscode, visualstudio, antigravity, cursor, windsurf)
|
|
104
|
+
uvx --from git+https://github.com/TENETTE/uiforge-mcp uiforge-mcp setup claude --write
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
<details>
|
|
108
|
+
<summary>Persistent install, GPU extras & token-saving MCP toolsets</summary>
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
pip install "uiforge-mcp @ git+https://github.com/TENETTE/uiforge-mcp"
|
|
112
|
+
|
|
113
|
+
# Optional acceleration & features
|
|
114
|
+
pip install "uiforge-mcp[nvidia] @ git+https://github.com/TENETTE/uiforge-mcp" # CUDA 12 + WebGPU
|
|
115
|
+
pip install "uiforge-mcp[wgpu] @ git+https://github.com/TENETTE/uiforge-mcp" # AMD / Intel / Apple Metal
|
|
116
|
+
pip install "uiforge-mcp[desktop] @ git+https://github.com/TENETTE/uiforge-mcp" # pywebview native window
|
|
117
|
+
|
|
118
|
+
# Shrink MCP tool-list tokens by up to 77%
|
|
119
|
+
uiforge-mcp mcp --toolset game --compact # core | game | desktop | web | full
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
</details>
|
|
123
|
+
|
|
124
|
+
<br />
|
|
125
|
+
|
|
126
|
+
<img src="docs/ui_studio.png" alt="UIForge Studio running locally in Combined Mode" width="100%" />
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Three Modes
|
|
131
|
+
|
|
132
|
+
All three modes share the **exact same MCP-independent core engine** (`core.py` + `store.py`) and read/write the same `.uiforge/` (or `~/UIForge`) workspace with atomic JSON sync (`mkstemp` + `fsync` + `os.replace`).
|
|
133
|
+
|
|
134
|
+
| Mode | Command | What It Does | Requires MCP? |
|
|
135
|
+
| --- | --- | --- | :---: |
|
|
136
|
+
| **Human Mode** | `uiforge` / `uiforge ui --app` | Standalone visual Studio UI in browser or desktop window — works even without the `mcp` package installed | **No** |
|
|
137
|
+
| **MCP Mode** | `uiforge-mcp` (`stdio` / `http`) | Headless MCP server for OpenCode, Claude Code, Codex, VS Code, Visual Studio, Antigravity, Cursor, Windsurf, ChatGPT | Yes |
|
|
138
|
+
| **Combined Mode** | `uiforge combined` | Human Studio UI + MCP server editing the **same project live** via SSE, RLock & unified Activity Log | Optional |
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Highlights
|
|
143
|
+
|
|
144
|
+
- **Deterministic Vector + Cook-Torrance GGX PBR:** 39 built-in materials, custom `.hdr`/`.exr` IBL, live PBR parameter tuning & custom material saving, HarfBuzz BiDi/Indic typography, and 3D curved visor perspective.
|
|
145
|
+
- **Built-in Production Studio UI:** 3 instant starter templates, 8-point resize handles, magnetic snap guides, `Shift+Click` multi-select, inline text edit, `Ctrl+K` Command Palette, Dark/Light themes, Color-Blindness & Pseudo-Loc simulator, Multi-Device Matrix, CSS/Tailwind/shadcn token import, and WCAG contrast audit.
|
|
146
|
+
- **97 Core Operations + 142 MIT Vector Icons + 9 AAA Frames:** Native `input`, `scroll`, `slider`, `toggle`, and `dropdown` widgets plus `import_screenshot` v2 and pixel `visual_diff`.
|
|
147
|
+
|
|
148
|
+
<table>
|
|
149
|
+
<tr>
|
|
150
|
+
<td width="50%" valign="top">
|
|
151
|
+
<img src="docs/ui_materials.png" alt="Cook-Torrance PBR Material Forge" width="100%" /><br />
|
|
152
|
+
<strong>Cook-Torrance PBR Forge & 142 Vector Icons</strong>
|
|
153
|
+
</td>
|
|
154
|
+
<td width="50%" valign="top">
|
|
155
|
+
<img src="docs/ui_export.png" alt="One-click Engine & Desktop Export" width="100%" /><br />
|
|
156
|
+
<strong>One-Click Engine Delivery & Inline Code Inspector</strong>
|
|
157
|
+
</td>
|
|
158
|
+
</tr>
|
|
159
|
+
<tr>
|
|
160
|
+
<td width="50%" valign="top">
|
|
161
|
+
<img src="examples/materials.png" alt="39 PBR Materials" width="100%" /><br />
|
|
162
|
+
<strong>39 Built-in Cook-Torrance GGX Materials</strong>
|
|
163
|
+
</td>
|
|
164
|
+
<td width="50%" valign="top">
|
|
165
|
+
<img src="examples/frames.png" alt="9 Parametric AAA Frames" width="100%" /><br />
|
|
166
|
+
<strong>9 Editable Parametric AAA Frames</strong>
|
|
167
|
+
</td>
|
|
168
|
+
</tr>
|
|
169
|
+
</table>
|
|
170
|
+
|
|
171
|
+
> **See more:** [Full Showcase Gallery (`docs/SHOWCASES.md`)](docs/SHOWCASES.md) — Studio launcher, responsive mode, PBR normal/ORM texture maps, racing HUD, animations, and all 97 operations.
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## Export Targets
|
|
176
|
+
|
|
177
|
+
| Category | Supported Outputs |
|
|
178
|
+
| --- | --- |
|
|
179
|
+
| **Game Engines** | **Unreal Engine 5.5–5.8** (UMG Python `WidgetBlueprint` builder), **Unity 6** (UI Toolkit + uGUI C#), **Godot 4** (`.tscn` + `_controller.gd` + `.tres`), **Roblox** (`ScreenGui .client.luau`) |
|
|
180
|
+
| **Desktop Apps** | **C# .NET** (`WPF` XAML + ViewModel, `Avalonia`, `WinUI 3`), **C++** (`Qt 6 QML`, self-contained `Dear ImGui` C++17) |
|
|
181
|
+
| **Web & Tokens** | **React 19 TSX / Tailwind**, **HTML5/CSS3** prototypes (live bindings + Gamepad API), W3C DTCG, `DESIGN.md`, CSS `:root` / Tailwind v4 `@theme` / shadcn import |
|
|
182
|
+
| **Assets & PBR Maps** | Albedo / Tangent Normal (OpenGL & DirectX) / Roughness / Metallic / AO / Height / ORM, PNG, editable SVG, PackBits PSD, PDF, sprite atlases, BMFont |
|
|
183
|
+
| **Motion & Video** | **dotLottie v2** (`.lottie` + interactive State Machine), Lottie JSON, H.264 MP4 / VP9 WebM, GIF, APNG, WebP, sprite sheets |
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## Benchmarks
|
|
188
|
+
|
|
189
|
+
Measured locally on **Windows 11, Python 3.12, NVIDIA GeForce RTX 4060 Ti** (`UIFORGE_MCP_GPU=cpu|wgpu|auto`; zero mandatory GPU deps):
|
|
190
|
+
|
|
191
|
+
| Workload | CPU (OpenCV SIMD) | WebGPU (`wgpu` Vulkan) | Hybrid `auto` (CUDA + WebGPU) |
|
|
192
|
+
| --- | ---: | ---: | ---: |
|
|
193
|
+
| `512×512` exact Euclidean SDF (`distance_field`) | **2.69 ms** | 2.69 ms *(CPU SIMD)* | 2.69 ms *(CPU SIMD)* |
|
|
194
|
+
| `512×512` procedural shader (`fbm` + `ridged` + `voronoi`) | 143.9 ms | **4.16 ms** (35×) | **1.13 ms** (127× CUDA) |
|
|
195
|
+
| `512×512` Cook-Torrance GGX PBR + Studio IBL | 283.5 ms | **38.1 ms** (7.4×) | **37.3 ms** (7.6×) |
|
|
196
|
+
| 18 Cook-Torrance PBR cards (`1200×800`, cold / cached) | 531 ms / **7.8 ms** | 527 ms / **7.6 ms** | 572 ms / **7.5 ms** |
|
|
197
|
+
| 21-frame `1280×720` HUD sprite sheet | 4.23 s | 4.06 s | **2.95 s** (1.4×) |
|
|
198
|
+
|
|
199
|
+
<sub>Hardware GPU benchmarks measured on NVIDIA RTX 4060 Ti. AMD, Intel, and Apple Silicon (Metal) target portable WGSL via `wgpu-py` — see [`docs/COMPATIBILITY.md`](docs/COMPATIBILITY.md).</sub>
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Documentation & License
|
|
204
|
+
|
|
205
|
+
- **[`docs/SHOWCASES.md`](docs/SHOWCASES.md)** — Full Studio UI, PBR, HUD, animation & 97-tool gallery
|
|
206
|
+
- **[`configs/README.md`](configs/README.md)** — Multi-mode launch & MCP configs for 9+ AI clients
|
|
207
|
+
- **[`docs/GUIDE.md`](docs/GUIDE.md)** — Complete feature & engine reference (Turkish)
|
|
208
|
+
- **[`docs/COMPATIBILITY.md`](docs/COMPATIBILITY.md)** — Verified OS, engine, GPU & client matrix
|
|
209
|
+
- **[`skill/uiforge-mcp/SKILL.md`](skill/uiforge-mcp/SKILL.md)** · **[`llms.txt`](llms.txt)** — Provider-neutral AI craft skill & index
|
|
210
|
+
- **[`SECURITY.md`](SECURITY.md)** · **[`CONTRIBUTING.md`](CONTRIBUTING.md)** · **[`THIRD_PARTY_LICENSES.md`](THIRD_PARTY_LICENSES.md)** · **[`CHANGELOG.md`](CHANGELOG.md)**
|
|
211
|
+
|
|
212
|
+
[MIT License](LICENSE) — free for personal and commercial use (11 bundled fonts are SIL OFL-1.1). Everything you create with UIForge belongs to you.
|
|
213
|
+
|
|
214
|
+
<!-- mcp-name: io.github.TENETTE/uiforge-mcp -->
|