agy-ui-mcp

v0.1.0
agy-ui-mcp Checked 3 days ago Published 5 months ago

MCP server that delegates frontend/UI work to the agy CLI (Gemini), scoped via a diff-gate to never touch backend/API/business logic.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ui_implement

Implement/modify UI for ``task`` via an iterative, diff-gated vision loop. Workflow: 1. Load ``.agy-ui-scope`` and create an isolated git worktree. 2. Start the dev server (from ``scope.serve``) inside the worktree and wait for it to be ready. 3. Loop up to ``max_iters``: screenshot the route across viewports, build a vision prompt listing the shot + design-ref paths, run ``agy -p`` in the worktree, diff-gate the result, re-screenshot. Stop early once a round produces no new in-scope changes. 4. Collect the final…

ParameterTypeDescription
project_dir *string
task *string
applyboolean
design_refs
match_thresholdinteger
max_itersinteger
target_route

ui_review

Serve the app, screenshot it, and have agy critique it read-only. Any file agy edits during the critique is reverted by the diff-gate, so this tool never mutates the project. When ``a11y`` is set (and the platform is a web target), each target is also audited with axe-core; the violations ground agy's critique and are returned structurally under ``a11y``. Native platforms have no DOM, so the audit is skipped there with a note. Args: project_dir: Absolute path to the project root (must contain the scope). target_route: Optional route appended to ``…

ParameterTypeDescription
project_dir *string
a11yboolean
against_design
target_route

ui_init

Auto-detect the stack and write a starter ``.agy-ui-scope`` config. Zero-to-config helper for non-technical users: inspects the project's manifests (package.json / pubspec.yaml / lockfiles), guesses the framework, serve command, and edit-scope globs, and writes a ``.agy-ui-scope`` YAML at the project root that the user can then tweak by hand. After this, the ``ui_implement`` / ``ui_review`` tools run with no further setup. Args: project_dir: Path to the project root to scan and write into. overwrite: When False (default) an existing ``.agy-ui-scope`` i…

ParameterTypeDescription
overwriteboolean
project_dirstring