Skip to content

About

Best tools for material 3 expressive for your AI Agents. Skill, MCP and useful scripts.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Material3AI

Material3AI

Agent skill + toolchain for building real Material 3 Expressive Android UI — across mobile/tablet/desktop, Android TV / Google TV, and Wear OS — with an MCP server for differential analysis of the actual AndroidX API.

What's inside

Path What it is
skills/md3-expressive-android/ Agent skill: platform-aware rules, anti-AI-slop guardrails, reference docs for all three platforms, and helper scripts (droidsearch.py version resolver, analyze_sources.py source-tree analyzer)
scripts/ Kotlin M3 Expressive template generator (m3_expressive_generator.main.kts, mobile/TV/Wear), AST checker for expressive anti-patterns (m3_expressive_ast_checker.py), multi-agent orchestrator (m3_agent_orchestrator.py)
mcps/material3-mcp/ Go MCP server: compares real Metalava API signatures of androidx.compose.material3, androidx.tv:tv-material, and androidx.wear.compose:compose-material3 between versions (BREAKING / NON_BREAKING / WARNING), inspects component APIs, checks deprecations, suggests migration patches

MCP server

Built on the official modelcontextprotocol/go-sdk, serving five tools (compare_material3_versions, inspect_component_api, check_deprecation_status, suggest_migration_patch, list_supported_platforms) and versioned resources over stdio or Streamable HTTP.

go build -o bin/material3-mcp ./cmd/server
bin/material3-mcp                              # stdio (Claude Desktop, Cursor)
bin/material3-mcp -http :8080                  # Streamable HTTP

Signature data is fetched live from AOSP gitiles (platform/frameworks/support): pre-releases from api/{version}.txt on androidx-main, the latest stable from the module's release branch. Google Maven provides the version list. Responses are cached (in-memory LRU + on-disk).

docker build -t material3-mcp mcps/material3-mcp
docker run -p 8080:8080 material3-mcp -http=:8080

Kotlin generator

kotlinc -script scripts/m3_expressive_generator.main.kts -- \
    --name MyCard --platform mobile --type card --package com.example.app.ui.generated --out ./generated

CI

Every push runs .github/workflows/ci.yml: Go build + vet + tests + cross-compiled binaries (uploaded as artifacts), Kotlin generator + AST checker on generated output, Python script tests, and an end-to-end MCP smoke test that diffs the oldest vs newest archived material3 signatures.

About

Best tools for material 3 expressive for your AI Agents. Skill, MCP and useful scripts.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages