AOSP Platform Builder MCP

AOSP Platform Builder MCP

Connects to a GCP-hosted AOSP build VM via IAP tunnel, uploads APKs as privileged system apps, and builds system.img.

Category
Visit Server

README

AOSP Platform Builder MCP

MCP server that connects to a GCP-hosted AOSP build VM via IAP tunnel, uploads APKs as privileged system apps, and builds system.img.

Project Structure

aosp-platform-builder-mcp/
├── connection.json          ← Your GCP/AOSP config (edit this)
├── .env.example
├── pyproject.toml
├── requirements.txt
├── skills.md                ← Exhaustive Claude skill definition
├── README.md
└── src/
    ├── server.py            ← MCP server (8 tools)
    ├── tools/
    │   ├── gcp.py           ← connect_gcp
    │   ├── apk.py           ← upload_apk
    │   ├── module.py        ← create_priv_app_module
    │   ├── config.py        ← patch_product_config
    │   └── build.py         ← run_lunch, build_systemimage,
    │                           stream_build_logs, exec_remote
    └── utils/
        ├── config.py        ← Loads connection.json
        ├── shell.py         ← Local command execution
        ├── ssh.py           ← gcloud compute ssh/scp (IAP)
        └── validation.py    ← Input sanitization

Setup

# 1. Install
cd aosp-platform-builder-mcp
pip install -e .

# 2. Authenticate
gcloud auth login

# 3. Edit connection.json with your details (pre-filled for current setup)

# 4. Register with Claude Code — add to ~/.claude/settings.json:
{
  "mcpServers": {
    "aosp-platform-builder": {
      "command": "python",
      "args": ["-m", "src.server"],
      "cwd": "/Users/jai.goyal/aosp-platform-builder-mcp"
    }
  }
}

Current Configuration

Setting Value
GCP Project glancecdn-sandbox-c32a
Zone asia-south1-c
VM aosp-build-vm-replica-1
SSH User jai.goyal
IAP Tunnel enabled
AOSP Root /home/jai.goyal/a16
Lunch Target aosp_arm64-bp2a-userdebug
Build Command make -j96
Output out/target/product/generic_arm64/system.img

Usage

User: "connect and upload my apk and add this apk as a priv-app"

Claude:
  1. Asks for APK path
  2. connect_gcp       → auth + start VM + test SSH
  3. upload_apk        → validate + scp + extract package name
  4. create_priv_app_module → Android.bp in vendor/glance/priv-app/
  5. patch_product_config   → PRODUCT_PACKAGES += Module
  6. run_lunch              → lunch aosp_arm64-bp2a-userdebug
  7. build_systemimage      → make -j96
  8. Returns system.img path

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured