androidbuilder-mcp CLAUDE.md

Repository instructions for an MCP server that connects an AI agent to MIT App Inventor, AndroidBuilder, Niotron, and Kodular web editors through Chrome. The server uses Puppeteer and Chrome's debugging connection to inspect and change projects.

In plain words
What is it for?
Use them when changing or testing the server's ten editor tools, such as reading project details, inspecting components, or updating component properties.
Why use it?
They explain the server's structure and safeguards, including connection reuse, timeouts, fallback ways to update properties, and clean shutdown.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/williamcorrea23/androidbuilder-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/williamcorrea23/androidbuilder-mcp
Per session 524 This file is loaded in full into every session.
When invoked 524 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 98% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00524 $0.00524
Opus 5 $0.00262 $0.00262
Sonnet 5 $0.00105 $0.00105
Haiku 4.5 $0.00052 $0.00052

Measured yesterday against content hash cf17fd7a0e77, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

androidbuilder-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

98% identical to androidbuilder-mcp AGENTS.md — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 51 lines

What it actually says

CLAUDE.md — AndroidBuilder MCP Server

Project Overview

This is an MCP (Model Context Protocol) server written in TypeScript/Node.js that bridges LLMs to the MIT App Inventor / AndroidBuilder / Niotron / Kodular web IDEs via Chrome's DevTools Protocol (CDP) using Puppeteer Core.

Architecture

src/
├── index.ts          # MCP Server, tool registration, routing
├── tools.ts          # All tool implementations (10 tools)
└── browser-bridge.ts # CDP connection, page cache, timeout handling

Key Design Decisions

  • Single cached CDP connection — avoids WebSocket leak where each call opened a new connection
  • 3-strategy property update — GWT API → top-frame API → DOM input field
  • Timeout on evaluateInPage — prevents hanging if IDE page freezes (default 15s)
  • Graceful SIGTERM/SIGINT disconnect — via bridge.setupProcessHandlers()
  • Env-var driven configBROWSER_DEBUG_PORT, EVAL_TIMEOUT_MS, ANDROIDBUILDER_DEBUG

Tools (10 total)

Tool View Required
get_project_info Any
get_component_tree Designer
get_component_properties Designer (component selected)
update_component_property Designer
add_blocks Blocks
get_blocks_xml Blocks
clear_blocks Blocks
switch_screen Any
list_screens Any
click_element Any (fallback)

Development

npm run build       # compile TypeScript → dist/
npm start           # run compiled server
ANDROIDBUILDER_DEBUG=1 npm start  # verbose logging

Common Errors & Fixes

  • ECONNREFUSED → Chrome not started with --remote-debugging-port=9222
  • No active tab found → IDE not open or project not loaded
  • gwt-Tree not found → Switch to Designer view
  • Blockly not available → Switch to Blocks view
  • Timeouts → Increase EVAL_TIMEOUT_MS, reload IDE page

Supported IDEs

androidbuilder.in, ai2.appinventor.mit.edu, code.appinventor.mit.edu, niotron.com, makeroid.io, appybuilder.com

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 51 lines · 524 tokens per session scan A cf17fd7a0e77

Subscribe to this mod's changes

androidbuilder-mcp CLAUDE.md is an instructions file published in the GitHub repository williamcorrea23/androidbuilder-mcp (0 stars, last pushed 26d ago), licensed MIT. It adds 524 tokens to every session, about $0.0026 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to androidbuilder-mcp AGENTS.md, differing in 2 lines, and is treated as a copy.