luneos-mcp
OfficialProvides knowledge and tooling for porting LuneOS to Android devices, including kernel porting, boot-image construction, GSI building, device bring-up, and debugging.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@luneos-mcpmy device won't boot after installing the GSI, what do I check?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
luneos-mcp
MCP (Model Context Protocol) server packaging the knowledge gained porting LuneOS to modern Android devices via Halium GSIs and GKI kernels — kernel porting, boot-image construction, Yocto/meta-smartphone device bring-up, nyx-modules configuration, GSI building, installation, and a staged "device doesn't come up" debugging playbook.
Modelled on webOSArchive/webos-mcp, but for LuneOS device porting rather than legacy webOS app development.
The knowledge was distilled from real ports and bring-ups:
sargo (Pixel 3a) — the GSI pilot: one generic
halium-arm64rootfs booting Halium 14.0 and 16.0 GSIs over the stock Android 12.1 vendorbluejay (Pixel 6a) — first Tier A GKI port: ACK
android14-6.1kernel, KMI-preserving config fragment, stock vendor modulespanther (Pixel 7) — A13-launch
init_bootlayout, same kernel binarymindphone (MT6739) — Tier B legacy port: 32-bit kernel,
halium_armGSI built for Halium 11 and 16, full UI/wifi/BT/modem bring-up
Install
git clone https://github.com/webOS-ports/luneos-porting-mcp.git
cd luneos-porting-mcp
npm install
# For Claude Code, user scope:
claude mcp add luneos-mcp -s user -- node "$PWD/index.js"
# Or per-project:
claude mcp add luneos-mcp -s project -- node "$PWD/index.js"(Once published to npm: claude mcp add luneos-mcp -s user -- npx -y luneos-mcp@latest.)
Requires Node.js 18+.
To have Claude load the full context automatically in a porting project, copy
templates/CLAUDE.md into the project (or merge its contents into an existing
CLAUDE.md).
Related MCP server: android-mcp-toolkit
What it exposes
Resources
URI | Content |
| every topic concatenated — load at session start |
| one topic file |
Topics (auto-discovered from knowledge/*.md):
Topic | Covers |
| the GSI+GKI model: one rootfs, Treble, Tier A/B, adaptation tiers, on-device layout |
| GKI/ACK builds, KMI-poison list & CRC verification, Tier B legacy kernels |
| header v0–v4, per-layout repack recipes, initramfs init patches, AVB/vbmeta |
| building Halium GSIs (arm64 and 32-bit arm), Halium 16 traps, VNDK snapshots |
| meta-smartphone machines, gki_bootimg, recipes, bitbake gotchas |
| nyx-modules(-hybris) per-machine cmake, variables, pitfalls |
| libhybris stack, HIDL vs AIDL per subsystem, Mali, MTK connectivity |
| staged "device doesn't come up" playbook, symptom → cause table |
| flash kits, userdata images, fastboot flows, anti-rollback |
| kmi-crc-check, module-order, payload_extract, mer-kernel-check, … |
| per-device reference |
Tools
luneos_list_topics— list topics with descriptionsluneos_get_topic— fetch one topic's markdownluneos_search— keyword search across the whole knowledge base (symptoms, config options, file names)
Prompts
luneos-session-start— load the knowledge base into a sessionluneos-port-device— guided porting workflow for a new deviceluneos-debug-boot— staged triage for a device that does not come up
Updating the knowledge
Each file in knowledge/ is one topic; the first # heading is its title and
the first paragraph its description. Add or edit files and the server picks
them up on the next request — no restart or re-registration needed.
License
Apache-2.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Remote MCP for Android CLI agent build gate, structured receipts, audit logs, and reviewer-ready evi
Create, deploy, and operate MCP servers directly from your GitHub repositories.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides comprehensive access to MCP documentation through structured guides, full-text search, and interactive development workflows for building servers and clients.337MIT
- AlicenseAqualityCmaintenanceA growing collection of MCP tools for Android Development. Currently features a deterministic Figma-SVG-to-Android-XML converter, with plans for Gradle analysis, Resource management, and ADB integration tools.72518MIT
- AlicenseAqualityBmaintenanceA minimal, secure MCP server for AI-assisted mobile development, enabling build, install, interact, and inspect Android/iOS apps.331477Apache 2.0
- AlicenseAqualityAmaintenanceEnables Android APK reverse engineering and Flutter runtime injection through a six-step pipeline of decompile, analyze, synthesize, inject, patch, and repackage. Provides MCP tools for authorized security research and penetration testing.9235MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/webOS-ports/luneos-porting-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server